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 ac_subst_vars='LTLIBOBJS
559 POSTSTAGE1_CONFIGURE_FLAGS
564 MAINTAINER_MODE_FALSE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_libiberty_configure_flags
655 extra_mpc_mpfr_configure_flags
656 extra_mpc_gmp_configure_flags
657 extra_mpfr_configure_flags
673 EXTRA_CONFIGARGS_LIBJAVA
700 TOPLEVEL_CONFIGURE_ARGUMENTS
728 program_transform_name
739 ac_subst_files='serialization_dependencies
745 enable_option_checking
750 enable_libquadmath_support
753 enable_static_libjava
755 enable_build_with_cxx
756 enable_build_poststage1_with_cxx
776 enable_ppl_version_check
781 enable_cloog_version_check
783 enable_stage1_languages
786 with_debug_prefix_map
788 enable_serial_configure
789 with_build_time_tools
790 enable_maintainer_mode
791 enable_stage1_checking
794 ac_precious_vars='build_alias
841 # Initialize some variables set by options.
843 ac_init_version=false
844 ac_unrecognized_opts=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
855 program_transform_name=s,x,x,
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE}'
880 infodir='${datarootdir}/info'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
901 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
929 cache_file=config.cache ;;
931 -datadir | --datadir | --datadi | --datad)
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
957 eval enable_$ac_useropt=no ;;
959 -docdir | --docdir | --docdi | --doc | --do)
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
983 eval enable_$ac_useropt=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
998 -help | --help | --hel | --he | -h)
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1147 -site=* | --site=* | --sit=*)
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1187 eval with_$ac_useropt=\$ac_optarg ;;
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1203 eval with_$ac_useropt=no ;;
1206 # Obsolete; use --with-x.
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) as_fn_error "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information."
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error "missing argument to $ac_option"
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1256 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1274 # Be sure to have absolute directory names.
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1287 target=$target_alias
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1294 If a cross compiler is detected then cross compile mode will be used." >&2
1295 elif test "x$build_alias" != "x$host_alias"; then
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303 test "$silent" = yes && exec 6>/dev/null
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error "pwd does not report name of working directory"
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1346 ac_srcdir_defaulted=no
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 as_fn_error "path to source, $srcdir, contains spaces"
1371 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 # Report the --help message.
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1387 \`configure' configures this package to adapt to many kinds of systems.
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1394 Defaults for the options are specified in brackets.
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1418 For better control, use the options below.
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 --target=TARGET configure for building compilers for TARGET [HOST]
1456 if test -n "$ac_init_help"; then
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1465 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1466 --disable-libquadmath do not build libquadmath directory
1467 --disable-libquadmath-support
1468 disable libquadmath support for Fortran
1469 --enable-libada build libada directory
1470 --enable-libssp build libssp directory
1471 --enable-static-libjava[=ARG]
1472 build static libjava [default=no]
1473 --enable-bootstrap enable bootstrapping [yes if native build]
1474 --enable-build-with-cxx build with C++ compiler instead of C compiler
1475 --enable-build-poststage1-with-cxx
1476 build stages 2 and 3 with C++, not C
1477 --disable-ppl-version-check
1478 disable check for PPL version
1479 --enable-cloog-backend[=BACKEND]
1480 set the CLooG BACKEND used to either isl, ppl or
1481 ppl-legacy (default)
1482 --disable-cloog-version-check
1483 disable check for CLooG version
1484 --enable-lto enable link time optimization support
1485 --enable-stage1-languages[=all]
1486 choose additional languages to build during stage1.
1487 Mostly useful for compiler development
1488 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1490 --enable-serial-[{host,target,build}-]configure
1491 force sequential configuration of sub-packages for
1492 the host, target or build machine, or all
1494 --enable-maintainer-mode
1495 enable make rules and dependencies not useful (and
1496 sometimes confusing) to the casual installer
1497 --enable-stage1-checking[=all]
1498 choose additional checking for stage1 of the
1500 --enable-werror enable -Werror in bootstrap stage2 and later
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-build-libsubdir=DIR Directory where to find libraries for build system
1506 --with-mpc=PATH specify prefix directory for installed MPC package.
1507 Equivalent to --with-mpc-include=PATH/include plus
1508 --with-mpc-lib=PATH/lib
1509 --with-mpc-include=PATH specify directory for installed MPC include files
1510 --with-mpc-lib=PATH specify directory for the installed MPC library
1511 --with-mpfr-dir=PATH this option has been REMOVED
1512 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1513 Equivalent to --with-mpfr-include=PATH/include plus
1514 --with-mpfr-lib=PATH/lib
1515 --with-mpfr-include=PATH
1516 specify directory for installed MPFR include files
1517 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1518 --with-gmp-dir=PATH this option has been REMOVED
1519 --with-gmp=PATH specify prefix directory for the installed GMP
1520 package. Equivalent to
1521 --with-gmp-include=PATH/include plus
1522 --with-gmp-lib=PATH/lib
1523 --with-gmp-include=PATH specify directory for installed GMP include files
1524 --with-gmp-lib=PATH specify directory for the installed GMP library
1525 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1527 --with-stage1-ldflags=FLAGS
1528 linker flags for stage1
1529 --with-stage1-libs=LIBS libraries for stage1
1530 --with-boot-libs=LIBS libraries for stage2 and later
1531 --with-boot-ldflags=FLAGS
1532 linker flags for stage2 and later
1533 --with-ppl=PATH specify prefix directory for the installed PPL
1534 package. Equivalent to
1535 --with-ppl-include=PATH/include plus
1536 --with-ppl-lib=PATH/lib
1537 --with-ppl-include=PATH specify directory for installed PPL include files
1538 --with-ppl-lib=PATH specify directory for the installed PPL library
1539 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1540 package. Equivalent to
1541 --with-cloog-include=PATH/include plus
1542 --with-cloog-lib=PATH/lib
1543 --with-cloog-include=PATH
1544 Specify directory for installed CLooG include files
1545 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1547 --with-build-sysroot=SYSROOT
1548 use sysroot as the system root during the build
1549 --with-debug-prefix-map='A=B C=D ...'
1550 map A to B, C to D ... in debug information
1551 --with-build-config='NAME NAME2...'
1552 use config/NAME.mk build configuration
1553 --with-build-time-tools=PATH
1554 use given path to find target tools during the build
1556 Some influential environment variables:
1557 CC C compiler command
1558 CFLAGS C compiler flags
1559 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1560 nonstandard directory <lib dir>
1561 LIBS libraries to pass to the linker, e.g. -l<library>
1562 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563 you have headers in a nonstandard directory <include dir>
1564 CXX C++ compiler command
1565 CXXFLAGS C++ compiler flags
1567 additional configure arguments for build directories
1569 additional configure arguments for host directories
1571 additional configure arguments for target directories
1574 DLLTOOL DLLTOOL for the host
1576 LIPO LIPO for the host
1578 RANLIB RANLIB for the host
1579 STRIP STRIP for the host
1580 WINDRES WINDRES for the host
1581 WINDMC WINDMC for the host
1582 OBJCOPY OBJCOPY for the host
1583 OBJDUMP OBJDUMP for the host
1584 READELF READELF for the host
1594 GFORTRAN for the target
1602 DLLTOOL for the target
1610 OBJDUMP for the target
1612 RANLIB for the target
1614 READELF for the target
1616 STRIP for the target
1618 WINDRES for the target
1620 WINDMC for the target
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1625 Report bugs to the package provider.
1630 if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633 test -d "$ac_dir" ||
1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642 # A ".." for each directory in $ac_dir_suffix.
1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644 case $ac_top_builddir_sub in
1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649 ac_abs_top_builddir=$ac_pwd
1650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651 # for backward compatibility:
1652 ac_top_builddir=$ac_top_build_prefix
1655 .) # We are building in place.
1657 ac_top_srcdir=$ac_top_builddir_sub
1658 ac_abs_top_srcdir=$ac_pwd ;;
1659 [\\/]* | ?:[\\/]* ) # Absolute name.
1660 ac_srcdir=$srcdir$ac_dir_suffix;
1661 ac_top_srcdir=$srcdir
1662 ac_abs_top_srcdir=$srcdir ;;
1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665 ac_top_srcdir=$ac_top_build_prefix$srcdir
1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1670 cd "$ac_dir" || { ac_status=$?; continue; }
1671 # Check for guested configure.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681 cd "$ac_pwd" || { ac_status=$?; break; }
1685 test -n "$ac_init_help" && exit $ac_status
1686 if $ac_init_version; then
1689 generated by GNU Autoconf 2.64
1691 Copyright (C) 2009 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1698 ## ------------------------ ##
1699 ## Autoconf initialization. ##
1700 ## ------------------------ ##
1702 # ac_fn_c_try_compile LINENO
1703 # --------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_compile ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738 } # ac_fn_c_try_compile
1740 # ac_fn_cxx_try_compile LINENO
1741 # ----------------------------
1742 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_cxx_try_compile ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext
1747 if { { ac_try="$ac_compile"
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_compile") 2>conftest.err
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_cxx_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest.$ac_objext; then :
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 } # ac_fn_cxx_try_compile
1778 # ac_fn_c_try_link LINENO
1779 # -----------------------
1780 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext conftest$ac_exeext
1785 if { { ac_try="$ac_link"
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>conftest.err
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest$ac_exeext && {
1804 test "$cross_compiling" = yes ||
1805 $as_test_x conftest$ac_exeext
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1814 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816 # interfere with the next link command; also delete a directory that is
1817 # left behind by Apple's compiler. We do this before executing the actions.
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822 } # ac_fn_c_try_link
1823 cat >config.log <<_ACEOF
1824 This file contains any messages produced by compilers while
1825 running configure, to aid debugging if configure makes a mistake.
1827 It was created by $as_me, which was
1828 generated by GNU Autoconf 2.64. Invocation command line was
1840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1849 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1850 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1853 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1854 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1855 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 test -z "$as_dir" && as_dir=.
1864 $as_echo "PATH: $as_dir"
1880 # Keep a trace of the command line.
1881 # Strip out --no-create and --no-recursion so they do not pile up.
1882 # Strip out --silent because we don't want to record it for future runs.
1883 # Also quote any args containing shell meta-characters.
1884 # Make two passes to allow for proper duplicate-argument suppression.
1888 ac_must_keep_next=false
1894 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896 | -silent | --silent | --silen | --sile | --sil)
1899 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1904 as_fn_append ac_configure_args1 " '$ac_arg'"
1905 if test $ac_must_keep_next = true; then
1906 ac_must_keep_next=false # Got value, back to normal.
1909 *=* | --config-cache | -C | -disable-* | --disable-* \
1910 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912 | -with-* | --with-* | -without-* | --without-* | --x)
1913 case "$ac_configure_args0 " in
1914 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1917 -* ) ac_must_keep_next=true ;;
1920 as_fn_append ac_configure_args " '$ac_arg'"
1925 { ac_configure_args0=; unset ac_configure_args0;}
1926 { ac_configure_args1=; unset ac_configure_args1;}
1928 # When interrupted or exit'd, cleanup temporary files, and complete
1929 # config.log. We remove comments because anyway the quotes in there
1930 # would cause problems or look ugly.
1931 # WARNING: Use '\'' to represent an apostrophe within the trap.
1932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933 trap 'exit_status=$?
1934 # Save into config.log some information that might help in debugging.
1939 ## ---------------- ##
1940 ## Cache variables. ##
1941 ## ---------------- ##
1944 # The following way of writing the cache mishandles newlines in values,
1946 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947 eval ac_val=\$$ac_var
1951 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1952 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1955 _ | IFS | as_nl) ;; #(
1956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1957 *) { eval $ac_var=; unset $ac_var;} ;;
1962 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1963 *${as_nl}ac_space=\ *)
1965 "s/'\''/'\''\\\\'\'''\''/g;
1966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1977 ## ----------------- ##
1978 ## Output variables. ##
1979 ## ----------------- ##
1982 for ac_var in $ac_subst_vars
1984 eval ac_val=\$$ac_var
1986 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988 $as_echo "$ac_var='\''$ac_val'\''"
1992 if test -n "$ac_subst_files"; then
1994 ## ------------------- ##
1995 ## File substitutions. ##
1996 ## ------------------- ##
1999 for ac_var in $ac_subst_files
2001 eval ac_val=\$$ac_var
2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005 $as_echo "$ac_var='\''$ac_val'\''"
2010 if test -s confdefs.h; then
2020 test "$ac_signal" != 0 &&
2021 $as_echo "$as_me: caught signal $ac_signal"
2022 $as_echo "$as_me: exit $exit_status"
2024 rm -f core *.core core.conftest.* &&
2025 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2028 for ac_signal in 1 2 13 15; do
2029 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2033 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2034 rm -f -r conftest* confdefs.h
2036 $as_echo "/* confdefs.h */" > confdefs.h
2038 # Predefined preprocessor variables.
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_NAME "$PACKAGE_NAME"
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_STRING "$PACKAGE_STRING"
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_URL "$PACKAGE_URL"
2065 # Let the site file select an alternate cache file if it wants to.
2066 # Prefer an explicitly selected file to automatically selected ones.
2069 if test -n "$CONFIG_SITE"; then
2070 ac_site_file1=$CONFIG_SITE
2071 elif test "x$prefix" != xNONE; then
2072 ac_site_file1=$prefix/share/config.site
2073 ac_site_file2=$prefix/etc/config.site
2075 ac_site_file1=$ac_default_prefix/share/config.site
2076 ac_site_file2=$ac_default_prefix/etc/config.site
2078 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2080 test "x$ac_site_file" = xNONE && continue
2081 if test -r "$ac_site_file"; then
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2083 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2084 sed 's/^/| /' "$ac_site_file" >&5
2089 if test -r "$cache_file"; then
2090 # Some versions of bash will fail to source /dev/null (special
2091 # files actually), so we avoid doing that.
2092 if test -f "$cache_file"; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2094 $as_echo "$as_me: loading cache $cache_file" >&6;}
2096 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2097 *) . "./$cache_file";;
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2102 $as_echo "$as_me: creating cache $cache_file" >&6;}
2106 # Check that the precious variables saved in the cache have kept the same
2108 ac_cache_corrupted=false
2109 for ac_var in $ac_precious_vars; do
2110 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2111 eval ac_new_set=\$ac_env_${ac_var}_set
2112 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2113 eval ac_new_val=\$ac_env_${ac_var}_value
2114 case $ac_old_set,$ac_new_set in
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2117 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2118 ac_cache_corrupted=: ;;
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2121 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2122 ac_cache_corrupted=: ;;
2125 if test "x$ac_old_val" != "x$ac_new_val"; then
2126 # differences in whitespace do not lead to failure.
2127 ac_old_val_w=`echo x $ac_old_val`
2128 ac_new_val_w=`echo x $ac_new_val`
2129 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2131 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2132 ac_cache_corrupted=:
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2135 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2136 eval $ac_var=\$ac_old_val
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2139 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2141 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2144 # Pass precious variables to config.status.
2145 if test "$ac_new_set" = set; then
2147 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2148 *) ac_arg=$ac_var=$ac_new_val ;;
2150 case " $ac_configure_args " in
2151 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2152 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2156 if $ac_cache_corrupted; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2160 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2161 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2163 ## -------------------- ##
2164 ## Main body of script. ##
2165 ## -------------------- ##
2168 ac_cpp='$CPP $CPPFLAGS'
2169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2182 # if PWD already has a value, it is probably wrong.
2183 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2185 # Export original configure arguments for use by sub-configures.
2186 # Quote arguments with shell meta charatcers.
2187 TOPLEVEL_CONFIGURE_ARGUMENTS=
2188 set -- "$progname" "$@"
2192 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2193 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2194 # if the argument is of the form -foo=baz, quote the baz part only
2195 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2198 # Add the quoted argument to the list.
2199 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2201 if test "$silent" = yes; then
2202 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2204 # Remove the initial space we just introduced and, as these will be
2205 # expanded by make, quote '$'.
2206 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2209 # Find the build, host, and target systems.
2211 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2212 for ac_t in install-sh install.sh shtool; do
2213 if test -f "$ac_dir/$ac_t"; then
2215 ac_install_sh="$ac_aux_dir/$ac_t -c"
2220 if test -z "$ac_aux_dir"; then
2221 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2224 # These three variables are undocumented and unsupported,
2225 # and are intended to be withdrawn in a future Autoconf release.
2226 # They can cause serious problems if a builder's source tree is in a directory
2227 # whose full name contains unusual characters.
2228 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2229 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2230 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2233 # Make sure we can run config.sub.
2234 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2235 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2238 $as_echo_n "checking build system type... " >&6; }
2239 if test "${ac_cv_build+set}" = set; then :
2240 $as_echo_n "(cached) " >&6
2242 ac_build_alias=$build_alias
2243 test "x$ac_build_alias" = x &&
2244 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2245 test "x$ac_build_alias" = x &&
2246 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2247 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2248 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2252 $as_echo "$ac_cv_build" >&6; }
2253 case $ac_cv_build in
2255 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2258 ac_save_IFS=$IFS; IFS='-'
2264 # Remember, the first character of IFS is used to create $*,
2265 # except with old shells:
2268 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2271 case ${build_alias} in
2272 "") build_noncanonical=${build} ;;
2273 *) build_noncanonical=${build_alias} ;;
2278 case ${host_alias} in
2279 "") host_noncanonical=${build_noncanonical} ;;
2280 *) host_noncanonical=${host_alias} ;;
2285 case ${target_alias} in
2286 "") target_noncanonical=${host_noncanonical} ;;
2287 *) target_noncanonical=${target_alias} ;;
2293 test "$host_noncanonical" = "$target_noncanonical" &&
2294 test "$program_prefix$program_suffix$program_transform_name" = \
2296 program_transform_name=s,y,y,
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2299 $as_echo_n "checking host system type... " >&6; }
2300 if test "${ac_cv_host+set}" = set; then :
2301 $as_echo_n "(cached) " >&6
2303 if test "x$host_alias" = x; then
2304 ac_cv_host=$ac_cv_build
2306 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2307 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2312 $as_echo "$ac_cv_host" >&6; }
2315 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2318 ac_save_IFS=$IFS; IFS='-'
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2328 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2332 $as_echo_n "checking target system type... " >&6; }
2333 if test "${ac_cv_target+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
2336 if test "x$target_alias" = x; then
2337 ac_cv_target=$ac_cv_host
2339 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2340 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2345 $as_echo "$ac_cv_target" >&6; }
2346 case $ac_cv_target in
2348 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2350 target=$ac_cv_target
2351 ac_save_IFS=$IFS; IFS='-'
2357 # Remember, the first character of IFS is used to create $*,
2358 # except with old shells:
2361 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2364 # The aliases save the names the user supplied, while $host etc.
2365 # will get canonicalized.
2366 test -n "$target_alias" &&
2367 test "$program_prefix$program_suffix$program_transform_name" = \
2369 program_prefix=${target_alias}-
2371 test "$program_prefix" != NONE &&
2372 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2373 # Use a double $ so make ignores it.
2374 test "$program_suffix" != NONE &&
2375 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2376 # Double any \ or $.
2377 # By default was `s,x,x', remove it if useless.
2378 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2379 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2383 # Get 'install' or 'install-sh' and its variants.
2384 # Find a good install program. We prefer a C program (faster),
2385 # so one script is as good as another. But avoid the broken or
2386 # incompatible versions:
2387 # SysV /etc/install, /usr/sbin/install
2388 # SunOS /usr/etc/install
2389 # IRIX /sbin/install
2391 # AmigaOS /C/install, which installs bootblocks on floppy discs
2392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2395 # OS/2's system install, which has a completely different semantic
2396 # ./install, which can be erroneously created by make from ./install.sh.
2397 # Reject install programs that cannot install multiple files.
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2400 if test -z "$INSTALL"; then
2401 if test "${ac_cv_path_install+set}" = set; then :
2402 $as_echo_n "(cached) " >&6
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 test -z "$as_dir" && as_dir=.
2409 # Account for people who put trailing slashes in PATH elements.
2410 case $as_dir/ in #((
2411 ./ | .// | /[cC]/* | \
2412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2416 # OSF1 and SCO ODT 3.0 have their own names for install.
2417 # Don't use installbsd from OSF since it installs stuff as root
2419 for ac_prog in ginstall scoinst install; do
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2422 if test $ac_prog = install &&
2423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2424 # AIX install. It has an incompatible calling convention.
2426 elif test $ac_prog = install &&
2427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2428 # program-specific install script used by HP pwplus--don't use.
2431 rm -rf conftest.one conftest.two conftest.dir
2432 echo one > conftest.one
2433 echo two > conftest.two
2435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2436 test -s conftest.one && test -s conftest.two &&
2437 test -s conftest.dir/conftest.one &&
2438 test -s conftest.dir/conftest.two
2440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2453 rm -rf conftest.one conftest.two conftest.dir
2456 if test "${ac_cv_path_install+set}" = set; then
2457 INSTALL=$ac_cv_path_install
2459 # As a last resort, use the slow shell script. Don't cache a
2460 # value for INSTALL within a source directory, because that will
2461 # break other packages using the cache if that directory is
2462 # removed, or if the value is a relative name.
2463 INSTALL=$ac_install_sh
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2467 $as_echo "$INSTALL" >&6; }
2469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2470 # It thinks the first close brace ends the variable substitution.
2471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2478 $as_echo_n "checking whether ln works... " >&6; }
2479 if test "${acx_cv_prog_LN+set}" = set; then :
2480 $as_echo_n "(cached) " >&6
2482 rm -f conftestdata_t
2483 echo >conftestdata_f
2484 if ln conftestdata_f conftestdata_t 2>/dev/null
2490 rm -f conftestdata_f conftestdata_t
2493 if test $acx_cv_prog_LN = no; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2496 $as_echo "no, using $LN" >&6; }
2498 LN="$acx_cv_prog_LN"
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2500 $as_echo "yes" >&6; }
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2504 $as_echo_n "checking whether ln -s works... " >&6; }
2506 if test "$LN_S" = "ln -s"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508 $as_echo "yes" >&6; }
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2511 $as_echo "no, using $LN_S" >&6; }
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2515 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2516 if test "${ac_cv_path_SED+set}" = set; then :
2517 $as_echo_n "(cached) " >&6
2519 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2520 for ac_i in 1 2 3 4 5 6 7; do
2521 ac_script="$ac_script$as_nl$ac_script"
2523 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2524 { ac_script=; unset ac_script;}
2525 if test -z "$SED"; then
2526 ac_path_SED_found=false
2527 # Loop through the user's path and test for each of PROGNAME-LIST
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 for ac_prog in sed gsed; do
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2536 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2537 # Check for GNU ac_path_SED and select it if it is found.
2538 # Check for GNU $ac_path_SED
2539 case `"$ac_path_SED" --version 2>&1` in
2541 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2544 $as_echo_n 0123456789 >"conftest.in"
2547 cat "conftest.in" "conftest.in" >"conftest.tmp"
2548 mv "conftest.tmp" "conftest.in"
2549 cp "conftest.in" "conftest.nl"
2550 $as_echo '' >> "conftest.nl"
2551 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2553 as_fn_arith $ac_count + 1 && ac_count=$as_val
2554 if test $ac_count -gt ${ac_path_SED_max-0}; then
2555 # Best one so far, save it but keep looking for a better one
2556 ac_cv_path_SED="$ac_path_SED"
2557 ac_path_SED_max=$ac_count
2559 # 10*(2^10) chars as input seems more than enough
2560 test $ac_count -gt 10 && break
2562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2565 $ac_path_SED_found && break 3
2570 if test -z "$ac_cv_path_SED"; then
2571 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2579 $as_echo "$ac_cv_path_SED" >&6; }
2580 SED="$ac_cv_path_SED"
2583 for ac_prog in gawk mawk nawk awk
2585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if test "${ac_cv_prog_AWK+set}" = set; then :
2590 $as_echo_n "(cached) " >&6
2592 if test -n "$AWK"; then
2593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_AWK="$ac_prog"
2603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 if test -n "$AWK"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2615 $as_echo "$AWK" >&6; }
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2622 test -n "$AWK" && break
2626 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2628 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2630 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2631 INSTALL="${srcpwd}/install-sh -c"
2634 # Set srcdir to "." if that's what it is.
2635 # This is important for multilib support.
2637 if test "${pwd}" = "${srcpwd}" ; then
2645 # This is a hack to get around the mis-configuring of libintl.a
2646 # support in GNUPro 05r1. In theory this should not be necessary
2647 # but test building native toolchains under Solaris and Cygwin
2648 # before permanently removing it.
2649 case "$ac_configure_args" in
2650 *--with-included-gettext=* )
2655 ac_configure_args="$ac_configure_args --with-included-gettext"
2659 ### To add a new directory to the tree, first choose whether it is a target
2660 ### or a host dependent tool. Then put it into the appropriate list
2661 ### (library or tools, host or target), doing a dependency sort.
2663 # Subdirs will be configured in the order listed in build_configdirs,
2664 # configdirs, or target_configdirs; see the serialization section below.
2666 # Dependency sorting is only needed when *configuration* must be done in
2667 # a particular order. In all cases a dependency should be specified in
2668 # the Makefile, whether or not it's implicitly specified here.
2670 # Double entries in build_configdirs, configdirs, or target_configdirs may
2671 # cause circular dependencies and break everything horribly.
2673 # these library is used by various programs built for the build
2676 build_libs="build-libiberty build-intl"
2678 # these tools are built for the build environment
2679 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2681 # these libraries are used by various programs built for the host environment
2683 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2685 # these tools are built for the host environment
2686 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2687 # know that we are building the simulator.
2688 # binutils, gas and ld appear in that order because it makes sense to run
2689 # "make check" in that particular order.
2690 # If --enable-gold is used, "gold" may replace "ld".
2691 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2693 # libgcj represents the runtime libraries only used by gcj.
2694 libgcj="target-libffi \
2698 # these libraries are built for the target environment, and are built after
2699 # the host libraries and the host tools (which may be a cross compiler)
2700 # Note that libiberty is not a target library.
2701 target_libraries="target-libgcc \
2706 target-libstdc++-v3 \
2709 target-libquadmath \
2710 target-libgfortran \
2717 # these tools are built using the target libraries, and are intended to
2718 # run only in the target environment
2720 # note: any program that *uses* libraries that are in the "target_libraries"
2721 # list belongs in this list.
2723 target_tools="target-rda"
2725 ################################################################################
2727 ## All tools belong in one of the four categories, and are assigned above
2728 ## We assign ${configdirs} this way to remove all embedded newlines. This
2729 ## is important because configure will choke if they ever get through.
2730 ## ${configdirs} is directories we build using the host tools.
2731 ## ${target_configdirs} is directories we build using the target tools.
2732 configdirs=`echo ${host_libs} ${host_tools}`
2733 target_configdirs=`echo ${target_libraries} ${target_tools}`
2734 build_configdirs=`echo ${build_libs} ${build_tools}`
2738 ################################################################################
2740 srcname="gnu development package"
2742 # This gets set non-empty for some net releases of packages.
2745 # Define is_cross_compiler to save on calls to 'test'.
2747 if test x"${host}" = x"${target}" ; then
2748 is_cross_compiler=no
2750 is_cross_compiler=yes
2753 # Find the build and target subdir names.
2755 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2756 # have matching libraries, they should use host libraries: Makefile.tpl
2757 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2758 # However, they still use the build modules, because the corresponding
2759 # host modules (e.g. bison) are only built for the host when bootstrap
2761 # - build_subdir is where we find build modules, and never changes.
2762 # - build_libsubdir is where we find build libraries, and can be overridden.
2764 # Prefix 'build-' so this never conflicts with target_subdir.
2765 build_subdir="build-${build_noncanonical}"
2767 # Check whether --with-build-libsubdir was given.
2768 if test "${with_build_libsubdir+set}" = set; then :
2769 withval=$with_build_libsubdir; build_libsubdir="$withval"
2771 build_libsubdir="$build_subdir"
2774 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2775 if ( test $srcdir = . && test -d gcc ) \
2776 || test -d $srcdir/../host-${host_noncanonical}; then
2777 host_subdir="host-${host_noncanonical}"
2782 target_subdir=${target_noncanonical}
2784 # Be sure to cover against remnants of an in-tree build.
2785 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2786 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2787 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2790 # Skipdirs are removed silently.
2792 # Noconfigdirs are removed loudly.
2796 # Make sure we don't let GNU ld be added if we didn't want it.
2797 if test x$with_gnu_ld = xno ; then
2799 noconfigdirs="$noconfigdirs ld gold"
2803 # Make sure we don't let GNU as be added if we didn't want it.
2804 if test x$with_gnu_as = xno ; then
2806 noconfigdirs="$noconfigdirs gas"
2810 # Make sure we don't let ZLIB be added if we didn't want it.
2811 if test x$with_system_zlib = xyes ; then
2812 use_included_zlib=no
2813 noconfigdirs="$noconfigdirs zlib"
2816 # some tools are so dependent upon X11 that if we're not building with X,
2817 # it's not even worth trying to configure, much less build, that tool.
2820 yes | "") ;; # the default value for this tree is that X11 is available
2822 skipdirs="${skipdirs} tk itcl libgui"
2823 # We won't be able to build gdbtk without X.
2826 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2829 # Some are only suitable for cross toolchains.
2830 # Remove these if host=target.
2831 cross_only="target-libgloss target-newlib target-opcodes"
2833 case $is_cross_compiler in
2834 no) skipdirs="${skipdirs} ${cross_only}" ;;
2837 # If both --with-headers and --with-libs are specified, default to
2839 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2840 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2841 if test x"${with_newlib}" = x ; then
2846 # Recognize --with-newlib/--without-newlib.
2847 case ${with_newlib} in
2848 no) skipdirs="${skipdirs} target-newlib" ;;
2849 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2852 # Handle --enable-gold, --enable-ld.
2853 # --disable-gold [--enable-ld]
2854 # Build only ld. Default option.
2855 # --enable-gold [--enable-ld]
2856 # Build both gold and ld. Install gold as "ld.gold", install ld
2857 # as "ld.bfd" and "ld".
2858 # --enable-gold=default [--enable-ld]
2859 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2860 # install ld as "ld.bfd".
2861 # --enable-gold[=default] --disable-ld
2862 # Build only gold, which is then installed as both "ld.gold" and "ld".
2863 # --enable-gold --enable-ld=default
2864 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2866 # In other words, ld is default
2867 # --enable-gold=default --enable-ld=default
2871 # Check whether --enable-gold was given.
2872 if test "${enable_gold+set}" = set; then :
2873 enableval=$enable_gold; ENABLE_GOLD=$enableval
2878 case "${ENABLE_GOLD}" in
2880 # Check for ELF target.
2883 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2884 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2885 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2886 | *-*-solaris2* | *-*-nto*)
2888 *-*-linux*aout* | *-*-linux*oldld*)
2896 if test "$is_elf" = "yes"; then
2897 # Check for target supported by gold.
2899 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2900 configdirs="$configdirs gold"
2901 if test x${ENABLE_GOLD} = xdefault; then
2912 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2916 # Check whether --enable-ld was given.
2917 if test "${enable_ld+set}" = set; then :
2918 enableval=$enable_ld; ENABLE_LD=$enableval
2924 case "${ENABLE_LD}" in
2926 if test x${default_ld} != x; then
2927 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2933 if test x${ENABLE_GOLD} != xyes; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2935 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2937 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2940 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2944 # Configure extra directories which are host specific
2948 configdirs="$configdirs libtermcap" ;;
2951 # A target can indicate whether a language isn't supported for some reason.
2952 # Only spaces may be used in this macro; not newlines or tabs.
2953 unsupported_languages=
2955 # Remove more programs from consideration, based on the host or
2956 # target this usually means that a port of the program doesn't
2960 i[3456789]86-*-msdosdjgpp*)
2961 noconfigdirs="$noconfigdirs tcl tk itcl"
2966 # Check whether --enable-libquadmath was given.
2967 if test "${enable_libquadmath+set}" = set; then :
2968 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2970 ENABLE_LIBQUADMATH=yes
2973 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2974 noconfigdirs="$noconfigdirs target-libquadmath"
2978 # Check whether --enable-libquadmath-support was given.
2979 if test "${enable_libquadmath_support+set}" = set; then :
2980 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2982 ENABLE_LIBQUADMATH_SUPPORT=yes
2985 enable_libquadmath_support=
2986 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2987 enable_libquadmath_support=no
2991 # Check whether --enable-libada was given.
2992 if test "${enable_libada+set}" = set; then :
2993 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2998 if test "${ENABLE_LIBADA}" != "yes" ; then
2999 noconfigdirs="$noconfigdirs gnattools"
3002 # Check whether --enable-libssp was given.
3003 if test "${enable_libssp+set}" = set; then :
3004 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3010 # Save it here so that, even in case of --enable-libgcj, if the Java
3011 # front-end isn't enabled, we still get libgcj disabled.
3012 libgcj_saved=$libgcj
3013 case $enable_libgcj in
3015 # If we reset it here, it won't get added to noconfigdirs in the
3016 # target-specific build rules, so it will be forcibly enabled
3017 # (unless the Java language itself isn't enabled).
3021 # Make sure we get it printed in the list of not supported target libs.
3022 # Don't disable libffi, though, other languages use it.
3023 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3024 # Clear libgcj_saved so that even if java is enabled libffi won't be
3030 # Check whether --enable-static-libjava was given.
3031 if test "${enable_static_libjava+set}" = set; then :
3032 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3034 ENABLE_STATIC_LIBJAVA=no
3037 enable_static_libjava=
3038 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3039 enable_static_libjava=yes
3042 if test x$enable_static_libjava != xyes ; then
3043 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3047 # Disable libmudflap on some systems.
3048 if test x$enable_libmudflap = x ; then
3050 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3051 # Enable libmudflap by default in GNU and friends.
3054 # Enable libmudflap by default in FreeBSD.
3057 # Disable it by default everywhere else.
3058 noconfigdirs="$noconfigdirs target-libmudflap"
3063 # Disable libgomp on non POSIX hosted systems.
3064 if test x$enable_libgomp = x ; then
3065 # Enable libgomp by default on hosted POSIX systems.
3067 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3069 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3071 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3073 *-*-darwin* | *-*-aix*)
3076 noconfigdirs="$noconfigdirs target-libgomp"
3081 # Disable libitm on unsupported systems.
3082 if test -d ${srcdir}/libitm; then
3083 if test x$enable_libitm = x; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3085 $as_echo_n "checking for libitm support... " >&6; }
3086 if (srcdir=${srcdir}/libitm; \
3087 . ${srcdir}/configure.tgt; \
3088 test -n "$UNSUPPORTED")
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 noconfigdirs="$noconfigdirs target-libitm"
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095 $as_echo "yes" >&6; }
3100 # Disable libssp for some systems.
3103 # No hosted I/O support.
3104 noconfigdirs="$noconfigdirs target-libssp"
3106 powerpc-*-aix* | rs6000-*-aix*)
3107 noconfigdirs="$noconfigdirs target-libssp"
3110 # libssp uses a misaligned load to trigger a fault, but the RL78
3111 # doesn't fault for those - instead, it gives a build-time error
3112 # for explicit misaligned loads.
3113 noconfigdirs="$noconfigdirs target-libssp"
3116 noconfigdirs="$noconfigdirs target-libssp"
3120 # Disable libstdc++-v3 for some systems.
3123 # VxWorks uses the Dinkumware C++ library.
3124 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3127 # the C++ libraries don't build on top of CE's C libraries
3128 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3131 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3135 # Disable Fortran for some systems.
3138 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3139 unsupported_languages="$unsupported_languages fortran"
3143 # Disable Java if libffi is not supported.
3165 mips-sgi-irix6.* | mips*-*-rtems*)
3173 powerpc-*-aix* | rs6000-*-aix*)
3177 powerpc64-*-freebsd*)
3181 s390-*-* | s390x-*-*)
3183 sh-*-* | sh[34]*-*-*)
3185 sh64-*-* | sh5*-*-*)
3192 unsupported_languages="$unsupported_languages java"
3196 # Disable Java, libgcj or related libraries for some systems.
3200 i[3456789]86-*-darwin*)
3202 x86_64-*-darwin[912]*)
3205 noconfigdirs="$noconfigdirs ${libgcj}"
3208 noconfigdirs="$noconfigdirs ${libgcj}"
3211 noconfigdirs="$noconfigdirs ${libgcj}"
3214 noconfigdirs="$noconfigdirs ${libgcj}"
3217 noconfigdirs="$noconfigdirs ${libgcj}"
3220 noconfigdirs="$noconfigdirs ${libgcj}"
3223 noconfigdirs="$noconfigdirs ${libgcj}"
3226 noconfigdirs="$noconfigdirs ${libgcj}"
3229 noconfigdirs="$noconfigdirs ${libgcj}"
3232 noconfigdirs="$noconfigdirs target-boehm-gc"
3234 cris-*-* | crisv32-*-*)
3235 unsupported_languages="$unsupported_languages java"
3239 *) # See PR46792 regarding target-libffi.
3240 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3244 # In this case, it's because the hppa64-linux target is for
3245 # the kernel only at this point and has no libc, and thus no
3246 # headers, crt*.o, etc., all of which are needed by these.
3247 unsupported_languages="$unsupported_languages java"
3250 noconfigdirs="$noconfigdirs ${libgcj}"
3255 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3256 # build on HP-UX 10.20.
3257 noconfigdirs="$noconfigdirs ${libgcj}"
3260 noconfigdirs="$noconfigdirs ${libgcj}"
3262 i[3456789]86-w64-mingw*)
3263 noconfigdirs="$noconfigdirs ${libgcj}"
3265 i[3456789]86-*-mingw*)
3266 noconfigdirs="$noconfigdirs ${libgcj}"
3269 noconfigdirs="$noconfigdirs ${libgcj}"
3272 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3275 # copied from rs6000-*-* entry
3276 noconfigdirs="$noconfigdirs ${libgcj}"
3279 noconfigdirs="$noconfigdirs ${libgcj}"
3282 configdirs="$configdirs sid"
3285 # Linking libjava exceeds command-line length limits on at least
3286 # IRIX 6.2, but not on IRIX 6.5.
3287 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3288 # <oldham@codesourcery.com>
3289 noconfigdirs="$noconfigdirs ${libgcj}"
3292 noconfigdirs="$noconfigdirs ${libgcj} target-libssp"
3295 configdirs="$configdirs sid"
3298 noconfigdirs="$noconfigdirs ${libgcj}"
3302 # Default libgloss CPU subdirectory.
3303 libgloss_dir="$target_cpu"
3306 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3312 cris-*-* | crisv32-*-*)
3321 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3322 libgloss_dir=m68hc11
3324 m68*-*-* | fido-*-*)
3338 # Disable newlib and libgloss for various target OSes.
3341 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3343 i[3456789]86-*-linux*)
3344 # This section makes it possible to build newlib natively on linux.
3345 # If we are using a cross compiler then don't configure newlib.
3346 if test x${is_cross_compiler} != xno ; then
3347 noconfigdirs="$noconfigdirs target-newlib"
3349 noconfigdirs="$noconfigdirs target-libgloss"
3350 # If we are not using a cross compiler, do configure newlib.
3351 # Note however, that newlib will only be configured in this situation
3352 # if the --with-newlib option has been given, because otherwise
3353 # 'target-newlib' will appear in skipdirs.
3355 i[3456789]86-*-rdos*)
3356 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3358 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3359 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3362 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3365 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3368 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3371 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3374 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3377 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3379 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3380 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3383 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3386 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3389 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3392 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3395 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3398 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3401 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3409 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3410 noconfigdirs="$noconfigdirs sim target-rda"
3412 i[3456789]86-*-darwin*)
3413 noconfigdirs="$noconfigdirs ld gprof"
3414 noconfigdirs="$noconfigdirs sim target-rda"
3416 x86_64-*-darwin[912]*)
3417 noconfigdirs="$noconfigdirs ld gas gprof"
3418 noconfigdirs="$noconfigdirs sim target-rda"
3421 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3422 noconfigdirs="$noconfigdirs sim target-rda"
3427 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3428 && test -f /usr/local/include/gmp.h; then
3433 # Remove unsupported stuff on all kaOS configurations.
3434 noconfigdirs="$noconfigdirs target-libgloss"
3441 noconfigdirs="$noconfigdirs target-libgloss"
3443 # The tpf target doesn't support gdb yet.
3445 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3448 noconfigdirs="$noconfigdirs target-rda"
3453 # ld works, but does not support shared libraries.
3454 # gas doesn't generate exception information.
3455 noconfigdirs="$noconfigdirs gas ld"
3458 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3461 # newlib is not 64 bit ready
3462 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3464 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3465 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3468 noconfigdirs="$noconfigdirs target-libgloss"
3471 noconfigdirs="$noconfigdirs target-libgloss"
3474 noconfigdirs="$noconfigdirs ld target-libgloss"
3476 c4x-*-* | tic4x-*-*)
3477 noconfigdirs="$noconfigdirs target-libgloss"
3480 noconfigdirs="$noconfigdirs target-libgloss gdb"
3483 noconfigdirs="$noconfigdirs gdb"
3486 noconfigdirs="$noconfigdirs target-libgloss"
3489 noconfigdirs="$noconfigdirs gdb"
3492 noconfigdirs="$noconfigdirs gdb"
3495 noconfigdirs="$noconfigdirs gprof"
3498 noconfigdirs="$noconfigdirs target-libgloss"
3501 noconfigdirs="$noconfigdirs target-libgloss"
3503 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3511 hppa*-*-openbsd* | \
3515 noconfigdirs="$noconfigdirs ld"
3520 noconfigdirs="$noconfigdirs ld"
3523 noconfigdirs="$noconfigdirs gdb"
3526 # No gdb support yet.
3527 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3530 # No ld support yet.
3531 noconfigdirs="$noconfigdirs libgui itcl ld"
3534 # No gdb or ld support yet.
3535 noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
3537 i[3456789]86-w64-mingw*)
3539 i[3456789]86-*-mingw*)
3540 target_configdirs="$target_configdirs target-winsup"
3543 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3544 noconfigdirs="$noconfigdirs target-libgloss"
3545 # always build newlib if winsup directory is present.
3546 if test -d "$srcdir/winsup/cygwin"; then
3547 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3548 elif test -d "$srcdir/newlib"; then
3549 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3553 noconfigdirs="$noconfigdirs target-libgloss"
3555 i[3456789]86-*-sco3.2v5*)
3556 # The linker does not yet know about weak symbols in COFF,
3557 # and is not configured to handle mixed ELF and COFF.
3558 noconfigdirs="$noconfigdirs ld target-libgloss"
3560 i[3456789]86-*-sco*)
3561 noconfigdirs="$noconfigdirs gprof target-libgloss"
3563 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3564 noconfigdirs="$noconfigdirs target-libgloss"
3566 i[3456789]86-*-sysv4*)
3567 noconfigdirs="$noconfigdirs target-libgloss"
3569 i[3456789]86-*-beos*)
3570 noconfigdirs="$noconfigdirs gdb"
3572 i[3456789]86-*-rdos*)
3573 noconfigdirs="$noconfigdirs gdb"
3576 noconfigdirs="$noconfigdirs gdb"
3579 noconfigdirs="$noconfigdirs sim"
3582 # copied from rs6000-*-* entry
3583 noconfigdirs="$noconfigdirs gprof"
3585 powerpc*-*-winnt* | powerpc*-*-pe*)
3586 target_configdirs="$target_configdirs target-winsup"
3587 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3588 # always build newlib.
3589 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3591 # This is temporary until we can link against shared libraries
3592 powerpcle-*-solaris*)
3593 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3596 noconfigdirs="$noconfigdirs gdb"
3599 noconfigdirs="$noconfigdirs gprof"
3602 noconfigdirs="$noconfigdirs gprof"
3605 noconfigdirs="$noconfigdirs gprof"
3608 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3611 noconfigdirs="$noconfigdirs gprof"
3614 if test x$with_newlib = xyes; then
3615 noconfigdirs="$noconfigdirs gprof"
3619 noconfigdirs="$noconfigdirs gprof target-libgloss"
3622 noconfigdirs="$noconfigdirs gprof target-libgloss"
3625 noconfigdirs="$noconfigdirs gprof target-libgloss"
3630 noconfigdirs="$noconfigdirs gprof"
3637 noconfigdirs="$noconfigdirs target-libgloss" ;;
3641 if test x${is_cross_compiler} = xno ; then
3646 noconfigdirs="$noconfigdirs sim"
3648 tilepro-*-* | tilegx-*-*)
3649 noconfigdirs="$noconfigdirs sim"
3652 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 # If we aren't building newlib, then don't build libgloss, since libgloss
3660 # depends upon some newlib header files.
3661 case "${noconfigdirs}" in
3662 *target-libgloss*) ;;
3663 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3666 # Work in distributions that contain no compiler tools, like Autoconf.
3667 host_makefile_frag=/dev/null
3668 if test -d ${srcdir}/config ; then
3670 i[3456789]86-*-msdosdjgpp*)
3671 host_makefile_frag="config/mh-djgpp"
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3676 $as_echo_n "checking to see if cat works as expected... " >&6; }
3677 echo a >cygwin-cat-check
3678 if test `cat cygwin-cat-check` = a ; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3681 $as_echo "yes" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3686 as_fn_error "The cat command does not ignore carriage return characters.
3687 Please either mount the build directory in binary mode or run the following
3688 commands before running any configure script:
3694 host_makefile_frag="config/mh-cygwin"
3697 host_makefile_frag="config/mh-mingw"
3700 host_makefile_frag="config/mh-interix"
3703 host_makefile_frag="config/mh-pa-hpux10"
3706 host_makefile_frag="config/mh-pa"
3709 host_makefile_frag="config/mh-pa"
3712 host_makefile_frag="config/mh-darwin"
3715 host_makefile_frag="config/mh-ppc-aix"
3718 host_makefile_frag="config/mh-ppc-aix"
3723 if test "${build}" != "${host}" ; then
3724 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3725 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3726 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3727 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3728 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3729 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3730 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3731 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3732 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3733 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3734 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3735 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3736 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3738 AR_FOR_BUILD="\$(AR)"
3739 AS_FOR_BUILD="\$(AS)"
3740 CC_FOR_BUILD="\$(CC)"
3741 CXX_FOR_BUILD="\$(CXX)"
3742 GCJ_FOR_BUILD="\$(GCJ)"
3743 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3744 GOC_FOR_BUILD="\$(GOC)"
3745 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3746 LD_FOR_BUILD="\$(LD)"
3747 NM_FOR_BUILD="\$(NM)"
3748 RANLIB_FOR_BUILD="\$(RANLIB)"
3749 WINDRES_FOR_BUILD="\$(WINDRES)"
3750 WINDMC_FOR_BUILD="\$(WINDMC)"
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_CC+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3766 if test -n "$CC"; then
3767 ac_cv_prog_CC="$CC" # Let the user override the test.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 if test -n "$CC"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3789 $as_echo "$CC" >&6; }
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3797 if test -z "$ac_cv_prog_CC"; then
3799 # Extract the first word of "gcc", so it can be a program name with args.
3800 set dummy gcc; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3806 if test -n "$ac_ct_CC"; then
3807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816 ac_cv_prog_ac_ct_CC="gcc"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3827 if test -n "$ac_ct_CC"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3829 $as_echo "$ac_ct_CC" >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3835 if test "x$ac_ct_CC" = x; then
3838 case $cross_compiling:$ac_tool_warned in
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3850 if test -z "$CC"; then
3851 if test -n "$ac_tool_prefix"; then
3852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3853 set dummy ${ac_tool_prefix}cc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if test "${ac_cv_prog_CC+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3859 if test -n "$CC"; then
3860 ac_cv_prog_CC="$CC" # Let the user override the test.
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_CC="${ac_tool_prefix}cc"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 if test -n "$CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 $as_echo "$CC" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3891 if test -z "$CC"; then
3892 # Extract the first word of "cc", so it can be a program name with args.
3893 set dummy cc; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if test "${ac_cv_prog_CC+set}" = set; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$CC"; then
3900 ac_cv_prog_CC="$CC" # Let the user override the test.
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3911 ac_prog_rejected=yes
3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 if test $ac_prog_rejected = yes; then
3923 # We found a bogon in the path, so make sure we never use it.
3924 set dummy $ac_cv_prog_CC
3926 if test $# != 0; then
3927 # We chose a different compiler from the bogus one.
3928 # However, it has the same basename, so the bogon will be chosen
3929 # first if we set CC to just the basename; use the full file name.
3931 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3937 if test -n "$CC"; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 $as_echo "$CC" >&6; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3947 if test -z "$CC"; then
3948 if test -n "$ac_tool_prefix"; then
3949 for ac_prog in cl.exe
3951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 $as_echo_n "checking for $ac_word... " >&6; }
3955 if test "${ac_cv_prog_CC+set}" = set; then :
3956 $as_echo_n "(cached) " >&6
3958 if test -n "$CC"; then
3959 ac_cv_prog_CC="$CC" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 if test -n "$CC"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3981 $as_echo "$CC" >&6; }
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3988 test -n "$CC" && break
3991 if test -z "$CC"; then
3993 for ac_prog in cl.exe
3995 # Extract the first word of "$ac_prog", so it can be a program name with args.
3996 set dummy $ac_prog; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4002 if test -n "$ac_ct_CC"; then
4003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_ac_ct_CC="$ac_prog"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4023 if test -n "$ac_ct_CC"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4025 $as_echo "$ac_ct_CC" >&6; }
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4032 test -n "$ac_ct_CC" && break
4035 if test "x$ac_ct_CC" = x; then
4038 case $cross_compiling:$ac_tool_warned in
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4042 ac_tool_warned=yes ;;
4051 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error "no acceptable C compiler found in \$PATH
4054 See \`config.log' for more details." "$LINENO" 5; }
4056 # Provide some information about the compiler.
4057 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4060 for ac_option in --version -v -V -qversion; do
4061 { { ac_try="$ac_compiler $ac_option >&5"
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067 $as_echo "$ac_try_echo"; } >&5
4068 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4070 if test -s conftest.err; then
4072 ... rest of stderr output deleted ...
4073 10q' conftest.err >conftest.er1
4074 cat conftest.er1 >&5
4075 rm -f conftest.er1 conftest.err
4077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4078 test $ac_status = 0; }
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4092 ac_clean_files_save=$ac_clean_files
4093 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4094 # Try to create an executable without -o first, disregard a.out.
4095 # It will help us diagnose broken compilers, and finding out an intuition
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4098 $as_echo_n "checking for C compiler default output file name... " >&6; }
4099 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4101 # The possible output files:
4102 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4105 for ac_file in $ac_files
4108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4109 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4114 if { { ac_try="$ac_link_default"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4120 $as_echo "$ac_try_echo"; } >&5
4121 (eval "$ac_link_default") 2>&5
4123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4124 test $ac_status = 0; }; then :
4125 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4126 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4127 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4128 # so that the user can short-circuit this test for compilers unknown to
4130 for ac_file in $ac_files ''
4132 test -f "$ac_file" || continue
4134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4137 # We found the default executable, but exeext='' is most
4141 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4143 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4145 # We set ac_cv_exeext here because the later test for it is not
4146 # safe: cross compilers may not add the suffix if given an `-o'
4147 # argument, so we may need to know it at that point already.
4148 # Even if this section looks crufty: it has the advantage of
4155 test "$ac_cv_exeext" = no && ac_cv_exeext=
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4161 $as_echo "$ac_file" >&6; }
4162 if test -z "$ac_file"; then :
4163 $as_echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168 { as_fn_set_status 77
4169 as_fn_error "C compiler cannot create executables
4170 See \`config.log' for more details." "$LINENO" 5; }; }
4172 ac_exeext=$ac_cv_exeext
4174 # Check that the compiler produces executables we can run. If not, either
4175 # the compiler is broken, or we cross compile.
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4177 $as_echo_n "checking whether the C compiler works... " >&6; }
4178 # If not cross compiling, check that we can run a simple program.
4179 if test "$cross_compiling" != yes; then
4180 if { ac_try='./$ac_file'
4181 { { case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186 $as_echo "$ac_try_echo"; } >&5
4187 (eval "$ac_try") 2>&5
4189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190 test $ac_status = 0; }; }; then
4193 if test "$cross_compiling" = maybe; then
4196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198 as_fn_error "cannot run C compiled programs.
4199 If you meant to cross compile, use \`--host'.
4200 See \`config.log' for more details." "$LINENO" 5; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4205 $as_echo "yes" >&6; }
4207 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4208 ac_clean_files=$ac_clean_files_save
4209 # Check that the compiler produces executables we can run. If not, either
4210 # the compiler is broken, or we cross compile.
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4212 $as_echo_n "checking whether we are cross compiling... " >&6; }
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4214 $as_echo "$cross_compiling" >&6; }
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4217 $as_echo_n "checking for suffix of executables... " >&6; }
4218 if { { ac_try="$ac_link"
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4224 $as_echo "$ac_try_echo"; } >&5
4225 (eval "$ac_link") 2>&5
4227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4228 test $ac_status = 0; }; then :
4229 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4230 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4231 # work properly (i.e., refer to `conftest.exe'), while it won't with
4233 for ac_file in conftest.exe conftest conftest.*; do
4234 test -f "$ac_file" || continue
4236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4237 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4245 as_fn_error "cannot compute suffix of executables: cannot compile and link
4246 See \`config.log' for more details." "$LINENO" 5; }
4248 rm -f conftest$ac_cv_exeext
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4250 $as_echo "$ac_cv_exeext" >&6; }
4252 rm -f conftest.$ac_ext
4253 EXEEXT=$ac_cv_exeext
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4256 $as_echo_n "checking for suffix of object files... " >&6; }
4257 if test "${ac_cv_objext+set}" = set; then :
4258 $as_echo_n "(cached) " >&6
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4271 rm -f conftest.o conftest.obj
4272 if { { ac_try="$ac_compile"
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4278 $as_echo "$ac_try_echo"; } >&5
4279 (eval "$ac_compile") 2>&5
4281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4282 test $ac_status = 0; }; then :
4283 for ac_file in conftest.o conftest.obj conftest.*; do
4284 test -f "$ac_file" || continue;
4286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4287 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4292 $as_echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4297 as_fn_error "cannot compute suffix of object files: cannot compile
4298 See \`config.log' for more details." "$LINENO" 5; }
4300 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4303 $as_echo "$ac_cv_objext" >&6; }
4304 OBJEXT=$ac_cv_objext
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4307 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4308 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4325 if ac_fn_c_try_compile "$LINENO"; then :
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4335 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4336 if test $ac_compiler_gnu = yes; then
4341 ac_test_CFLAGS=${CFLAGS+set}
4342 ac_save_CFLAGS=$CFLAGS
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4344 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4345 if test "${ac_cv_prog_cc_g+set}" = set; then :
4346 $as_echo_n "(cached) " >&6
4348 ac_save_c_werror_flag=$ac_c_werror_flag
4349 ac_c_werror_flag=yes
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4363 if ac_fn_c_try_compile "$LINENO"; then :
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4378 if ac_fn_c_try_compile "$LINENO"; then :
4381 ac_c_werror_flag=$ac_save_c_werror_flag
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4394 if ac_fn_c_try_compile "$LINENO"; then :
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 ac_c_werror_flag=$ac_save_c_werror_flag
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4405 $as_echo "$ac_cv_prog_cc_g" >&6; }
4406 if test "$ac_test_CFLAGS" = set; then
4407 CFLAGS=$ac_save_CFLAGS
4408 elif test $ac_cv_prog_cc_g = yes; then
4409 if test "$GCC" = yes; then
4415 if test "$GCC" = yes; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4422 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4423 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4424 $as_echo_n "(cached) " >&6
4426 ac_cv_prog_cc_c89=no
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4432 #include <sys/types.h>
4433 #include <sys/stat.h>
4434 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4435 struct buf { int x; };
4436 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4437 static char *e (p, i)
4443 static char *f (char * (*g) (char **, int), char **p, ...)
4448 s = g (p, va_arg (v,int));
4453 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4454 function prototypes and stuff, but not '\xHH' hex character constants.
4455 These don't provoke an error unfortunately, instead are silently treated
4456 as 'x'. The following induces an error, until -std is added to get
4457 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4458 array size at least. It's necessary to write '\x00'==0 to get something
4459 that's true only with -std. */
4460 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4462 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4463 inside strings and character constants. */
4465 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4467 int test (int i, double x);
4468 struct s1 {int (*f) (int a);};
4469 struct s2 {int (*f) (double a);};
4470 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4476 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4481 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4482 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4484 CC="$ac_save_CC $ac_arg"
4485 if ac_fn_c_try_compile "$LINENO"; then :
4486 ac_cv_prog_cc_c89=$ac_arg
4488 rm -f core conftest.err conftest.$ac_objext
4489 test "x$ac_cv_prog_cc_c89" != "xno" && break
4491 rm -f conftest.$ac_ext
4496 case "x$ac_cv_prog_cc_c89" in
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4499 $as_echo "none needed" >&6; } ;;
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4502 $as_echo "unsupported" >&6; } ;;
4504 CC="$CC $ac_cv_prog_cc_c89"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4506 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4508 if test "x$ac_cv_prog_cc_c89" != xno; then :
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519 ac_cpp='$CXXCPP $CPPFLAGS'
4520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4523 if test -z "$CXX"; then
4524 if test -n "$CCC"; then
4527 if test -n "$ac_tool_prefix"; then
4528 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if test "${ac_cv_prog_CXX+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4537 if test -n "$CXX"; then
4538 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 if test -n "$CXX"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4560 $as_echo "$CXX" >&6; }
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4567 test -n "$CXX" && break
4570 if test -z "$CXX"; then
4572 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4574 # Extract the first word of "$ac_prog", so it can be a program name with args.
4575 set dummy $ac_prog; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4581 if test -n "$ac_ct_CXX"; then
4582 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 ac_cv_prog_ac_ct_CXX="$ac_prog"
4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4602 if test -n "$ac_ct_CXX"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4604 $as_echo "$ac_ct_CXX" >&6; }
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4611 test -n "$ac_ct_CXX" && break
4614 if test "x$ac_ct_CXX" = x; then
4617 case $cross_compiling:$ac_tool_warned in
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621 ac_tool_warned=yes ;;
4629 # Provide some information about the compiler.
4630 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4633 for ac_option in --version -v -V -qversion; do
4634 { { ac_try="$ac_compiler $ac_option >&5"
4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4640 $as_echo "$ac_try_echo"; } >&5
4641 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4643 if test -s conftest.err; then
4645 ... rest of stderr output deleted ...
4646 10q' conftest.err >conftest.er1
4647 cat conftest.er1 >&5
4648 rm -f conftest.er1 conftest.err
4650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4651 test $ac_status = 0; }
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4655 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4656 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4673 if ac_fn_cxx_try_compile "$LINENO"; then :
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4683 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4684 if test $ac_compiler_gnu = yes; then
4689 ac_test_CXXFLAGS=${CXXFLAGS+set}
4690 ac_save_CXXFLAGS=$CXXFLAGS
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4692 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4693 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4696 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4697 ac_cxx_werror_flag=yes
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4711 if ac_fn_cxx_try_compile "$LINENO"; then :
4712 ac_cv_prog_cxx_g=yes
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4726 if ac_fn_cxx_try_compile "$LINENO"; then :
4729 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4742 if ac_fn_cxx_try_compile "$LINENO"; then :
4743 ac_cv_prog_cxx_g=yes
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4753 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4754 if test "$ac_test_CXXFLAGS" = set; then
4755 CXXFLAGS=$ac_save_CXXFLAGS
4756 elif test $ac_cv_prog_cxx_g = yes; then
4757 if test "$GXX" = yes; then
4763 if test "$GXX" = yes; then
4770 ac_cpp='$CPP $CPPFLAGS'
4771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4776 # We must set the default linker to the linker used by gcc for the correct
4777 # operation of libtool. If LD is not defined and we are using gcc, try to
4778 # set the LD default to the ld used by gcc.
4779 if test -z "$LD"; then
4780 if test "$GCC" = yes; then
4783 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4785 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4787 case $gcc_prog_ld in
4788 # Accept absolute paths.
4789 [\\/]* | [A-Za-z]:[\\/]*)
4790 LD="$gcc_prog_ld" ;;
4798 if test -n "$ac_tool_prefix"; then
4799 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4800 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4806 if test -n "$GNATBIND"; then
4807 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 GNATBIND=$ac_cv_prog_GNATBIND
4827 if test -n "$GNATBIND"; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4829 $as_echo "$GNATBIND" >&6; }
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4837 if test -z "$ac_cv_prog_GNATBIND"; then
4838 ac_ct_GNATBIND=$GNATBIND
4839 # Extract the first word of "gnatbind", so it can be a program name with args.
4840 set dummy gnatbind; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4844 $as_echo_n "(cached) " >&6
4846 if test -n "$ac_ct_GNATBIND"; then
4847 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4867 if test -n "$ac_ct_GNATBIND"; then
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4869 $as_echo "$ac_ct_GNATBIND" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4875 if test "x$ac_ct_GNATBIND" = x; then
4878 case $cross_compiling:$ac_tool_warned in
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4882 ac_tool_warned=yes ;;
4884 GNATBIND=$ac_ct_GNATBIND
4887 GNATBIND="$ac_cv_prog_GNATBIND"
4890 if test -n "$ac_tool_prefix"; then
4891 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4892 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4898 if test -n "$GNATMAKE"; then
4899 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 GNATMAKE=$ac_cv_prog_GNATMAKE
4919 if test -n "$GNATMAKE"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4921 $as_echo "$GNATMAKE" >&6; }
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4929 if test -z "$ac_cv_prog_GNATMAKE"; then
4930 ac_ct_GNATMAKE=$GNATMAKE
4931 # Extract the first word of "gnatmake", so it can be a program name with args.
4932 set dummy gnatmake; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4936 $as_echo_n "(cached) " >&6
4938 if test -n "$ac_ct_GNATMAKE"; then
4939 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4959 if test -n "$ac_ct_GNATMAKE"; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4961 $as_echo "$ac_ct_GNATMAKE" >&6; }
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4967 if test "x$ac_ct_GNATMAKE" = x; then
4970 case $cross_compiling:$ac_tool_warned in
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4974 ac_tool_warned=yes ;;
4976 GNATMAKE=$ac_ct_GNATMAKE
4979 GNATMAKE="$ac_cv_prog_GNATMAKE"
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4983 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4984 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4987 cat >conftest.adb <<EOF
4988 procedure conftest is begin null; end conftest;
4990 acx_cv_cc_gcc_supports_ada=no
4991 # There is a bug in old released versions of GCC which causes the
4992 # driver to exit successfully when the appropriate language module
4993 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4994 # Therefore we must check for the error message as well as an
4995 # unsuccessful exit.
4996 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4997 # given a .adb file, but produce no object file. So we must check
4998 # if an object file was really produced to guard against this.
4999 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5000 if test x"$errors" = x && test -f conftest.$ac_objext; then
5001 acx_cv_cc_gcc_supports_ada=yes
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5006 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5008 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5015 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5016 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5017 $as_echo_n "(cached) " >&6
5021 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5022 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5023 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5026 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5029 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5030 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5033 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5040 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5041 do_compare="$gcc_cv_prog_cmp_skip"
5045 # Check whether --enable-bootstrap was given.
5046 if test "${enable_bootstrap+set}" = set; then :
5047 enableval=$enable_bootstrap;
5049 enable_bootstrap=default
5053 # Issue errors and warnings for invalid/strange bootstrap combinations.
5054 if test -r $srcdir/gcc/configure; then
5060 case "$have_compiler:$host:$target:$enable_bootstrap" in
5063 # Default behavior. Enable bootstrap if we have a compiler
5064 # and we are in a native configuration.
5065 yes:$build:$build:default)
5066 enable_bootstrap=yes ;;
5069 enable_bootstrap=no ;;
5071 # We have a compiler and we are in a native configuration, bootstrap is ok
5072 yes:$build:$build:yes)
5075 # Other configurations, but we have a compiler. Assume the user knows
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5079 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5082 # No compiler: if they passed --enable-bootstrap explicitly, fail
5084 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5086 # Fail if wrong command line
5088 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5092 # See if we are building gcc with C++.
5093 # Check whether --enable-build-with-cxx was given.
5094 if test "${enable_build_with_cxx+set}" = set; then :
5095 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5097 ENABLE_BUILD_WITH_CXX=no
5101 # Build stage1 with C and build stages 2 and 3 with C++.
5102 # Check whether --enable-build-poststage1-with-cxx was given.
5103 if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5104 enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5106 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5110 # Used for setting $lt_cv_objdir
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5112 $as_echo_n "checking for objdir... " >&6; }
5113 if test "${lt_cv_objdir+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5116 rm -f .libs 2>/dev/null
5117 mkdir .libs 2>/dev/null
5118 if test -d .libs; then
5121 # MS-DOS does not allow filenames that begin with a dot.
5124 rmdir .libs 2>/dev/null
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5127 $as_echo "$lt_cv_objdir" >&6; }
5128 objdir=$lt_cv_objdir
5134 cat >>confdefs.h <<_ACEOF
5135 #define LT_OBJDIR "$lt_cv_objdir/"
5140 # Check for GMP, MPFR and MPC
5141 gmplibs="-lmpc -lmpfr -lgmp"
5145 # Specify a location for mpc
5146 # check for this first so it ends up on the link line before mpfr.
5148 # Check whether --with-mpc was given.
5149 if test "${with_mpc+set}" = set; then :
5154 # Check whether --with-mpc-include was given.
5155 if test "${with_mpc_include+set}" = set; then :
5156 withval=$with_mpc_include;
5160 # Check whether --with-mpc-lib was given.
5161 if test "${with_mpc_lib+set}" = set; then :
5162 withval=$with_mpc_lib;
5166 if test "x$with_mpc" != x; then
5167 gmplibs="-L$with_mpc/lib $gmplibs"
5168 gmpinc="-I$with_mpc/include $gmpinc"
5170 if test "x$with_mpc_include" != x; then
5171 gmpinc="-I$with_mpc_include $gmpinc"
5173 if test "x$with_mpc_lib" != x; then
5174 gmplibs="-L$with_mpc_lib $gmplibs"
5176 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5177 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5178 gmpinc='-I$$s/mpc/src '"$gmpinc"
5179 # Do not test the mpc version. Assume that it is sufficient, since
5180 # it is in the source tree, and the library has not been built yet
5181 # but it would be included on the link line in the version check below
5182 # hence making the test fail.
5186 # Specify a location for mpfr
5187 # check for this first so it ends up on the link line before gmp.
5189 # Check whether --with-mpfr-dir was given.
5190 if test "${with_mpfr_dir+set}" = set; then :
5191 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5192 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5197 # Check whether --with-mpfr was given.
5198 if test "${with_mpfr+set}" = set; then :
5203 # Check whether --with-mpfr-include was given.
5204 if test "${with_mpfr_include+set}" = set; then :
5205 withval=$with_mpfr_include;
5209 # Check whether --with-mpfr-lib was given.
5210 if test "${with_mpfr_lib+set}" = set; then :
5211 withval=$with_mpfr_lib;
5215 if test "x$with_mpfr" != x; then
5216 gmplibs="-L$with_mpfr/lib $gmplibs"
5217 gmpinc="-I$with_mpfr/include $gmpinc"
5219 if test "x$with_mpfr_include" != x; then
5220 gmpinc="-I$with_mpfr_include $gmpinc"
5222 if test "x$with_mpfr_lib" != x; then
5223 gmplibs="-L$with_mpfr_lib $gmplibs"
5225 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5226 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5227 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5228 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5229 # Do not test the mpfr version. Assume that it is sufficient, since
5230 # it is in the source tree, and the library has not been built yet
5231 # but it would be included on the link line in the version check below
5232 # hence making the test fail.
5236 # Specify a location for gmp
5238 # Check whether --with-gmp-dir was given.
5239 if test "${with_gmp_dir+set}" = set; then :
5240 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5241 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5246 # Check whether --with-gmp was given.
5247 if test "${with_gmp+set}" = set; then :
5252 # Check whether --with-gmp-include was given.
5253 if test "${with_gmp_include+set}" = set; then :
5254 withval=$with_gmp_include;
5258 # Check whether --with-gmp-lib was given.
5259 if test "${with_gmp_lib+set}" = set; then :
5260 withval=$with_gmp_lib;
5265 if test "x$with_gmp" != x; then
5266 gmplibs="-L$with_gmp/lib $gmplibs"
5267 gmpinc="-I$with_gmp/include $gmpinc"
5269 if test "x$with_gmp_include" != x; then
5270 gmpinc="-I$with_gmp_include $gmpinc"
5272 if test "x$with_gmp_lib" != x; then
5273 gmplibs="-L$with_gmp_lib $gmplibs"
5275 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5276 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5277 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5278 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5279 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5280 # Do not test the gmp version. Assume that it is sufficient, since
5281 # it is in the source tree, and the library has not been built yet
5282 # but it would be included on the link line in the version check below
5283 # hence making the test fail.
5287 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5289 saved_CFLAGS="$CFLAGS"
5290 CFLAGS="$CFLAGS $gmpinc"
5291 # Check for the recommended and required versions of GMP.
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5293 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5302 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5303 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5304 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5320 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5321 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5322 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5330 if ac_fn_c_try_compile "$LINENO"; then :
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5332 $as_echo "yes" >&6; }
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5335 $as_echo "buggy but acceptable" >&6; }
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }; have_gmp=no
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 # If we have GMP, check the MPFR version.
5345 if test x"$have_gmp" = xyes; then
5346 # Check for the recommended and required versions of MPFR.
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5348 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5357 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5374 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5382 if ac_fn_c_try_compile "$LINENO"; then :
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5384 $as_echo "yes" >&6; }
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5387 $as_echo "buggy but acceptable" >&6; }
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }; have_gmp=no
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 # Check for the MPC header version.
5398 if test x"$have_gmp" = xyes ; then
5399 # Check for the recommended and required versions of MPC.
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5401 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5409 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5417 if ac_fn_c_try_compile "$LINENO"; then :
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5425 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5433 if ac_fn_c_try_compile "$LINENO"; then :
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5435 $as_echo "yes" >&6; }
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5438 $as_echo "buggy but acceptable" >&6; }
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }; have_gmp=no
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 # Now check the MPFR library.
5449 if test x"$have_gmp" = xyes; then
5451 LIBS="$LIBS $gmplibs"
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5453 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5467 mpfr_atan2 (n, n, x, GMP_RNDN);
5468 mpfr_erfc (n, x, GMP_RNDN);
5469 mpfr_subnormalize (x, t, GMP_RNDN);
5473 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5474 mpc_cosh (c, c, MPC_RNDNN);
5475 mpc_pow (c, c, c, MPC_RNDNN);
5476 mpc_acosh (c, c, MPC_RNDNN);
5483 if ac_fn_c_try_link "$LINENO"; then :
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5485 $as_echo "yes" >&6; }
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }; have_gmp=no
5490 rm -f core conftest.err conftest.$ac_objext \
5491 conftest$ac_exeext conftest.$ac_ext
5495 CFLAGS="$saved_CFLAGS"
5497 # The library versions listed in the error message below should match
5498 # the HARD-minimums enforced above.
5499 if test x$have_gmp != xyes; then
5500 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5501 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5502 their locations. Source code for these libraries can be found at
5503 their respective hosting sites as well as at
5504 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5505 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5506 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5507 make sure that you have installed both the libraries and the header
5508 files. They may be located in separate packages." "$LINENO" 5
5512 # Flags needed for both GMP, MPFR and/or MPC.
5519 # Allow host libstdc++ to be specified for static linking with PPL.
5521 # Check whether --with-host-libstdcxx was given.
5522 if test "${with_host_libstdcxx+set}" = set; then :
5523 withval=$with_host_libstdcxx;
5527 case $with_host_libstdcxx in
5529 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5533 # Linker flags to use for stage1 or when not boostrapping.
5535 # Check whether --with-stage1-ldflags was given.
5536 if test "${with_stage1_ldflags+set}" = set; then :
5537 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5540 stage1_ldflags=$withval
5548 # Libraries to use for stage1 or when not bootstrapping.
5550 # Check whether --with-stage1-libs was given.
5551 if test "${with_stage1_libs+set}" = set; then :
5552 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5555 stage1_libs=$withval
5558 stage1_libs=$with_host_libstdcxx
5563 # Libraries to use for stage2 and later builds. This defaults to the
5564 # argument passed to --with-host-libstdcxx.
5566 # Check whether --with-boot-libs was given.
5567 if test "${with_boot_libs+set}" = set; then :
5568 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5571 poststage1_libs=$withval
5574 poststage1_libs=$with_host_libstdcxx
5579 # Linker flags to use for stage2 and later builds.
5581 # Check whether --with-boot-ldflags was given.
5582 if test "${with_boot_ldflags+set}" = set; then :
5583 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5586 poststage1_ldflags=$withval
5590 # In stages 2 and 3, default to linking libstdc++ and libgcc
5591 # statically. But if the user explicitly specified the libraries to
5592 # use, trust that they are doing what they want.
5593 if test "$poststage1_libs" = ""; then
5594 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5606 # Check whether --with-ppl was given.
5607 if test "${with_ppl+set}" = set; then :
5612 # Check whether --with-ppl-include was given.
5613 if test "${with_ppl_include+set}" = set; then :
5614 withval=$with_ppl_include;
5618 # Check whether --with-ppl-lib was given.
5619 if test "${with_ppl_lib+set}" = set; then :
5620 withval=$with_ppl_lib;
5624 # Check whether --enable-ppl-version-check was given.
5625 if test "${enable_ppl_version_check+set}" = set; then :
5626 enableval=$enable_ppl_version_check;
5634 ppllibs="-L$with_ppl/lib"
5635 pplinc="-I$with_ppl/include $pplinc"
5636 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5639 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5644 if test x"$with_ppl_include" != x; then
5645 pplinc="-I$with_ppl_include $pplinc"
5649 if test "x$with_ppl_lib" != x; then
5650 ppllibs="-L$with_ppl_lib"
5654 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5655 if test x"$enable_watchdog" = xyes; then
5658 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
5659 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5660 enable_ppl_version_check=no
5664 if test "x$with_ppl" != xno; then
5665 if test "x$pwllib" = x; then
5667 LIBS="$LIBS $ppllibs -lstdc++ -lm"
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5669 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5670 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5671 $as_echo_n "(cached) " >&6
5673 ac_check_lib_save_LIBS=$LIBS
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5678 /* Override any GCC internal prototype to avoid an error.
5679 Use char because int might match the return type of a GCC
5680 builtin and then its argument prototype would still apply. */
5684 char PWL_handle_timeout ();
5688 return PWL_handle_timeout ();
5693 if ac_fn_c_try_link "$LINENO"; then :
5694 ac_cv_lib_pwl_PWL_handle_timeout=yes
5696 ac_cv_lib_pwl_PWL_handle_timeout=no
5698 rm -f core conftest.err conftest.$ac_objext \
5699 conftest$ac_exeext conftest.$ac_ext
5700 LIBS=$ac_check_lib_save_LIBS
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5703 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5704 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5711 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5713 if test "$enable_ppl_version_check" != no; then
5714 saved_CFLAGS="$CFLAGS"
5715 CFLAGS="$CFLAGS $pplinc $gmpinc"
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5717 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5725 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5735 $as_echo "yes" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 CFLAGS="$saved_CFLAGS"
5745 # Flags needed for PPL
5754 # Check whether --with-cloog was given.
5755 if test "${with_cloog+set}" = set; then :
5756 withval=$with_cloog;
5760 # Check whether --with-cloog-include was given.
5761 if test "${with_cloog_include+set}" = set; then :
5762 withval=$with_cloog_include;
5766 # Check whether --with-cloog-lib was given.
5767 if test "${with_cloog_lib+set}" = set; then :
5768 withval=$with_cloog_lib;
5772 # Check whether --enable-cloog-backend was given.
5773 if test "${enable_cloog_backend+set}" = set; then :
5774 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5776 elif test "x${enableval}" = "xppl"; then
5779 cloog_backend=ppl-legacy
5782 cloog_backend=ppl-legacy
5785 # Check whether --enable-cloog-version-check was given.
5786 if test "${enable_cloog_version_check+set}" = set; then :
5787 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5789 ENABLE_CLOOG_CHECK=yes
5793 # Initialize clooglibs and clooginc.
5802 clooglibs="-L$with_cloog/lib"
5803 clooginc="-I$with_cloog/include"
5806 if test "x${with_cloog_include}" != x ; then
5807 clooginc="-I$with_cloog_include"
5809 if test "x${with_cloog_lib}" != x; then
5810 clooglibs="-L$with_cloog_lib"
5817 if test "x$with_ppl" = "xno"; then
5821 if test "x${with_cloog}" = xno; then
5822 graphite_requested=no
5823 elif test "x${with_cloog}" != x \
5824 || test "x${with_cloog_include}" != x \
5825 || test "x${with_cloog_lib}" != x ; then
5826 graphite_requested=yes
5828 graphite_requested=no
5832 if test "${graphite_requested}" = yes; then
5833 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5837 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5838 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5839 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5840 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5842 if test "x$with_cloog" != "xno"; then
5846 _cloog_saved_CFLAGS=$CFLAGS
5847 _cloog_saved_CPPFLAGS=$CPPFLAGS
5848 _cloog_saved_LDFLAGS=$LDFLAGS
5849 _cloog_saved_LIBS=$LIBS
5851 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5853 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5854 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5855 LDFLAGS="${LDFLAGS} ${clooglibs}"
5857 case $cloog_backend in
5859 CFLAGS="${CFLAGS} ${pplinc}"
5860 LDFLAGS="${LDFLAGS} ${ppllibs}"
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5862 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5863 if test "${gcc_cv_cloog_type+set}" = set; then :
5864 $as_echo_n "(cached) " >&6
5866 LIBS="-lcloog ${_cloog_saved_LIBS}"
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 #include "cloog/cloog.h"
5873 #ifndef CLOOG_PPL_BACKEND
5880 if ac_fn_c_try_link "$LINENO"; then :
5881 gcc_cv_cloog_type="PPL Legacy"
5883 gcc_cv_cloog_type=no
5885 rm -f core conftest.err conftest.$ac_objext \
5886 conftest$ac_exeext conftest.$ac_ext
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5889 $as_echo "$gcc_cv_cloog_type" >&6; }
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5893 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5894 if test "${gcc_cv_cloog_type+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5897 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5900 #include "cloog/cloog.h"
5909 if ac_fn_c_try_link "$LINENO"; then :
5910 gcc_cv_cloog_type="ISL"
5912 gcc_cv_cloog_type=no
5914 rm -f core conftest.err conftest.$ac_objext \
5915 conftest$ac_exeext conftest.$ac_ext
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5918 $as_echo "$gcc_cv_cloog_type" >&6; }
5921 CFLAGS="${CFLAGS} ${pplinc}"
5922 LDFLAGS="${LDFLAGS} ${ppllibs}"
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5924 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5925 if test "${gcc_cv_cloog_type+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5928 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5931 #include "cloog/cloog.h"
5932 #include "cloog/ppl/cloog.h"
5941 if ac_fn_c_try_link "$LINENO"; then :
5942 gcc_cv_cloog_type="PPL"
5944 gcc_cv_cloog_type=no
5946 rm -f core conftest.err conftest.$ac_objext \
5947 conftest$ac_exeext conftest.$ac_ext
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5950 $as_echo "$gcc_cv_cloog_type" >&6; }
5953 gcc_cv_cloog_type=""
5956 case $gcc_cv_cloog_type in
5958 clooginc="${clooginc}"
5959 clooglibs="${clooglibs} -lcloog"
5963 clooginc="${clooginc} ${_cloogorginc}"
5964 clooglibs="${clooglibs} -lcloog-isl -lisl"
5968 clooginc="${clooginc} ${_cloogorginc}"
5969 clooglibs="${clooglibs} -lcloog-ppl"
5979 LIBS=$_cloog_saved_LIBS
5980 CFLAGS=$_cloog_saved_CFLAGS
5981 CPPFLAGS=$_cloog_saved_CPPFLAGS
5982 LDFLAGS=$_cloog_saved_LDFLAGS
5988 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5989 _cloog_saved_CFLAGS=$CFLAGS
5990 _cloog_saved_LDFLAGS=$LDFLAGS
5992 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5993 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5995 if test "${cloog_org}" = yes ; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5997 $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
5998 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003 #include "cloog/cloog.h"
6007 #if CLOOG_VERSION_MAJOR != 0 \
6008 || CLOOG_VERSION_MINOR != 16 \
6009 || CLOOG_VERSION_REVISION < 1
6016 if ac_fn_c_try_compile "$LINENO"; then :
6017 gcc_cv_cloog_ct_0_14_0=yes
6019 gcc_cv_cloog_ct_0_14_0=no
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
6024 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
6025 elif test "${cloog_org}" = no ; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
6027 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
6028 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 #include "cloog/cloog.h"
6037 #if CLOOG_VERSION_MAJOR != 0 \
6038 || CLOOG_VERSION_MINOR != 15 \
6039 || CLOOG_VERSION_REVISION < 5
6046 if ac_fn_c_try_compile "$LINENO"; then :
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049 #include "cloog/cloog.h"
6053 #if CLOOG_VERSION_MAJOR != 0 \
6054 || CLOOG_VERSION_MINOR != 15 \
6055 || CLOOG_VERSION_REVISION < 9
6062 if ac_fn_c_try_compile "$LINENO"; then :
6063 gcc_cv_cloog_ct_0_15_5=yes
6065 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 gcc_cv_cloog_ct_0_15_5=no
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6074 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6077 CFLAGS=$_cloog_saved_CFLAGS
6078 LDFLAGS=$_cloog_saved_LDFLAGS
6087 if test "x${with_cloog}" = xno; then
6088 graphite_requested=no
6089 elif test "x${with_cloog}" != x \
6090 || test "x${with_cloog_include}" != x \
6091 || test "x${with_cloog_lib}" != x ; then
6092 graphite_requested=yes
6094 graphite_requested=no
6099 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6100 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6101 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6106 if test "${graphite_requested}" = yes \
6107 && test "x${clooglibs}" = x \
6108 && test "x${clooginc}" = x ; then
6110 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6116 # Check for LTO support.
6117 # Check whether --enable-lto was given.
6118 if test "${enable_lto+set}" = set; then :
6119 enableval=$enable_lto; enable_lto=$enableval
6121 enable_lto=yes; default_enable_lto=yes
6130 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6131 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6132 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6140 if test $target_elf = yes; then :
6141 # ELF platforms build the lto-plugin always.
6142 build_lto_plugin=yes
6145 if test x"$default_enable_lto" = x"yes" ; then
6147 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6148 # On other non-ELF platforms, LTO has yet to be validated.
6152 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6153 # It would also be nice to check the binutils support, but we don't
6154 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6155 # warn during gcc/ subconfigure; unless you're bootstrapping with
6156 # -flto it won't be needed until after installation anyway.
6158 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6159 *) if test x"$enable_lto" = x"yes"; then
6160 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6165 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6166 # Build it unless LTO was explicitly disabled.
6168 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6176 # By default, C is the only stage 1 language.
6177 stage1_languages=,c,
6179 # Target libraries that we bootstrap.
6180 bootstrap_target_libs=,target-libgcc,
6182 # Figure out what language subdirectories are present.
6183 # Look if the user specified --enable-languages="..."; if not, use
6184 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6186 # NB: embedded tabs in this IF block -- do not untabify
6187 if test -d ${srcdir}/gcc; then
6188 if test x"${enable_languages+set}" != xset; then
6189 if test x"${LANGUAGES+set}" = xset; then
6190 enable_languages="${LANGUAGES}"
6191 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6193 enable_languages=all
6196 if test x"${enable_languages}" = x ||
6197 test x"${enable_languages}" = xyes;
6199 echo configure.in: --enable-languages needs at least one language argument 1>&2
6203 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6205 # 'f95' is the old name for the 'fortran' language. We issue a warning
6206 # and make the substitution.
6207 case ,${enable_languages}, in
6209 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6210 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6214 # If bootstrapping, then using --enable-build-with-cxx or
6215 # --enable-build-poststage1-with-cxx requires enabling C++.
6216 case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6219 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6220 enable_languages="${enable_languages},c++"
6222 as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6227 # First scan to see if an enabled language requires some other language.
6228 # We assume that a given config-lang.in will list all the language
6229 # front ends it requires, even if some are required indirectly.
6230 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6231 case ${lang_frag} in
6233 # The odd quoting in the next line works around
6234 # an apparent bug in bash 1.12 on linux.
6235 ${srcdir}/gcc/[*]/config-lang.in) ;;
6237 # From the config-lang.in, get $language, $lang_requires, and
6238 # $lang_requires_boot_languages.
6241 lang_requires_boot_languages=
6243 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6244 case ,${enable_languages}, in
6248 echo " \`$other' language required by \`$language'; enabling" 1>&2
6249 enable_languages="${enable_languages},${other}"
6253 for other in ${lang_requires_boot_languages} ; do
6254 if test "$other" != "c"; then
6255 case ,${enable_stage1_languages}, in
6259 case ,${enable_languages}, in
6261 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6262 enable_stage1_languages="$enable_stage1_languages,${other}"
6273 new_enable_languages=,c,
6275 # If LTO is enabled, add the LTO front end.
6276 extra_host_libiberty_configure_flags=
6277 if test "$enable_lto" = "yes" ; then
6278 case ,${enable_languages}, in
6280 *) enable_languages="${enable_languages},lto" ;;
6282 if test "${build_lto_plugin}" = "yes" ; then
6283 configdirs="$configdirs lto-plugin"
6284 extra_host_libiberty_configure_flags=--enable-shared
6289 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6290 potential_languages=,c,
6292 enabled_target_libs=
6293 disabled_target_libs=
6295 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6296 case ${lang_frag} in
6298 # The odd quoting in the next line works around
6299 # an apparent bug in bash 1.12 on linux.
6300 ${srcdir}/gcc/[*]/config-lang.in) ;;
6302 # From the config-lang.in, get $language, $target_libs,
6303 # $lang_dirs, $boot_language, and $build_by_default
6309 build_by_default=yes
6311 if test x${language} = x; then
6312 echo "${lang_frag} doesn't set \$language." 1>&2
6316 if test "$language" = "c++"; then
6317 if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6318 || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6323 case ,${enable_languages}, in
6325 # Language was explicitly selected; include it.
6329 # 'all' was selected, select it if it is a default language
6330 add_this_lang=${build_by_default}
6337 # Disable languages that need other directories if these aren't available.
6338 for i in $subdir_requires; do
6339 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6340 case ,${enable_languages}, in
6342 # Specifically requested language; tell them.
6343 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6347 add_this_lang=unsupported
6352 # Disable Ada if no preexisting GNAT is available.
6353 case ,${enable_languages},:${language}:${have_gnat} in
6354 *,${language},*:ada:no)
6355 # Specifically requested language; tell them.
6356 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6360 add_this_lang=unsupported
6364 # Disable a language that is unsupported by the target.
6365 case " $unsupported_languages " in
6367 add_this_lang=unsupported
6371 case $add_this_lang in
6373 # Remove language-dependent dirs.
6374 disabled_target_libs="$disabled_target_libs $target_libs"
6375 noconfigdirs="$noconfigdirs $lang_dirs"
6378 # Remove language-dependent dirs; still show language as supported.
6379 disabled_target_libs="$disabled_target_libs $target_libs"
6380 noconfigdirs="$noconfigdirs $lang_dirs"
6381 potential_languages="${potential_languages}${language},"
6384 new_enable_languages="${new_enable_languages}${language},"
6385 potential_languages="${potential_languages}${language},"
6386 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6387 enabled_target_libs="$enabled_target_libs $target_libs"
6388 case "${boot_language}:,$enable_stage1_languages," in
6389 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6390 # Add to (comma-separated) list of stage 1 languages.
6391 case ",$stage1_languages," in
6392 *,$language,* | ,yes, | ,all,) ;;
6393 *) stage1_languages="${stage1_languages}${language}," ;;
6395 # We need to bootstrap any supporting libraries.
6396 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6405 # Add target libraries which are only needed for disabled languages
6407 if test -n "$disabled_target_libs"; then
6408 for dir in $disabled_target_libs; do
6409 case " $enabled_target_libs " in
6411 *) noconfigdirs="$noconfigdirs $dir" ;;
6416 # Check whether --enable-stage1-languages was given.
6417 if test "${enable_stage1_languages+set}" = set; then :
6418 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6420 # Set it to something that will have no effect in the loop below
6421 enable_stage1_languages=c ;;
6423 enable_stage1_languages=`echo $new_enable_languages | \
6424 sed -e "s/^,//" -e "s/,$//" ` ;;
6426 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6427 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6430 # Add "good" languages from enable_stage1_languages to stage1_languages,
6431 # while "bad" languages go in missing_languages. Leave no duplicates.
6432 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6433 case $potential_languages in
6435 case $stage1_languages in
6437 *) stage1_languages="$stage1_languages$i," ;;
6440 case $missing_languages in
6442 *) missing_languages="$missing_languages$i," ;;
6449 # Remove leading/trailing commas that were added for simplicity
6450 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6451 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6452 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6453 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6455 if test "x$missing_languages" != x; then
6457 The following requested languages could not be built: ${missing_languages}
6458 Supported languages are: ${potential_languages}" "$LINENO" 5
6460 if test "x$new_enable_languages" != "x$enable_languages"; then
6461 echo The following languages will be built: ${new_enable_languages}
6462 enable_languages="$new_enable_languages"
6466 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6469 # Handle --disable-<component> generically.
6470 for dir in $configdirs $build_configdirs $target_configdirs ; do
6471 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6472 varname=`echo $dirname | sed -e s/+/_/g`
6473 if eval test x\${enable_${varname}} "=" xno ; then
6474 noconfigdirs="$noconfigdirs $dir"
6478 # Check for Boehm's garbage collector
6479 # Check whether --enable-objc-gc was given.
6480 if test "${enable_objc_gc+set}" = set; then :
6481 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6482 *,objc,*:*:yes:*target-boehm-gc*)
6483 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6489 # Make sure we only build Boehm's garbage collector if required.
6490 case ,${enable_languages},:${enable_objc_gc} in
6492 # Keep target-boehm-gc if requested for Objective-C.
6495 # Otherwise remove target-boehm-gc depending on target-libjava.
6496 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6497 noconfigdirs="$noconfigdirs target-boehm-gc"
6502 # Disable libitm if we're not building C++
6503 case ,${enable_languages}, in
6506 noconfigdirs="$noconfigdirs target-libitm"
6510 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6511 # $build_configdirs and $target_configdirs.
6512 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6515 for dir in . $skipdirs $noconfigdirs ; do
6516 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6517 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6518 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6519 if test -r $srcdir/$dirname/configure ; then
6520 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6523 notsupp="$notsupp $dir"
6527 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6528 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6529 if test -r $srcdir/$dirname/configure ; then
6530 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6533 notsupp="$notsupp $dir"
6537 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6538 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6539 if test -r $srcdir/$dirname/configure ; then
6540 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6543 notsupp="$notsupp $dir"
6549 # Quietly strip out all directories which aren't configurable in this tree.
6550 # This relies on all configurable subdirectories being autoconfiscated, which
6552 build_configdirs_all="$build_configdirs"
6554 for i in ${build_configdirs_all} ; do
6555 j=`echo $i | sed -e s/build-//g`
6556 if test -f ${srcdir}/$j/configure ; then
6557 build_configdirs="${build_configdirs} $i"
6561 configdirs_all="$configdirs"
6563 for i in ${configdirs_all} ; do
6564 if test -f ${srcdir}/$i/configure ; then
6565 configdirs="${configdirs} $i"
6569 target_configdirs_all="$target_configdirs"
6571 for i in ${target_configdirs_all} ; do
6572 j=`echo $i | sed -e s/target-//g`
6573 if test -f ${srcdir}/$j/configure ; then
6574 target_configdirs="${target_configdirs} $i"
6578 # Produce a warning message for the subdirs we can't configure.
6579 # This isn't especially interesting in the Cygnus tree, but in the individual
6580 # FSF releases, it's important to let people know when their machine isn't
6581 # supported by the one or two programs in a package.
6583 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6584 # If $appdirs is non-empty, at least one of those directories must still
6585 # be configured, or we error out. (E.g., if the gas release supports a
6586 # specified target in some subdirs but not the gas subdir, we shouldn't
6587 # pretend that all is well.)
6588 if test -n "$appdirs" ; then
6589 for dir in $appdirs ; do
6590 if test -r $dir/Makefile.in ; then
6591 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6595 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6601 if test -n "$appdirs" ; then
6602 echo "*** This configuration is not supported by this package." 1>&2
6606 # Okay, some application will build, or we don't care to check. Still
6607 # notify of subdirs not getting built.
6608 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6609 echo " ${notsupp}" 1>&2
6610 echo " (Any other directories should still work fine.)" 1>&2
6618 # To find our prefix, in gcc_cv_tool_prefix.
6620 # The user is always right.
6621 if test "${PATH_SEPARATOR+set}" != set; then
6622 echo "#! /bin/sh" >conf$$.sh
6623 echo "exit 0" >>conf$$.sh
6625 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6635 if test "x$exec_prefix" = xNONE; then
6636 if test "x$prefix" = xNONE; then
6637 gcc_cv_tool_prefix=$ac_default_prefix
6639 gcc_cv_tool_prefix=$prefix
6642 gcc_cv_tool_prefix=$exec_prefix
6645 # If there is no compiler in the tree, use the PATH only. In any
6646 # case, if there is no compiler in the tree nobody should use
6647 # AS_FOR_TARGET and LD_FOR_TARGET.
6648 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6649 gcc_version=`cat $srcdir/gcc/BASE-VER`
6650 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6651 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6652 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6653 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6654 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6655 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6660 if test x$build = x$target && test -n "$md_exec_prefix"; then
6661 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6669 # Check whether --with-build-sysroot was given.
6670 if test "${with_build_sysroot+set}" = set; then :
6671 withval=$with_build_sysroot; if test x"$withval" != x ; then
6672 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6675 SYSROOT_CFLAGS_FOR_TARGET=
6681 # Check whether --with-debug-prefix-map was given.
6682 if test "${with_debug_prefix_map+set}" = set; then :
6683 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6684 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6685 for debug_map in $withval; do
6686 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6690 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6695 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6696 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6697 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6698 # We want to ensure that TARGET libraries (which we know are built with
6699 # gcc) are built with "-O2 -g", so include those options when setting
6700 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6701 if test "x$CFLAGS_FOR_TARGET" = x; then
6702 CFLAGS_FOR_TARGET=$CFLAGS
6705 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6708 *" -g "* | *" -g3 "*) ;;
6709 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6714 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6715 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6716 case " $CXXFLAGS " in
6718 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6720 case " $CXXFLAGS " in
6721 *" -g "* | *" -g3 "*) ;;
6722 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6729 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6730 # the named directory are copied to $(tooldir)/sys-include.
6731 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6732 if test x${is_cross_compiler} = xno ; then
6733 echo 1>&2 '***' --with-headers is only supported when cross compiling
6736 if test x"${with_headers}" != xyes ; then
6737 x=${gcc_cv_tool_prefix}
6738 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6742 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6743 # the name directories are copied to $(tooldir)/lib. Multiple directories
6745 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6746 if test x${is_cross_compiler} = xno ; then
6747 echo 1>&2 '***' --with-libs is only supported when cross compiling
6750 if test x"${with_libs}" != xyes ; then
6751 # Copy the libraries in reverse order, so that files in the first named
6752 # library override files in subsequent libraries.
6753 x=${gcc_cv_tool_prefix}
6754 for l in ${with_libs}; do
6755 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6760 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6762 # This is done by determining whether or not the appropriate directory
6763 # is available, and by checking whether or not specific configurations
6764 # have requested that this magic not happen.
6766 # The command line options always override the explicit settings in
6767 # configure.in, and the settings in configure.in override this magic.
6769 # If the default for a toolchain is to use GNU as and ld, and you don't
6770 # want to do that, then you should use the --without-gnu-as and
6771 # --without-gnu-ld options for the configure script. Similarly, if
6772 # the default is to use the included zlib and you don't want to do that,
6773 # you should use the --with-system-zlib option for the configure script.
6775 if test x${use_gnu_as} = x &&
6776 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6778 extra_host_args="$extra_host_args --with-gnu-as"
6781 if test x${use_gnu_ld} = x &&
6782 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6784 extra_host_args="$extra_host_args --with-gnu-ld"
6787 if test x${use_included_zlib} = x &&
6788 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6791 with_system_zlib=yes
6792 extra_host_args="$extra_host_args --with-system-zlib"
6795 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6796 # can detect this case.
6798 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6800 extra_host_args="$extra_host_args --with-newlib"
6803 # Handle ${copy_dirs}
6804 set fnord ${copy_dirs}
6806 while test $# != 0 ; do
6807 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6810 echo Copying $1 to $2
6812 # Use the install script to create the directory and all required
6813 # parent directories.
6814 if test -d $2 ; then
6818 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6821 # Copy the directory, assuming we have tar.
6822 # FIXME: Should we use B in the second tar? Not all systems support it.
6823 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6825 # It is the responsibility of the user to correctly adjust all
6826 # symlinks. If somebody can figure out how to handle them correctly
6827 # here, feel free to add the code.
6834 # Determine a target-dependent exec_prefix that the installed
6835 # gcc will search in. Keep this list sorted by triplet, with
6836 # the *-*-osname triplets last.
6839 i[34567]86-pc-msdosdjgpp*)
6840 md_exec_prefix=/dev/env/DJDIR/bin
6845 md_exec_prefix=/usr/ccs/bin
6849 extra_arflags_for_target=
6850 extra_nmflags_for_target=
6851 extra_ranlibflags_for_target=
6852 target_makefile_frag=/dev/null
6855 target_makefile_frag="config/mt-spu"
6858 target_makefile_frag="config/mt-sde"
6860 mipsisa*-*-elfoabi*)
6861 target_makefile_frag="config/mt-mips-elfoabi"
6863 mips*-*-*linux* | mips*-*-gnu*)
6864 target_makefile_frag="config/mt-mips-gnu"
6866 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6867 target_makefile_frag="config/mt-gnu"
6869 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6870 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6871 # commands to handle both 32-bit and 64-bit objects. These flags are
6872 # harmless if we're using GNU nm or ar.
6873 extra_arflags_for_target=" -X32_64"
6874 extra_nmflags_for_target=" -B -X32_64"
6877 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6878 extra_ranlibflags_for_target=" -c"
6882 alphaieee_frag=/dev/null
6885 # This just makes sure to use the -mieee option to build target libs.
6886 # This should probably be set individually by each library.
6887 alphaieee_frag="config/mt-alphaieee"
6891 # If --enable-target-optspace always use -Os instead of -O2 to build
6892 # the target libraries, similarly if it is not specified, use -Os
6893 # on selected platforms.
6894 ospace_frag=/dev/null
6895 case "${enable_target_optspace}:${target}" in
6897 ospace_frag="config/mt-ospace"
6900 ospace_frag="config/mt-d30v"
6902 :m32r-* | :d10v-* | :fr30-*)
6903 ospace_frag="config/mt-ospace"
6908 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6912 # Default to using --with-stabs for certain targets.
6913 if test x${with_stabs} = x ; then
6917 mips*-*-* | alpha*-*-osf*)
6919 extra_host_args="${extra_host_args} --with-stabs"
6924 # Some systems (e.g., one of the i386-aix systems the gas testers are
6925 # using) don't handle "\$" correctly, so don't use it here.
6926 tooldir='${exec_prefix}'/${target_noncanonical}
6927 build_tooldir=${tooldir}
6929 # Create a .gdbinit file which runs the one in srcdir
6930 # and tells GDB to look there for source files.
6932 if test -r ${srcdir}/.gdbinit ; then
6935 *) cat > ./.gdbinit <<EOF
6939 source ${srcdir}/.gdbinit
6945 # Make sure that the compiler is able to generate an executable. If it
6946 # can't, we are probably in trouble. We don't care whether we can run the
6947 # executable--we might be using a cross compiler--we only care whether it
6948 # can be created. At this point the main configure script has set CC.
6950 echo "int main () { return 0; }" > conftest.c
6951 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6952 if test $? = 0 ; then
6953 if test -s conftest || test -s conftest.exe ; then
6959 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6960 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6967 # Decide which environment variable is used to find dynamic libraries.
6969 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6970 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6971 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6972 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6975 # On systems where the dynamic library environment variable is PATH,
6976 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6977 # built executables to PATH.
6978 if test "$RPATH_ENVVAR" = PATH; then
6979 GCC_SHLIB_SUBDIR=/shlib
6984 # Record target_configdirs and the configure arguments for target and
6985 # build configuration in Makefile.
6986 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6987 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6989 # If we are building libgomp, bootstrap it.
6990 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6991 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6994 # Determine whether gdb needs tk/tcl or not.
6995 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6996 # and in that case we want gdb to be built without tk. Ugh!
6997 # In fact I believe gdb is the *only* package directly dependent on tk,
6998 # so we should be able to put the 'maybe's in unconditionally and
6999 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7000 # 100% sure that that's safe though.
7002 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7003 case "$enable_gdbtk" in
7007 GDB_TK="${gdb_tk}" ;;
7009 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7010 # distro. Eventually someone will fix this and move Insight, nee
7011 # gdbtk to a separate directory.
7012 if test -d ${srcdir}/gdb/gdbtk ; then
7019 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7020 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7022 # Strip out unwanted targets.
7024 # While at that, we remove Makefiles if we were started for recursive
7025 # configuration, so that the top-level Makefile reconfigures them,
7026 # like we used to do when configure itself was recursive.
7028 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7029 # but now we're fixing up the Makefile ourselves with the additional
7030 # commands passed to AC_CONFIG_FILES. Use separate variables
7031 # extrasub-{build,host,target} not because there is any reason to split
7032 # the substitutions up that way, but only to remain below the limit of
7033 # 99 commands in a script, for HP-UX sed.
7034 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7036 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7037 yes:both:*\ gold\ *:*,c++,* | \
7038 yes:yes:*\ gold\ *:*,c++,*) ;;
7039 yes:both:*\ gold\ *:* | \
7040 yes:yes:*\ gold\ *:*)
7041 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7045 # Adjust the toplevel makefile according to whether bootstrap was selected.
7046 case $enable_bootstrap in
7048 bootstrap_suffix=bootstrap
7049 BUILD_CONFIG=bootstrap-debug
7052 bootstrap_suffix=no-bootstrap
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7058 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7061 # Check whether --with-build-config was given.
7062 if test "${with_build_config+set}" = set; then :
7063 withval=$with_build_config; case $with_build_config in
7064 yes) with_build_config= ;;
7065 no) with_build_config= BUILD_CONFIG= ;;
7070 if test "x${with_build_config}" != x; then
7071 BUILD_CONFIG=$with_build_config
7073 case $BUILD_CONFIG in
7075 if echo "int f (void) { return 0; }" > conftest.c &&
7076 ${CC} -c conftest.c &&
7077 mv conftest.o conftest.o.g0 &&
7078 ${CC} -c -g conftest.c &&
7079 mv conftest.o conftest.o.g &&
7080 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7085 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7090 $as_echo "$BUILD_CONFIG" >&6; }
7094 for module in ${build_configdirs} ; do
7095 if test -z "${no_recursion}" \
7096 && test -f ${build_subdir}/${module}/Makefile; then
7097 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7098 rm -f ${build_subdir}/${module}/Makefile
7100 extrasub_build="$extrasub_build
7101 /^@if build-$module\$/d
7102 /^@endif build-$module\$/d
7103 /^@if build-$module-$bootstrap_suffix\$/d
7104 /^@endif build-$module-$bootstrap_suffix\$/d"
7107 for module in ${configdirs} ; do
7108 if test -z "${no_recursion}"; then
7109 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7110 if test -f ${file}; then
7111 echo 1>&2 "*** removing ${file} to force reconfigure"
7116 extrasub_host="$extrasub_host
7118 /^@endif $module\$/d
7119 /^@if $module-$bootstrap_suffix\$/d
7120 /^@endif $module-$bootstrap_suffix\$/d"
7123 for module in ${target_configdirs} ; do
7124 if test -z "${no_recursion}" \
7125 && test -f ${target_subdir}/${module}/Makefile; then
7126 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7127 rm -f ${target_subdir}/${module}/Makefile
7130 # We only bootstrap target libraries listed in bootstrap_target_libs.
7131 case $bootstrap_target_libs in
7132 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7133 *) target_bootstrap_suffix=no-bootstrap ;;
7136 extrasub_target="$extrasub_target
7137 /^@if target-$module\$/d
7138 /^@endif target-$module\$/d
7139 /^@if target-$module-$target_bootstrap_suffix\$/d
7140 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7143 # Do the final fixup along with target modules.
7144 extrasub_target="$extrasub_target
7145 /^@if /,/^@endif /d"
7147 # Create the serialization dependencies. This uses a temporary file.
7149 # Check whether --enable-serial-configure was given.
7150 if test "${enable_serial_configure+set}" = set; then :
7151 enableval=$enable_serial_configure;
7155 case ${enable_serial_configure} in
7157 enable_serial_build_configure=yes
7158 enable_serial_host_configure=yes
7159 enable_serial_target_configure=yes
7163 # These force 'configure's to be done one at a time, to avoid problems
7164 # with contention over a shared config.cache.
7166 echo '# serdep.tmp' > serdep.tmp
7168 test "x${enable_serial_build_configure}" = xyes &&
7169 for item in ${build_configdirs} ; do
7172 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7177 test "x${enable_serial_host_configure}" = xyes &&
7178 for item in ${configdirs} ; do
7181 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7186 test "x${enable_serial_target_configure}" = xyes &&
7187 for item in ${target_configdirs} ; do
7190 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7194 serialization_dependencies=serdep.tmp
7197 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7198 # target, nonopt, and variable assignments. These are the ones we
7199 # might not want to pass down to subconfigures. The exception being
7200 # --cache-file=/dev/null, which is used to turn off the use of cache
7201 # files altogether, and which should be passed on to subconfigures.
7202 # Also strip program-prefix, program-suffix, and program-transform-name,
7203 # so that we can pass down a consistent program-transform-name.
7208 eval "set -- $ac_configure_args"
7211 if test X"$skip_next" = X"yes"; then
7215 if test X"$keep_next" = X"yes"; then
7218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7220 baseargs="$baseargs '$ac_arg'"
7221 tbaseargs="$tbaseargs '$ac_arg'"
7226 # Handle separated arguments. Based on the logic generated by
7229 *=* | --config-cache | -C | -disable-* | --disable-* \
7230 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7231 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7232 | -with-* | --with-* | -without-* | --without-* | --x)
7246 --with-* | --without-*)
7247 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7251 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7254 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7263 mpc | mpfr | gmp | ppl | cloog)
7264 # If we're processing --with-$lib, --with-$lib-include or
7265 # --with-$lib-lib, for one of the libs above, and target is
7266 # different from host, don't pass the current argument to any
7267 # target library's configure.
7268 if test x$is_cross_compiler = xyes; then
7277 --cache-file=/dev/null | \
7278 -cache-file=/dev/null )
7279 # Handled here to avoid the test to skip args below.
7280 baseargs="$baseargs '$ac_arg'"
7281 tbaseargs="$tbaseargs '$ac_arg'"
7282 # Assert: $separate_arg should always be no.
7283 keep_next=$separate_arg
7299 -program-prefix* | \
7300 -program-suffix* | \
7301 -program-transform-name* )
7302 skip_next=$separate_arg
7306 # An option. Add it.
7309 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7311 baseargs="$baseargs '$ac_arg'"
7312 if test X"$skip_targ" = Xno; then
7313 tbaseargs="$tbaseargs '$ac_arg'"
7315 keep_next=$separate_arg
7318 # Either a variable assignment, or a nonopt (triplet). Don't
7319 # pass it down; let the Makefile handle this.
7324 # Remove the initial space we just introduced and, as these will be
7325 # expanded by make, quote '$'.
7326 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7328 # Add in --program-transform-name, after --program-prefix and
7329 # --program-suffix have been applied to it. Autoconf has already
7330 # doubled dollar signs and backslashes in program_transform_name; we want
7331 # the backslashes un-doubled, and then the entire thing wrapped in single
7332 # quotes, because this will be expanded first by make and then by the shell.
7333 # Also, because we want to override the logic in subdir configure scripts to
7334 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7335 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7336 ${program_transform_name}
7338 gcc_transform_name=`cat conftestsed.out`
7339 rm -f conftestsed.out
7340 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7341 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7342 if test "$silent" = yes; then
7343 baseargs="$baseargs --silent"
7344 tbaseargs="$tbaseargs --silent"
7346 baseargs="$baseargs --disable-option-checking"
7347 tbaseargs="$tbaseargs --disable-option-checking"
7349 # Record and document user additions to sub configure arguments.
7354 # For the build-side libraries, we just need to pretend we're native,
7355 # and not use the same cache file. Multilibs are neither needed nor
7357 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7359 # For host modules, accept cache file option, or specification as blank.
7360 case "${cache_file}" in
7362 cache_file_option="" ;;
7363 /* | [A-Za-z]:[\\/]* ) # absolute path
7364 cache_file_option="--cache-file=${cache_file}" ;;
7366 cache_file_option="--cache-file=../${cache_file}" ;;
7369 # Host dirs don't like to share a cache file either, horribly enough.
7370 # This seems to be due to autoconf 2.5x stupidity.
7371 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7373 target_configargs="$target_configargs ${tbaseargs}"
7375 # Passing a --with-cross-host argument lets the target libraries know
7376 # whether they are being built with a cross-compiler or being built
7377 # native. However, it would be better to use other mechanisms to make the
7378 # sorts of decisions they want to make on this basis. Please consider
7379 # this option to be deprecated. FIXME.
7380 if test x${is_cross_compiler} = xyes ; then
7381 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7384 # Default to --enable-multilib.
7385 if test x${enable_multilib} = x ; then
7386 target_configargs="--enable-multilib ${target_configargs}"
7389 # Pass --with-newlib if appropriate. Note that target_configdirs has
7390 # changed from the earlier setting of with_newlib.
7391 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7392 target_configargs="--with-newlib ${target_configargs}"
7395 # Different target subdirs use different values of certain variables
7396 # (notably CXX). Worse, multilibs use *lots* of different values.
7397 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7398 # it doesn't automatically accept command-line overrides of them.
7399 # This means it's not safe for target subdirs to share a cache file,
7400 # which is disgusting, but there you have it. Hopefully this can be
7401 # fixed in future. It's still worthwhile to use a cache file for each
7402 # directory. I think.
7404 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7405 # We need to pass --target, as newer autoconf's requires consistency
7406 # for target_alias and gcc doesn't manage it consistently.
7407 target_configargs="--cache-file=./config.cache ${target_configargs}"
7410 case " $target_configdirs " in
7412 case " $target_configargs " in
7413 *" --with-newlib "*)
7416 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'
7420 # If we're not building GCC, don't discard standard headers.
7421 if test -d ${srcdir}/gcc; then
7422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7424 if test "${build}" != "${host}"; then
7425 # On Canadian crosses, CC_FOR_TARGET will have already been set
7426 # by `configure', so we won't have an opportunity to add -Bgcc/
7427 # to it. This is right: we don't want to search that directory
7428 # for binaries, but we want the header files in there, so add
7430 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7432 # Someone might think of using the pre-installed headers on
7433 # Canadian crosses, in case the installed compiler is not fully
7434 # compatible with the compiler being built. In this case, it
7435 # would be better to flag an error than risking having
7436 # incompatible object files being constructed. We can't
7437 # guarantee that an error will be flagged, but let's hope the
7438 # compiler will do it, when presented with incompatible header
7443 case "${target}-${is_cross_compiler}" in
7444 i[3456789]86-*-linux*-no)
7445 # Here host == target, so we don't need to build gcc,
7446 # so we don't want to discard standard headers.
7447 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7450 # If we're building newlib, use its generic headers last, but search
7451 # for any libc-related directories first (so make it the last -B
7453 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7455 # If we're building libgloss, find the startup file, simulator library
7456 # and linker script.
7457 case " $target_configdirs " in
7459 # Look for startup file, simulator library and maybe linker script.
7460 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7461 # Look for libnosys.a in case the target needs it.
7462 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7463 # Most targets have the linker script in the source directory.
7464 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7475 x86_64-*mingw* | *-w64-mingw*)
7476 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7477 # however, use a symlink named 'mingw' in ${prefix} .
7478 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7481 # MinGW can't be handled as Cygwin above since it does not use newlib.
7482 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'
7486 # Allow the user to override the flags for
7487 # our build compiler if desired.
7488 if test x"${build}" = x"${host}" ; then
7489 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7490 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7491 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7494 # On Canadian crosses, we'll be searching the right directories for
7495 # the previously-installed cross compiler, so don't bother to add
7496 # flags for directories within the install tree of the compiler
7497 # being built; programs in there won't even run.
7498 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7499 # Search for pre-installed headers if nothing else fits.
7500 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7503 if test "x${use_gnu_ld}" = x &&
7504 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7505 # Arrange for us to find uninstalled linker scripts.
7506 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7509 # Search for other target-specific linker scripts and such.
7512 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7516 # Makefile fragments.
7517 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7519 eval fragval=\$$frag
7520 if test $fragval != /dev/null; then
7521 eval $frag=${srcdir}/$fragval
7529 # Miscellanea: directories, flags, etc.
7538 # Build module lists & subconfigure args.
7542 # Host module lists & subconfigure args.
7547 # Target module lists & subconfigure args.
7569 # Generate default definitions for YACC, M4, LEX and other programs that run
7570 # on the build machine. These are used if the Makefile can't locate these
7571 # programs in objdir.
7572 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7574 for ac_prog in 'bison -y' byacc yacc
7576 # Extract the first word of "$ac_prog", so it can be a program name with args.
7577 set dummy $ac_prog; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if test "${ac_cv_prog_YACC+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
7583 if test -n "$YACC"; then
7584 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_prog_YACC="$ac_prog"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 YACC=$ac_cv_prog_YACC
7604 if test -n "$YACC"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7606 $as_echo "$YACC" >&6; }
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7613 test -n "$YACC" && break
7615 test -n "$YACC" || YACC="$MISSING bison -y"
7618 for ac_prog in bison
7620 # Extract the first word of "$ac_prog", so it can be a program name with args.
7621 set dummy $ac_prog; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if test "${ac_cv_prog_BISON+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
7627 if test -n "$BISON"; then
7628 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7637 ac_cv_prog_BISON="$ac_prog"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 BISON=$ac_cv_prog_BISON
7648 if test -n "$BISON"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7650 $as_echo "$BISON" >&6; }
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7657 test -n "$BISON" && break
7659 test -n "$BISON" || BISON="$MISSING bison"
7662 for ac_prog in gm4 gnum4 m4
7664 # Extract the first word of "$ac_prog", so it can be a program name with args.
7665 set dummy $ac_prog; ac_word=$2
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 $as_echo_n "checking for $ac_word... " >&6; }
7668 if test "${ac_cv_prog_M4+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
7671 if test -n "$M4"; then
7672 ac_cv_prog_M4="$M4" # Let the user override the test.
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7681 ac_cv_prog_M4="$ac_prog"
7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 if test -n "$M4"; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7694 $as_echo "$M4" >&6; }
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7701 test -n "$M4" && break
7703 test -n "$M4" || M4="$MISSING m4"
7706 for ac_prog in flex lex
7708 # Extract the first word of "$ac_prog", so it can be a program name with args.
7709 set dummy $ac_prog; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if test "${ac_cv_prog_LEX+set}" = set; then :
7713 $as_echo_n "(cached) " >&6
7715 if test -n "$LEX"; then
7716 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7725 ac_cv_prog_LEX="$ac_prog"
7726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 if test -n "$LEX"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7738 $as_echo "$LEX" >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7745 test -n "$LEX" && break
7747 test -n "$LEX" || LEX="$MISSING flex"
7752 # Extract the first word of "$ac_prog", so it can be a program name with args.
7753 set dummy $ac_prog; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_FLEX+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7759 if test -n "$FLEX"; then
7760 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_FLEX="$ac_prog"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 FLEX=$ac_cv_prog_FLEX
7780 if test -n "$FLEX"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7782 $as_echo "$FLEX" >&6; }
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7789 test -n "$FLEX" && break
7791 test -n "$FLEX" || FLEX="$MISSING flex"
7794 for ac_prog in makeinfo
7796 # Extract the first word of "$ac_prog", so it can be a program name with args.
7797 set dummy $ac_prog; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7803 if test -n "$MAKEINFO"; then
7804 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_prog_MAKEINFO="$ac_prog"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 MAKEINFO=$ac_cv_prog_MAKEINFO
7824 if test -n "$MAKEINFO"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7826 $as_echo "$MAKEINFO" >&6; }
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7833 test -n "$MAKEINFO" && break
7835 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7837 case " $build_configdirs " in
7838 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7841 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7842 # higher, else we use the "missing" dummy.
7843 if ${MAKEINFO} --version \
7844 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7847 MAKEINFO="$MISSING makeinfo"
7853 # FIXME: expect and dejagnu may become build tools?
7855 for ac_prog in expect
7857 # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7864 if test -n "$EXPECT"; then
7865 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_prog_EXPECT="$ac_prog"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 EXPECT=$ac_cv_prog_EXPECT
7885 if test -n "$EXPECT"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7887 $as_echo "$EXPECT" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7894 test -n "$EXPECT" && break
7896 test -n "$EXPECT" || EXPECT="expect"
7898 case " $configdirs " in
7900 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7904 for ac_prog in runtest
7906 # Extract the first word of "$ac_prog", so it can be a program name with args.
7907 set dummy $ac_prog; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7913 if test -n "$RUNTEST"; then
7914 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_prog_RUNTEST="$ac_prog"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 RUNTEST=$ac_cv_prog_RUNTEST
7934 if test -n "$RUNTEST"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7936 $as_echo "$RUNTEST" >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7943 test -n "$RUNTEST" && break
7945 test -n "$RUNTEST" || RUNTEST="runtest"
7947 case " $configdirs " in
7949 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7956 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7957 ncn_target_tool_prefix=
7958 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7962 if test -n "$AR"; then
7964 elif test -n "$ac_cv_prog_AR"; then
7968 if test -n "$ac_cv_prog_AR"; then
7969 for ncn_progname in ar; do
7970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7971 set dummy ${ncn_progname}; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if test "${ac_cv_prog_AR+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
7977 if test -n "$AR"; then
7978 ac_cv_prog_AR="$AR" # Let the user override the test.
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_prog_AR="${ncn_progname}"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 if test -n "$AR"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8000 $as_echo "$AR" >&6; }
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8010 for ncn_progname in ar; do
8011 if test -n "$ncn_tool_prefix"; then
8012 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8013 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 $as_echo_n "checking for $ac_word... " >&6; }
8016 if test "${ac_cv_prog_AR+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
8019 if test -n "$AR"; then
8020 ac_cv_prog_AR="$AR" # Let the user override the test.
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8029 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 if test -n "$AR"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8042 $as_echo "$AR" >&6; }
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8050 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8052 set dummy ${ncn_progname}; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if test "${ac_cv_prog_AR+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
8058 if test -n "$AR"; then
8059 ac_cv_prog_AR="$AR" # Let the user override the test.
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8068 ac_cv_prog_AR="${ncn_progname}"
8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 if test -n "$AR"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8081 $as_echo "$AR" >&6; }
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8089 test -n "$ac_cv_prog_AR" && break
8092 if test -z "$ac_cv_prog_AR" ; then
8094 if test $build = $host ; then
8097 AR="${ncn_tool_prefix}$2"
8103 if test -n "$AS"; then
8105 elif test -n "$ac_cv_prog_AS"; then
8109 if test -n "$ac_cv_prog_AS"; then
8110 for ncn_progname in as; do
8111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8112 set dummy ${ncn_progname}; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if test "${ac_cv_prog_AS+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
8118 if test -n "$AS"; then
8119 ac_cv_prog_AS="$AS" # Let the user override the test.
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128 ac_cv_prog_AS="${ncn_progname}"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 if test -n "$AS"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8141 $as_echo "$AS" >&6; }
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8151 for ncn_progname in as; do
8152 if test -n "$ncn_tool_prefix"; then
8153 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8154 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if test "${ac_cv_prog_AS+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
8160 if test -n "$AS"; then
8161 ac_cv_prog_AS="$AS" # Let the user override the test.
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167 test -z "$as_dir" && as_dir=.
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 if test -n "$AS"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8183 $as_echo "$AS" >&6; }
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8191 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8193 set dummy ${ncn_progname}; ac_word=$2
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195 $as_echo_n "checking for $ac_word... " >&6; }
8196 if test "${ac_cv_prog_AS+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8199 if test -n "$AS"; then
8200 ac_cv_prog_AS="$AS" # Let the user override the test.
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8209 ac_cv_prog_AS="${ncn_progname}"
8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 if test -n "$AS"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8222 $as_echo "$AS" >&6; }
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }
8230 test -n "$ac_cv_prog_AS" && break
8233 if test -z "$ac_cv_prog_AS" ; then
8235 if test $build = $host ; then
8238 AS="${ncn_tool_prefix}$2"
8244 if test -n "$DLLTOOL"; then
8245 ac_cv_prog_DLLTOOL=$DLLTOOL
8246 elif test -n "$ac_cv_prog_DLLTOOL"; then
8247 DLLTOOL=$ac_cv_prog_DLLTOOL
8250 if test -n "$ac_cv_prog_DLLTOOL"; then
8251 for ncn_progname in dlltool; do
8252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8253 set dummy ${ncn_progname}; ac_word=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8259 if test -n "$DLLTOOL"; then
8260 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8269 ac_cv_prog_DLLTOOL="${ncn_progname}"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 DLLTOOL=$ac_cv_prog_DLLTOOL
8280 if test -n "$DLLTOOL"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8282 $as_echo "$DLLTOOL" >&6; }
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8292 for ncn_progname in dlltool; do
8293 if test -n "$ncn_tool_prefix"; then
8294 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8295 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8301 if test -n "$DLLTOOL"; then
8302 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 DLLTOOL=$ac_cv_prog_DLLTOOL
8322 if test -n "$DLLTOOL"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8324 $as_echo "$DLLTOOL" >&6; }
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8332 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8334 set dummy ${ncn_progname}; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8338 $as_echo_n "(cached) " >&6
8340 if test -n "$DLLTOOL"; then
8341 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8350 ac_cv_prog_DLLTOOL="${ncn_progname}"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 DLLTOOL=$ac_cv_prog_DLLTOOL
8361 if test -n "$DLLTOOL"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8363 $as_echo "$DLLTOOL" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8371 test -n "$ac_cv_prog_DLLTOOL" && break
8374 if test -z "$ac_cv_prog_DLLTOOL" ; then
8376 if test $build = $host ; then
8379 DLLTOOL="${ncn_tool_prefix}$2"
8385 if test -n "$LD"; then
8387 elif test -n "$ac_cv_prog_LD"; then
8391 if test -n "$ac_cv_prog_LD"; then
8392 for ncn_progname in ld; do
8393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8394 set dummy ${ncn_progname}; ac_word=$2
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 $as_echo_n "checking for $ac_word... " >&6; }
8397 if test "${ac_cv_prog_LD+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8400 if test -n "$LD"; then
8401 ac_cv_prog_LD="$LD" # Let the user override the test.
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8410 ac_cv_prog_LD="${ncn_progname}"
8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 if test -n "$LD"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8423 $as_echo "$LD" >&6; }
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8433 for ncn_progname in ld; do
8434 if test -n "$ncn_tool_prefix"; then
8435 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8436 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if test "${ac_cv_prog_LD+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8442 if test -n "$LD"; then
8443 ac_cv_prog_LD="$LD" # Let the user override the test.
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8452 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 if test -n "$LD"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8465 $as_echo "$LD" >&6; }
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8473 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8475 set dummy ${ncn_progname}; ac_word=$2
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 $as_echo_n "checking for $ac_word... " >&6; }
8478 if test "${ac_cv_prog_LD+set}" = set; then :
8479 $as_echo_n "(cached) " >&6
8481 if test -n "$LD"; then
8482 ac_cv_prog_LD="$LD" # Let the user override the test.
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_prog_LD="${ncn_progname}"
8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 if test -n "$LD"; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8504 $as_echo "$LD" >&6; }
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 $as_echo "no" >&6; }
8512 test -n "$ac_cv_prog_LD" && break
8515 if test -z "$ac_cv_prog_LD" ; then
8517 if test $build = $host ; then
8520 LD="${ncn_tool_prefix}$2"
8526 if test -n "$LIPO"; then
8527 ac_cv_prog_LIPO=$LIPO
8528 elif test -n "$ac_cv_prog_LIPO"; then
8529 LIPO=$ac_cv_prog_LIPO
8532 if test -n "$ac_cv_prog_LIPO"; then
8533 for ncn_progname in lipo; do
8534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8535 set dummy ${ncn_progname}; ac_word=$2
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537 $as_echo_n "checking for $ac_word... " >&6; }
8538 if test "${ac_cv_prog_LIPO+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
8541 if test -n "$LIPO"; then
8542 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551 ac_cv_prog_LIPO="${ncn_progname}"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561 LIPO=$ac_cv_prog_LIPO
8562 if test -n "$LIPO"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8564 $as_echo "$LIPO" >&6; }
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8574 for ncn_progname in lipo; do
8575 if test -n "$ncn_tool_prefix"; then
8576 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8577 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 $as_echo_n "checking for $ac_word... " >&6; }
8580 if test "${ac_cv_prog_LIPO+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8583 if test -n "$LIPO"; then
8584 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 test -z "$as_dir" && as_dir=.
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8593 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 LIPO=$ac_cv_prog_LIPO
8604 if test -n "$LIPO"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8606 $as_echo "$LIPO" >&6; }
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8614 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8616 set dummy ${ncn_progname}; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if test "${ac_cv_prog_LIPO+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8622 if test -n "$LIPO"; then
8623 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8632 ac_cv_prog_LIPO="${ncn_progname}"
8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 LIPO=$ac_cv_prog_LIPO
8643 if test -n "$LIPO"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8645 $as_echo "$LIPO" >&6; }
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8653 test -n "$ac_cv_prog_LIPO" && break
8656 if test -z "$ac_cv_prog_LIPO" ; then
8658 if test $build = $host ; then
8661 LIPO="${ncn_tool_prefix}$2"
8667 if test -n "$NM"; then
8669 elif test -n "$ac_cv_prog_NM"; then
8673 if test -n "$ac_cv_prog_NM"; then
8674 for ncn_progname in nm; do
8675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8676 set dummy ${ncn_progname}; ac_word=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if test "${ac_cv_prog_NM+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
8682 if test -n "$NM"; then
8683 ac_cv_prog_NM="$NM" # Let the user override the test.
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692 ac_cv_prog_NM="${ncn_progname}"
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 if test -n "$NM"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8705 $as_echo "$NM" >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8715 for ncn_progname in nm; do
8716 if test -n "$ncn_tool_prefix"; then
8717 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8718 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8720 $as_echo_n "checking for $ac_word... " >&6; }
8721 if test "${ac_cv_prog_NM+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
8724 if test -n "$NM"; then
8725 ac_cv_prog_NM="$NM" # Let the user override the test.
8727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 test -z "$as_dir" && as_dir=.
8732 for ac_exec_ext in '' $ac_executable_extensions; do
8733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8734 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 if test -n "$NM"; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8747 $as_echo "$NM" >&6; }
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8750 $as_echo "no" >&6; }
8755 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8757 set dummy ${ncn_progname}; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if test "${ac_cv_prog_NM+set}" = set; then :
8761 $as_echo_n "(cached) " >&6
8763 if test -n "$NM"; then
8764 ac_cv_prog_NM="$NM" # Let the user override the test.
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770 test -z "$as_dir" && as_dir=.
8771 for ac_exec_ext in '' $ac_executable_extensions; do
8772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8773 ac_cv_prog_NM="${ncn_progname}"
8774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784 if test -n "$NM"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8786 $as_echo "$NM" >&6; }
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8794 test -n "$ac_cv_prog_NM" && break
8797 if test -z "$ac_cv_prog_NM" ; then
8799 if test $build = $host ; then
8802 NM="${ncn_tool_prefix}$2"
8808 if test -n "$RANLIB"; then
8809 ac_cv_prog_RANLIB=$RANLIB
8810 elif test -n "$ac_cv_prog_RANLIB"; then
8811 RANLIB=$ac_cv_prog_RANLIB
8814 if test -n "$ac_cv_prog_RANLIB"; then
8815 for ncn_progname in ranlib; do
8816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8817 set dummy ${ncn_progname}; ac_word=$2
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8819 $as_echo_n "checking for $ac_word... " >&6; }
8820 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8823 if test -n "$RANLIB"; then
8824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 test -z "$as_dir" && as_dir=.
8831 for ac_exec_ext in '' $ac_executable_extensions; do
8832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8833 ac_cv_prog_RANLIB="${ncn_progname}"
8834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 RANLIB=$ac_cv_prog_RANLIB
8844 if test -n "$RANLIB"; then
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8846 $as_echo "$RANLIB" >&6; }
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8849 $as_echo "no" >&6; }
8856 for ncn_progname in ranlib; do
8857 if test -n "$ncn_tool_prefix"; then
8858 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8859 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8865 if test -n "$RANLIB"; then
8866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 test -z "$as_dir" && as_dir=.
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8875 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 RANLIB=$ac_cv_prog_RANLIB
8886 if test -n "$RANLIB"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8888 $as_echo "$RANLIB" >&6; }
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8896 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8898 set dummy ${ncn_progname}; ac_word=$2
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8900 $as_echo_n "checking for $ac_word... " >&6; }
8901 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8902 $as_echo_n "(cached) " >&6
8904 if test -n "$RANLIB"; then
8905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911 test -z "$as_dir" && as_dir=.
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8914 ac_cv_prog_RANLIB="${ncn_progname}"
8915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8924 RANLIB=$ac_cv_prog_RANLIB
8925 if test -n "$RANLIB"; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8927 $as_echo "$RANLIB" >&6; }
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8935 test -n "$ac_cv_prog_RANLIB" && break
8938 if test -z "$ac_cv_prog_RANLIB" ; then
8944 if test -n "$STRIP"; then
8945 ac_cv_prog_STRIP=$STRIP
8946 elif test -n "$ac_cv_prog_STRIP"; then
8947 STRIP=$ac_cv_prog_STRIP
8950 if test -n "$ac_cv_prog_STRIP"; then
8951 for ncn_progname in strip; do
8952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8953 set dummy ${ncn_progname}; ac_word=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if test "${ac_cv_prog_STRIP+set}" = set; then :
8957 $as_echo_n "(cached) " >&6
8959 if test -n "$STRIP"; then
8960 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966 test -z "$as_dir" && as_dir=.
8967 for ac_exec_ext in '' $ac_executable_extensions; do
8968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8969 ac_cv_prog_STRIP="${ncn_progname}"
8970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8979 STRIP=$ac_cv_prog_STRIP
8980 if test -n "$STRIP"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8982 $as_echo "$STRIP" >&6; }
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8992 for ncn_progname in strip; do
8993 if test -n "$ncn_tool_prefix"; then
8994 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8995 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if test "${ac_cv_prog_STRIP+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9001 if test -n "$STRIP"; then
9002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9011 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021 STRIP=$ac_cv_prog_STRIP
9022 if test -n "$STRIP"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9024 $as_echo "$STRIP" >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9032 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9034 set dummy ${ncn_progname}; ac_word=$2
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9036 $as_echo_n "checking for $ac_word... " >&6; }
9037 if test "${ac_cv_prog_STRIP+set}" = set; then :
9038 $as_echo_n "(cached) " >&6
9040 if test -n "$STRIP"; then
9041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047 test -z "$as_dir" && as_dir=.
9048 for ac_exec_ext in '' $ac_executable_extensions; do
9049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9050 ac_cv_prog_STRIP="${ncn_progname}"
9051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 STRIP=$ac_cv_prog_STRIP
9061 if test -n "$STRIP"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9063 $as_echo "$STRIP" >&6; }
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9071 test -n "$ac_cv_prog_STRIP" && break
9074 if test -z "$ac_cv_prog_STRIP" ; then
9080 if test -n "$WINDRES"; then
9081 ac_cv_prog_WINDRES=$WINDRES
9082 elif test -n "$ac_cv_prog_WINDRES"; then
9083 WINDRES=$ac_cv_prog_WINDRES
9086 if test -n "$ac_cv_prog_WINDRES"; then
9087 for ncn_progname in windres; do
9088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9089 set dummy ${ncn_progname}; ac_word=$2
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091 $as_echo_n "checking for $ac_word... " >&6; }
9092 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
9095 if test -n "$WINDRES"; then
9096 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9102 test -z "$as_dir" && as_dir=.
9103 for ac_exec_ext in '' $ac_executable_extensions; do
9104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9105 ac_cv_prog_WINDRES="${ncn_progname}"
9106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 WINDRES=$ac_cv_prog_WINDRES
9116 if test -n "$WINDRES"; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9118 $as_echo "$WINDRES" >&6; }
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121 $as_echo "no" >&6; }
9128 for ncn_progname in windres; do
9129 if test -n "$ncn_tool_prefix"; then
9130 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9131 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133 $as_echo_n "checking for $ac_word... " >&6; }
9134 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
9137 if test -n "$WINDRES"; then
9138 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144 test -z "$as_dir" && as_dir=.
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9147 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9157 WINDRES=$ac_cv_prog_WINDRES
9158 if test -n "$WINDRES"; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9160 $as_echo "$WINDRES" >&6; }
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }
9168 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9170 set dummy ${ncn_progname}; ac_word=$2
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172 $as_echo_n "checking for $ac_word... " >&6; }
9173 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9174 $as_echo_n "(cached) " >&6
9176 if test -n "$WINDRES"; then
9177 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183 test -z "$as_dir" && as_dir=.
9184 for ac_exec_ext in '' $ac_executable_extensions; do
9185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9186 ac_cv_prog_WINDRES="${ncn_progname}"
9187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9196 WINDRES=$ac_cv_prog_WINDRES
9197 if test -n "$WINDRES"; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9199 $as_echo "$WINDRES" >&6; }
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202 $as_echo "no" >&6; }
9207 test -n "$ac_cv_prog_WINDRES" && break
9210 if test -z "$ac_cv_prog_WINDRES" ; then
9212 if test $build = $host ; then
9215 WINDRES="${ncn_tool_prefix}$2"
9221 if test -n "$WINDMC"; then
9222 ac_cv_prog_WINDMC=$WINDMC
9223 elif test -n "$ac_cv_prog_WINDMC"; then
9224 WINDMC=$ac_cv_prog_WINDMC
9227 if test -n "$ac_cv_prog_WINDMC"; then
9228 for ncn_progname in windmc; do
9229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9230 set dummy ${ncn_progname}; ac_word=$2
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9232 $as_echo_n "checking for $ac_word... " >&6; }
9233 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9234 $as_echo_n "(cached) " >&6
9236 if test -n "$WINDMC"; then
9237 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9243 test -z "$as_dir" && as_dir=.
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9246 ac_cv_prog_WINDMC="${ncn_progname}"
9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 WINDMC=$ac_cv_prog_WINDMC
9257 if test -n "$WINDMC"; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9259 $as_echo "$WINDMC" >&6; }
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262 $as_echo "no" >&6; }
9269 for ncn_progname in windmc; do
9270 if test -n "$ncn_tool_prefix"; then
9271 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9272 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9274 $as_echo_n "checking for $ac_word... " >&6; }
9275 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9278 if test -n "$WINDMC"; then
9279 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9285 test -z "$as_dir" && as_dir=.
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9288 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9298 WINDMC=$ac_cv_prog_WINDMC
9299 if test -n "$WINDMC"; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9301 $as_echo "$WINDMC" >&6; }
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304 $as_echo "no" >&6; }
9309 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9311 set dummy ${ncn_progname}; ac_word=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9315 $as_echo_n "(cached) " >&6
9317 if test -n "$WINDMC"; then
9318 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324 test -z "$as_dir" && as_dir=.
9325 for ac_exec_ext in '' $ac_executable_extensions; do
9326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9327 ac_cv_prog_WINDMC="${ncn_progname}"
9328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337 WINDMC=$ac_cv_prog_WINDMC
9338 if test -n "$WINDMC"; then
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9340 $as_echo "$WINDMC" >&6; }
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343 $as_echo "no" >&6; }
9348 test -n "$ac_cv_prog_WINDMC" && break
9351 if test -z "$ac_cv_prog_WINDMC" ; then
9353 if test $build = $host ; then
9356 WINDMC="${ncn_tool_prefix}$2"
9362 if test -n "$OBJCOPY"; then
9363 ac_cv_prog_OBJCOPY=$OBJCOPY
9364 elif test -n "$ac_cv_prog_OBJCOPY"; then
9365 OBJCOPY=$ac_cv_prog_OBJCOPY
9368 if test -n "$ac_cv_prog_OBJCOPY"; then
9369 for ncn_progname in objcopy; do
9370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9371 set dummy ${ncn_progname}; ac_word=$2
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373 $as_echo_n "checking for $ac_word... " >&6; }
9374 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9375 $as_echo_n "(cached) " >&6
9377 if test -n "$OBJCOPY"; then
9378 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 test -z "$as_dir" && as_dir=.
9385 for ac_exec_ext in '' $ac_executable_extensions; do
9386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9387 ac_cv_prog_OBJCOPY="${ncn_progname}"
9388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 OBJCOPY=$ac_cv_prog_OBJCOPY
9398 if test -n "$OBJCOPY"; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9400 $as_echo "$OBJCOPY" >&6; }
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403 $as_echo "no" >&6; }
9410 for ncn_progname in objcopy; do
9411 if test -n "$ncn_tool_prefix"; then
9412 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9413 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415 $as_echo_n "checking for $ac_word... " >&6; }
9416 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
9419 if test -n "$OBJCOPY"; then
9420 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9426 test -z "$as_dir" && as_dir=.
9427 for ac_exec_ext in '' $ac_executable_extensions; do
9428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9429 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 OBJCOPY=$ac_cv_prog_OBJCOPY
9440 if test -n "$OBJCOPY"; then
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9442 $as_echo "$OBJCOPY" >&6; }
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445 $as_echo "no" >&6; }
9450 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9452 set dummy ${ncn_progname}; ac_word=$2
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9454 $as_echo_n "checking for $ac_word... " >&6; }
9455 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9456 $as_echo_n "(cached) " >&6
9458 if test -n "$OBJCOPY"; then
9459 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 test -z "$as_dir" && as_dir=.
9466 for ac_exec_ext in '' $ac_executable_extensions; do
9467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9468 ac_cv_prog_OBJCOPY="${ncn_progname}"
9469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 OBJCOPY=$ac_cv_prog_OBJCOPY
9479 if test -n "$OBJCOPY"; then
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9481 $as_echo "$OBJCOPY" >&6; }
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 $as_echo "no" >&6; }
9489 test -n "$ac_cv_prog_OBJCOPY" && break
9492 if test -z "$ac_cv_prog_OBJCOPY" ; then
9494 if test $build = $host ; then
9497 OBJCOPY="${ncn_tool_prefix}$2"
9503 if test -n "$OBJDUMP"; then
9504 ac_cv_prog_OBJDUMP=$OBJDUMP
9505 elif test -n "$ac_cv_prog_OBJDUMP"; then
9506 OBJDUMP=$ac_cv_prog_OBJDUMP
9509 if test -n "$ac_cv_prog_OBJDUMP"; then
9510 for ncn_progname in objdump; do
9511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9512 set dummy ${ncn_progname}; ac_word=$2
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9514 $as_echo_n "checking for $ac_word... " >&6; }
9515 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9516 $as_echo_n "(cached) " >&6
9518 if test -n "$OBJDUMP"; then
9519 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9525 test -z "$as_dir" && as_dir=.
9526 for ac_exec_ext in '' $ac_executable_extensions; do
9527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9528 ac_cv_prog_OBJDUMP="${ncn_progname}"
9529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538 OBJDUMP=$ac_cv_prog_OBJDUMP
9539 if test -n "$OBJDUMP"; then
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9541 $as_echo "$OBJDUMP" >&6; }
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9551 for ncn_progname in objdump; do
9552 if test -n "$ncn_tool_prefix"; then
9553 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9554 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556 $as_echo_n "checking for $ac_word... " >&6; }
9557 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9560 if test -n "$OBJDUMP"; then
9561 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9567 test -z "$as_dir" && as_dir=.
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9570 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9580 OBJDUMP=$ac_cv_prog_OBJDUMP
9581 if test -n "$OBJDUMP"; then
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9583 $as_echo "$OBJDUMP" >&6; }
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 $as_echo "no" >&6; }
9591 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9593 set dummy ${ncn_progname}; ac_word=$2
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595 $as_echo_n "checking for $ac_word... " >&6; }
9596 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9597 $as_echo_n "(cached) " >&6
9599 if test -n "$OBJDUMP"; then
9600 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 test -z "$as_dir" && as_dir=.
9607 for ac_exec_ext in '' $ac_executable_extensions; do
9608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9609 ac_cv_prog_OBJDUMP="${ncn_progname}"
9610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 OBJDUMP=$ac_cv_prog_OBJDUMP
9620 if test -n "$OBJDUMP"; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9622 $as_echo "$OBJDUMP" >&6; }
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9625 $as_echo "no" >&6; }
9630 test -n "$ac_cv_prog_OBJDUMP" && break
9633 if test -z "$ac_cv_prog_OBJDUMP" ; then
9635 if test $build = $host ; then
9638 OBJDUMP="${ncn_tool_prefix}$2"
9644 if test -n "$READELF"; then
9645 ac_cv_prog_READELF=$READELF
9646 elif test -n "$ac_cv_prog_READELF"; then
9647 READELF=$ac_cv_prog_READELF
9650 if test -n "$ac_cv_prog_READELF"; then
9651 for ncn_progname in readelf; do
9652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9653 set dummy ${ncn_progname}; ac_word=$2
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655 $as_echo_n "checking for $ac_word... " >&6; }
9656 if test "${ac_cv_prog_READELF+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9659 if test -n "$READELF"; then
9660 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666 test -z "$as_dir" && as_dir=.
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9669 ac_cv_prog_READELF="${ncn_progname}"
9670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 READELF=$ac_cv_prog_READELF
9680 if test -n "$READELF"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9682 $as_echo "$READELF" >&6; }
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 $as_echo "no" >&6; }
9692 for ncn_progname in readelf; do
9693 if test -n "$ncn_tool_prefix"; then
9694 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9695 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9697 $as_echo_n "checking for $ac_word... " >&6; }
9698 if test "${ac_cv_prog_READELF+set}" = set; then :
9699 $as_echo_n "(cached) " >&6
9701 if test -n "$READELF"; then
9702 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708 test -z "$as_dir" && as_dir=.
9709 for ac_exec_ext in '' $ac_executable_extensions; do
9710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9711 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721 READELF=$ac_cv_prog_READELF
9722 if test -n "$READELF"; then
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9724 $as_echo "$READELF" >&6; }
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9727 $as_echo "no" >&6; }
9732 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9734 set dummy ${ncn_progname}; ac_word=$2
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9736 $as_echo_n "checking for $ac_word... " >&6; }
9737 if test "${ac_cv_prog_READELF+set}" = set; then :
9738 $as_echo_n "(cached) " >&6
9740 if test -n "$READELF"; then
9741 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747 test -z "$as_dir" && as_dir=.
9748 for ac_exec_ext in '' $ac_executable_extensions; do
9749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9750 ac_cv_prog_READELF="${ncn_progname}"
9751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 READELF=$ac_cv_prog_READELF
9761 if test -n "$READELF"; then
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9763 $as_echo "$READELF" >&6; }
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9766 $as_echo "no" >&6; }
9771 test -n "$ac_cv_prog_READELF" && break
9774 if test -z "$ac_cv_prog_READELF" ; then
9776 if test $build = $host ; then
9779 READELF="${ncn_tool_prefix}$2"
9790 # Check whether --with-build-time-tools was given.
9791 if test "${with_build_time_tools+set}" = set; then :
9792 withval=$with_build_time_tools; case x"$withval" in
9795 with_build_time_tools=
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9797 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9801 with_build_time_tools=
9807 if test -n "$CC_FOR_TARGET"; then
9808 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9809 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9810 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9813 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9814 for ncn_progname in cc gcc; do
9815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9816 set dummy ${ncn_progname}; ac_word=$2
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818 $as_echo_n "checking for $ac_word... " >&6; }
9819 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9822 if test -n "$CC_FOR_TARGET"; then
9823 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9842 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9843 if test -n "$CC_FOR_TARGET"; then
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9845 $as_echo "$CC_FOR_TARGET" >&6; }
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848 $as_echo "no" >&6; }
9855 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9856 for ncn_progname in cc gcc; do
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9858 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9859 if test -x $with_build_time_tools/${ncn_progname}; then
9860 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9862 $as_echo "yes" >&6; }
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9871 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9872 for ncn_progname in cc gcc; do
9873 if test -n "$ncn_target_tool_prefix"; then
9874 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9875 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9877 $as_echo_n "checking for $ac_word... " >&6; }
9878 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9879 $as_echo_n "(cached) " >&6
9881 if test -n "$CC_FOR_TARGET"; then
9882 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888 test -z "$as_dir" && as_dir=.
9889 for ac_exec_ext in '' $ac_executable_extensions; do
9890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9891 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9901 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9902 if test -n "$CC_FOR_TARGET"; then
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9904 $as_echo "$CC_FOR_TARGET" >&6; }
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907 $as_echo "no" >&6; }
9912 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9914 set dummy ${ncn_progname}; ac_word=$2
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916 $as_echo_n "checking for $ac_word... " >&6; }
9917 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9918 $as_echo_n "(cached) " >&6
9920 if test -n "$CC_FOR_TARGET"; then
9921 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9941 if test -n "$CC_FOR_TARGET"; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9943 $as_echo "$CC_FOR_TARGET" >&6; }
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; }
9951 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9955 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9957 if test $build = $target ; then
9960 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9963 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9968 if test -n "$CXX_FOR_TARGET"; then
9969 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9970 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9971 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9974 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9975 for ncn_progname in c++ g++ cxx gxx; do
9976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9977 set dummy ${ncn_progname}; ac_word=$2
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979 $as_echo_n "checking for $ac_word... " >&6; }
9980 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9981 $as_echo_n "(cached) " >&6
9983 if test -n "$CXX_FOR_TARGET"; then
9984 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990 test -z "$as_dir" && as_dir=.
9991 for ac_exec_ext in '' $ac_executable_extensions; do
9992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9993 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10004 if test -n "$CXX_FOR_TARGET"; then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10006 $as_echo "$CXX_FOR_TARGET" >&6; }
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 $as_echo "no" >&6; }
10016 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10017 for ncn_progname in c++ g++ cxx gxx; do
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10019 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10020 if test -x $with_build_time_tools/${ncn_progname}; then
10021 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10023 $as_echo "yes" >&6; }
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10032 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10033 for ncn_progname in c++ g++ cxx gxx; do
10034 if test -n "$ncn_target_tool_prefix"; then
10035 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10036 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10038 $as_echo_n "checking for $ac_word... " >&6; }
10039 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10040 $as_echo_n "(cached) " >&6
10042 if test -n "$CXX_FOR_TARGET"; then
10043 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046 for as_dir in $PATH
10049 test -z "$as_dir" && as_dir=.
10050 for ac_exec_ext in '' $ac_executable_extensions; do
10051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10052 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10063 if test -n "$CXX_FOR_TARGET"; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10065 $as_echo "$CXX_FOR_TARGET" >&6; }
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068 $as_echo "no" >&6; }
10073 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10075 set dummy ${ncn_progname}; ac_word=$2
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077 $as_echo_n "checking for $ac_word... " >&6; }
10078 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10079 $as_echo_n "(cached) " >&6
10081 if test -n "$CXX_FOR_TARGET"; then
10082 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085 for as_dir in $PATH
10088 test -z "$as_dir" && as_dir=.
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10091 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10101 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10102 if test -n "$CXX_FOR_TARGET"; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10104 $as_echo "$CXX_FOR_TARGET" >&6; }
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107 $as_echo "no" >&6; }
10112 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10116 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10117 set dummy c++ g++ cxx gxx
10118 if test $build = $target ; then
10119 CXX_FOR_TARGET="$2"
10121 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10124 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10129 if test -n "$GCC_FOR_TARGET"; then
10130 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10131 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10132 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10135 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10136 for ncn_progname in gcc; do
10137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10138 set dummy ${ncn_progname}; ac_word=$2
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140 $as_echo_n "checking for $ac_word... " >&6; }
10141 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10142 $as_echo_n "(cached) " >&6
10144 if test -n "$GCC_FOR_TARGET"; then
10145 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148 for as_dir in $PATH
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
10153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10154 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10165 if test -n "$GCC_FOR_TARGET"; then
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10167 $as_echo "$GCC_FOR_TARGET" >&6; }
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170 $as_echo "no" >&6; }
10177 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10178 for ncn_progname in gcc; do
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10180 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10181 if test -x $with_build_time_tools/${ncn_progname}; then
10182 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10184 $as_echo "yes" >&6; }
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10193 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10194 for ncn_progname in gcc; do
10195 if test -n "$ncn_target_tool_prefix"; then
10196 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10197 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10201 $as_echo_n "(cached) " >&6
10203 if test -n "$GCC_FOR_TARGET"; then
10204 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10207 for as_dir in $PATH
10210 test -z "$as_dir" && as_dir=.
10211 for ac_exec_ext in '' $ac_executable_extensions; do
10212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10213 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10223 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10224 if test -n "$GCC_FOR_TARGET"; then
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10226 $as_echo "$GCC_FOR_TARGET" >&6; }
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229 $as_echo "no" >&6; }
10234 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10236 set dummy ${ncn_progname}; ac_word=$2
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10238 $as_echo_n "checking for $ac_word... " >&6; }
10239 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10240 $as_echo_n "(cached) " >&6
10242 if test -n "$GCC_FOR_TARGET"; then
10243 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10246 for as_dir in $PATH
10249 test -z "$as_dir" && as_dir=.
10250 for ac_exec_ext in '' $ac_executable_extensions; do
10251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10252 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10262 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10263 if test -n "$GCC_FOR_TARGET"; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10265 $as_echo "$GCC_FOR_TARGET" >&6; }
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 $as_echo "no" >&6; }
10273 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10277 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10278 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10280 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10285 if test -n "$GCJ_FOR_TARGET"; then
10286 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10287 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10288 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10291 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10292 for ncn_progname in gcj; do
10293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10294 set dummy ${ncn_progname}; ac_word=$2
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10296 $as_echo_n "checking for $ac_word... " >&6; }
10297 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10298 $as_echo_n "(cached) " >&6
10300 if test -n "$GCJ_FOR_TARGET"; then
10301 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304 for as_dir in $PATH
10307 test -z "$as_dir" && as_dir=.
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10310 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10321 if test -n "$GCJ_FOR_TARGET"; then
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10323 $as_echo "$GCJ_FOR_TARGET" >&6; }
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326 $as_echo "no" >&6; }
10333 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10334 for ncn_progname in gcj; do
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10336 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10337 if test -x $with_build_time_tools/${ncn_progname}; then
10338 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10340 $as_echo "yes" >&6; }
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10349 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10350 for ncn_progname in gcj; do
10351 if test -n "$ncn_target_tool_prefix"; then
10352 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10353 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355 $as_echo_n "checking for $ac_word... " >&6; }
10356 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10359 if test -n "$GCJ_FOR_TARGET"; then
10360 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363 for as_dir in $PATH
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10369 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10380 if test -n "$GCJ_FOR_TARGET"; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10382 $as_echo "$GCJ_FOR_TARGET" >&6; }
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385 $as_echo "no" >&6; }
10390 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10392 set dummy ${ncn_progname}; ac_word=$2
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394 $as_echo_n "checking for $ac_word... " >&6; }
10395 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10398 if test -n "$GCJ_FOR_TARGET"; then
10399 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402 for as_dir in $PATH
10405 test -z "$as_dir" && as_dir=.
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10408 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10419 if test -n "$GCJ_FOR_TARGET"; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10421 $as_echo "$GCJ_FOR_TARGET" >&6; }
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10429 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10433 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10435 if test $build = $target ; then
10436 GCJ_FOR_TARGET="$2"
10438 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10441 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10446 if test -n "$GFORTRAN_FOR_TARGET"; then
10447 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10448 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10449 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10452 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10453 for ncn_progname in gfortran; do
10454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10455 set dummy ${ncn_progname}; ac_word=$2
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457 $as_echo_n "checking for $ac_word... " >&6; }
10458 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10461 if test -n "$GFORTRAN_FOR_TARGET"; then
10462 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465 for as_dir in $PATH
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10471 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10482 if test -n "$GFORTRAN_FOR_TARGET"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10484 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487 $as_echo "no" >&6; }
10494 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10495 for ncn_progname in gfortran; do
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10497 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10498 if test -x $with_build_time_tools/${ncn_progname}; then
10499 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10501 $as_echo "yes" >&6; }
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10510 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10511 for ncn_progname in gfortran; do
10512 if test -n "$ncn_target_tool_prefix"; then
10513 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10514 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516 $as_echo_n "checking for $ac_word... " >&6; }
10517 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10518 $as_echo_n "(cached) " >&6
10520 if test -n "$GFORTRAN_FOR_TARGET"; then
10521 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524 for as_dir in $PATH
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10530 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10541 if test -n "$GFORTRAN_FOR_TARGET"; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10543 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; }
10551 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10553 set dummy ${ncn_progname}; ac_word=$2
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555 $as_echo_n "checking for $ac_word... " >&6; }
10556 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10557 $as_echo_n "(cached) " >&6
10559 if test -n "$GFORTRAN_FOR_TARGET"; then
10560 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563 for as_dir in $PATH
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10569 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10580 if test -n "$GFORTRAN_FOR_TARGET"; then
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10582 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 $as_echo "no" >&6; }
10590 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10594 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10596 if test $build = $target ; then
10597 GFORTRAN_FOR_TARGET="$2"
10599 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10602 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10607 if test -n "$GOC_FOR_TARGET"; then
10608 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10609 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10610 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10613 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10614 for ncn_progname in gccgo; do
10615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10616 set dummy ${ncn_progname}; ac_word=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
10622 if test -n "$GOC_FOR_TARGET"; then
10623 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626 for as_dir in $PATH
10629 test -z "$as_dir" && as_dir=.
10630 for ac_exec_ext in '' $ac_executable_extensions; do
10631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10632 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10643 if test -n "$GOC_FOR_TARGET"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10645 $as_echo "$GOC_FOR_TARGET" >&6; }
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 $as_echo "no" >&6; }
10655 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10656 for ncn_progname in gccgo; do
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10658 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10659 if test -x $with_build_time_tools/${ncn_progname}; then
10660 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10662 $as_echo "yes" >&6; }
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10671 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10672 for ncn_progname in gccgo; do
10673 if test -n "$ncn_target_tool_prefix"; then
10674 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10675 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 $as_echo_n "checking for $ac_word... " >&6; }
10678 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10679 $as_echo_n "(cached) " >&6
10681 if test -n "$GOC_FOR_TARGET"; then
10682 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685 for as_dir in $PATH
10688 test -z "$as_dir" && as_dir=.
10689 for ac_exec_ext in '' $ac_executable_extensions; do
10690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10691 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10702 if test -n "$GOC_FOR_TARGET"; then
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10704 $as_echo "$GOC_FOR_TARGET" >&6; }
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; }
10712 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10714 set dummy ${ncn_progname}; ac_word=$2
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10716 $as_echo_n "checking for $ac_word... " >&6; }
10717 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10718 $as_echo_n "(cached) " >&6
10720 if test -n "$GOC_FOR_TARGET"; then
10721 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10724 for as_dir in $PATH
10727 test -z "$as_dir" && as_dir=.
10728 for ac_exec_ext in '' $ac_executable_extensions; do
10729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10730 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10740 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10741 if test -n "$GOC_FOR_TARGET"; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10743 $as_echo "$GOC_FOR_TARGET" >&6; }
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746 $as_echo "no" >&6; }
10751 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10755 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10757 if test $build = $target ; then
10758 GOC_FOR_TARGET="$2"
10760 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10763 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10768 cat > conftest.c << \EOF
10773 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10774 have_gcc_for_target=yes
10776 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10777 have_gcc_for_target=no
10784 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10785 if test -n "$with_build_time_tools"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10787 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10788 if test -x $with_build_time_tools/ar; then
10789 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10790 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10792 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10797 elif test $build != $host && test $have_gcc_for_target = yes; then
10798 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10799 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10800 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10803 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10804 # Extract the first word of "ar", so it can be a program name with args.
10805 set dummy ar; ac_word=$2
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10807 $as_echo_n "checking for $ac_word... " >&6; }
10808 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10811 case $AR_FOR_TARGET in
10813 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $gcc_cv_tool_dirs
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10823 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10834 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10835 if test -n "$AR_FOR_TARGET"; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10837 $as_echo "$AR_FOR_TARGET" >&6; }
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10845 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10848 if test -n "$AR_FOR_TARGET"; then
10849 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10850 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10851 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10854 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10855 for ncn_progname in ar; do
10856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10857 set dummy ${ncn_progname}; ac_word=$2
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859 $as_echo_n "checking for $ac_word... " >&6; }
10860 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10863 if test -n "$AR_FOR_TARGET"; then
10864 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867 for as_dir in $PATH
10870 test -z "$as_dir" && as_dir=.
10871 for ac_exec_ext in '' $ac_executable_extensions; do
10872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10873 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10884 if test -n "$AR_FOR_TARGET"; then
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10886 $as_echo "$AR_FOR_TARGET" >&6; }
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10889 $as_echo "no" >&6; }
10896 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10897 for ncn_progname in ar; do
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10899 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10900 if test -x $with_build_time_tools/${ncn_progname}; then
10901 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10903 $as_echo "yes" >&6; }
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10912 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10913 for ncn_progname in ar; do
10914 if test -n "$ncn_target_tool_prefix"; then
10915 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10916 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918 $as_echo_n "checking for $ac_word... " >&6; }
10919 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
10922 if test -n "$AR_FOR_TARGET"; then
10923 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
10931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10932 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10942 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10943 if test -n "$AR_FOR_TARGET"; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10945 $as_echo "$AR_FOR_TARGET" >&6; }
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948 $as_echo "no" >&6; }
10953 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10955 set dummy ${ncn_progname}; ac_word=$2
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10957 $as_echo_n "checking for $ac_word... " >&6; }
10958 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10959 $as_echo_n "(cached) " >&6
10961 if test -n "$AR_FOR_TARGET"; then
10962 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965 for as_dir in $PATH
10968 test -z "$as_dir" && as_dir=.
10969 for ac_exec_ext in '' $ac_executable_extensions; do
10970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10971 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10981 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10982 if test -n "$AR_FOR_TARGET"; then
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10984 $as_echo "$AR_FOR_TARGET" >&6; }
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10987 $as_echo "no" >&6; }
10992 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10996 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10998 if test $build = $target ; then
11001 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11004 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11008 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11014 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11015 if test -n "$with_build_time_tools"; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11017 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11018 if test -x $with_build_time_tools/as; then
11019 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11020 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11022 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11027 elif test $build != $host && test $have_gcc_for_target = yes; then
11028 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11029 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11030 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11033 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11034 # Extract the first word of "as", so it can be a program name with args.
11035 set dummy as; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11039 $as_echo_n "(cached) " >&6
11041 case $AS_FOR_TARGET in
11043 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in $gcc_cv_tool_dirs
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11053 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11064 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11065 if test -n "$AS_FOR_TARGET"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11067 $as_echo "$AS_FOR_TARGET" >&6; }
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11075 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11078 if test -n "$AS_FOR_TARGET"; then
11079 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11080 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11081 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11084 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11085 for ncn_progname in as; do
11086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11087 set dummy ${ncn_progname}; ac_word=$2
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089 $as_echo_n "checking for $ac_word... " >&6; }
11090 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11091 $as_echo_n "(cached) " >&6
11093 if test -n "$AS_FOR_TARGET"; then
11094 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097 for as_dir in $PATH
11100 test -z "$as_dir" && as_dir=.
11101 for ac_exec_ext in '' $ac_executable_extensions; do
11102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11103 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11114 if test -n "$AS_FOR_TARGET"; then
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11116 $as_echo "$AS_FOR_TARGET" >&6; }
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11119 $as_echo "no" >&6; }
11126 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11127 for ncn_progname in as; do
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11129 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11130 if test -x $with_build_time_tools/${ncn_progname}; then
11131 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11133 $as_echo "yes" >&6; }
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11142 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11143 for ncn_progname in as; do
11144 if test -n "$ncn_target_tool_prefix"; then
11145 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11146 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148 $as_echo_n "checking for $ac_word... " >&6; }
11149 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11150 $as_echo_n "(cached) " >&6
11152 if test -n "$AS_FOR_TARGET"; then
11153 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in $PATH
11159 test -z "$as_dir" && as_dir=.
11160 for ac_exec_ext in '' $ac_executable_extensions; do
11161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11162 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11173 if test -n "$AS_FOR_TARGET"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11175 $as_echo "$AS_FOR_TARGET" >&6; }
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11183 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11185 set dummy ${ncn_progname}; ac_word=$2
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187 $as_echo_n "checking for $ac_word... " >&6; }
11188 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11189 $as_echo_n "(cached) " >&6
11191 if test -n "$AS_FOR_TARGET"; then
11192 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195 for as_dir in $PATH
11198 test -z "$as_dir" && as_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11201 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11212 if test -n "$AS_FOR_TARGET"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11214 $as_echo "$AS_FOR_TARGET" >&6; }
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217 $as_echo "no" >&6; }
11222 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11226 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11228 if test $build = $target ; then
11231 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11234 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11238 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11244 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11245 if test -n "$with_build_time_tools"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11247 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11248 if test -x $with_build_time_tools/dlltool; then
11249 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11250 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11252 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11257 elif test $build != $host && test $have_gcc_for_target = yes; then
11258 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11259 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11260 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11263 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11264 # Extract the first word of "dlltool", so it can be a program name with args.
11265 set dummy dlltool; ac_word=$2
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11269 $as_echo_n "(cached) " >&6
11271 case $DLLTOOL_FOR_TARGET in
11273 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277 for as_dir in $gcc_cv_tool_dirs
11280 test -z "$as_dir" && as_dir=.
11281 for ac_exec_ext in '' $ac_executable_extensions; do
11282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11283 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11294 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11295 if test -n "$DLLTOOL_FOR_TARGET"; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11297 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300 $as_echo "no" >&6; }
11305 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11308 if test -n "$DLLTOOL_FOR_TARGET"; then
11309 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11310 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11311 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11314 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11315 for ncn_progname in dlltool; do
11316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11317 set dummy ${ncn_progname}; ac_word=$2
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319 $as_echo_n "checking for $ac_word... " >&6; }
11320 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11321 $as_echo_n "(cached) " >&6
11323 if test -n "$DLLTOOL_FOR_TARGET"; then
11324 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327 for as_dir in $PATH
11330 test -z "$as_dir" && as_dir=.
11331 for ac_exec_ext in '' $ac_executable_extensions; do
11332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11333 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11343 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11344 if test -n "$DLLTOOL_FOR_TARGET"; then
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11346 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11349 $as_echo "no" >&6; }
11356 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11357 for ncn_progname in dlltool; do
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11359 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11360 if test -x $with_build_time_tools/${ncn_progname}; then
11361 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11363 $as_echo "yes" >&6; }
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11372 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11373 for ncn_progname in dlltool; do
11374 if test -n "$ncn_target_tool_prefix"; then
11375 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11376 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11382 if test -n "$DLLTOOL_FOR_TARGET"; then
11383 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11392 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11403 if test -n "$DLLTOOL_FOR_TARGET"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11405 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11413 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11415 set dummy ${ncn_progname}; ac_word=$2
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11417 $as_echo_n "checking for $ac_word... " >&6; }
11418 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11419 $as_echo_n "(cached) " >&6
11421 if test -n "$DLLTOOL_FOR_TARGET"; then
11422 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425 for as_dir in $PATH
11428 test -z "$as_dir" && as_dir=.
11429 for ac_exec_ext in '' $ac_executable_extensions; do
11430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11431 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11441 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11442 if test -n "$DLLTOOL_FOR_TARGET"; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11444 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; }
11452 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11456 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11458 if test $build = $target ; then
11459 DLLTOOL_FOR_TARGET="$2"
11461 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11464 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11468 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11474 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11475 if test -n "$with_build_time_tools"; then
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11477 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11478 if test -x $with_build_time_tools/ld; then
11479 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11480 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11482 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11487 elif test $build != $host && test $have_gcc_for_target = yes; then
11488 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11489 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11490 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11493 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11494 # Extract the first word of "ld", so it can be a program name with args.
11495 set dummy ld; ac_word=$2
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11497 $as_echo_n "checking for $ac_word... " >&6; }
11498 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11499 $as_echo_n "(cached) " >&6
11501 case $LD_FOR_TARGET in
11503 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $gcc_cv_tool_dirs
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11513 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11524 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11525 if test -n "$LD_FOR_TARGET"; then
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11527 $as_echo "$LD_FOR_TARGET" >&6; }
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530 $as_echo "no" >&6; }
11535 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11538 if test -n "$LD_FOR_TARGET"; then
11539 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11540 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11541 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11544 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11545 for ncn_progname in ld; do
11546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11547 set dummy ${ncn_progname}; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11553 if test -n "$LD_FOR_TARGET"; then
11554 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
11562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11563 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11574 if test -n "$LD_FOR_TARGET"; then
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11576 $as_echo "$LD_FOR_TARGET" >&6; }
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11586 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11587 for ncn_progname in ld; do
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11589 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11590 if test -x $with_build_time_tools/${ncn_progname}; then
11591 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11593 $as_echo "yes" >&6; }
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; }
11602 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11603 for ncn_progname in ld; do
11604 if test -n "$ncn_target_tool_prefix"; then
11605 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11606 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11608 $as_echo_n "checking for $ac_word... " >&6; }
11609 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
11612 if test -n "$LD_FOR_TARGET"; then
11613 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616 for as_dir in $PATH
11619 test -z "$as_dir" && as_dir=.
11620 for ac_exec_ext in '' $ac_executable_extensions; do
11621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11622 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11633 if test -n "$LD_FOR_TARGET"; then
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11635 $as_echo "$LD_FOR_TARGET" >&6; }
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11638 $as_echo "no" >&6; }
11643 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11645 set dummy ${ncn_progname}; ac_word=$2
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647 $as_echo_n "checking for $ac_word... " >&6; }
11648 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11649 $as_echo_n "(cached) " >&6
11651 if test -n "$LD_FOR_TARGET"; then
11652 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11661 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11671 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11672 if test -n "$LD_FOR_TARGET"; then
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11674 $as_echo "$LD_FOR_TARGET" >&6; }
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677 $as_echo "no" >&6; }
11682 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11686 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11688 if test $build = $target ; then
11691 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11694 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11698 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11704 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11705 if test -n "$with_build_time_tools"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11707 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11708 if test -x $with_build_time_tools/lipo; then
11709 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11710 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11712 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11717 elif test $build != $host && test $have_gcc_for_target = yes; then
11718 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11719 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11720 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11723 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11724 # Extract the first word of "lipo", so it can be a program name with args.
11725 set dummy lipo; ac_word=$2
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11727 $as_echo_n "checking for $ac_word... " >&6; }
11728 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11729 $as_echo_n "(cached) " >&6
11731 case $LIPO_FOR_TARGET in
11733 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737 for as_dir in $gcc_cv_tool_dirs
11740 test -z "$as_dir" && as_dir=.
11741 for ac_exec_ext in '' $ac_executable_extensions; do
11742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11743 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11754 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11755 if test -n "$LIPO_FOR_TARGET"; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11757 $as_echo "$LIPO_FOR_TARGET" >&6; }
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; }
11765 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11768 if test -n "$LIPO_FOR_TARGET"; then
11769 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11770 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11771 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11774 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11775 for ncn_progname in lipo; do
11776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11777 set dummy ${ncn_progname}; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11781 $as_echo_n "(cached) " >&6
11783 if test -n "$LIPO_FOR_TARGET"; then
11784 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787 for as_dir in $PATH
11790 test -z "$as_dir" && as_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
11792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11793 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11804 if test -n "$LIPO_FOR_TARGET"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11806 $as_echo "$LIPO_FOR_TARGET" >&6; }
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11816 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11817 for ncn_progname in lipo; do
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11819 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11820 if test -x $with_build_time_tools/${ncn_progname}; then
11821 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11823 $as_echo "yes" >&6; }
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11832 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11833 for ncn_progname in lipo; do
11834 if test -n "$ncn_target_tool_prefix"; then
11835 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11836 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838 $as_echo_n "checking for $ac_word... " >&6; }
11839 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11842 if test -n "$LIPO_FOR_TARGET"; then
11843 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11849 test -z "$as_dir" && as_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11852 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11863 if test -n "$LIPO_FOR_TARGET"; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11865 $as_echo "$LIPO_FOR_TARGET" >&6; }
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11873 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11875 set dummy ${ncn_progname}; ac_word=$2
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11877 $as_echo_n "checking for $ac_word... " >&6; }
11878 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11879 $as_echo_n "(cached) " >&6
11881 if test -n "$LIPO_FOR_TARGET"; then
11882 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885 for as_dir in $PATH
11888 test -z "$as_dir" && as_dir=.
11889 for ac_exec_ext in '' $ac_executable_extensions; do
11890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11891 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11902 if test -n "$LIPO_FOR_TARGET"; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11904 $as_echo "$LIPO_FOR_TARGET" >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11912 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11916 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11918 if test $build = $target ; then
11919 LIPO_FOR_TARGET="$2"
11921 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11924 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11928 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11934 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11935 if test -n "$with_build_time_tools"; then
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11937 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11938 if test -x $with_build_time_tools/nm; then
11939 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11940 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11942 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11947 elif test $build != $host && test $have_gcc_for_target = yes; then
11948 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11949 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11950 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11953 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11954 # Extract the first word of "nm", so it can be a program name with args.
11955 set dummy nm; ac_word=$2
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11957 $as_echo_n "checking for $ac_word... " >&6; }
11958 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11959 $as_echo_n "(cached) " >&6
11961 case $NM_FOR_TARGET in
11963 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $gcc_cv_tool_dirs
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11973 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11984 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11985 if test -n "$NM_FOR_TARGET"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11987 $as_echo "$NM_FOR_TARGET" >&6; }
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11995 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11998 if test -n "$NM_FOR_TARGET"; then
11999 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12000 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12001 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12004 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12005 for ncn_progname in nm; do
12006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12007 set dummy ${ncn_progname}; ac_word=$2
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009 $as_echo_n "checking for $ac_word... " >&6; }
12010 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12011 $as_echo_n "(cached) " >&6
12013 if test -n "$NM_FOR_TARGET"; then
12014 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017 for as_dir in $PATH
12020 test -z "$as_dir" && as_dir=.
12021 for ac_exec_ext in '' $ac_executable_extensions; do
12022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12023 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12034 if test -n "$NM_FOR_TARGET"; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12036 $as_echo "$NM_FOR_TARGET" >&6; }
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039 $as_echo "no" >&6; }
12046 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12047 for ncn_progname in nm; do
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12049 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12050 if test -x $with_build_time_tools/${ncn_progname}; then
12051 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12053 $as_echo "yes" >&6; }
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057 $as_echo "no" >&6; }
12062 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12063 for ncn_progname in nm; do
12064 if test -n "$ncn_target_tool_prefix"; then
12065 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12066 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12068 $as_echo_n "checking for $ac_word... " >&6; }
12069 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
12072 if test -n "$NM_FOR_TARGET"; then
12073 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076 for as_dir in $PATH
12079 test -z "$as_dir" && as_dir=.
12080 for ac_exec_ext in '' $ac_executable_extensions; do
12081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12082 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12092 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12093 if test -n "$NM_FOR_TARGET"; then
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12095 $as_echo "$NM_FOR_TARGET" >&6; }
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098 $as_echo "no" >&6; }
12103 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12105 set dummy ${ncn_progname}; ac_word=$2
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
12111 if test -n "$NM_FOR_TARGET"; then
12112 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115 for as_dir in $PATH
12118 test -z "$as_dir" && as_dir=.
12119 for ac_exec_ext in '' $ac_executable_extensions; do
12120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12121 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12131 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12132 if test -n "$NM_FOR_TARGET"; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12134 $as_echo "$NM_FOR_TARGET" >&6; }
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12142 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12146 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12148 if test $build = $target ; then
12151 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12154 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12158 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12164 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12165 if test -n "$with_build_time_tools"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12167 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12168 if test -x $with_build_time_tools/objdump; then
12169 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12170 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12172 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12177 elif test $build != $host && test $have_gcc_for_target = yes; then
12178 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12179 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12180 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12183 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12184 # Extract the first word of "objdump", so it can be a program name with args.
12185 set dummy objdump; ac_word=$2
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187 $as_echo_n "checking for $ac_word... " >&6; }
12188 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12189 $as_echo_n "(cached) " >&6
12191 case $OBJDUMP_FOR_TARGET in
12193 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197 for as_dir in $gcc_cv_tool_dirs
12200 test -z "$as_dir" && as_dir=.
12201 for ac_exec_ext in '' $ac_executable_extensions; do
12202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12203 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12214 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12215 if test -n "$OBJDUMP_FOR_TARGET"; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12217 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12225 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12228 if test -n "$OBJDUMP_FOR_TARGET"; then
12229 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12230 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12231 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12234 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12235 for ncn_progname in objdump; do
12236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12237 set dummy ${ncn_progname}; ac_word=$2
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239 $as_echo_n "checking for $ac_word... " >&6; }
12240 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12241 $as_echo_n "(cached) " >&6
12243 if test -n "$OBJDUMP_FOR_TARGET"; then
12244 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12253 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12264 if test -n "$OBJDUMP_FOR_TARGET"; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12266 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12276 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12277 for ncn_progname in objdump; do
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12279 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12280 if test -x $with_build_time_tools/${ncn_progname}; then
12281 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12283 $as_echo "yes" >&6; }
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12292 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12293 for ncn_progname in objdump; do
12294 if test -n "$ncn_target_tool_prefix"; then
12295 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12296 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298 $as_echo_n "checking for $ac_word... " >&6; }
12299 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12300 $as_echo_n "(cached) " >&6
12302 if test -n "$OBJDUMP_FOR_TARGET"; then
12303 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12323 if test -n "$OBJDUMP_FOR_TARGET"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12325 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12333 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12335 set dummy ${ncn_progname}; ac_word=$2
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12337 $as_echo_n "checking for $ac_word... " >&6; }
12338 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
12341 if test -n "$OBJDUMP_FOR_TARGET"; then
12342 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12348 test -z "$as_dir" && as_dir=.
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12351 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12362 if test -n "$OBJDUMP_FOR_TARGET"; then
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12364 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367 $as_echo "no" >&6; }
12372 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12376 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12378 if test $build = $target ; then
12379 OBJDUMP_FOR_TARGET="$2"
12381 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12384 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12388 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12394 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12395 if test -n "$with_build_time_tools"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12397 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12398 if test -x $with_build_time_tools/ranlib; then
12399 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12400 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12402 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12407 elif test $build != $host && test $have_gcc_for_target = yes; then
12408 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12409 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12410 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12413 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12414 # Extract the first word of "ranlib", so it can be a program name with args.
12415 set dummy ranlib; ac_word=$2
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12417 $as_echo_n "checking for $ac_word... " >&6; }
12418 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12419 $as_echo_n "(cached) " >&6
12421 case $RANLIB_FOR_TARGET in
12423 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12427 for as_dir in $gcc_cv_tool_dirs
12430 test -z "$as_dir" && as_dir=.
12431 for ac_exec_ext in '' $ac_executable_extensions; do
12432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12433 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12444 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12445 if test -n "$RANLIB_FOR_TARGET"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12447 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450 $as_echo "no" >&6; }
12455 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12458 if test -n "$RANLIB_FOR_TARGET"; then
12459 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12460 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12461 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12464 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12465 for ncn_progname in ranlib; do
12466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12467 set dummy ${ncn_progname}; ac_word=$2
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 $as_echo_n "checking for $ac_word... " >&6; }
12470 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12471 $as_echo_n "(cached) " >&6
12473 if test -n "$RANLIB_FOR_TARGET"; then
12474 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12483 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12493 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12494 if test -n "$RANLIB_FOR_TARGET"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12496 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12506 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12507 for ncn_progname in ranlib; do
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12509 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12510 if test -x $with_build_time_tools/${ncn_progname}; then
12511 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12513 $as_echo "yes" >&6; }
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12522 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12523 for ncn_progname in ranlib; do
12524 if test -n "$ncn_target_tool_prefix"; then
12525 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12526 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528 $as_echo_n "checking for $ac_word... " >&6; }
12529 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12530 $as_echo_n "(cached) " >&6
12532 if test -n "$RANLIB_FOR_TARGET"; then
12533 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536 for as_dir in $PATH
12539 test -z "$as_dir" && as_dir=.
12540 for ac_exec_ext in '' $ac_executable_extensions; do
12541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12542 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12553 if test -n "$RANLIB_FOR_TARGET"; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12555 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12563 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12565 set dummy ${ncn_progname}; ac_word=$2
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12567 $as_echo_n "checking for $ac_word... " >&6; }
12568 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
12571 if test -n "$RANLIB_FOR_TARGET"; then
12572 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12575 for as_dir in $PATH
12578 test -z "$as_dir" && as_dir=.
12579 for ac_exec_ext in '' $ac_executable_extensions; do
12580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12581 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12592 if test -n "$RANLIB_FOR_TARGET"; then
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12594 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 $as_echo "no" >&6; }
12602 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12606 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12608 if test $build = $target ; then
12609 RANLIB_FOR_TARGET="$2"
12611 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12614 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12618 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12624 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12625 if test -n "$with_build_time_tools"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12627 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12628 if test -x $with_build_time_tools/readelf; then
12629 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12630 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12632 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12637 elif test $build != $host && test $have_gcc_for_target = yes; then
12638 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12639 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12640 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12643 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12644 # Extract the first word of "readelf", so it can be a program name with args.
12645 set dummy readelf; ac_word=$2
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647 $as_echo_n "checking for $ac_word... " >&6; }
12648 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12649 $as_echo_n "(cached) " >&6
12651 case $READELF_FOR_TARGET in
12653 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657 for as_dir in $gcc_cv_tool_dirs
12660 test -z "$as_dir" && as_dir=.
12661 for ac_exec_ext in '' $ac_executable_extensions; do
12662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12663 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12675 if test -n "$READELF_FOR_TARGET"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12677 $as_echo "$READELF_FOR_TARGET" >&6; }
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12685 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12688 if test -n "$READELF_FOR_TARGET"; then
12689 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12690 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12691 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12694 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12695 for ncn_progname in readelf; do
12696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12697 set dummy ${ncn_progname}; ac_word=$2
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699 $as_echo_n "checking for $ac_word... " >&6; }
12700 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12701 $as_echo_n "(cached) " >&6
12703 if test -n "$READELF_FOR_TARGET"; then
12704 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707 for as_dir in $PATH
12710 test -z "$as_dir" && as_dir=.
12711 for ac_exec_ext in '' $ac_executable_extensions; do
12712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12713 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12723 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12724 if test -n "$READELF_FOR_TARGET"; then
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12726 $as_echo "$READELF_FOR_TARGET" >&6; }
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12736 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12737 for ncn_progname in readelf; do
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12739 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12740 if test -x $with_build_time_tools/${ncn_progname}; then
12741 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12743 $as_echo "yes" >&6; }
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747 $as_echo "no" >&6; }
12752 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12753 for ncn_progname in readelf; do
12754 if test -n "$ncn_target_tool_prefix"; then
12755 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12756 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12760 $as_echo_n "(cached) " >&6
12762 if test -n "$READELF_FOR_TARGET"; then
12763 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12772 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12782 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12783 if test -n "$READELF_FOR_TARGET"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12785 $as_echo "$READELF_FOR_TARGET" >&6; }
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12793 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12795 set dummy ${ncn_progname}; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12799 $as_echo_n "(cached) " >&6
12801 if test -n "$READELF_FOR_TARGET"; then
12802 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12821 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12822 if test -n "$READELF_FOR_TARGET"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12824 $as_echo "$READELF_FOR_TARGET" >&6; }
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12832 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12836 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12838 if test $build = $target ; then
12839 READELF_FOR_TARGET="$2"
12841 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12844 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12848 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12854 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12855 if test -n "$with_build_time_tools"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12857 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12858 if test -x $with_build_time_tools/strip; then
12859 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12860 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12862 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12867 elif test $build != $host && test $have_gcc_for_target = yes; then
12868 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12869 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12870 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12873 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12874 # Extract the first word of "strip", so it can be a program name with args.
12875 set dummy strip; ac_word=$2
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12877 $as_echo_n "checking for $ac_word... " >&6; }
12878 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12879 $as_echo_n "(cached) " >&6
12881 case $STRIP_FOR_TARGET in
12883 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887 for as_dir in $gcc_cv_tool_dirs
12890 test -z "$as_dir" && as_dir=.
12891 for ac_exec_ext in '' $ac_executable_extensions; do
12892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12893 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12905 if test -n "$STRIP_FOR_TARGET"; then
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12907 $as_echo "$STRIP_FOR_TARGET" >&6; }
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910 $as_echo "no" >&6; }
12915 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12918 if test -n "$STRIP_FOR_TARGET"; then
12919 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12920 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12921 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12924 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12925 for ncn_progname in strip; do
12926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12927 set dummy ${ncn_progname}; ac_word=$2
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12929 $as_echo_n "checking for $ac_word... " >&6; }
12930 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12931 $as_echo_n "(cached) " >&6
12933 if test -n "$STRIP_FOR_TARGET"; then
12934 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 for as_dir in $PATH
12940 test -z "$as_dir" && as_dir=.
12941 for ac_exec_ext in '' $ac_executable_extensions; do
12942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12943 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12953 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12954 if test -n "$STRIP_FOR_TARGET"; then
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12956 $as_echo "$STRIP_FOR_TARGET" >&6; }
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 $as_echo "no" >&6; }
12966 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12967 for ncn_progname in strip; do
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12969 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12970 if test -x $with_build_time_tools/${ncn_progname}; then
12971 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12973 $as_echo "yes" >&6; }
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12977 $as_echo "no" >&6; }
12982 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12983 for ncn_progname in strip; do
12984 if test -n "$ncn_target_tool_prefix"; then
12985 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12986 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12990 $as_echo_n "(cached) " >&6
12992 if test -n "$STRIP_FOR_TARGET"; then
12993 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12999 test -z "$as_dir" && as_dir=.
13000 for ac_exec_ext in '' $ac_executable_extensions; do
13001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13002 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13013 if test -n "$STRIP_FOR_TARGET"; then
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13015 $as_echo "$STRIP_FOR_TARGET" >&6; }
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13023 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13025 set dummy ${ncn_progname}; ac_word=$2
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13027 $as_echo_n "checking for $ac_word... " >&6; }
13028 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13029 $as_echo_n "(cached) " >&6
13031 if test -n "$STRIP_FOR_TARGET"; then
13032 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035 for as_dir in $PATH
13038 test -z "$as_dir" && as_dir=.
13039 for ac_exec_ext in '' $ac_executable_extensions; do
13040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13041 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13052 if test -n "$STRIP_FOR_TARGET"; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13054 $as_echo "$STRIP_FOR_TARGET" >&6; }
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057 $as_echo "no" >&6; }
13062 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13066 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13068 if test $build = $target ; then
13069 STRIP_FOR_TARGET="$2"
13071 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13074 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13078 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13084 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13085 if test -n "$with_build_time_tools"; then
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13087 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13088 if test -x $with_build_time_tools/windres; then
13089 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13090 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13092 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13097 elif test $build != $host && test $have_gcc_for_target = yes; then
13098 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13099 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13100 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13103 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13104 # Extract the first word of "windres", so it can be a program name with args.
13105 set dummy windres; ac_word=$2
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107 $as_echo_n "checking for $ac_word... " >&6; }
13108 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13109 $as_echo_n "(cached) " >&6
13111 case $WINDRES_FOR_TARGET in
13113 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117 for as_dir in $gcc_cv_tool_dirs
13120 test -z "$as_dir" && as_dir=.
13121 for ac_exec_ext in '' $ac_executable_extensions; do
13122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13123 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13134 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13135 if test -n "$WINDRES_FOR_TARGET"; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13137 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140 $as_echo "no" >&6; }
13145 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13148 if test -n "$WINDRES_FOR_TARGET"; then
13149 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13150 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13151 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13154 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13155 for ncn_progname in windres; do
13156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13157 set dummy ${ncn_progname}; ac_word=$2
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159 $as_echo_n "checking for $ac_word... " >&6; }
13160 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13161 $as_echo_n "(cached) " >&6
13163 if test -n "$WINDRES_FOR_TARGET"; then
13164 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13173 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13184 if test -n "$WINDRES_FOR_TARGET"; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13186 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13196 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13197 for ncn_progname in windres; do
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13199 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13200 if test -x $with_build_time_tools/${ncn_progname}; then
13201 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13203 $as_echo "yes" >&6; }
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13212 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13213 for ncn_progname in windres; do
13214 if test -n "$ncn_target_tool_prefix"; then
13215 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13216 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13218 $as_echo_n "checking for $ac_word... " >&6; }
13219 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13220 $as_echo_n "(cached) " >&6
13222 if test -n "$WINDRES_FOR_TARGET"; then
13223 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13229 test -z "$as_dir" && as_dir=.
13230 for ac_exec_ext in '' $ac_executable_extensions; do
13231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13232 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13243 if test -n "$WINDRES_FOR_TARGET"; then
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13245 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248 $as_echo "no" >&6; }
13253 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13255 set dummy ${ncn_progname}; ac_word=$2
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13257 $as_echo_n "checking for $ac_word... " >&6; }
13258 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13259 $as_echo_n "(cached) " >&6
13261 if test -n "$WINDRES_FOR_TARGET"; then
13262 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13265 for as_dir in $PATH
13268 test -z "$as_dir" && as_dir=.
13269 for ac_exec_ext in '' $ac_executable_extensions; do
13270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13271 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13282 if test -n "$WINDRES_FOR_TARGET"; then
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13284 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13292 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13296 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13298 if test $build = $target ; then
13299 WINDRES_FOR_TARGET="$2"
13301 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13304 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13308 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13314 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13315 if test -n "$with_build_time_tools"; then
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13317 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13318 if test -x $with_build_time_tools/windmc; then
13319 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13320 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13322 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325 $as_echo "no" >&6; }
13327 elif test $build != $host && test $have_gcc_for_target = yes; then
13328 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13329 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13330 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13333 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13334 # Extract the first word of "windmc", so it can be a program name with args.
13335 set dummy windmc; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13339 $as_echo_n "(cached) " >&6
13341 case $WINDMC_FOR_TARGET in
13343 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347 for as_dir in $gcc_cv_tool_dirs
13350 test -z "$as_dir" && as_dir=.
13351 for ac_exec_ext in '' $ac_executable_extensions; do
13352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13353 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13364 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13365 if test -n "$WINDMC_FOR_TARGET"; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13367 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13375 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13378 if test -n "$WINDMC_FOR_TARGET"; then
13379 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13380 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13381 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13384 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13385 for ncn_progname in windmc; do
13386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13387 set dummy ${ncn_progname}; ac_word=$2
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389 $as_echo_n "checking for $ac_word... " >&6; }
13390 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13391 $as_echo_n "(cached) " >&6
13393 if test -n "$WINDMC_FOR_TARGET"; then
13394 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397 for as_dir in $PATH
13400 test -z "$as_dir" && as_dir=.
13401 for ac_exec_ext in '' $ac_executable_extensions; do
13402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13403 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13414 if test -n "$WINDMC_FOR_TARGET"; then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13416 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13426 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13427 for ncn_progname in windmc; do
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13429 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13430 if test -x $with_build_time_tools/${ncn_progname}; then
13431 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13433 $as_echo "yes" >&6; }
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437 $as_echo "no" >&6; }
13442 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13443 for ncn_progname in windmc; do
13444 if test -n "$ncn_target_tool_prefix"; then
13445 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13446 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13448 $as_echo_n "checking for $ac_word... " >&6; }
13449 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13450 $as_echo_n "(cached) " >&6
13452 if test -n "$WINDMC_FOR_TARGET"; then
13453 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13456 for as_dir in $PATH
13459 test -z "$as_dir" && as_dir=.
13460 for ac_exec_ext in '' $ac_executable_extensions; do
13461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13462 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13473 if test -n "$WINDMC_FOR_TARGET"; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13475 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 $as_echo "no" >&6; }
13483 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13485 set dummy ${ncn_progname}; ac_word=$2
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13487 $as_echo_n "checking for $ac_word... " >&6; }
13488 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13489 $as_echo_n "(cached) " >&6
13491 if test -n "$WINDMC_FOR_TARGET"; then
13492 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495 for as_dir in $PATH
13498 test -z "$as_dir" && as_dir=.
13499 for ac_exec_ext in '' $ac_executable_extensions; do
13500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13501 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13511 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13512 if test -n "$WINDMC_FOR_TARGET"; then
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13514 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517 $as_echo "no" >&6; }
13522 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13526 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13528 if test $build = $target ; then
13529 WINDMC_FOR_TARGET="$2"
13531 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13534 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13538 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13542 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13545 $as_echo_n "checking where to find the target ar... " >&6; }
13546 if test "x${build}" != "x${host}" ; then
13547 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13548 # We already found the complete path
13549 ac_dir=`dirname $AR_FOR_TARGET`
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13551 $as_echo "pre-installed in $ac_dir" >&6; }
13553 # Canadian cross, just use what we found
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13555 $as_echo "pre-installed" >&6; }
13559 case " ${configdirs} " in
13564 if test $ok = yes; then
13565 # An in-tree tool is available and we can use it
13566 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13568 $as_echo "just compiled" >&6; }
13569 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13570 # We already found the complete path
13571 ac_dir=`dirname $AR_FOR_TARGET`
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13573 $as_echo "pre-installed in $ac_dir" >&6; }
13574 elif test "x$target" = "x$host"; then
13575 # We can use an host tool
13576 AR_FOR_TARGET='$(AR)'
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13578 $as_echo "host tool" >&6; }
13580 # We need a cross tool
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13582 $as_echo "pre-installed" >&6; }
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13587 $as_echo_n "checking where to find the target as... " >&6; }
13588 if test "x${build}" != "x${host}" ; then
13589 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13590 # We already found the complete path
13591 ac_dir=`dirname $AS_FOR_TARGET`
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13593 $as_echo "pre-installed in $ac_dir" >&6; }
13595 # Canadian cross, just use what we found
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13597 $as_echo "pre-installed" >&6; }
13601 case " ${configdirs} " in
13606 if test $ok = yes; then
13607 # An in-tree tool is available and we can use it
13608 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13610 $as_echo "just compiled" >&6; }
13611 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13612 # We already found the complete path
13613 ac_dir=`dirname $AS_FOR_TARGET`
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13615 $as_echo "pre-installed in $ac_dir" >&6; }
13616 elif test "x$target" = "x$host"; then
13617 # We can use an host tool
13618 AS_FOR_TARGET='$(AS)'
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13620 $as_echo "host tool" >&6; }
13622 # We need a cross tool
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13624 $as_echo "pre-installed" >&6; }
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13629 $as_echo_n "checking where to find the target cc... " >&6; }
13630 if test "x${build}" != "x${host}" ; then
13631 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13632 # We already found the complete path
13633 ac_dir=`dirname $CC_FOR_TARGET`
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13635 $as_echo "pre-installed in $ac_dir" >&6; }
13637 # Canadian cross, just use what we found
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13639 $as_echo "pre-installed" >&6; }
13643 case " ${configdirs} " in
13648 if test $ok = yes; then
13649 # An in-tree tool is available and we can use it
13650 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13652 $as_echo "just compiled" >&6; }
13653 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13654 # We already found the complete path
13655 ac_dir=`dirname $CC_FOR_TARGET`
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13657 $as_echo "pre-installed in $ac_dir" >&6; }
13658 elif test "x$target" = "x$host"; then
13659 # We can use an host tool
13660 CC_FOR_TARGET='$(CC)'
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13662 $as_echo "host tool" >&6; }
13664 # We need a cross tool
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13666 $as_echo "pre-installed" >&6; }
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13671 $as_echo_n "checking where to find the target c++... " >&6; }
13672 if test "x${build}" != "x${host}" ; then
13673 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13674 # We already found the complete path
13675 ac_dir=`dirname $CXX_FOR_TARGET`
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13677 $as_echo "pre-installed in $ac_dir" >&6; }
13679 # Canadian cross, just use what we found
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13681 $as_echo "pre-installed" >&6; }
13685 case " ${configdirs} " in
13689 case ,${enable_languages}, in
13693 if test $ok = yes; then
13694 # An in-tree tool is available and we can use it
13695 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13697 $as_echo "just compiled" >&6; }
13698 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13699 # We already found the complete path
13700 ac_dir=`dirname $CXX_FOR_TARGET`
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13702 $as_echo "pre-installed in $ac_dir" >&6; }
13703 elif test "x$target" = "x$host"; then
13704 # We can use an host tool
13705 CXX_FOR_TARGET='$(CXX)'
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13707 $as_echo "host tool" >&6; }
13709 # We need a cross tool
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13711 $as_echo "pre-installed" >&6; }
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13716 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13717 if test "x${build}" != "x${host}" ; then
13718 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13719 # We already found the complete path
13720 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13722 $as_echo "pre-installed in $ac_dir" >&6; }
13724 # Canadian cross, just use what we found
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13726 $as_echo "pre-installed" >&6; }
13730 case " ${configdirs} " in
13734 case ,${enable_languages}, in
13738 if test $ok = yes; then
13739 # An in-tree tool is available and we can use it
13740 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'
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13742 $as_echo "just compiled" >&6; }
13743 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13744 # We already found the complete path
13745 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13747 $as_echo "pre-installed in $ac_dir" >&6; }
13748 elif test "x$target" = "x$host"; then
13749 # We can use an host tool
13750 RAW_CXX_FOR_TARGET='$(CXX)'
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13752 $as_echo "host tool" >&6; }
13754 # We need a cross tool
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13756 $as_echo "pre-installed" >&6; }
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13761 $as_echo_n "checking where to find the target dlltool... " >&6; }
13762 if test "x${build}" != "x${host}" ; then
13763 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13764 # We already found the complete path
13765 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13767 $as_echo "pre-installed in $ac_dir" >&6; }
13769 # Canadian cross, just use what we found
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13771 $as_echo "pre-installed" >&6; }
13775 case " ${configdirs} " in
13780 if test $ok = yes; then
13781 # An in-tree tool is available and we can use it
13782 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13784 $as_echo "just compiled" >&6; }
13785 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13786 # We already found the complete path
13787 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13789 $as_echo "pre-installed in $ac_dir" >&6; }
13790 elif test "x$target" = "x$host"; then
13791 # We can use an host tool
13792 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13794 $as_echo "host tool" >&6; }
13796 # We need a cross tool
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13798 $as_echo "pre-installed" >&6; }
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13803 $as_echo_n "checking where to find the target gcc... " >&6; }
13804 if test "x${build}" != "x${host}" ; then
13805 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13806 # We already found the complete path
13807 ac_dir=`dirname $GCC_FOR_TARGET`
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13809 $as_echo "pre-installed in $ac_dir" >&6; }
13811 # Canadian cross, just use what we found
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13813 $as_echo "pre-installed" >&6; }
13817 case " ${configdirs} " in
13822 if test $ok = yes; then
13823 # An in-tree tool is available and we can use it
13824 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13826 $as_echo "just compiled" >&6; }
13827 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13828 # We already found the complete path
13829 ac_dir=`dirname $GCC_FOR_TARGET`
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13831 $as_echo "pre-installed in $ac_dir" >&6; }
13832 elif test "x$target" = "x$host"; then
13833 # We can use an host tool
13834 GCC_FOR_TARGET='$()'
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13836 $as_echo "host tool" >&6; }
13838 # We need a cross tool
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13840 $as_echo "pre-installed" >&6; }
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13845 $as_echo_n "checking where to find the target gcj... " >&6; }
13846 if test "x${build}" != "x${host}" ; then
13847 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13848 # We already found the complete path
13849 ac_dir=`dirname $GCJ_FOR_TARGET`
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13851 $as_echo "pre-installed in $ac_dir" >&6; }
13853 # Canadian cross, just use what we found
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13855 $as_echo "pre-installed" >&6; }
13859 case " ${configdirs} " in
13863 case ,${enable_languages}, in
13867 if test $ok = yes; then
13868 # An in-tree tool is available and we can use it
13869 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13871 $as_echo "just compiled" >&6; }
13872 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13873 # We already found the complete path
13874 ac_dir=`dirname $GCJ_FOR_TARGET`
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13876 $as_echo "pre-installed in $ac_dir" >&6; }
13877 elif test "x$target" = "x$host"; then
13878 # We can use an host tool
13879 GCJ_FOR_TARGET='$(GCJ)'
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13881 $as_echo "host tool" >&6; }
13883 # We need a cross tool
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13885 $as_echo "pre-installed" >&6; }
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13890 $as_echo_n "checking where to find the target gfortran... " >&6; }
13891 if test "x${build}" != "x${host}" ; then
13892 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13893 # We already found the complete path
13894 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13896 $as_echo "pre-installed in $ac_dir" >&6; }
13898 # Canadian cross, just use what we found
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13900 $as_echo "pre-installed" >&6; }
13904 case " ${configdirs} " in
13908 case ,${enable_languages}, in
13912 if test $ok = yes; then
13913 # An in-tree tool is available and we can use it
13914 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13916 $as_echo "just compiled" >&6; }
13917 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13918 # We already found the complete path
13919 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13921 $as_echo "pre-installed in $ac_dir" >&6; }
13922 elif test "x$target" = "x$host"; then
13923 # We can use an host tool
13924 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13926 $as_echo "host tool" >&6; }
13928 # We need a cross tool
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13930 $as_echo "pre-installed" >&6; }
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13935 $as_echo_n "checking where to find the target gccgo... " >&6; }
13936 if test "x${build}" != "x${host}" ; then
13937 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13938 # We already found the complete path
13939 ac_dir=`dirname $GOC_FOR_TARGET`
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13941 $as_echo "pre-installed in $ac_dir" >&6; }
13943 # Canadian cross, just use what we found
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13945 $as_echo "pre-installed" >&6; }
13949 case " ${configdirs} " in
13953 case ,${enable_languages}, in
13957 if test $ok = yes; then
13958 # An in-tree tool is available and we can use it
13959 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13961 $as_echo "just compiled" >&6; }
13962 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
13964 ac_dir=`dirname $GOC_FOR_TARGET`
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966 $as_echo "pre-installed in $ac_dir" >&6; }
13967 elif test "x$target" = "x$host"; then
13968 # We can use an host tool
13969 GOC_FOR_TARGET='$(GOC)'
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13971 $as_echo "host tool" >&6; }
13973 # We need a cross tool
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13975 $as_echo "pre-installed" >&6; }
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13980 $as_echo_n "checking where to find the target ld... " >&6; }
13981 if test "x${build}" != "x${host}" ; then
13982 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13983 # We already found the complete path
13984 ac_dir=`dirname $LD_FOR_TARGET`
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13986 $as_echo "pre-installed in $ac_dir" >&6; }
13988 # Canadian cross, just use what we found
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13990 $as_echo "pre-installed" >&6; }
13994 case " ${configdirs} " in
13999 if test $ok = yes; then
14000 # An in-tree tool is available and we can use it
14001 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14003 $as_echo "just compiled" >&6; }
14004 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14005 # We already found the complete path
14006 ac_dir=`dirname $LD_FOR_TARGET`
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14008 $as_echo "pre-installed in $ac_dir" >&6; }
14009 elif test "x$target" = "x$host"; then
14010 # We can use an host tool
14011 LD_FOR_TARGET='$(LD)'
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14013 $as_echo "host tool" >&6; }
14015 # We need a cross tool
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14017 $as_echo "pre-installed" >&6; }
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14022 $as_echo_n "checking where to find the target lipo... " >&6; }
14023 if test "x${build}" != "x${host}" ; then
14024 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14025 # We already found the complete path
14026 ac_dir=`dirname $LIPO_FOR_TARGET`
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14028 $as_echo "pre-installed in $ac_dir" >&6; }
14030 # Canadian cross, just use what we found
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14032 $as_echo "pre-installed" >&6; }
14035 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14036 # We already found the complete path
14037 ac_dir=`dirname $LIPO_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 LIPO_FOR_TARGET='$(LIPO)'
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 nm" >&5
14053 $as_echo_n "checking where to find the target nm... " >&6; }
14054 if test "x${build}" != "x${host}" ; then
14055 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14056 # We already found the complete path
14057 ac_dir=`dirname $NM_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; }
14067 case " ${configdirs} " in
14072 if test $ok = yes; then
14073 # An in-tree tool is available and we can use it
14074 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14076 $as_echo "just compiled" >&6; }
14077 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14078 # We already found the complete path
14079 ac_dir=`dirname $NM_FOR_TARGET`
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081 $as_echo "pre-installed in $ac_dir" >&6; }
14082 elif test "x$target" = "x$host"; then
14083 # We can use an host tool
14084 NM_FOR_TARGET='$(NM)'
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14086 $as_echo "host tool" >&6; }
14088 # We need a cross tool
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14090 $as_echo "pre-installed" >&6; }
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14095 $as_echo_n "checking where to find the target objdump... " >&6; }
14096 if test "x${build}" != "x${host}" ; then
14097 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14098 # We already found the complete path
14099 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101 $as_echo "pre-installed in $ac_dir" >&6; }
14103 # Canadian cross, just use what we found
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105 $as_echo "pre-installed" >&6; }
14109 case " ${configdirs} " in
14114 if test $ok = yes; then
14115 # An in-tree tool is available and we can use it
14116 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14118 $as_echo "just compiled" >&6; }
14119 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
14121 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123 $as_echo "pre-installed in $ac_dir" >&6; }
14124 elif test "x$target" = "x$host"; then
14125 # We can use an host tool
14126 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128 $as_echo "host tool" >&6; }
14130 # We need a cross tool
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132 $as_echo "pre-installed" >&6; }
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14137 $as_echo_n "checking where to find the target ranlib... " >&6; }
14138 if test "x${build}" != "x${host}" ; then
14139 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
14141 ac_dir=`dirname $RANLIB_FOR_TARGET`
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143 $as_echo "pre-installed in $ac_dir" >&6; }
14145 # Canadian cross, just use what we found
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14147 $as_echo "pre-installed" >&6; }
14151 case " ${configdirs} " in
14156 if test $ok = yes; then
14157 # An in-tree tool is available and we can use it
14158 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14160 $as_echo "just compiled" >&6; }
14161 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
14163 ac_dir=`dirname $RANLIB_FOR_TARGET`
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165 $as_echo "pre-installed in $ac_dir" >&6; }
14166 elif test "x$target" = "x$host"; then
14167 # We can use an host tool
14168 RANLIB_FOR_TARGET='$(RANLIB)'
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14170 $as_echo "host tool" >&6; }
14172 # We need a cross tool
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174 $as_echo "pre-installed" >&6; }
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14179 $as_echo_n "checking where to find the target readelf... " >&6; }
14180 if test "x${build}" != "x${host}" ; then
14181 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
14183 ac_dir=`dirname $READELF_FOR_TARGET`
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185 $as_echo "pre-installed in $ac_dir" >&6; }
14187 # Canadian cross, just use what we found
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189 $as_echo "pre-installed" >&6; }
14193 case " ${configdirs} " in
14198 if test $ok = yes; then
14199 # An in-tree tool is available and we can use it
14200 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14202 $as_echo "just compiled" >&6; }
14203 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14204 # We already found the complete path
14205 ac_dir=`dirname $READELF_FOR_TARGET`
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14207 $as_echo "pre-installed in $ac_dir" >&6; }
14208 elif test "x$target" = "x$host"; then
14209 # We can use an host tool
14210 READELF_FOR_TARGET='$(READELF)'
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14212 $as_echo "host tool" >&6; }
14214 # We need a cross tool
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14216 $as_echo "pre-installed" >&6; }
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14221 $as_echo_n "checking where to find the target strip... " >&6; }
14222 if test "x${build}" != "x${host}" ; then
14223 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14224 # We already found the complete path
14225 ac_dir=`dirname $STRIP_FOR_TARGET`
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14227 $as_echo "pre-installed in $ac_dir" >&6; }
14229 # Canadian cross, just use what we found
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231 $as_echo "pre-installed" >&6; }
14235 case " ${configdirs} " in
14240 if test $ok = yes; then
14241 # An in-tree tool is available and we can use it
14242 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14244 $as_echo "just compiled" >&6; }
14245 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14246 # We already found the complete path
14247 ac_dir=`dirname $STRIP_FOR_TARGET`
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14249 $as_echo "pre-installed in $ac_dir" >&6; }
14250 elif test "x$target" = "x$host"; then
14251 # We can use an host tool
14252 STRIP_FOR_TARGET='$(STRIP)'
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14254 $as_echo "host tool" >&6; }
14256 # We need a cross tool
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14258 $as_echo "pre-installed" >&6; }
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14263 $as_echo_n "checking where to find the target windres... " >&6; }
14264 if test "x${build}" != "x${host}" ; then
14265 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14266 # We already found the complete path
14267 ac_dir=`dirname $WINDRES_FOR_TARGET`
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14269 $as_echo "pre-installed in $ac_dir" >&6; }
14271 # Canadian cross, just use what we found
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14273 $as_echo "pre-installed" >&6; }
14277 case " ${configdirs} " in
14282 if test $ok = yes; then
14283 # An in-tree tool is available and we can use it
14284 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14286 $as_echo "just compiled" >&6; }
14287 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14288 # We already found the complete path
14289 ac_dir=`dirname $WINDRES_FOR_TARGET`
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14291 $as_echo "pre-installed in $ac_dir" >&6; }
14292 elif test "x$target" = "x$host"; then
14293 # We can use an host tool
14294 WINDRES_FOR_TARGET='$(WINDRES)'
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14296 $as_echo "host tool" >&6; }
14298 # We need a cross tool
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14300 $as_echo "pre-installed" >&6; }
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14305 $as_echo_n "checking where to find the target windmc... " >&6; }
14306 if test "x${build}" != "x${host}" ; then
14307 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14308 # We already found the complete path
14309 ac_dir=`dirname $WINDMC_FOR_TARGET`
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14311 $as_echo "pre-installed in $ac_dir" >&6; }
14313 # Canadian cross, just use what we found
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14315 $as_echo "pre-installed" >&6; }
14319 case " ${configdirs} " in
14324 if test $ok = yes; then
14325 # An in-tree tool is available and we can use it
14326 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14328 $as_echo "just compiled" >&6; }
14329 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14330 # We already found the complete path
14331 ac_dir=`dirname $WINDMC_FOR_TARGET`
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14333 $as_echo "pre-installed in $ac_dir" >&6; }
14334 elif test "x$target" = "x$host"; then
14335 # We can use an host tool
14336 WINDMC_FOR_TARGET='$(WINDMC)'
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14338 $as_echo "host tool" >&6; }
14340 # We need a cross tool
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14342 $as_echo "pre-installed" >&6; }
14350 # Certain tools may need extra flags.
14351 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14352 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14353 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14355 # When building target libraries, except in a Canadian cross, we use
14356 # the same toolchain as the compiler we just built.
14357 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14358 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14359 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14360 if test $host = $build; then
14361 case " $configdirs " in
14363 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14364 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14365 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14375 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14376 # Check whether --enable-maintainer-mode was given.
14377 if test "${enable_maintainer_mode+set}" = set; then :
14378 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14380 USE_MAINTAINER_MODE=no
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14384 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14387 if test "$USE_MAINTAINER_MODE" = yes; then
14388 MAINTAINER_MODE_TRUE=
14389 MAINTAINER_MODE_FALSE='#'
14391 MAINTAINER_MODE_TRUE='#'
14392 MAINTAINER_MODE_FALSE=
14394 MAINT=$MAINTAINER_MODE_TRUE
14396 # ---------------------
14397 # GCC bootstrap support
14398 # ---------------------
14400 # Stage specific cflags for build.
14405 yes) stage1_cflags="-g -Wa,-J" ;;
14406 *) stage1_cflags="-g -J" ;;
14410 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14411 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14412 saved_CFLAGS="$CFLAGS"
14414 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14415 CFLAGS="$CFLAGS -fkeep-inline-functions"
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14417 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h. */
14421 #if (__GNUC__ < 3) \
14422 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14423 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14424 #error http://gcc.gnu.org/PR29382
14435 if ac_fn_c_try_compile "$LINENO"; then :
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14437 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440 $as_echo "no" >&6; }
14442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14444 CFLAGS="$saved_CFLAGS"
14449 # Enable --enable-checking in stage1 of the compiler.
14450 # Check whether --enable-stage1-checking was given.
14451 if test "${enable_stage1_checking+set}" = set; then :
14452 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14454 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14455 stage1_checking=--enable-checking=yes,types
14457 stage1_checking=--enable-checking=$enable_checking,types
14463 # Enable -Werror in bootstrap stage2 and later.
14464 # Check whether --enable-werror was given.
14465 if test "${enable_werror+set}" = set; then :
14466 enableval=$enable_werror;
14468 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14475 case ${enable_werror} in
14476 yes) stage2_werror_flag="--enable-werror-always" ;;
14477 *) stage2_werror_flag="" ;;
14481 # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14482 # --enable-build-with-cxx after stage1.
14483 if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14484 POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14486 POSTSTAGE1_CONFIGURE_FLAGS=
14490 # Specify what files to not compare during bootstrap.
14492 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14494 hppa*64*-*-hpux*) ;;
14495 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14497 case " $configdirs " in
14498 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14502 ac_config_files="$ac_config_files Makefile"
14504 cat >confcache <<\_ACEOF
14505 # This file is a shell script that caches the results of configure
14506 # tests run on this system so they can be shared between configure
14507 # scripts and configure runs, see configure's option --config-cache.
14508 # It is not useful on other systems. If it contains results you don't
14509 # want to keep, you may remove or edit it.
14511 # config.status only pays attention to the cache file if you give it
14512 # the --recheck option to rerun configure.
14514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14516 # following values.
14520 # The following way of writing the cache mishandles newlines in values,
14521 # but we know of no workaround that is simple, portable, and efficient.
14522 # So, we kill variables containing newlines.
14523 # Ultrix sh set writes to stderr and can't be redirected directly,
14524 # and sets the high bit in the cache file unless we assign to the vars.
14526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14527 eval ac_val=\$$ac_var
14531 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14532 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14535 _ | IFS | as_nl) ;; #(
14536 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14537 *) { eval $ac_var=; unset $ac_var;} ;;
14543 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14544 *${as_nl}ac_space=\ *)
14545 # `set' does not quote correctly, so add quotes: double-quote
14546 # substitution turns \\\\ into \\, and sed turns \\ into \.
14549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14552 # `set' quotes correctly as required by POSIX, so do not add quotes.
14553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14566 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14567 if test -w "$cache_file"; then
14568 test "x$cache_file" != "x/dev/null" &&
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14570 $as_echo "$as_me: updating cache $cache_file" >&6;}
14571 cat confcache >$cache_file
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14574 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14580 # Let make expand exec_prefix.
14581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14583 # Transform confdefs.h into DEFS.
14584 # Protect against shell expansion while executing Makefile rules.
14585 # Protect against Makefile macro expansion.
14587 # If the first sed substitution is executed (which looks for macros that
14588 # take arguments), then branch to the quote section. Otherwise,
14589 # look for a macro that doesn't take arguments.
14599 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14601 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14605 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14618 DEFS=`sed -n "$ac_script" confdefs.h`
14623 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14624 # 1. Remove the extension, and $U if already installed.
14625 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14626 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14627 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14628 # will be set to the directory where LIBOBJS objects are built.
14629 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14630 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14632 LIBOBJS=$ac_libobjs
14634 LTLIBOBJS=$ac_ltlibobjs
14638 : ${CONFIG_STATUS=./config.status}
14640 ac_clean_files_save=$ac_clean_files
14641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14643 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14645 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14647 # Generated by $as_me.
14648 # Run this file to recreate the current configuration.
14649 # Compiler output produced by configure, useful for debugging
14650 # configure, is in config.log if it exists.
14653 ac_cs_recheck=false
14656 SHELL=\${CONFIG_SHELL-$SHELL}
14659 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14660 ## -------------------- ##
14661 ## M4sh Initialization. ##
14662 ## -------------------- ##
14664 # Be more Bourne compatible
14665 DUALCASE=1; export DUALCASE # for MKS sh
14666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14669 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14670 # is contrary to our usage. Disable this feature.
14671 alias -g '${1+"$@"}'='"$@"'
14672 setopt NO_GLOB_SUBST
14674 case `(set -o) 2>/dev/null` in #(
14686 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14687 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14690 # Prefer a ksh shell builtin over an external printf program on Solaris,
14691 # but without wasting forks for bash or zsh.
14692 if test -z "$BASH_VERSION$ZSH_VERSION" \
14693 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14694 as_echo='print -r --'
14695 as_echo_n='print -rn --'
14696 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14697 as_echo='printf %s\n'
14698 as_echo_n='printf %s'
14700 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14701 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14702 as_echo_n='/usr/ucb/echo -n'
14704 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14705 as_echo_n_body='eval
14709 expr "X$arg" : "X\\(.*\\)$as_nl";
14710 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14712 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14714 export as_echo_n_body
14715 as_echo_n='sh -c $as_echo_n_body as_echo'
14717 export as_echo_body
14718 as_echo='sh -c $as_echo_body as_echo'
14721 # The user is always right.
14722 if test "${PATH_SEPARATOR+set}" != set; then
14724 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14725 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14732 # We need space, tab and new line, in precisely that order. Quoting is
14733 # there to prevent editors from complaining about space-tab.
14734 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14735 # splitting by setting IFS to empty value.)
14738 # Find who we are. Look in the path if we contain no directory separator.
14740 *[\\/]* ) as_myself=$0 ;;
14741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14742 for as_dir in $PATH
14745 test -z "$as_dir" && as_dir=.
14746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14752 # We did not find ourselves, most probably we were run as `sh COMMAND'
14753 # in which case we are not to be found in the path.
14754 if test "x$as_myself" = x; then
14757 if test ! -f "$as_myself"; then
14758 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14762 # Unset variables that we do not need and which cause bugs (e.g. in
14763 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14764 # suppresses any "Segmentation fault" message there. '((' could
14765 # trigger a bug in pdksh 5.2.14.
14766 for as_var in BASH_ENV ENV MAIL MAILPATH
14767 do eval test x\${$as_var+set} = xset \
14768 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14781 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14784 # as_fn_error ERROR [LINENO LOG_FD]
14785 # ---------------------------------
14786 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14787 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14788 # script with status $?, using 1 if that was 0.
14791 as_status=$?; test $as_status -eq 0 && as_status=1
14793 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14794 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14796 $as_echo "$as_me: error: $1" >&2
14797 as_fn_exit $as_status
14801 # as_fn_set_status STATUS
14802 # -----------------------
14803 # Set $? to STATUS, without forking.
14804 as_fn_set_status ()
14807 } # as_fn_set_status
14809 # as_fn_exit STATUS
14810 # -----------------
14811 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14815 as_fn_set_status $1
14821 # Portably unset VAR.
14824 { eval $1=; unset $1;}
14826 as_unset=as_fn_unset
14827 # as_fn_append VAR VALUE
14828 # ----------------------
14829 # Append the text in VALUE to the end of the definition contained in VAR. Take
14830 # advantage of any shell optimizations that allow amortized linear growth over
14831 # repeated appends, instead of the typical quadratic growth present in naive
14833 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14834 eval 'as_fn_append ()
14845 # as_fn_arith ARG...
14846 # ------------------
14847 # Perform arithmetic evaluation on the ARGs, and store the result in the
14848 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14849 # must be portable across $(()) and expr.
14850 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14851 eval 'as_fn_arith ()
14858 as_val=`expr "$@" || test $? -eq 1`
14863 if expr a : '\(a\)' >/dev/null 2>&1 &&
14864 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14870 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14871 as_basename=basename
14876 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14882 as_me=`$as_basename -- "$0" ||
14883 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14884 X"$0" : 'X\(//\)$' \| \
14885 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14887 sed '/^.*\/\([^/][^/]*\)\/*$/{
14901 # Avoid depending upon Character Ranges.
14902 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14903 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14904 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14905 as_cr_digits='0123456789'
14906 as_cr_alnum=$as_cr_Letters$as_cr_digits
14908 ECHO_C= ECHO_N= ECHO_T=
14909 case `echo -n x` in #(((((
14911 case `echo 'xy\c'` in
14912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14914 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14921 rm -f conf$$ conf$$.exe conf$$.file
14922 if test -d conf$$.dir; then
14923 rm -f conf$$.dir/conf$$.file
14926 mkdir conf$$.dir 2>/dev/null
14928 if (echo >conf$$.file) 2>/dev/null; then
14929 if ln -s conf$$.file conf$$ 2>/dev/null; then
14931 # ... but there are two gotchas:
14932 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14933 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14934 # In both cases, we have to default to `cp -p'.
14935 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14937 elif ln conf$$.file conf$$ 2>/dev/null; then
14945 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14946 rmdir conf$$.dir 2>/dev/null
14951 # Create "$as_dir" as a directory, including parents if necessary.
14956 -*) as_dir=./$as_dir;;
14958 test -d "$as_dir" || eval $as_mkdir_p || {
14962 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14963 *) as_qdir=$as_dir;;
14965 as_dirs="'$as_qdir' $as_dirs"
14966 as_dir=`$as_dirname -- "$as_dir" ||
14967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14968 X"$as_dir" : 'X\(//\)[^/]' \| \
14969 X"$as_dir" : 'X\(//\)$' \| \
14970 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14971 $as_echo X"$as_dir" |
14972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14976 /^X\(\/\/\)[^/].*/{
14989 test -d "$as_dir" && break
14991 test -z "$as_dirs" || eval "mkdir $as_dirs"
14992 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14996 if mkdir -p . 2>/dev/null; then
14997 as_mkdir_p='mkdir -p "$as_dir"'
14999 test -d ./-p && rmdir ./-p
15003 if test -x / >/dev/null 2>&1; then
15004 as_test_x='test -x'
15006 if ls -dL / >/dev/null 2>&1; then
15013 if test -d "$1"; then
15019 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15020 ???[sx]*):;;*)false;;esac;fi
15024 as_executable_p=$as_test_x
15026 # Sed expression to map a string onto a valid CPP name.
15027 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15029 # Sed expression to map a string onto a valid variable name.
15030 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15034 ## ----------------------------------- ##
15035 ## Main body of $CONFIG_STATUS script. ##
15036 ## ----------------------------------- ##
15038 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15041 # Save the log message, to keep $0 and so on meaningful, and to
15042 # report actual input values of CONFIG_FILES etc. instead of their
15043 # values after options handling.
15045 This file was extended by $as_me, which was
15046 generated by GNU Autoconf 2.64. Invocation command line was
15048 CONFIG_FILES = $CONFIG_FILES
15049 CONFIG_HEADERS = $CONFIG_HEADERS
15050 CONFIG_LINKS = $CONFIG_LINKS
15051 CONFIG_COMMANDS = $CONFIG_COMMANDS
15054 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15059 case $ac_config_files in *"
15060 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15066 # Files that config.status was made for.
15067 config_files="$ac_config_files"
15071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15073 \`$as_me' instantiates files and other configuration actions
15074 from templates according to the current configuration. Unless the files
15075 and actions are specified as TAGs, all are instantiated by default.
15077 Usage: $0 [OPTION]... [TAG]...
15079 -h, --help print this help, then exit
15080 -V, --version print version number and configuration settings, then exit
15081 -q, --quiet, --silent
15082 do not print progress messages
15083 -d, --debug don't remove temporary files
15084 --recheck update $as_me by reconfiguring in the same conditions
15085 --file=FILE[:TEMPLATE]
15086 instantiate the configuration file FILE
15088 Configuration files:
15091 Report bugs to the package provider."
15094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15097 configured by $0, generated by GNU Autoconf 2.64,
15098 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15100 Copyright (C) 2009 Free Software Foundation, Inc.
15101 This config.status script is free software; the Free Software Foundation
15102 gives unlimited permission to copy, distribute and modify it."
15108 test -n "\$AWK" || AWK=awk
15111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15112 # The default lists apply if the user does not specify any file.
15118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15119 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15130 # Handling of the options.
15131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15134 $as_echo "$ac_cs_version"; exit ;;
15135 --debug | --debu | --deb | --de | --d | -d )
15137 --file | --fil | --fi | --f )
15140 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15142 as_fn_append CONFIG_FILES " '$ac_optarg'"
15143 ac_need_defaults=false;;
15144 --he | --h | --help | --hel | -h )
15145 $as_echo "$ac_cs_usage"; exit ;;
15146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15147 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15150 # This is an error.
15151 -*) as_fn_error "unrecognized option: \`$1'
15152 Try \`$0 --help' for more information." ;;
15154 *) as_fn_append ac_config_targets " $1"
15155 ac_need_defaults=false ;;
15161 ac_configure_extra_args=
15163 if $ac_cs_silent; then
15165 ac_configure_extra_args="$ac_configure_extra_args --silent"
15169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15170 if \$ac_cs_recheck; then
15171 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15173 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15174 CONFIG_SHELL='$SHELL'
15175 export CONFIG_SHELL
15180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15185 ## Running $as_me. ##
15191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15195 extrasub_build="$extrasub_build"
15196 extrasub_host="$extrasub_host"
15197 extrasub_target="$extrasub_target"
15201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15203 # Handling of arguments.
15204 for ac_config_target in $ac_config_targets
15206 case $ac_config_target in
15207 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15209 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15214 # If the user did not use the arguments to specify the items to instantiate,
15215 # then the envvar interface is used. Set only those that are not.
15216 # We use the long form for the default assignment because of an extremely
15217 # bizarre bug on SunOS 4.1.3.
15218 if $ac_need_defaults; then
15219 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15222 # Have a temporary directory for convenience. Make it in the build tree
15223 # simply because there is no reason against having it here, and in addition,
15224 # creating and moving files from /tmp can sometimes cause problems.
15225 # Hook for its removal unless debugging.
15226 # Note that there is a small window in which the directory will not be cleaned:
15227 # after its creation but before its name has been assigned to `$tmp'.
15231 trap 'exit_status=$?
15232 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15234 trap 'as_fn_exit 1' 1 2 13 15
15236 # Create a (secure) tmp directory for tmp files.
15239 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15240 test -n "$tmp" && test -d "$tmp"
15243 tmp=./conf$$-$RANDOM
15244 (umask 077 && mkdir "$tmp")
15245 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15247 # Set up the scripts for CONFIG_FILES section.
15248 # No need to generate them if there are no CONFIG_FILES.
15249 # This happens for instance with `./config.status config.h'.
15250 if test -n "$CONFIG_FILES"; then
15252 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15253 ac_cs_awk_getline=:
15254 ac_cs_awk_pipe_init=
15255 ac_cs_awk_read_file='
15256 while ((getline aline < (F[key])) > 0)
15259 ac_cs_awk_pipe_fini=
15261 ac_cs_awk_getline=false
15262 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15263 ac_cs_awk_read_file='
15265 print "cat " F[key] " &&"
15266 '$ac_cs_awk_pipe_init
15267 # The final `:' finishes the AND list.
15268 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15270 ac_cr=`echo X | tr X '\015'`
15271 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15272 # But we know of no other shell where ac_cr would be empty at this
15273 # point, so we can use a bashism as a fallback.
15274 if test "x$ac_cr" = x; then
15275 eval ac_cr=\$\'\\r\'
15277 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15278 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15281 ac_cs_awk_cr=$ac_cr
15284 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15287 # Create commands to substitute file output variables.
15289 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15290 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15291 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15294 } >conf$$files.sh &&
15295 . ./conf$$files.sh ||
15296 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15297 rm -f conf$$files.sh
15300 echo "cat >conf$$subs.awk <<_ACEOF" &&
15301 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15303 } >conf$$subs.sh ||
15304 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15305 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15307 for ac_last_try in false false false false false :; do
15308 . ./conf$$subs.sh ||
15309 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15311 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15312 if test $ac_delim_n = $ac_delim_num; then
15314 elif $ac_last_try; then
15315 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15317 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15320 rm -f conf$$subs.sh
15322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15323 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15327 s/^/S["/; s/!.*/"]=/
15337 s/\(.\{148\}\).*/\1/
15339 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15344 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15351 s/\(.\{148\}\).*/\1/
15353 s/["\\]/\\&/g; s/^/"/; s/$/"/
15357 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15362 ' <conf$$subs.awk | sed '
15367 ' >>$CONFIG_STATUS || ac_write_fail=1
15368 rm -f conf$$subs.awk
15369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15371 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15372 for (key in S) S_is_set[key] = 1
15374 \$ac_cs_awk_pipe_init
15378 nfields = split(line, field, "@")
15380 len = length(field[1])
15381 for (i = 2; i < nfields; i++) {
15383 keylen = length(key)
15384 if (S_is_set[key]) {
15386 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15387 len += length(value) + length(field[++i])
15392 if (nfields == 3 && !substed) {
15394 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15395 \$ac_cs_awk_read_file
15401 \$ac_cs_awk_pipe_fini
15404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15405 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15406 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15409 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15410 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15413 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15414 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15415 # trailing colons and then remove the whole line if VPATH becomes empty
15416 # (actually we leave an empty line to preserve line numbers).
15417 if test "x$srcdir" = x.; then
15418 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15419 s/:*\$(srcdir):*/:/
15420 s/:*\${srcdir}:*/:/
15422 s/^\([^=]*=[ ]*\):*/\1/
15428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15429 fi # test -n "$CONFIG_FILES"
15432 eval set X " :F $CONFIG_FILES "
15437 :[FHLC]) ac_mode=$ac_tag; continue;;
15439 case $ac_mode$ac_tag in
15441 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15442 :[FH]-) ac_tag=-:-;;
15443 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15460 -) ac_f="$tmp/stdin";;
15461 *) # Look for the file first in the build tree, then in the source tree
15462 # (if the path is not absolute). The absolute path cannot be DOS-style,
15463 # because $ac_f cannot contain `:'.
15467 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15469 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15471 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15472 as_fn_append ac_file_inputs " '$ac_f'"
15475 # Let's still pretend it is `configure' which instantiates (i.e., don't
15476 # use $as_me), people would be surprised to read:
15477 # /* config.h. Generated by config.status. */
15478 configure_input='Generated from '`
15479 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15481 if test x"$ac_file" != x-; then
15482 configure_input="$ac_file. $configure_input"
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15484 $as_echo "$as_me: creating $ac_file" >&6;}
15486 # Neutralize special characters interpreted by sed in replacement strings.
15487 case $configure_input in #(
15488 *\&* | *\|* | *\\* )
15489 ac_sed_conf_input=`$as_echo "$configure_input" |
15490 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15491 *) ac_sed_conf_input=$configure_input;;
15495 *:-:* | *:-) cat >"$tmp/stdin" \
15496 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15501 ac_dir=`$as_dirname -- "$ac_file" ||
15502 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15503 X"$ac_file" : 'X\(//\)[^/]' \| \
15504 X"$ac_file" : 'X\(//\)$' \| \
15505 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15506 $as_echo X"$ac_file" |
15507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15511 /^X\(\/\/\)[^/].*/{
15524 as_dir="$ac_dir"; as_fn_mkdir_p
15528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15531 # A ".." for each directory in $ac_dir_suffix.
15532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15533 case $ac_top_builddir_sub in
15534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15538 ac_abs_top_builddir=$ac_pwd
15539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15540 # for backward compatibility:
15541 ac_top_builddir=$ac_top_build_prefix
15544 .) # We are building in place.
15546 ac_top_srcdir=$ac_top_builddir_sub
15547 ac_abs_top_srcdir=$ac_pwd ;;
15548 [\\/]* | ?:[\\/]* ) # Absolute name.
15549 ac_srcdir=$srcdir$ac_dir_suffix;
15550 ac_top_srcdir=$srcdir
15551 ac_abs_top_srcdir=$srcdir ;;
15552 *) # Relative name.
15553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15554 ac_top_srcdir=$ac_top_build_prefix$srcdir
15555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15567 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15568 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15573 # If the template does not know about datarootdir, expand it.
15574 # FIXME: This hack should be removed a few years after 2.60.
15575 ac_datarootdir_hack=; ac_datarootdir_seen=
15586 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15587 *datarootdir*) ac_datarootdir_seen=yes;;
15588 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15590 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15593 ac_datarootdir_hack='
15594 s&@datadir@&$datadir&g
15595 s&@docdir@&$docdir&g
15596 s&@infodir@&$infodir&g
15597 s&@localedir@&$localedir&g
15598 s&@mandir@&$mandir&g
15599 s&\\\${datarootdir}&$datarootdir&g' ;;
15603 # Neutralize VPATH when `$srcdir' = `.'.
15604 # Shell code in configure.ac might set extrasub.
15605 # FIXME: do we really want to maintain this feature?
15606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15607 ac_sed_extra="$ac_vpsub
15610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15613 s|@configure_input@|$ac_sed_conf_input|;t t
15614 s&@top_builddir@&$ac_top_builddir_sub&;t t
15615 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15616 s&@srcdir@&$ac_srcdir&;t t
15617 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15618 s&@top_srcdir@&$ac_top_srcdir&;t t
15619 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15620 s&@builddir@&$ac_builddir&;t t
15621 s&@abs_builddir@&$ac_abs_builddir&;t t
15622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15623 s&@INSTALL@&$ac_INSTALL&;t t
15624 $ac_datarootdir_hack
15626 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15627 if $ac_cs_awk_getline; then
15628 $AWK -f "$tmp/subs.awk"
15630 $AWK -f "$tmp/subs.awk" | $SHELL
15632 || as_fn_error "could not create $ac_file" "$LINENO" 5
15634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15635 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15638 which seems to be undefined. Please make sure it is defined." >&5
15639 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15640 which seems to be undefined. Please make sure it is defined." >&2;}
15644 -) cat "$tmp/out" && rm -f "$tmp/out";;
15645 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15647 || as_fn_error "could not create $ac_file" "$LINENO" 5
15655 case $ac_file$ac_mode in
15656 "Makefile":F) sed "$extrasub_build" Makefile |
15657 sed "$extrasub_host" |
15658 sed "$extrasub_target" > mf$$
15659 mv -f mf$$ Makefile ;;
15667 ac_clean_files=$ac_clean_files_save
15669 test $ac_write_fail = 0 ||
15670 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15673 # configure is writing to config.log, and then calls config.status.
15674 # config.status does its own redirection, appending to config.log.
15675 # Unfortunately, on DOS this fails, as config.log is still kept open
15676 # by configure, so config.status won't be able to write to it; its
15677 # output is simply discarded. So we exec the FD to /dev/null,
15678 # effectively closing config.log, so it can be properly (re)opened and
15679 # appended to by config.status. When coming back to configure, we
15680 # need to make the FD available again.
15681 if test "$no_create" != yes; then
15683 ac_config_status_args=
15684 test "$silent" = yes &&
15685 ac_config_status_args="$ac_config_status_args --quiet"
15687 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15689 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15690 # would make configure fail if this is the last instruction.
15691 $ac_cs_success || as_fn_exit $?
15693 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15695 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}