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
564 MAINTAINER_MODE_FALSE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_zlib_configure_flags
647 extra_host_libiberty_configure_flags
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
677 EXTRA_CONFIGARGS_LIBJAVA
678 extra_liboffloadmic_configure_flags
705 TOPLEVEL_CONFIGURE_ARGUMENTS
733 program_transform_name
744 ac_subst_files='serialization_dependencies
750 enable_option_checking
754 enable_as_accelerator_for
755 enable_offload_targets
758 enable_compressed_debug_sections
760 enable_libquadmath_support
765 enable_static_libjava
785 enable_isl_version_check
787 enable_linker_plugin_configure_flags
788 enable_linker_plugin_flags
789 enable_stage1_languages
792 with_debug_prefix_map
795 enable_serial_configure
796 with_build_time_tools
797 enable_maintainer_mode
798 enable_stage1_checking
802 ac_precious_vars='build_alias
850 # Initialize some variables set by options.
852 ac_init_version=false
853 ac_unrecognized_opts=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
864 program_transform_name=s,x,x,
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE}'
889 infodir='${datarootdir}/info'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\$ac_option
910 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 # Accept the important Cygnus configure options, so we can diagnose typos.
916 case $ac_dashdash$ac_option in
920 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 -build | --build | --buil | --bui | --bu)
926 ac_prev=build_alias ;;
927 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928 build_alias=$ac_optarg ;;
930 -cache-file | --cache-file | --cache-fil | --cache-fi \
931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932 ac_prev=cache_file ;;
933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935 cache_file=$ac_optarg ;;
938 cache_file=config.cache ;;
940 -datadir | --datadir | --datadi | --datad)
942 -datadir=* | --datadir=* | --datadi=* | --datad=*)
943 datadir=$ac_optarg ;;
945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946 | --dataroo | --dataro | --datar)
947 ac_prev=datarootdir ;;
948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950 datarootdir=$ac_optarg ;;
952 -disable-* | --disable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
966 eval enable_$ac_useropt=no ;;
968 -docdir | --docdir | --docdi | --doc | --do)
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 -enable-* | --enable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error "invalid feature name: $ac_useropt"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
992 eval enable_$ac_useropt=\$ac_optarg ;;
994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996 | --exec | --exe | --ex)
997 ac_prev=exec_prefix ;;
998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000 | --exec=* | --exe=* | --ex=*)
1001 exec_prefix=$ac_optarg ;;
1003 -gas | --gas | --ga | --g)
1004 # Obsolete; use --with-gas.
1007 -help | --help | --hel | --he | -h)
1008 ac_init_help=long ;;
1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010 ac_init_help=recursive ;;
1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012 ac_init_help=short ;;
1014 -host | --host | --hos | --ho)
1015 ac_prev=host_alias ;;
1016 -host=* | --host=* | --hos=* | --ho=*)
1017 host_alias=$ac_optarg ;;
1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 htmldir=$ac_optarg ;;
1025 -includedir | --includedir | --includedi | --included | --include \
1026 | --includ | --inclu | --incl | --inc)
1027 ac_prev=includedir ;;
1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029 | --includ=* | --inclu=* | --incl=* | --inc=*)
1030 includedir=$ac_optarg ;;
1032 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035 infodir=$ac_optarg ;;
1037 -libdir | --libdir | --libdi | --libd)
1039 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040 libdir=$ac_optarg ;;
1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043 | --libexe | --libex | --libe)
1044 ac_prev=libexecdir ;;
1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046 | --libexe=* | --libex=* | --libe=*)
1047 libexecdir=$ac_optarg ;;
1049 -localedir | --localedir | --localedi | --localed | --locale)
1050 ac_prev=localedir ;;
1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052 localedir=$ac_optarg ;;
1054 -localstatedir | --localstatedir | --localstatedi | --localstated \
1055 | --localstate | --localstat | --localsta | --localst | --locals)
1056 ac_prev=localstatedir ;;
1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059 localstatedir=$ac_optarg ;;
1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064 mandir=$ac_optarg ;;
1066 -nfp | --nfp | --nf)
1067 # Obsolete; use --without-fp.
1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071 | --no-cr | --no-c | -n)
1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080 | --oldin | --oldi | --old | --ol | --o)
1081 ac_prev=oldincludedir ;;
1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085 oldincludedir=$ac_optarg ;;
1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090 prefix=$ac_optarg ;;
1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093 | --program-pre | --program-pr | --program-p)
1094 ac_prev=program_prefix ;;
1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097 program_prefix=$ac_optarg ;;
1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100 | --program-suf | --program-su | --program-s)
1101 ac_prev=program_suffix ;;
1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104 program_suffix=$ac_optarg ;;
1106 -program-transform-name | --program-transform-name \
1107 | --program-transform-nam | --program-transform-na \
1108 | --program-transform-n | --program-transform- \
1109 | --program-transform | --program-transfor \
1110 | --program-transfo | --program-transf \
1111 | --program-trans | --program-tran \
1112 | --progr-tra | --program-tr | --program-t)
1113 ac_prev=program_transform_name ;;
1114 -program-transform-name=* | --program-transform-name=* \
1115 | --program-transform-nam=* | --program-transform-na=* \
1116 | --program-transform-n=* | --program-transform-=* \
1117 | --program-transform=* | --program-transfor=* \
1118 | --program-transfo=* | --program-transf=* \
1119 | --program-trans=* | --program-tran=* \
1120 | --progr-tra=* | --program-tr=* | --program-t=*)
1121 program_transform_name=$ac_optarg ;;
1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126 pdfdir=$ac_optarg ;;
1128 -psdir | --psdir | --psdi | --psd | --ps)
1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 sbindir=$ac_optarg ;;
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 sharedstatedir=$ac_optarg ;;
1154 -site | --site | --sit)
1156 -site=* | --site=* | --sit=*)
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1196 eval with_$ac_useropt=\$ac_optarg ;;
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval with_$ac_useropt=no ;;
1215 # Obsolete; use --with-x.
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1232 -*) as_fn_error "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information."
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1247 # FIXME: should be removed in autoconf 3.0.
1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error "missing argument to $ac_option"
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1265 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1283 # Be sure to have absolute directory names.
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1296 target=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312 test "$silent" = yes && exec 6>/dev/null
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 as_fn_error "working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 as_fn_error "pwd does not report name of working directory"
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1355 ac_srcdir_defaulted=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 as_fn_error "path to source, $srcdir, contains spaces"
1380 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1396 \`configure' configures this package to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 --target=TARGET configure for building compilers for TARGET [HOST]
1465 if test -n "$ac_init_help"; then
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --enable-libgfortran[=ARG]
1474 build target libgfortran [ARG={default,yes,no}]
1475 --enable-as-accelerator-for=ARG
1476 build as offload target compiler. Specify offload
1478 --enable-offload-targets=LIST
1479 enable offloading to devices from comma-separated
1480 LIST of TARGET[=DIR]. Use optional path to find
1481 offload target compiler during the build
1482 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1483 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1484 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1485 Enable compressed debug sections for gas, gold or ld
1487 --disable-libquadmath do not build libquadmath directory
1488 --disable-libquadmath-support
1489 disable libquadmath support for Fortran
1490 --enable-libada build libada directory
1491 --enable-libssp build libssp directory
1492 --disable-libstdcxx do not build libstdc++-v3 directory
1493 --enable-liboffloadmic=ARG
1494 build liboffloadmic [ARG={no,host,target}]
1495 --enable-static-libjava[=ARG]
1496 build static libjava [default=no]
1497 --enable-bootstrap enable bootstrapping [yes if native build]
1498 --disable-isl-version-check
1499 disable check for isl version
1500 --enable-lto enable link time optimization support
1501 --enable-linker-plugin-configure-flags=FLAGS
1502 additional flags for configuring linker plugins
1504 --enable-linker-plugin-flags=FLAGS
1505 additional flags for configuring and building linker
1507 --enable-stage1-languages[=all]
1508 choose additional languages to build during stage1.
1509 Mostly useful for compiler development
1510 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1512 --enable-vtable-verify Enable vtable verification feature
1513 --enable-serial-[{host,target,build}-]configure
1514 force sequential configuration of sub-packages for
1515 the host, target or build machine, or all
1517 --enable-maintainer-mode
1518 enable make rules and dependencies not useful (and
1519 sometimes confusing) to the casual installer
1520 --enable-stage1-checking[=all]
1521 choose additional checking for stage1 of the
1523 --enable-werror enable -Werror in bootstrap stage2 and later
1524 --enable-host-shared build host code as shared libraries
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1529 --with-build-libsubdir=DIR Directory where to find libraries for build system
1530 --with-system-zlib use installed libz
1531 --with-mpc=PATH specify prefix directory for installed MPC package.
1532 Equivalent to --with-mpc-include=PATH/include plus
1533 --with-mpc-lib=PATH/lib
1534 --with-mpc-include=PATH specify directory for installed MPC include files
1535 --with-mpc-lib=PATH specify directory for the installed MPC library
1536 --with-mpfr-dir=PATH this option has been REMOVED
1537 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1538 Equivalent to --with-mpfr-include=PATH/include plus
1539 --with-mpfr-lib=PATH/lib
1540 --with-mpfr-include=PATH
1541 specify directory for installed MPFR include files
1542 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1543 --with-gmp-dir=PATH this option has been REMOVED
1544 --with-gmp=PATH specify prefix directory for the installed GMP
1545 package. Equivalent to
1546 --with-gmp-include=PATH/include plus
1547 --with-gmp-lib=PATH/lib
1548 --with-gmp-include=PATH specify directory for installed GMP include files
1549 --with-gmp-lib=PATH specify directory for the installed GMP library
1550 --with-stage1-libs=LIBS libraries for stage1
1551 --with-stage1-ldflags=FLAGS
1552 linker flags for stage1
1553 --with-boot-libs=LIBS libraries for stage2 and later
1554 --with-boot-ldflags=FLAGS
1555 linker flags for stage2 and later
1556 --with-isl=PATH Specify prefix directory for the installed isl
1557 package. Equivalent to
1558 --with-isl-include=PATH/include plus
1559 --with-isl-lib=PATH/lib
1560 --with-isl-include=PATH Specify directory for installed isl include files
1561 --with-isl-lib=PATH Specify the directory for the installed isl library
1562 --with-build-sysroot=SYSROOT
1563 use sysroot as the system root during the build
1564 --with-debug-prefix-map='A=B C=D ...'
1565 map A to B, C to D ... in debug information
1566 --with-build-config='NAME NAME2...'
1567 use config/NAME.mk build configuration
1568 --with-build-time-tools=PATH
1569 use given path to find target tools during the build
1571 Some influential environment variables:
1572 CC C compiler command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1575 nonstandard directory <lib dir>
1576 LIBS libraries to pass to the linker, e.g. -l<library>
1577 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1578 you have headers in a nonstandard directory <include dir>
1579 CXX C++ compiler command
1580 CXXFLAGS C++ compiler flags
1582 additional configure arguments for build directories
1584 additional configure arguments for host directories
1586 additional configure arguments for target directories
1589 DLLTOOL DLLTOOL for the host
1591 LIPO LIPO for the host
1593 RANLIB RANLIB for the host
1594 STRIP STRIP for the host
1595 WINDRES WINDRES for the host
1596 WINDMC WINDMC for the host
1597 OBJCOPY OBJCOPY for the host
1598 OBJDUMP OBJDUMP for the host
1599 READELF READELF for the host
1609 GFORTRAN for the target
1617 DLLTOOL for the target
1625 OBJCOPY for the target
1627 OBJDUMP for the target
1629 RANLIB for the target
1631 READELF for the target
1633 STRIP for the target
1635 WINDRES for the target
1637 WINDMC for the target
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1642 Report bugs to the package provider.
1647 if test "$ac_init_help" = "recursive"; then
1648 # If there are subdirs, report their specific --help.
1649 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1650 test -d "$ac_dir" ||
1651 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1659 # A ".." for each directory in $ac_dir_suffix.
1660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1661 case $ac_top_builddir_sub in
1662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1666 ac_abs_top_builddir=$ac_pwd
1667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668 # for backward compatibility:
1669 ac_top_builddir=$ac_top_build_prefix
1672 .) # We are building in place.
1674 ac_top_srcdir=$ac_top_builddir_sub
1675 ac_abs_top_srcdir=$ac_pwd ;;
1676 [\\/]* | ?:[\\/]* ) # Absolute name.
1677 ac_srcdir=$srcdir$ac_dir_suffix;
1678 ac_top_srcdir=$srcdir
1679 ac_abs_top_srcdir=$srcdir ;;
1681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682 ac_top_srcdir=$ac_top_build_prefix$srcdir
1683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687 cd "$ac_dir" || { ac_status=$?; continue; }
1688 # Check for guested configure.
1689 if test -f "$ac_srcdir/configure.gnu"; then
1691 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692 elif test -f "$ac_srcdir/configure"; then
1694 $SHELL "$ac_srcdir/configure" --help=recursive
1696 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 cd "$ac_pwd" || { ac_status=$?; break; }
1702 test -n "$ac_init_help" && exit $ac_status
1703 if $ac_init_version; then
1706 generated by GNU Autoconf 2.64
1708 Copyright (C) 2009 Free Software Foundation, Inc.
1709 This configure script is free software; the Free Software Foundation
1710 gives unlimited permission to copy, distribute and modify it.
1715 ## ------------------------ ##
1716 ## Autoconf initialization. ##
1717 ## ------------------------ ##
1719 # ac_fn_c_try_compile LINENO
1720 # --------------------------
1721 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_compile ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext
1726 if { { ac_try="$ac_compile"
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_compile") 2>conftest.err
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest.$ac_objext; then :
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1755 } # ac_fn_c_try_compile
1757 # ac_fn_cxx_try_compile LINENO
1758 # ----------------------------
1759 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_cxx_try_compile ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext
1764 if { { ac_try="$ac_compile"
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_compile") 2>conftest.err
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_cxx_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest.$ac_objext; then :
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 } # ac_fn_cxx_try_compile
1795 # ac_fn_cxx_try_link LINENO
1796 # -------------------------
1797 # Try to link conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_cxx_try_link ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext conftest$ac_exeext
1802 if { { ac_try="$ac_link"
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_link") 2>conftest.err
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_cxx_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest$ac_exeext && {
1821 test "$cross_compiling" = yes ||
1822 $as_test_x conftest$ac_exeext
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1831 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1832 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1833 # interfere with the next link command; also delete a directory that is
1834 # left behind by Apple's compiler. We do this before executing the actions.
1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839 } # ac_fn_cxx_try_link
1841 # ac_fn_c_try_link LINENO
1842 # -----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
1868 $as_test_x conftest$ac_exeext
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879 # interfere with the next link command; also delete a directory that is
1880 # left behind by Apple's compiler. We do this before executing the actions.
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885 } # ac_fn_c_try_link
1886 cat >config.log <<_ACEOF
1887 This file contains any messages produced by compilers while
1888 running configure, to aid debugging if configure makes a mistake.
1890 It was created by $as_me, which was
1891 generated by GNU Autoconf 2.64. Invocation command line was
1903 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1904 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1905 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1906 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1907 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1909 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1910 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1912 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1913 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1914 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1915 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1916 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1917 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1918 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 test -z "$as_dir" && as_dir=.
1927 $as_echo "PATH: $as_dir"
1943 # Keep a trace of the command line.
1944 # Strip out --no-create and --no-recursion so they do not pile up.
1945 # Strip out --silent because we don't want to record it for future runs.
1946 # Also quote any args containing shell meta-characters.
1947 # Make two passes to allow for proper duplicate-argument suppression.
1951 ac_must_keep_next=false
1957 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1959 | -silent | --silent | --silen | --sile | --sil)
1962 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1965 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1967 as_fn_append ac_configure_args1 " '$ac_arg'"
1968 if test $ac_must_keep_next = true; then
1969 ac_must_keep_next=false # Got value, back to normal.
1972 *=* | --config-cache | -C | -disable-* | --disable-* \
1973 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1974 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1975 | -with-* | --with-* | -without-* | --without-* | --x)
1976 case "$ac_configure_args0 " in
1977 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1980 -* ) ac_must_keep_next=true ;;
1983 as_fn_append ac_configure_args " '$ac_arg'"
1988 { ac_configure_args0=; unset ac_configure_args0;}
1989 { ac_configure_args1=; unset ac_configure_args1;}
1991 # When interrupted or exit'd, cleanup temporary files, and complete
1992 # config.log. We remove comments because anyway the quotes in there
1993 # would cause problems or look ugly.
1994 # WARNING: Use '\'' to represent an apostrophe within the trap.
1995 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1996 trap 'exit_status=$?
1997 # Save into config.log some information that might help in debugging.
2002 ## ---------------- ##
2003 ## Cache variables. ##
2004 ## ---------------- ##
2007 # The following way of writing the cache mishandles newlines in values,
2009 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2010 eval ac_val=\$$ac_var
2014 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2015 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2018 _ | IFS | as_nl) ;; #(
2019 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2020 *) { eval $ac_var=; unset $ac_var;} ;;
2025 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2026 *${as_nl}ac_space=\ *)
2028 "s/'\''/'\''\\\\'\'''\''/g;
2029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2040 ## ----------------- ##
2041 ## Output variables. ##
2042 ## ----------------- ##
2045 for ac_var in $ac_subst_vars
2047 eval ac_val=\$$ac_var
2049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 $as_echo "$ac_var='\''$ac_val'\''"
2055 if test -n "$ac_subst_files"; then
2057 ## ------------------- ##
2058 ## File substitutions. ##
2059 ## ------------------- ##
2062 for ac_var in $ac_subst_files
2064 eval ac_val=\$$ac_var
2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 $as_echo "$ac_var='\''$ac_val'\''"
2073 if test -s confdefs.h; then
2083 test "$ac_signal" != 0 &&
2084 $as_echo "$as_me: caught signal $ac_signal"
2085 $as_echo "$as_me: exit $exit_status"
2087 rm -f core *.core core.conftest.* &&
2088 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2091 for ac_signal in 1 2 13 15; do
2092 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2097 rm -f -r conftest* confdefs.h
2099 $as_echo "/* confdefs.h */" > confdefs.h
2101 # Predefined preprocessor variables.
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_NAME "$PACKAGE_NAME"
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_STRING "$PACKAGE_STRING"
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_URL "$PACKAGE_URL"
2128 # Let the site file select an alternate cache file if it wants to.
2129 # Prefer an explicitly selected file to automatically selected ones.
2132 if test -n "$CONFIG_SITE"; then
2133 ac_site_file1=$CONFIG_SITE
2134 elif test "x$prefix" != xNONE; then
2135 ac_site_file1=$prefix/share/config.site
2136 ac_site_file2=$prefix/etc/config.site
2138 ac_site_file1=$ac_default_prefix/share/config.site
2139 ac_site_file2=$ac_default_prefix/etc/config.site
2141 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143 test "x$ac_site_file" = xNONE && continue
2144 if test -r "$ac_site_file"; then
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2146 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2147 sed 's/^/| /' "$ac_site_file" >&5
2152 if test -r "$cache_file"; then
2153 # Some versions of bash will fail to source /dev/null (special
2154 # files actually), so we avoid doing that.
2155 if test -f "$cache_file"; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2157 $as_echo "$as_me: loading cache $cache_file" >&6;}
2159 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2160 *) . "./$cache_file";;
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2165 $as_echo "$as_me: creating cache $cache_file" >&6;}
2169 # Check that the precious variables saved in the cache have kept the same
2171 ac_cache_corrupted=false
2172 for ac_var in $ac_precious_vars; do
2173 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2174 eval ac_new_set=\$ac_env_${ac_var}_set
2175 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2176 eval ac_new_val=\$ac_env_${ac_var}_value
2177 case $ac_old_set,$ac_new_set in
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2180 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2181 ac_cache_corrupted=: ;;
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2184 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2185 ac_cache_corrupted=: ;;
2188 if test "x$ac_old_val" != "x$ac_new_val"; then
2189 # differences in whitespace do not lead to failure.
2190 ac_old_val_w=`echo x $ac_old_val`
2191 ac_new_val_w=`echo x $ac_new_val`
2192 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2194 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2195 ac_cache_corrupted=:
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2198 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2199 eval $ac_var=\$ac_old_val
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2202 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2204 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2207 # Pass precious variables to config.status.
2208 if test "$ac_new_set" = set; then
2210 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2211 *) ac_arg=$ac_var=$ac_new_val ;;
2213 case " $ac_configure_args " in
2214 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2215 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2219 if $ac_cache_corrupted; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2223 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2224 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2226 ## -------------------- ##
2227 ## Main body of script. ##
2228 ## -------------------- ##
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245 # if PWD already has a value, it is probably wrong.
2246 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2248 # Export original configure arguments for use by sub-configures.
2249 # Quote arguments with shell meta charatcers.
2250 TOPLEVEL_CONFIGURE_ARGUMENTS=
2251 set -- "$progname" "$@"
2255 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2256 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2257 # if the argument is of the form -foo=baz, quote the baz part only
2258 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2261 # Add the quoted argument to the list.
2262 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2264 if test "$silent" = yes; then
2265 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2267 # Remove the initial space we just introduced and, as these will be
2268 # expanded by make, quote '$'.
2269 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2272 # Find the build, host, and target systems.
2274 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2275 for ac_t in install-sh install.sh shtool; do
2276 if test -f "$ac_dir/$ac_t"; then
2278 ac_install_sh="$ac_aux_dir/$ac_t -c"
2283 if test -z "$ac_aux_dir"; then
2284 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2287 # These three variables are undocumented and unsupported,
2288 # and are intended to be withdrawn in a future Autoconf release.
2289 # They can cause serious problems if a builder's source tree is in a directory
2290 # whose full name contains unusual characters.
2291 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2292 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2293 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2296 # Make sure we can run config.sub.
2297 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2298 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2301 $as_echo_n "checking build system type... " >&6; }
2302 if test "${ac_cv_build+set}" = set; then :
2303 $as_echo_n "(cached) " >&6
2305 ac_build_alias=$build_alias
2306 test "x$ac_build_alias" = x &&
2307 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2308 test "x$ac_build_alias" = x &&
2309 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2310 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2311 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2315 $as_echo "$ac_cv_build" >&6; }
2316 case $ac_cv_build in
2318 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2321 ac_save_IFS=$IFS; IFS='-'
2327 # Remember, the first character of IFS is used to create $*,
2328 # except with old shells:
2331 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2334 case ${build_alias} in
2335 "") build_noncanonical=${build} ;;
2336 *) build_noncanonical=${build_alias} ;;
2341 case ${host_alias} in
2342 "") host_noncanonical=${build_noncanonical} ;;
2343 *) host_noncanonical=${host_alias} ;;
2348 case ${target_alias} in
2349 "") target_noncanonical=${host_noncanonical} ;;
2350 *) target_noncanonical=${target_alias} ;;
2356 test "$host_noncanonical" = "$target_noncanonical" &&
2357 test "$program_prefix$program_suffix$program_transform_name" = \
2359 program_transform_name=s,y,y,
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2362 $as_echo_n "checking host system type... " >&6; }
2363 if test "${ac_cv_host+set}" = set; then :
2364 $as_echo_n "(cached) " >&6
2366 if test "x$host_alias" = x; then
2367 ac_cv_host=$ac_cv_build
2369 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2370 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2375 $as_echo "$ac_cv_host" >&6; }
2378 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2381 ac_save_IFS=$IFS; IFS='-'
2387 # Remember, the first character of IFS is used to create $*,
2388 # except with old shells:
2391 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2395 $as_echo_n "checking target system type... " >&6; }
2396 if test "${ac_cv_target+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2399 if test "x$target_alias" = x; then
2400 ac_cv_target=$ac_cv_host
2402 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2403 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2408 $as_echo "$ac_cv_target" >&6; }
2409 case $ac_cv_target in
2411 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2413 target=$ac_cv_target
2414 ac_save_IFS=$IFS; IFS='-'
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2424 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2427 # The aliases save the names the user supplied, while $host etc.
2428 # will get canonicalized.
2429 test -n "$target_alias" &&
2430 test "$program_prefix$program_suffix$program_transform_name" = \
2432 program_prefix=${target_alias}-
2434 test "$program_prefix" != NONE &&
2435 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2436 # Use a double $ so make ignores it.
2437 test "$program_suffix" != NONE &&
2438 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2439 # Double any \ or $.
2440 # By default was `s,x,x', remove it if useless.
2441 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2442 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2446 # Get 'install' or 'install-sh' and its variants.
2447 # Find a good install program. We prefer a C program (faster),
2448 # so one script is as good as another. But avoid the broken or
2449 # incompatible versions:
2450 # SysV /etc/install, /usr/sbin/install
2451 # SunOS /usr/etc/install
2452 # IRIX /sbin/install
2454 # AmigaOS /C/install, which installs bootblocks on floppy discs
2455 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2456 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2457 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2458 # OS/2's system install, which has a completely different semantic
2459 # ./install, which can be erroneously created by make from ./install.sh.
2460 # Reject install programs that cannot install multiple files.
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2462 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2463 if test -z "$INSTALL"; then
2464 if test "${ac_cv_path_install+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 # Account for people who put trailing slashes in PATH elements.
2473 case $as_dir/ in #((
2474 ./ | .// | /[cC]/* | \
2475 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2476 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2479 # OSF1 and SCO ODT 3.0 have their own names for install.
2480 # Don't use installbsd from OSF since it installs stuff as root
2482 for ac_prog in ginstall scoinst install; do
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2485 if test $ac_prog = install &&
2486 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487 # AIX install. It has an incompatible calling convention.
2489 elif test $ac_prog = install &&
2490 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2491 # program-specific install script used by HP pwplus--don't use.
2494 rm -rf conftest.one conftest.two conftest.dir
2495 echo one > conftest.one
2496 echo two > conftest.two
2498 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2499 test -s conftest.one && test -s conftest.two &&
2500 test -s conftest.dir/conftest.one &&
2501 test -s conftest.dir/conftest.two
2503 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2516 rm -rf conftest.one conftest.two conftest.dir
2519 if test "${ac_cv_path_install+set}" = set; then
2520 INSTALL=$ac_cv_path_install
2522 # As a last resort, use the slow shell script. Don't cache a
2523 # value for INSTALL within a source directory, because that will
2524 # break other packages using the cache if that directory is
2525 # removed, or if the value is a relative name.
2526 INSTALL=$ac_install_sh
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2530 $as_echo "$INSTALL" >&6; }
2532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2533 # It thinks the first close brace ends the variable substitution.
2534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2541 $as_echo_n "checking whether ln works... " >&6; }
2542 if test "${acx_cv_prog_LN+set}" = set; then :
2543 $as_echo_n "(cached) " >&6
2545 rm -f conftestdata_t
2546 echo >conftestdata_f
2547 if ln conftestdata_f conftestdata_t 2>/dev/null
2553 rm -f conftestdata_f conftestdata_t
2556 if test $acx_cv_prog_LN = no; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2559 $as_echo "no, using $LN" >&6; }
2561 LN="$acx_cv_prog_LN"
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2563 $as_echo "yes" >&6; }
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2567 $as_echo_n "checking whether ln -s works... " >&6; }
2569 if test "$LN_S" = "ln -s"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2571 $as_echo "yes" >&6; }
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2574 $as_echo "no, using $LN_S" >&6; }
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2578 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2579 if test "${ac_cv_path_SED+set}" = set; then :
2580 $as_echo_n "(cached) " >&6
2582 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2583 for ac_i in 1 2 3 4 5 6 7; do
2584 ac_script="$ac_script$as_nl$ac_script"
2586 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2587 { ac_script=; unset ac_script;}
2588 if test -z "$SED"; then
2589 ac_path_SED_found=false
2590 # Loop through the user's path and test for each of PROGNAME-LIST
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 test -z "$as_dir" && as_dir=.
2596 for ac_prog in sed gsed; do
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2599 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2600 # Check for GNU ac_path_SED and select it if it is found.
2601 # Check for GNU $ac_path_SED
2602 case `"$ac_path_SED" --version 2>&1` in
2604 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2607 $as_echo_n 0123456789 >"conftest.in"
2610 cat "conftest.in" "conftest.in" >"conftest.tmp"
2611 mv "conftest.tmp" "conftest.in"
2612 cp "conftest.in" "conftest.nl"
2613 $as_echo '' >> "conftest.nl"
2614 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2616 as_fn_arith $ac_count + 1 && ac_count=$as_val
2617 if test $ac_count -gt ${ac_path_SED_max-0}; then
2618 # Best one so far, save it but keep looking for a better one
2619 ac_cv_path_SED="$ac_path_SED"
2620 ac_path_SED_max=$ac_count
2622 # 10*(2^10) chars as input seems more than enough
2623 test $ac_count -gt 10 && break
2625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2628 $ac_path_SED_found && break 3
2633 if test -z "$ac_cv_path_SED"; then
2634 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2642 $as_echo "$ac_cv_path_SED" >&6; }
2643 SED="$ac_cv_path_SED"
2646 for ac_prog in gawk mawk nawk awk
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_AWK+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$AWK"; then
2656 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_AWK="$ac_prog"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 if test -n "$AWK"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2678 $as_echo "$AWK" >&6; }
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2685 test -n "$AWK" && break
2689 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2691 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2693 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2694 INSTALL="${srcpwd}/install-sh -c"
2697 # Set srcdir to "." if that's what it is.
2698 # This is important for multilib support.
2700 if test "${pwd}" = "${srcpwd}" ; then
2708 ### To add a new directory to the tree, first choose whether it is a target
2709 ### or a host dependent tool. Then put it into the appropriate list
2710 ### (library or tools, host or target), doing a dependency sort.
2712 # Subdirs will be configured in the order listed in build_configdirs,
2713 # configdirs, or target_configdirs; see the serialization section below.
2715 # Dependency sorting is only needed when *configuration* must be done in
2716 # a particular order. In all cases a dependency should be specified in
2717 # the Makefile, whether or not it's implicitly specified here.
2719 # Double entries in build_configdirs, configdirs, or target_configdirs may
2720 # cause circular dependencies and break everything horribly.
2722 # these library is used by various programs built for the build
2725 build_libs="build-libiberty build-libcpp"
2727 # these tools are built for the build environment
2728 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2730 # these libraries are used by various programs built for the host environment
2732 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2734 # these tools are built for the host environment
2735 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2736 # know that we are building the simulator.
2737 # binutils, gas and ld appear in that order because it makes sense to run
2738 # "make check" in that particular order.
2739 # If --enable-gold is used, "gold" may replace "ld".
2740 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2742 # libgcj represents the runtime libraries only used by gcj.
2743 libgcj="target-libffi \
2747 # libgfortran represents the runtime libraries only used by fortran.
2748 # Check whether --enable-libgfortran was given.
2749 if test "${enable_libgfortran+set}" = set; then :
2750 enableval=$enable_libgfortran; libgfortran="target-libgfortran"
2756 # these libraries are built for the target environment, and are built after
2757 # the host libraries and the host tools (which may be a cross compiler)
2758 # Note that libiberty is not a target library.
2759 target_libraries="target-libgcc \
2760 target-libbacktrace \
2765 target-liboffloadmic \
2768 target-libstdc++-v3 \
2769 target-libsanitizer \
2773 target-libquadmath \
2781 # these tools are built using the target libraries, and are intended to
2782 # run only in the target environment
2784 # note: any program that *uses* libraries that are in the "target_libraries"
2785 # list belongs in this list.
2787 target_tools="target-rda"
2789 ################################################################################
2791 ## All tools belong in one of the four categories, and are assigned above
2792 ## We assign ${configdirs} this way to remove all embedded newlines. This
2793 ## is important because configure will choke if they ever get through.
2794 ## ${configdirs} is directories we build using the host tools.
2795 ## ${target_configdirs} is directories we build using the target tools.
2796 configdirs=`echo ${host_libs} ${host_tools}`
2797 target_configdirs=`echo ${target_libraries} ${target_tools}`
2798 build_configdirs=`echo ${build_libs} ${build_tools}`
2802 ################################################################################
2804 srcname="gnu development package"
2806 # This gets set non-empty for some net releases of packages.
2809 # Define is_cross_compiler to save on calls to 'test'.
2811 if test x"${host}" = x"${target}" ; then
2812 is_cross_compiler=no
2814 is_cross_compiler=yes
2817 # Find the build and target subdir names.
2819 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2820 # have matching libraries, they should use host libraries: Makefile.tpl
2821 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2822 # However, they still use the build modules, because the corresponding
2823 # host modules (e.g. bison) are only built for the host when bootstrap
2825 # - build_subdir is where we find build modules, and never changes.
2826 # - build_libsubdir is where we find build libraries, and can be overridden.
2828 # Prefix 'build-' so this never conflicts with target_subdir.
2829 build_subdir="build-${build_noncanonical}"
2831 # Check whether --with-build-libsubdir was given.
2832 if test "${with_build_libsubdir+set}" = set; then :
2833 withval=$with_build_libsubdir; build_libsubdir="$withval"
2835 build_libsubdir="$build_subdir"
2838 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2839 if ( test $srcdir = . && test -d gcc ) \
2840 || test -d $srcdir/../host-${host_noncanonical}; then
2841 host_subdir="host-${host_noncanonical}"
2846 target_subdir=${target_noncanonical}
2848 # Be sure to cover against remnants of an in-tree build.
2849 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2850 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2851 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2854 # Skipdirs are removed silently.
2856 # Noconfigdirs are removed loudly.
2860 # Make sure we don't let GNU ld be added if we didn't want it.
2861 if test x$with_gnu_ld = xno ; then
2863 noconfigdirs="$noconfigdirs ld gold"
2867 # Make sure we don't let GNU as be added if we didn't want it.
2868 if test x$with_gnu_as = xno ; then
2870 noconfigdirs="$noconfigdirs gas"
2875 # Check whether --with-system-zlib was given.
2876 if test "${with_system_zlib+set}" = set; then :
2877 withval=$with_system_zlib;
2880 # Make sure we don't let ZLIB be added if we didn't want it.
2881 if test x$with_system_zlib = xyes ; then
2882 use_included_zlib=no
2883 noconfigdirs="$noconfigdirs zlib"
2886 # some tools are so dependent upon X11 that if we're not building with X,
2887 # it's not even worth trying to configure, much less build, that tool.
2890 yes | "") ;; # the default value for this tree is that X11 is available
2892 skipdirs="${skipdirs} tk itcl libgui"
2893 # We won't be able to build gdbtk without X.
2896 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2899 # Some are only suitable for cross toolchains.
2900 # Remove these if host=target.
2901 cross_only="target-libgloss target-newlib target-opcodes"
2903 case $is_cross_compiler in
2904 no) skipdirs="${skipdirs} ${cross_only}" ;;
2907 # If both --with-headers and --with-libs are specified, default to
2909 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2910 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2911 if test x"${with_newlib}" = x ; then
2916 # Recognize --with-newlib/--without-newlib.
2917 case ${with_newlib} in
2918 no) skipdirs="${skipdirs} target-newlib" ;;
2919 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2922 # Check whether --enable-as-accelerator-for was given.
2923 if test "${enable_as_accelerator_for+set}" = set; then :
2924 enableval=$enable_as_accelerator_for;
2928 # Check whether --enable-offload-targets was given.
2929 if test "${enable_offload_targets+set}" = set; then :
2930 enableval=$enable_offload_targets;
2931 if test x"$enable_offload_targets" = x; then
2932 as_fn_error "no offload targets specified" "$LINENO" 5
2936 enable_offload_targets=
2940 # Handle --enable-gold, --enable-ld.
2941 # --disable-gold [--enable-ld]
2942 # Build only ld. Default option.
2943 # --enable-gold [--enable-ld]
2944 # Build both gold and ld. Install gold as "ld.gold", install ld
2945 # as "ld.bfd" and "ld".
2946 # --enable-gold=default [--enable-ld]
2947 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2948 # install ld as "ld.bfd".
2949 # --enable-gold[=default] --disable-ld
2950 # Build only gold, which is then installed as both "ld.gold" and "ld".
2951 # --enable-gold --enable-ld=default
2952 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2954 # In other words, ld is default
2955 # --enable-gold=default --enable-ld=default
2959 # Check whether --enable-gold was given.
2960 if test "${enable_gold+set}" = set; then :
2961 enableval=$enable_gold; ENABLE_GOLD=$enableval
2966 case "${ENABLE_GOLD}" in
2968 # Check for ELF target.
2971 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2972 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2973 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2974 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2976 *-*-linux*aout* | *-*-linux*oldld*)
2984 if test "$is_elf" = "yes"; then
2985 # Check for target supported by gold.
2987 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2988 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2989 configdirs="$configdirs gold"
2990 if test x${ENABLE_GOLD} = xdefault; then
3001 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3005 # Check whether --enable-ld was given.
3006 if test "${enable_ld+set}" = set; then :
3007 enableval=$enable_ld; ENABLE_LD=$enableval
3013 case "${ENABLE_LD}" in
3015 if test x${default_ld} != x; then
3016 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3022 if test x${ENABLE_GOLD} != xyes; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3024 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3026 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3029 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3034 # Decide the default method for compressing debug sections.
3035 # Provide a configure time option to override our default.
3036 # Check whether --enable-compressed_debug_sections was given.
3037 if test "${enable_compressed_debug_sections+set}" = set; then :
3038 enableval=$enable_compressed_debug_sections;
3039 if test x"$enable_compressed_debug_sections" = xyes; then
3040 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3044 enable_compressed_debug_sections=
3048 # Configure extra directories which are host specific
3052 configdirs="$configdirs libtermcap" ;;
3055 # A target can indicate whether a language isn't supported for some reason.
3056 # Only spaces may be used in this macro; not newlines or tabs.
3057 unsupported_languages=
3059 # Remove more programs from consideration, based on the host or
3060 # target this usually means that a port of the program doesn't
3064 i[3456789]86-*-msdosdjgpp*)
3065 noconfigdirs="$noconfigdirs tcl tk itcl"
3070 # Check whether --enable-libquadmath was given.
3071 if test "${enable_libquadmath+set}" = set; then :
3072 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3074 ENABLE_LIBQUADMATH=yes
3077 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3078 noconfigdirs="$noconfigdirs target-libquadmath"
3082 # Check whether --enable-libquadmath-support was given.
3083 if test "${enable_libquadmath_support+set}" = set; then :
3084 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3086 ENABLE_LIBQUADMATH_SUPPORT=yes
3089 enable_libquadmath_support=
3090 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3091 enable_libquadmath_support=no
3095 # Check whether --enable-libada was given.
3096 if test "${enable_libada+set}" = set; then :
3097 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3102 if test "${ENABLE_LIBADA}" != "yes" ; then
3103 noconfigdirs="$noconfigdirs gnattools"
3106 # Check whether --enable-libssp was given.
3107 if test "${enable_libssp+set}" = set; then :
3108 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3114 # Check whether --enable-libstdcxx was given.
3115 if test "${enable_libstdcxx+set}" = set; then :
3116 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3118 ENABLE_LIBSTDCXX=default
3121 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3122 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3125 # If this is accelerator compiler and its target is intelmic we enable
3126 # target liboffloadmic by default. If this is compiler with offloading
3127 # for intelmic we enable host liboffloadmic by default. Otherwise
3128 # liboffloadmic is disabled by default.
3129 # Check whether --enable-liboffloadmic was given.
3130 if test "${enable_liboffloadmic+set}" = set; then :
3131 enableval=$enable_liboffloadmic; case "$enableval" in
3133 enable_liboffloadmic=$enableval ;;
3135 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3138 if test x"$enable_as_accelerator_for" != x; then
3140 *-intelmic-* | *-intelmicemul-*)
3141 enable_liboffloadmic=target
3142 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3145 enable_liboffloadmic=no
3149 case "${enable_offload_targets}" in
3150 *-intelmic-* | *-intelmicemul-*)
3151 enable_liboffloadmic=host
3152 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3155 enable_liboffloadmic=no
3163 # Save it here so that, even in case of --enable-libgcj, if the Java
3164 # front-end isn't enabled, we still get libgcj disabled.
3165 libgcj_saved=$libgcj
3166 case $enable_libgcj in
3168 # If we reset it here, it won't get added to noconfigdirs in the
3169 # target-specific build rules, so it will be forcibly enabled
3170 # (unless the Java language itself isn't enabled).
3174 # Make sure we get it printed in the list of not supported target libs.
3175 # Don't disable libffi, though, other languages use it.
3176 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3177 # Clear libgcj_saved so that even if java is enabled libffi won't be
3183 # Check whether --enable-static-libjava was given.
3184 if test "${enable_static_libjava+set}" = set; then :
3185 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3187 ENABLE_STATIC_LIBJAVA=no
3190 enable_static_libjava=
3191 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3192 enable_static_libjava=yes
3195 if test x$enable_static_libjava != xyes ; then
3196 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3200 # Enable libgomp by default on hosted POSIX systems, and a few others.
3201 if test x$enable_libgomp = x ; then
3203 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3205 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3207 *-*-solaris2* | *-*-hpux11*)
3209 *-*-darwin* | *-*-aix*)
3214 noconfigdirs="$noconfigdirs target-libgomp"
3219 # Disable libatomic on unsupported systems.
3220 if test -d ${srcdir}/libatomic; then
3221 if test x$enable_libatomic = x; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3223 $as_echo_n "checking for libatomic support... " >&6; }
3224 if (srcdir=${srcdir}/libatomic; \
3225 . ${srcdir}/configure.tgt; \
3226 test -n "$UNSUPPORTED")
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 noconfigdirs="$noconfigdirs target-libatomic"
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 $as_echo "yes" >&6; }
3238 # Disable libcilkrts on unsupported systems.
3239 if test -d ${srcdir}/libcilkrts; then
3240 if test x$enable_libcilkrts = x; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3242 $as_echo_n "checking for libcilkrts support... " >&6; }
3243 if (srcdir=${srcdir}/libcilkrts; \
3244 . ${srcdir}/configure.tgt; \
3245 test -n "$UNSUPPORTED")
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 noconfigdirs="$noconfigdirs target-libcilkrts"
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3257 # Disable liboffloadmic on unsupported systems.
3258 if test -d ${srcdir}/liboffloadmic; then
3259 if test x$enable_liboffloadmic != xno; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3261 $as_echo_n "checking for liboffloadmic support... " >&6; }
3262 if (srcdir=${srcdir}/liboffloadmic; \
3263 . ${srcdir}/configure.tgt; \
3264 test -n "$UNSUPPORTED")
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 noconfigdirs="$noconfigdirs target-liboffloadmic"
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3271 $as_echo "yes" >&6; }
3276 # Disable libitm on unsupported systems.
3277 if test -d ${srcdir}/libitm; then
3278 if test x$enable_libitm = x; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3280 $as_echo_n "checking for libitm support... " >&6; }
3281 if (srcdir=${srcdir}/libitm; \
3282 . ${srcdir}/configure.tgt; \
3283 test -n "$UNSUPPORTED")
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 noconfigdirs="$noconfigdirs target-libitm"
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290 $as_echo "yes" >&6; }
3295 # Disable libsanitizer on unsupported systems.
3296 if test -d ${srcdir}/libsanitizer; then
3297 if test x$enable_libsanitizer = x; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3299 $as_echo_n "checking for libsanitizer support... " >&6; }
3300 if (srcdir=${srcdir}/libsanitizer; \
3301 . ${srcdir}/configure.tgt; \
3302 test -n "$UNSUPPORTED")
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 noconfigdirs="$noconfigdirs target-libsanitizer"
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309 $as_echo "yes" >&6; }
3314 # Disable libvtv on unsupported systems.
3315 if test -d ${srcdir}/libvtv; then
3316 if test x$enable_libvtv = x; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3318 $as_echo_n "checking for libvtv support... " >&6; }
3319 if (srcdir=${srcdir}/libvtv; \
3320 . ${srcdir}/configure.tgt; \
3321 test "$VTV_SUPPORTED" != "yes")
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 noconfigdirs="$noconfigdirs target-libvtv"
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3334 # Enable libmpx on supported systems by request.
3335 if test -d ${srcdir}/libmpx; then
3336 if test x$enable_libmpx = x; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3338 $as_echo_n "checking for libmpx support... " >&6; }
3339 if (srcdir=${srcdir}/libmpx; \
3340 . ${srcdir}/configure.tgt; \
3341 test "$LIBMPX_SUPPORTED" != "yes")
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 noconfigdirs="$noconfigdirs target-libmpx"
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3348 $as_echo "yes" >&6; }
3355 # Disable libquadmath for some systems.
3358 noconfigdirs="$noconfigdirs target-libquadmath"
3360 # libquadmath is unused on AIX and libquadmath build process use of
3361 # LD_LIBRARY_PATH can break AIX bootstrap.
3362 powerpc-*-aix* | rs6000-*-aix*)
3363 noconfigdirs="$noconfigdirs target-libquadmath"
3367 # Disable libssp for some systems.
3370 # No hosted I/O support.
3371 noconfigdirs="$noconfigdirs target-libssp"
3373 powerpc-*-aix* | rs6000-*-aix*)
3374 noconfigdirs="$noconfigdirs target-libssp"
3377 # libssp uses a misaligned load to trigger a fault, but the RL78
3378 # doesn't fault for those - instead, it gives a build-time error
3379 # for explicit misaligned loads.
3380 noconfigdirs="$noconfigdirs target-libssp"
3383 # No hosted I/O support.
3384 noconfigdirs="$noconfigdirs target-libssp"
3388 # Disable libstdc++-v3 for some systems.
3389 # Allow user to override this if they pass --enable-libstdc++-v3
3390 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3393 # VxWorks uses the Dinkumware C++ library.
3394 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3397 # the C++ libraries don't build on top of CE's C libraries
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3404 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3409 # Disable Fortran for some systems.
3412 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3413 unsupported_languages="$unsupported_languages fortran"
3417 # Disable Java if libffi is not supported.
3449 powerpc-*-aix* | rs6000-*-aix*)
3453 powerpc64-*-freebsd*)
3457 s390-*-* | s390x-*-*)
3459 sh-*-* | sh[34]*-*-*)
3461 sh64-*-* | sh5*-*-*)
3468 unsupported_languages="$unsupported_languages java"
3472 # Disable Java, libgcj or related libraries for some systems.
3476 i[3456789]86-*-darwin*)
3478 x86_64-*-darwin[912]*)
3481 noconfigdirs="$noconfigdirs ${libgcj}"
3484 noconfigdirs="$noconfigdirs ${libgcj}"
3487 noconfigdirs="$noconfigdirs ${libgcj}"
3490 noconfigdirs="$noconfigdirs ${libgcj}"
3493 noconfigdirs="$noconfigdirs ${libgcj}"
3496 noconfigdirs="$noconfigdirs ${libgcj}"
3498 aarch64*-*-freebsd*)
3499 noconfigdirs="$noconfigdirs ${libgcj}"
3502 noconfigdirs="$noconfigdirs ${libgcj}"
3505 noconfigdirs="$noconfigdirs ${libgcj}"
3508 noconfigdirs="$noconfigdirs ${libgcj}"
3511 noconfigdirs="$noconfigdirs ${libgcj}"
3514 noconfigdirs="$noconfigdirs target-boehm-gc"
3516 cris-*-* | crisv32-*-*)
3517 unsupported_languages="$unsupported_languages java"
3521 *) # See PR46792 regarding target-libffi.
3522 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3526 # In this case, it's because the hppa64-linux target is for
3527 # the kernel only at this point and has no libc, and thus no
3528 # headers, crt*.o, etc., all of which are needed by these.
3529 unsupported_languages="$unsupported_languages java"
3532 noconfigdirs="$noconfigdirs ${libgcj}"
3537 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3538 # build on HP-UX 10.20.
3539 noconfigdirs="$noconfigdirs ${libgcj}"
3542 noconfigdirs="$noconfigdirs ${libgcj}"
3544 i[3456789]86-w64-mingw*)
3545 noconfigdirs="$noconfigdirs ${libgcj}"
3547 i[3456789]86-*-mingw*)
3548 noconfigdirs="$noconfigdirs ${libgcj}"
3551 noconfigdirs="$noconfigdirs ${libgcj}"
3554 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3557 # copied from rs6000-*-* entry
3558 noconfigdirs="$noconfigdirs ${libgcj}"
3561 noconfigdirs="$noconfigdirs ${libgcj}"
3564 noconfigdirs="$noconfigdirs ${libgcj}"
3567 noconfigdirs="$noconfigdirs ${libgcj}"
3571 # Disable the go frontend on systems where it is known to not work. Please keep
3572 # this in sync with contrib/config-list.mk.
3574 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3575 unsupported_languages="$unsupported_languages go"
3579 # Disable libgo for some systems where it is known to not work.
3580 # For testing, you can easily override this with --enable-libgo.
3581 if test x$enable_libgo = x; then
3585 noconfigdirs="$noconfigdirs target-libgo"
3587 *-*-cygwin* | *-*-mingw*)
3588 noconfigdirs="$noconfigdirs target-libgo"
3591 noconfigdirs="$noconfigdirs target-libgo"
3596 # Default libgloss CPU subdirectory.
3597 libgloss_dir="$target_cpu"
3600 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3604 libgloss_dir=aarch64
3609 cris-*-* | crisv32-*-*)
3618 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3619 libgloss_dir=m68hc11
3621 m68*-*-* | fido-*-*)
3635 # Disable newlib and libgloss for various target OSes.
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 i[3456789]86-*-linux*)
3641 # This section makes it possible to build newlib natively on linux.
3642 # If we are using a cross compiler then don't configure newlib.
3643 if test x${is_cross_compiler} != xno ; then
3644 noconfigdirs="$noconfigdirs target-newlib"
3646 noconfigdirs="$noconfigdirs target-libgloss"
3647 # If we are not using a cross compiler, do configure newlib.
3648 # Note however, that newlib will only be configured in this situation
3649 # if the --with-newlib option has been given, because otherwise
3650 # 'target-newlib' will appear in skipdirs.
3652 i[3456789]86-*-rdos*)
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3706 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3707 noconfigdirs="$noconfigdirs sim target-rda"
3710 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3711 noconfigdirs="$noconfigdirs sim target-rda"
3714 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3715 noconfigdirs="$noconfigdirs sim target-rda"
3717 i[3456789]86-*-darwin*)
3718 noconfigdirs="$noconfigdirs ld gprof"
3719 noconfigdirs="$noconfigdirs sim target-rda"
3721 x86_64-*-darwin[912]*)
3722 noconfigdirs="$noconfigdirs ld gas gprof"
3723 noconfigdirs="$noconfigdirs sim target-rda"
3726 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3727 noconfigdirs="$noconfigdirs sim target-rda"
3732 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3733 && test -f /usr/local/include/gmp.h; then
3738 # Remove unsupported stuff on all kaOS configurations.
3739 noconfigdirs="$noconfigdirs target-libgloss"
3746 noconfigdirs="$noconfigdirs target-libgloss"
3747 # this is not caught below because this stanza matches earlier
3749 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3752 # The tpf target doesn't support gdb yet.
3754 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3757 noconfigdirs="$noconfigdirs target-rda"
3762 # ld works, but does not support shared libraries.
3763 # gas doesn't generate exception information.
3764 noconfigdirs="$noconfigdirs gas ld"
3767 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3770 # newlib is not 64 bit ready
3771 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3773 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3774 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3777 noconfigdirs="$noconfigdirs target-libgloss"
3780 noconfigdirs="$noconfigdirs target-libgloss"
3783 noconfigdirs="$noconfigdirs ld target-libgloss"
3788 if test x${with_avrlibc} != xno; then
3789 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3792 c4x-*-* | tic4x-*-*)
3793 noconfigdirs="$noconfigdirs target-libgloss"
3796 noconfigdirs="$noconfigdirs target-libgloss gdb"
3799 noconfigdirs="$noconfigdirs target-libgloss"
3802 noconfigdirs="$noconfigdirs gdb"
3805 noconfigdirs="$noconfigdirs gdb"
3808 noconfigdirs="$noconfigdirs target-rda gprof"
3811 noconfigdirs="$noconfigdirs"
3814 noconfigdirs="$noconfigdirs target-libgloss"
3817 noconfigdirs="$noconfigdirs target-libgloss"
3819 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3822 noconfigdirs="$noconfigdirs gdb"
3825 noconfigdirs="$noconfigdirs gdb ld"
3833 hppa*-*-openbsd* | \
3839 noconfigdirs="$noconfigdirs ld"
3842 noconfigdirs="$noconfigdirs gdb"
3845 # No gdb support yet.
3846 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3849 # No ld support yet.
3850 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3853 # No ld support yet.
3854 noconfigdirs="$noconfigdirs libgui itcl ld"
3856 i[3456789]86-w64-mingw*)
3858 i[3456789]86-*-mingw*)
3859 target_configdirs="$target_configdirs target-winsup"
3862 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3863 noconfigdirs="$noconfigdirs target-libgloss"
3864 # always build newlib if winsup directory is present.
3865 if test -d "$srcdir/winsup/cygwin"; then
3866 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3867 elif test -d "$srcdir/newlib"; then
3868 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3872 noconfigdirs="$noconfigdirs target-libgloss"
3874 i[3456789]86-*-sco3.2v5*)
3875 # The linker does not yet know about weak symbols in COFF,
3876 # and is not configured to handle mixed ELF and COFF.
3877 noconfigdirs="$noconfigdirs ld target-libgloss"
3879 i[3456789]86-*-sco*)
3880 noconfigdirs="$noconfigdirs gprof target-libgloss"
3882 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3883 noconfigdirs="$noconfigdirs target-libgloss"
3885 i[3456789]86-*-sysv4*)
3886 noconfigdirs="$noconfigdirs target-libgloss"
3888 i[3456789]86-*-beos*)
3889 noconfigdirs="$noconfigdirs gdb"
3891 i[3456789]86-*-rdos*)
3892 noconfigdirs="$noconfigdirs gdb"
3895 noconfigdirs="$noconfigdirs gdb"
3898 noconfigdirs="$noconfigdirs sim"
3901 # copied from rs6000-*-* entry
3902 noconfigdirs="$noconfigdirs gprof"
3904 powerpc*-*-winnt* | powerpc*-*-pe*)
3905 target_configdirs="$target_configdirs target-winsup"
3906 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3907 # always build newlib.
3908 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3910 # This is temporary until we can link against shared libraries
3911 powerpcle-*-solaris*)
3912 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3915 noconfigdirs="$noconfigdirs gdb"
3918 noconfigdirs="$noconfigdirs gprof"
3921 noconfigdirs="$noconfigdirs gprof"
3924 noconfigdirs="$noconfigdirs gprof"
3927 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3930 noconfigdirs="$noconfigdirs gprof"
3932 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3933 if test x$with_newlib = xyes; then
3934 noconfigdirs="$noconfigdirs gprof"
3938 noconfigdirs="$noconfigdirs gprof target-libgloss"
3941 noconfigdirs="$noconfigdirs gprof target-libgloss"
3944 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3948 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3949 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3950 noconfigdirs="$noconfigdirs ld gas gprof"
3953 noconfigdirs="$noconfigdirs gprof"
3956 noconfigdirs="$noconfigdirs gdb"
3959 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3962 noconfigdirs="$noconfigdirs gdb"
3969 noconfigdirs="$noconfigdirs target-libgloss" ;;
3973 if test x${is_cross_compiler} = xno ; then
3978 noconfigdirs="$noconfigdirs sim"
3980 tilepro*-*-* | tilegx*-*-*)
3981 noconfigdirs="$noconfigdirs sim"
3984 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3987 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3991 # If we aren't building newlib, then don't build libgloss, since libgloss
3992 # depends upon some newlib header files.
3993 case "${noconfigdirs}" in
3994 *target-libgloss*) ;;
3995 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3998 # Work in distributions that contain no compiler tools, like Autoconf.
3999 host_makefile_frag=/dev/null
4000 if test -d ${srcdir}/config ; then
4002 i[3456789]86-*-msdosdjgpp*)
4003 host_makefile_frag="config/mh-djgpp"
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4008 $as_echo_n "checking to see if cat works as expected... " >&6; }
4009 echo a >cygwin-cat-check
4010 if test `cat cygwin-cat-check` = a ; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4013 $as_echo "yes" >&6; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4018 as_fn_error "The cat command does not ignore carriage return characters.
4019 Please either mount the build directory in binary mode or run the following
4020 commands before running any configure script:
4026 host_makefile_frag="config/mh-cygwin"
4029 host_makefile_frag="config/mh-mingw"
4032 host_makefile_frag="config/mh-alpha-linux"
4035 host_makefile_frag="config/mh-pa-hpux10"
4038 host_makefile_frag="config/mh-pa"
4041 host_makefile_frag="config/mh-pa"
4044 host_makefile_frag="config/mh-darwin"
4047 host_makefile_frag="config/mh-ppc-aix"
4050 host_makefile_frag="config/mh-ppc-aix"
4055 if test "${build}" != "${host}" ; then
4056 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4057 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4058 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4059 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4060 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4061 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4062 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4063 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4064 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4065 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4066 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4067 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4068 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4070 AR_FOR_BUILD="\$(AR)"
4071 AS_FOR_BUILD="\$(AS)"
4072 CC_FOR_BUILD="\$(CC)"
4073 CXX_FOR_BUILD="\$(CXX)"
4074 GCJ_FOR_BUILD="\$(GCJ)"
4075 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4076 GOC_FOR_BUILD="\$(GOC)"
4077 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4078 LD_FOR_BUILD="\$(LD)"
4079 NM_FOR_BUILD="\$(NM)"
4080 RANLIB_FOR_BUILD="\$(RANLIB)"
4081 WINDRES_FOR_BUILD="\$(WINDRES)"
4082 WINDMC_FOR_BUILD="\$(WINDMC)"
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 if test -n "$ac_tool_prefix"; then
4091 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4092 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094 $as_echo_n "checking for $ac_word... " >&6; }
4095 if test "${ac_cv_prog_CC+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4098 if test -n "$CC"; then
4099 ac_cv_prog_CC="$CC" # Let the user override the test.
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4108 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 if test -n "$CC"; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4121 $as_echo "$CC" >&6; }
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4129 if test -z "$ac_cv_prog_CC"; then
4131 # Extract the first word of "gcc", so it can be a program name with args.
4132 set dummy gcc; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
4138 if test -n "$ac_ct_CC"; then
4139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4148 ac_cv_prog_ac_ct_CC="gcc"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4159 if test -n "$ac_ct_CC"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4161 $as_echo "$ac_ct_CC" >&6; }
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4167 if test "x$ac_ct_CC" = x; then
4170 case $cross_compiling:$ac_tool_warned in
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4174 ac_tool_warned=yes ;;
4182 if test -z "$CC"; then
4183 if test -n "$ac_tool_prefix"; then
4184 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4185 set dummy ${ac_tool_prefix}cc; ac_word=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if test "${ac_cv_prog_CC+set}" = set; then :
4189 $as_echo_n "(cached) " >&6
4191 if test -n "$CC"; then
4192 ac_cv_prog_CC="$CC" # Let the user override the test.
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201 ac_cv_prog_CC="${ac_tool_prefix}cc"
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 if test -n "$CC"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4214 $as_echo "$CC" >&6; }
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4223 if test -z "$CC"; then
4224 # Extract the first word of "cc", so it can be a program name with args.
4225 set dummy cc; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_CC+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4231 if test -n "$CC"; then
4232 ac_cv_prog_CC="$CC" # Let the user override the test.
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4243 ac_prog_rejected=yes
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 if test $ac_prog_rejected = yes; then
4255 # We found a bogon in the path, so make sure we never use it.
4256 set dummy $ac_cv_prog_CC
4258 if test $# != 0; then
4259 # We chose a different compiler from the bogus one.
4260 # However, it has the same basename, so the bogon will be chosen
4261 # first if we set CC to just the basename; use the full file name.
4263 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4269 if test -n "$CC"; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4271 $as_echo "$CC" >&6; }
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4279 if test -z "$CC"; then
4280 if test -n "$ac_tool_prefix"; then
4281 for ac_prog in cl.exe
4283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286 $as_echo_n "checking for $ac_word... " >&6; }
4287 if test "${ac_cv_prog_CC+set}" = set; then :
4288 $as_echo_n "(cached) " >&6
4290 if test -n "$CC"; then
4291 ac_cv_prog_CC="$CC" # Let the user override the test.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 if test -n "$CC"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4313 $as_echo "$CC" >&6; }
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4320 test -n "$CC" && break
4323 if test -z "$CC"; then
4325 for ac_prog in cl.exe
4327 # Extract the first word of "$ac_prog", so it can be a program name with args.
4328 set dummy $ac_prog; ac_word=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4334 if test -n "$ac_ct_CC"; then
4335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_prog_ac_ct_CC="$ac_prog"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4355 if test -n "$ac_ct_CC"; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4357 $as_echo "$ac_ct_CC" >&6; }
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4364 test -n "$ac_ct_CC" && break
4367 if test "x$ac_ct_CC" = x; then
4370 case $cross_compiling:$ac_tool_warned in
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4374 ac_tool_warned=yes ;;
4383 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4385 as_fn_error "no acceptable C compiler found in \$PATH
4386 See \`config.log' for more details." "$LINENO" 5; }
4388 # Provide some information about the compiler.
4389 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4392 for ac_option in --version -v -V -qversion; do
4393 { { ac_try="$ac_compiler $ac_option >&5"
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4402 if test -s conftest.err; then
4404 ... rest of stderr output deleted ...
4405 10q' conftest.err >conftest.er1
4406 cat conftest.er1 >&5
4407 rm -f conftest.er1 conftest.err
4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; }
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4424 ac_clean_files_save=$ac_clean_files
4425 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4426 # Try to create an executable without -o first, disregard a.out.
4427 # It will help us diagnose broken compilers, and finding out an intuition
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4430 $as_echo_n "checking for C compiler default output file name... " >&6; }
4431 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4433 # The possible output files:
4434 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4437 for ac_file in $ac_files
4440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4441 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4446 if { { ac_try="$ac_link_default"
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4452 $as_echo "$ac_try_echo"; } >&5
4453 (eval "$ac_link_default") 2>&5
4455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456 test $ac_status = 0; }; then :
4457 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4458 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4459 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4460 # so that the user can short-circuit this test for compilers unknown to
4462 for ac_file in $ac_files ''
4464 test -f "$ac_file" || continue
4466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4469 # We found the default executable, but exeext='' is most
4473 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4475 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4477 # We set ac_cv_exeext here because the later test for it is not
4478 # safe: cross compilers may not add the suffix if given an `-o'
4479 # argument, so we may need to know it at that point already.
4480 # Even if this section looks crufty: it has the advantage of
4487 test "$ac_cv_exeext" = no && ac_cv_exeext=
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4493 $as_echo "$ac_file" >&6; }
4494 if test -z "$ac_file"; then :
4495 $as_echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4500 { as_fn_set_status 77
4501 as_fn_error "C compiler cannot create executables
4502 See \`config.log' for more details." "$LINENO" 5; }; }
4504 ac_exeext=$ac_cv_exeext
4506 # Check that the compiler produces executables we can run. If not, either
4507 # the compiler is broken, or we cross compile.
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4509 $as_echo_n "checking whether the C compiler works... " >&6; }
4510 # If not cross compiling, check that we can run a simple program.
4511 if test "$cross_compiling" != yes; then
4512 if { ac_try='./$ac_file'
4513 { { case "(($ac_try" in
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4518 $as_echo "$ac_try_echo"; } >&5
4519 (eval "$ac_try") 2>&5
4521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522 test $ac_status = 0; }; }; then
4525 if test "$cross_compiling" = maybe; then
4528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4530 as_fn_error "cannot run C compiled programs.
4531 If you meant to cross compile, use \`--host'.
4532 See \`config.log' for more details." "$LINENO" 5; }
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537 $as_echo "yes" >&6; }
4539 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4540 ac_clean_files=$ac_clean_files_save
4541 # Check that the compiler produces executables we can run. If not, either
4542 # the compiler is broken, or we cross compile.
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4544 $as_echo_n "checking whether we are cross compiling... " >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4546 $as_echo "$cross_compiling" >&6; }
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4549 $as_echo_n "checking for suffix of executables... " >&6; }
4550 if { { ac_try="$ac_link"
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557 (eval "$ac_link") 2>&5
4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560 test $ac_status = 0; }; then :
4561 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4562 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4563 # work properly (i.e., refer to `conftest.exe'), while it won't with
4565 for ac_file in conftest.exe conftest conftest.*; do
4566 test -f "$ac_file" || continue
4568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4569 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4577 as_fn_error "cannot compute suffix of executables: cannot compile and link
4578 See \`config.log' for more details." "$LINENO" 5; }
4580 rm -f conftest$ac_cv_exeext
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4582 $as_echo "$ac_cv_exeext" >&6; }
4584 rm -f conftest.$ac_ext
4585 EXEEXT=$ac_cv_exeext
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4588 $as_echo_n "checking for suffix of object files... " >&6; }
4589 if test "${ac_cv_objext+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4603 rm -f conftest.o conftest.obj
4604 if { { ac_try="$ac_compile"
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4610 $as_echo "$ac_try_echo"; } >&5
4611 (eval "$ac_compile") 2>&5
4613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4614 test $ac_status = 0; }; then :
4615 for ac_file in conftest.o conftest.obj conftest.*; do
4616 test -f "$ac_file" || continue;
4618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4619 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4624 $as_echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4629 as_fn_error "cannot compute suffix of object files: cannot compile
4630 See \`config.log' for more details." "$LINENO" 5; }
4632 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4635 $as_echo "$ac_cv_objext" >&6; }
4636 OBJEXT=$ac_cv_objext
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4639 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4640 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4657 if ac_fn_c_try_compile "$LINENO"; then :
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4667 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4668 if test $ac_compiler_gnu = yes; then
4673 ac_test_CFLAGS=${CFLAGS+set}
4674 ac_save_CFLAGS=$CFLAGS
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4676 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4677 if test "${ac_cv_prog_cc_g+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4680 ac_save_c_werror_flag=$ac_c_werror_flag
4681 ac_c_werror_flag=yes
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4695 if ac_fn_c_try_compile "$LINENO"; then :
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4710 if ac_fn_c_try_compile "$LINENO"; then :
4713 ac_c_werror_flag=$ac_save_c_werror_flag
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4726 if ac_fn_c_try_compile "$LINENO"; then :
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 ac_c_werror_flag=$ac_save_c_werror_flag
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4737 $as_echo "$ac_cv_prog_cc_g" >&6; }
4738 if test "$ac_test_CFLAGS" = set; then
4739 CFLAGS=$ac_save_CFLAGS
4740 elif test $ac_cv_prog_cc_g = yes; then
4741 if test "$GCC" = yes; then
4747 if test "$GCC" = yes; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4754 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4755 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4758 ac_cv_prog_cc_c89=no
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4764 #include <sys/types.h>
4765 #include <sys/stat.h>
4766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4767 struct buf { int x; };
4768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4769 static char *e (p, i)
4775 static char *f (char * (*g) (char **, int), char **p, ...)
4780 s = g (p, va_arg (v,int));
4785 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4786 function prototypes and stuff, but not '\xHH' hex character constants.
4787 These don't provoke an error unfortunately, instead are silently treated
4788 as 'x'. The following induces an error, until -std is added to get
4789 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4790 array size at least. It's necessary to write '\x00'==0 to get something
4791 that's true only with -std. */
4792 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4794 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4795 inside strings and character constants. */
4797 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4799 int test (int i, double x);
4800 struct s1 {int (*f) (int a);};
4801 struct s2 {int (*f) (double a);};
4802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4808 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4813 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4814 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4816 CC="$ac_save_CC $ac_arg"
4817 if ac_fn_c_try_compile "$LINENO"; then :
4818 ac_cv_prog_cc_c89=$ac_arg
4820 rm -f core conftest.err conftest.$ac_objext
4821 test "x$ac_cv_prog_cc_c89" != "xno" && break
4823 rm -f conftest.$ac_ext
4828 case "x$ac_cv_prog_cc_c89" in
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4831 $as_echo "none needed" >&6; } ;;
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4834 $as_echo "unsupported" >&6; } ;;
4836 CC="$CC $ac_cv_prog_cc_c89"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4838 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4840 if test "x$ac_cv_prog_cc_c89" != xno; then :
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851 ac_cpp='$CXXCPP $CPPFLAGS'
4852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4855 if test -z "$CXX"; then
4856 if test -n "$CCC"; then
4859 if test -n "$ac_tool_prefix"; then
4860 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if test "${ac_cv_prog_CXX+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4869 if test -n "$CXX"; then
4870 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 if test -n "$CXX"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4892 $as_echo "$CXX" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4899 test -n "$CXX" && break
4902 if test -z "$CXX"; then
4904 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4906 # Extract the first word of "$ac_prog", so it can be a program name with args.
4907 set dummy $ac_prog; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4913 if test -n "$ac_ct_CXX"; then
4914 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_ac_ct_CXX="$ac_prog"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4934 if test -n "$ac_ct_CXX"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4936 $as_echo "$ac_ct_CXX" >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4943 test -n "$ac_ct_CXX" && break
4946 if test "x$ac_ct_CXX" = x; then
4949 case $cross_compiling:$ac_tool_warned in
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4953 ac_tool_warned=yes ;;
4961 # Provide some information about the compiler.
4962 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4965 for ac_option in --version -v -V -qversion; do
4966 { { ac_try="$ac_compiler $ac_option >&5"
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4972 $as_echo "$ac_try_echo"; } >&5
4973 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4975 if test -s conftest.err; then
4977 ... rest of stderr output deleted ...
4978 10q' conftest.err >conftest.er1
4979 cat conftest.er1 >&5
4980 rm -f conftest.er1 conftest.err
4982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983 test $ac_status = 0; }
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4987 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4988 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
5005 if ac_fn_cxx_try_compile "$LINENO"; then :
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5015 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5016 if test $ac_compiler_gnu = yes; then
5021 ac_test_CXXFLAGS=${CXXFLAGS+set}
5022 ac_save_CXXFLAGS=$CXXFLAGS
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5024 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5025 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5028 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5029 ac_cxx_werror_flag=yes
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5043 if ac_fn_cxx_try_compile "$LINENO"; then :
5044 ac_cv_prog_cxx_g=yes
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5058 if ac_fn_cxx_try_compile "$LINENO"; then :
5061 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5074 if ac_fn_cxx_try_compile "$LINENO"; then :
5075 ac_cv_prog_cxx_g=yes
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5085 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5086 if test "$ac_test_CXXFLAGS" = set; then
5087 CXXFLAGS=$ac_save_CXXFLAGS
5088 elif test $ac_cv_prog_cxx_g = yes; then
5089 if test "$GXX" = yes; then
5095 if test "$GXX" = yes; then
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108 # We must set the default linker to the linker used by gcc for the correct
5109 # operation of libtool. If LD is not defined and we are using gcc, try to
5110 # set the LD default to the ld used by gcc.
5111 if test -z "$LD"; then
5112 if test "$GCC" = yes; then
5115 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5117 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5119 case $gcc_prog_ld in
5120 # Accept absolute paths.
5121 [\\/]* | [A-Za-z]:[\\/]*)
5122 LD="$gcc_prog_ld" ;;
5127 # Check whether -static-libstdc++ -static-libgcc is supported.
5129 if test "$GCC" = yes; then
5130 saved_LDFLAGS="$LDFLAGS"
5132 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5134 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5136 ac_cpp='$CXXCPP $CPPFLAGS'
5137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5145 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5146 #error -static-libstdc++ not implemented
5150 if ac_fn_cxx_try_link "$LINENO"; then :
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5152 $as_echo "yes" >&6; }; have_static_libs=yes
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5157 rm -f core conftest.err conftest.$ac_objext \
5158 conftest$ac_exeext conftest.$ac_ext
5160 ac_cpp='$CPP $CPPFLAGS'
5161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166 LDFLAGS="$saved_LDFLAGS"
5172 if test -n "$ac_tool_prefix"; then
5173 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5174 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5180 if test -n "$GNATBIND"; then
5181 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 GNATBIND=$ac_cv_prog_GNATBIND
5201 if test -n "$GNATBIND"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5203 $as_echo "$GNATBIND" >&6; }
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5211 if test -z "$ac_cv_prog_GNATBIND"; then
5212 ac_ct_GNATBIND=$GNATBIND
5213 # Extract the first word of "gnatbind", so it can be a program name with args.
5214 set dummy gnatbind; ac_word=$2
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216 $as_echo_n "checking for $ac_word... " >&6; }
5217 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5218 $as_echo_n "(cached) " >&6
5220 if test -n "$ac_ct_GNATBIND"; then
5221 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5241 if test -n "$ac_ct_GNATBIND"; then
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5243 $as_echo "$ac_ct_GNATBIND" >&6; }
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5249 if test "x$ac_ct_GNATBIND" = x; then
5252 case $cross_compiling:$ac_tool_warned in
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5256 ac_tool_warned=yes ;;
5258 GNATBIND=$ac_ct_GNATBIND
5261 GNATBIND="$ac_cv_prog_GNATBIND"
5264 if test -n "$ac_tool_prefix"; then
5265 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5266 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5272 if test -n "$GNATMAKE"; then
5273 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 GNATMAKE=$ac_cv_prog_GNATMAKE
5293 if test -n "$GNATMAKE"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5295 $as_echo "$GNATMAKE" >&6; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5303 if test -z "$ac_cv_prog_GNATMAKE"; then
5304 ac_ct_GNATMAKE=$GNATMAKE
5305 # Extract the first word of "gnatmake", so it can be a program name with args.
5306 set dummy gnatmake; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5312 if test -n "$ac_ct_GNATMAKE"; then
5313 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5333 if test -n "$ac_ct_GNATMAKE"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5335 $as_echo "$ac_ct_GNATMAKE" >&6; }
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5341 if test "x$ac_ct_GNATMAKE" = x; then
5344 case $cross_compiling:$ac_tool_warned in
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348 ac_tool_warned=yes ;;
5350 GNATMAKE=$ac_ct_GNATMAKE
5353 GNATMAKE="$ac_cv_prog_GNATMAKE"
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5357 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5358 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5361 cat >conftest.adb <<EOF
5362 procedure conftest is begin null; end conftest;
5364 acx_cv_cc_gcc_supports_ada=no
5365 # There is a bug in old released versions of GCC which causes the
5366 # driver to exit successfully when the appropriate language module
5367 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5368 # Therefore we must check for the error message as well as an
5369 # unsuccessful exit.
5370 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5371 # given a .adb file, but produce no object file. So we must check
5372 # if an object file was really produced to guard against this.
5373 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5374 if test x"$errors" = x && test -f conftest.$ac_objext; then
5375 acx_cv_cc_gcc_supports_ada=yes
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5380 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5382 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5389 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5390 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5395 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5396 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5397 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5400 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5403 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5404 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5407 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5414 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5415 do_compare="$gcc_cv_prog_cmp_skip"
5419 # Check whether --enable-bootstrap was given.
5420 if test "${enable_bootstrap+set}" = set; then :
5421 enableval=$enable_bootstrap;
5423 enable_bootstrap=default
5427 # Issue errors and warnings for invalid/strange bootstrap combinations.
5428 if test -r $srcdir/gcc/configure; then
5434 case "$have_compiler:$host:$target:$enable_bootstrap" in
5437 # Default behavior. Enable bootstrap if we have a compiler
5438 # and we are in a native configuration.
5439 yes:$build:$build:default)
5440 enable_bootstrap=yes ;;
5443 enable_bootstrap=no ;;
5445 # We have a compiler and we are in a native configuration, bootstrap is ok
5446 yes:$build:$build:yes)
5449 # Other configurations, but we have a compiler. Assume the user knows
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5453 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5456 # No compiler: if they passed --enable-bootstrap explicitly, fail
5458 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5460 # Fail if wrong command line
5462 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5466 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5467 # C++98 compiler can still start the bootstrap.
5468 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5469 CXX="$CXX -std=gnu++98"
5472 # Used for setting $lt_cv_objdir
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5474 $as_echo_n "checking for objdir... " >&6; }
5475 if test "${lt_cv_objdir+set}" = set; then :
5476 $as_echo_n "(cached) " >&6
5478 rm -f .libs 2>/dev/null
5479 mkdir .libs 2>/dev/null
5480 if test -d .libs; then
5483 # MS-DOS does not allow filenames that begin with a dot.
5486 rmdir .libs 2>/dev/null
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5489 $as_echo "$lt_cv_objdir" >&6; }
5490 objdir=$lt_cv_objdir
5496 cat >>confdefs.h <<_ACEOF
5497 #define LT_OBJDIR "$lt_cv_objdir/"
5502 # Check for GMP, MPFR and MPC
5503 gmplibs="-lmpc -lmpfr -lgmp"
5507 # Specify a location for mpc
5508 # check for this first so it ends up on the link line before mpfr.
5510 # Check whether --with-mpc was given.
5511 if test "${with_mpc+set}" = set; then :
5516 # Check whether --with-mpc-include was given.
5517 if test "${with_mpc_include+set}" = set; then :
5518 withval=$with_mpc_include;
5522 # Check whether --with-mpc-lib was given.
5523 if test "${with_mpc_lib+set}" = set; then :
5524 withval=$with_mpc_lib;
5528 if test "x$with_mpc" != x; then
5529 gmplibs="-L$with_mpc/lib $gmplibs"
5530 gmpinc="-I$with_mpc/include $gmpinc"
5532 if test "x$with_mpc_include" != x; then
5533 gmpinc="-I$with_mpc_include $gmpinc"
5535 if test "x$with_mpc_lib" != x; then
5536 gmplibs="-L$with_mpc_lib $gmplibs"
5538 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5539 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5540 gmpinc='-I$$s/mpc/src '"$gmpinc"
5541 # Do not test the mpc version. Assume that it is sufficient, since
5542 # it is in the source tree, and the library has not been built yet
5543 # but it would be included on the link line in the version check below
5544 # hence making the test fail.
5548 # Specify a location for mpfr
5549 # check for this first so it ends up on the link line before gmp.
5551 # Check whether --with-mpfr-dir was given.
5552 if test "${with_mpfr_dir+set}" = set; then :
5553 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5554 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5559 # Check whether --with-mpfr was given.
5560 if test "${with_mpfr+set}" = set; then :
5565 # Check whether --with-mpfr-include was given.
5566 if test "${with_mpfr_include+set}" = set; then :
5567 withval=$with_mpfr_include;
5571 # Check whether --with-mpfr-lib was given.
5572 if test "${with_mpfr_lib+set}" = set; then :
5573 withval=$with_mpfr_lib;
5577 if test "x$with_mpfr" != x; then
5578 gmplibs="-L$with_mpfr/lib $gmplibs"
5579 gmpinc="-I$with_mpfr/include $gmpinc"
5581 if test "x$with_mpfr_include" != x; then
5582 gmpinc="-I$with_mpfr_include $gmpinc"
5584 if test "x$with_mpfr_lib" != x; then
5585 gmplibs="-L$with_mpfr_lib $gmplibs"
5587 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5588 # MPFR v3.1.0 moved the sources into a src sub-directory.
5589 if test -d ${srcdir}/mpfr/src; then
5590 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5591 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5592 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5594 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5595 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5596 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5598 # Do not test the mpfr version. Assume that it is sufficient, since
5599 # it is in the source tree, and the library has not been built yet
5600 # but it would be included on the link line in the version check below
5601 # hence making the test fail.
5605 # Specify a location for gmp
5607 # Check whether --with-gmp-dir was given.
5608 if test "${with_gmp_dir+set}" = set; then :
5609 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5610 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5615 # Check whether --with-gmp was given.
5616 if test "${with_gmp+set}" = set; then :
5621 # Check whether --with-gmp-include was given.
5622 if test "${with_gmp_include+set}" = set; then :
5623 withval=$with_gmp_include;
5627 # Check whether --with-gmp-lib was given.
5628 if test "${with_gmp_lib+set}" = set; then :
5629 withval=$with_gmp_lib;
5634 if test "x$with_gmp" != x; then
5635 gmplibs="-L$with_gmp/lib $gmplibs"
5636 gmpinc="-I$with_gmp/include $gmpinc"
5638 if test "x$with_gmp_include" != x; then
5639 gmpinc="-I$with_gmp_include $gmpinc"
5641 if test "x$with_gmp_lib" != x; then
5642 gmplibs="-L$with_gmp_lib $gmplibs"
5644 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5645 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5646 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5647 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5648 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5649 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5650 # Do not test the gmp version. Assume that it is sufficient, since
5651 # it is in the source tree, and the library has not been built yet
5652 # but it would be included on the link line in the version check below
5653 # hence making the test fail.
5657 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5659 saved_CFLAGS="$CFLAGS"
5660 CFLAGS="$CFLAGS $gmpinc"
5661 # Check for the recommended and required versions of GMP.
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5663 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5672 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5673 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5674 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5690 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5691 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5692 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5700 if ac_fn_c_try_compile "$LINENO"; then :
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5702 $as_echo "yes" >&6; }
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5705 $as_echo "buggy but acceptable" >&6; }
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }; have_gmp=no
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 # If we have GMP, check the MPFR version.
5715 if test x"$have_gmp" = xyes; then
5716 # Check for the recommended and required versions of MPFR.
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5718 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5727 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5735 if ac_fn_c_try_compile "$LINENO"; then :
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5744 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5752 if ac_fn_c_try_compile "$LINENO"; then :
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5754 $as_echo "yes" >&6; }
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5757 $as_echo "buggy but acceptable" >&6; }
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }; have_gmp=no
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5767 # Check for the MPC header version.
5768 if test x"$have_gmp" = xyes ; then
5769 # Check for the recommended and required versions of MPC.
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5771 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5779 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5787 if ac_fn_c_try_compile "$LINENO"; then :
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5795 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5803 if ac_fn_c_try_compile "$LINENO"; then :
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5805 $as_echo "yes" >&6; }
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5808 $as_echo "buggy but acceptable" >&6; }
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }; have_gmp=no
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 # Now check the MPFR library.
5819 if test x"$have_gmp" = xyes; then
5821 LIBS="$LIBS $gmplibs"
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5823 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5837 mpfr_atan2 (n, n, x, GMP_RNDN);
5838 mpfr_erfc (n, x, GMP_RNDN);
5839 mpfr_subnormalize (x, t, GMP_RNDN);
5843 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5844 mpc_cosh (c, c, MPC_RNDNN);
5845 mpc_pow (c, c, c, MPC_RNDNN);
5846 mpc_acosh (c, c, MPC_RNDNN);
5853 if ac_fn_c_try_link "$LINENO"; then :
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5855 $as_echo "yes" >&6; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }; have_gmp=no
5860 rm -f core conftest.err conftest.$ac_objext \
5861 conftest$ac_exeext conftest.$ac_ext
5865 CFLAGS="$saved_CFLAGS"
5867 # The library versions listed in the error message below should match
5868 # the HARD-minimums enforced above.
5869 if test x$have_gmp != xyes; then
5870 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5871 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5872 their locations. Source code for these libraries can be found at
5873 their respective hosting sites as well as at
5874 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5875 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5876 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5877 make sure that you have installed both the libraries and the header
5878 files. They may be located in separate packages." "$LINENO" 5
5882 # Flags needed for both GMP, MPFR and/or MPC.
5890 # Libraries to use for stage1 or when not bootstrapping.
5892 # Check whether --with-stage1-libs was given.
5893 if test "${with_stage1_libs+set}" = set; then :
5894 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5897 stage1_libs=$withval
5905 # Linker flags to use for stage1 or when not bootstrapping.
5907 # Check whether --with-stage1-ldflags was given.
5908 if test "${with_stage1_ldflags+set}" = set; then :
5909 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5912 stage1_ldflags=$withval
5916 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5917 # if supported. But if the user explicitly specified the libraries to use,
5918 # trust that they are doing what they want.
5919 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5920 stage1_ldflags="-static-libstdc++ -static-libgcc"
5926 # Libraries to use for stage2 and later builds.
5928 # Check whether --with-boot-libs was given.
5929 if test "${with_boot_libs+set}" = set; then :
5930 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5933 poststage1_libs=$withval
5941 # Linker flags to use for stage2 and later builds.
5943 # Check whether --with-boot-ldflags was given.
5944 if test "${with_boot_ldflags+set}" = set; then :
5945 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5948 poststage1_ldflags=$withval
5952 # In stages 2 and 3, default to linking libstdc++ and libgcc
5953 # statically. But if the user explicitly specified the libraries to
5954 # use, trust that they are doing what they want.
5955 if test "$poststage1_libs" = ""; then
5956 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5962 # GCC GRAPHITE dependency isl.
5963 # Basic setup is inlined here, actual checks are in config/isl.m4
5966 # Check whether --with-isl was given.
5967 if test "${with_isl+set}" = set; then :
5972 # Treat --without-isl as a request to disable
5973 # GRAPHITE support and skip all following checks.
5974 if test "x$with_isl" != "xno"; then
5978 # Check whether --with-isl-include was given.
5979 if test "${with_isl_include+set}" = set; then :
5980 withval=$with_isl_include;
5984 # Check whether --with-isl-lib was given.
5985 if test "${with_isl_lib+set}" = set; then :
5986 withval=$with_isl_lib;
5990 # Check whether --enable-isl-version-check was given.
5991 if test "${enable_isl_version_check+set}" = set; then :
5992 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5994 ENABLE_ISL_CHECK=yes
5998 # Initialize isllibs and islinc.
6007 isllibs="-L$with_isl/lib"
6008 islinc="-I$with_isl/include"
6011 if test "x${with_isl_include}" != x ; then
6012 islinc="-I$with_isl_include"
6014 if test "x${with_isl_lib}" != x; then
6015 isllibs="-L$with_isl_lib"
6017 if test "x${islinc}" = x && test "x${isllibs}" = x \
6018 && test -d ${srcdir}/isl; then
6019 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6020 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6023 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6026 isllibs="${isllibs} -lisl"
6030 if test "${ENABLE_ISL_CHECK}" = yes ; then
6031 _isl_saved_CFLAGS=$CFLAGS
6032 _isl_saved_LDFLAGS=$LDFLAGS
6033 _isl_saved_LIBS=$LIBS
6035 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6036 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6037 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6040 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043 #include <isl/ctx.h>
6047 isl_ctx_get_max_operations (isl_ctx_alloc ());
6052 if ac_fn_c_try_link "$LINENO"; then :
6057 rm -f core conftest.err conftest.$ac_objext \
6058 conftest$ac_exeext conftest.$ac_ext
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6060 $as_echo "$gcc_cv_isl" >&6; }
6062 if test "${gcc_cv_isl}" = no ; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
6064 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6068 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071 #include <isl/schedule.h>
6075 isl_options_set_schedule_serialize_sccs (NULL, 0);
6080 if ac_fn_c_try_link "$LINENO"; then :
6081 ac_has_isl_options_set_schedule_serialize_sccs=yes
6083 ac_has_isl_options_set_schedule_serialize_sccs=no
6085 rm -f core conftest.err conftest.$ac_objext \
6086 conftest$ac_exeext conftest.$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6088 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6090 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6095 CFLAGS=$_isl_saved_CFLAGS
6096 LDFLAGS=$_isl_saved_LDFLAGS
6097 LIBS=$_isl_saved_LIBS
6105 if test "x${with_isl}" = xno; then
6106 graphite_requested=no
6107 elif test "x${with_isl}" != x \
6108 || test "x${with_isl_include}" != x \
6109 || test "x${with_isl_lib}" != x ; then
6110 graphite_requested=yes
6112 graphite_requested=no
6117 if test "${gcc_cv_isl}" = no ; then
6122 if test "${graphite_requested}" = yes \
6123 && test "x${isllibs}" = x \
6124 && test "x${islinc}" = x ; then
6126 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6132 # If the isl check failed, disable builds of in-tree variant of isl
6133 if test "x$with_isl" = xno ||
6134 test "x$gcc_cv_isl" = xno; then
6135 noconfigdirs="$noconfigdirs isl"
6142 # Check for LTO support.
6143 # Check whether --enable-lto was given.
6144 if test "${enable_lto+set}" = set; then :
6145 enableval=$enable_lto; enable_lto=$enableval
6147 enable_lto=yes; default_enable_lto=yes
6156 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6157 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6158 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6167 if test $target_elf = yes; then :
6168 # ELF platforms build the lto-plugin always.
6169 build_lto_plugin=yes
6172 if test x"$default_enable_lto" = x"yes" ; then
6174 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6175 # On other non-ELF platforms, LTO has yet to be validated.
6179 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6180 # It would also be nice to check the binutils support, but we don't
6181 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6182 # warn during gcc/ subconfigure; unless you're bootstrapping with
6183 # -flto it won't be needed until after installation anyway.
6185 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6186 *) if test x"$enable_lto" = x"yes"; then
6187 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6192 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6193 # Build it unless LTO was explicitly disabled.
6195 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6202 # Check whether --enable-linker-plugin-configure-flags was given.
6203 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6204 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6206 extra_linker_plugin_configure_flags=
6210 # Check whether --enable-linker-plugin-flags was given.
6211 if test "${enable_linker_plugin_flags+set}" = set; then :
6212 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6214 extra_linker_plugin_flags=
6220 # By default, C and C++ are the only stage 1 languages.
6221 stage1_languages=,c,
6223 # Target libraries that we bootstrap.
6224 bootstrap_target_libs=,target-libgcc,
6226 # Figure out what language subdirectories are present.
6227 # Look if the user specified --enable-languages="..."; if not, use
6228 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6230 # NB: embedded tabs in this IF block -- do not untabify
6231 if test -d ${srcdir}/gcc; then
6232 if test x"${enable_languages+set}" != xset; then
6233 if test x"${LANGUAGES+set}" = xset; then
6234 enable_languages="${LANGUAGES}"
6235 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6237 enable_languages=all
6240 if test x"${enable_languages}" = x ||
6241 test x"${enable_languages}" = xyes;
6243 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6247 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6249 # 'f95' is the old name for the 'fortran' language. We issue a warning
6250 # and make the substitution.
6251 case ,${enable_languages}, in
6253 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6254 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6258 # If bootstrapping, C++ must be enabled.
6259 case ",$enable_languages,:$enable_bootstrap" in
6262 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6263 enable_languages="${enable_languages},c++"
6265 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6270 # First scan to see if an enabled language requires some other language.
6271 # We assume that a given config-lang.in will list all the language
6272 # front ends it requires, even if some are required indirectly.
6273 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6274 case ${lang_frag} in
6276 # The odd quoting in the next line works around
6277 # an apparent bug in bash 1.12 on linux.
6278 ${srcdir}/gcc/[*]/config-lang.in) ;;
6280 # From the config-lang.in, get $language, $lang_requires, and
6281 # $lang_requires_boot_languages.
6284 lang_requires_boot_languages=
6286 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6287 case ,${enable_languages}, in
6291 echo " \`$other' language required by \`$language'; enabling" 1>&2
6292 enable_languages="${enable_languages},${other}"
6296 for other in ${lang_requires_boot_languages} ; do
6297 if test "$other" != "c"; then
6298 case ,${enable_stage1_languages}, in
6302 case ,${enable_languages}, in
6304 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6305 enable_stage1_languages="$enable_stage1_languages,${other}"
6316 new_enable_languages=,c,
6318 # If LTO is enabled, add the LTO front end.
6319 if test "$enable_lto" = "yes" ; then
6320 case ,${enable_languages}, in
6322 *) enable_languages="${enable_languages},lto" ;;
6324 if test "${build_lto_plugin}" = "yes" ; then
6325 configdirs="$configdirs lto-plugin"
6329 # If we're building an offloading compiler, add the LTO front end.
6330 if test x"$enable_as_accelerator_for" != x ; then
6331 case ,${enable_languages}, in
6333 *) enable_languages="${enable_languages},lto" ;;
6337 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6338 potential_languages=,c,
6340 enabled_target_libs=
6341 disabled_target_libs=
6343 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6344 case ${lang_frag} in
6346 # The odd quoting in the next line works around
6347 # an apparent bug in bash 1.12 on linux.
6348 ${srcdir}/gcc/[*]/config-lang.in) ;;
6350 # From the config-lang.in, get $language, $target_libs,
6351 # $lang_dirs, $boot_language, and $build_by_default
6357 build_by_default=yes
6359 if test x${language} = x; then
6360 echo "${lang_frag} doesn't set \$language." 1>&2
6364 if test "$language" = "c++"; then
6369 case ,${enable_languages}, in
6371 # Language was explicitly selected; include it
6372 # unless it is C, which is enabled by default.
6373 if test "$language" != "c"; then
6378 # 'all' was selected, select it if it is a default language
6379 if test "$language" != "c"; then
6380 add_this_lang=${build_by_default}
6385 # Disable languages that need other directories if these aren't available.
6386 for i in $subdir_requires; do
6387 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6388 case ,${enable_languages}, in
6390 # Specifically requested language; tell them.
6391 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6395 add_this_lang=unsupported
6400 # Disable Ada if no preexisting GNAT is available.
6401 case ,${enable_languages},:${language}:${have_gnat} in
6402 *,${language},*:ada:no)
6403 # Specifically requested language; tell them.
6404 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6408 add_this_lang=unsupported
6412 # Disable a language that is unsupported by the target.
6413 case " $unsupported_languages " in
6415 add_this_lang=unsupported
6419 case $add_this_lang in
6421 # Remove language-dependent dirs.
6422 disabled_target_libs="$disabled_target_libs $target_libs"
6423 noconfigdirs="$noconfigdirs $lang_dirs"
6426 # Remove language-dependent dirs; still show language as supported.
6427 disabled_target_libs="$disabled_target_libs $target_libs"
6428 noconfigdirs="$noconfigdirs $lang_dirs"
6429 potential_languages="${potential_languages}${language},"
6432 new_enable_languages="${new_enable_languages}${language},"
6433 potential_languages="${potential_languages}${language},"
6434 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6435 enabled_target_libs="$enabled_target_libs $target_libs"
6436 case "${boot_language}:,$enable_stage1_languages," in
6437 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6438 # Add to (comma-separated) list of stage 1 languages.
6439 case ",$stage1_languages," in
6440 *,$language,* | ,yes, | ,all,) ;;
6441 *) stage1_languages="${stage1_languages}${language}," ;;
6443 # We need to bootstrap any supporting libraries.
6444 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6453 # Add target libraries which are only needed for disabled languages
6455 if test -n "$disabled_target_libs"; then
6456 for dir in $disabled_target_libs; do
6457 case " $enabled_target_libs " in
6459 *) noconfigdirs="$noconfigdirs $dir" ;;
6464 # Check whether --enable-stage1-languages was given.
6465 if test "${enable_stage1_languages+set}" = set; then :
6466 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6468 # Set it to something that will have no effect in the loop below
6469 enable_stage1_languages=c ;;
6471 enable_stage1_languages=`echo $new_enable_languages | \
6472 sed -e "s/^,//" -e "s/,$//" ` ;;
6474 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6475 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6478 # Add "good" languages from enable_stage1_languages to stage1_languages,
6479 # while "bad" languages go in missing_languages. Leave no duplicates.
6480 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6481 case $potential_languages in
6483 case $stage1_languages in
6485 *) stage1_languages="$stage1_languages$i," ;;
6488 case $missing_languages in
6490 *) missing_languages="$missing_languages$i," ;;
6497 # Remove leading/trailing commas that were added for simplicity
6498 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6499 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6500 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6501 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6503 if test "x$missing_languages" != x; then
6505 The following requested languages could not be built: ${missing_languages}
6506 Supported languages are: ${potential_languages}" "$LINENO" 5
6508 if test "x$new_enable_languages" != "x$enable_languages"; then
6509 echo The following languages will be built: ${new_enable_languages}
6510 enable_languages="$new_enable_languages"
6514 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6517 # Handle --disable-<component> generically.
6518 for dir in $configdirs $build_configdirs $target_configdirs ; do
6519 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6520 varname=`echo $dirname | sed -e s/+/_/g`
6521 if eval test x\${enable_${varname}} "=" xno ; then
6522 noconfigdirs="$noconfigdirs $dir"
6526 # Check for Boehm's garbage collector
6527 # Check whether --enable-objc-gc was given.
6528 if test "${enable_objc_gc+set}" = set; then :
6529 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6530 *,objc,*:*:yes:*target-boehm-gc*)
6531 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6537 # Make sure we only build Boehm's garbage collector if required.
6538 case ,${enable_languages},:${enable_objc_gc} in
6540 # Keep target-boehm-gc if requested for Objective-C.
6543 # Otherwise remove target-boehm-gc depending on target-libjava.
6544 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6545 noconfigdirs="$noconfigdirs target-boehm-gc"
6550 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6551 case ,${enable_languages}, in
6553 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6554 case "${noconfigdirs}" in
6555 *target-libstdc++-v3*)
6556 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6562 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6566 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6567 # $build_configdirs and $target_configdirs.
6568 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6571 for dir in . $skipdirs $noconfigdirs ; do
6572 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6573 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6574 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6575 if test -r $srcdir/$dirname/configure ; then
6576 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6579 notsupp="$notsupp $dir"
6583 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6584 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6585 if test -r $srcdir/$dirname/configure ; then
6586 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6589 notsupp="$notsupp $dir"
6593 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6594 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6595 if test -r $srcdir/$dirname/configure ; then
6596 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6599 notsupp="$notsupp $dir"
6605 # Quietly strip out all directories which aren't configurable in this tree.
6606 # This relies on all configurable subdirectories being autoconfiscated, which
6608 build_configdirs_all="$build_configdirs"
6610 for i in ${build_configdirs_all} ; do
6611 j=`echo $i | sed -e s/build-//g`
6612 if test -f ${srcdir}/$j/configure ; then
6613 build_configdirs="${build_configdirs} $i"
6617 configdirs_all="$configdirs"
6619 for i in ${configdirs_all} ; do
6620 if test -f ${srcdir}/$i/configure ; then
6621 configdirs="${configdirs} $i"
6625 target_configdirs_all="$target_configdirs"
6627 for i in ${target_configdirs_all} ; do
6628 j=`echo $i | sed -e s/target-//g`
6629 if test -f ${srcdir}/$j/configure ; then
6630 target_configdirs="${target_configdirs} $i"
6634 # Exclude target-zlib if target-libjava isn't built.
6635 case ${target_configdirs} in
6639 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6643 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6644 # so we have to add it after the preceding checks.
6645 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6647 case " $configdirs " in
6649 # If we can build libiberty, we can also build libiberty-linker-plugin.
6650 configdirs="$configdirs libiberty-linker-plugin"
6651 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6652 --with-libiberty=../libiberty-linker-plugin";;
6654 as_fn_error "libiberty missing" "$LINENO" 5;;
6658 # Sometimes we have special requirements for the host libiberty.
6659 extra_host_libiberty_configure_flags=
6660 extra_host_zlib_configure_flags=
6661 case " $configdirs " in
6662 *" lto-plugin "* | *" libcc1 "*)
6663 # When these are to be built as shared libraries, the same applies to
6665 extra_host_libiberty_configure_flags=--enable-shared
6668 # When bfd is to be built as a shared library, the same applies to
6670 if test "$enable_shared" = "yes"; then
6671 extra_host_zlib_configure_flags=--enable-host-shared
6678 # Produce a warning message for the subdirs we can't configure.
6679 # This isn't especially interesting in the Cygnus tree, but in the individual
6680 # FSF releases, it's important to let people know when their machine isn't
6681 # supported by the one or two programs in a package.
6683 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6684 # If $appdirs is non-empty, at least one of those directories must still
6685 # be configured, or we error out. (E.g., if the gas release supports a
6686 # specified target in some subdirs but not the gas subdir, we shouldn't
6687 # pretend that all is well.)
6688 if test -n "$appdirs" ; then
6689 for dir in $appdirs ; do
6690 if test -r $dir/Makefile.in ; then
6691 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6695 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6701 if test -n "$appdirs" ; then
6702 echo "*** This configuration is not supported by this package." 1>&2
6706 # Okay, some application will build, or we don't care to check. Still
6707 # notify of subdirs not getting built.
6708 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6709 echo " ${notsupp}" 1>&2
6710 echo " (Any other directories should still work fine.)" 1>&2
6718 # To find our prefix, in gcc_cv_tool_prefix.
6720 # The user is always right.
6721 if test "${PATH_SEPARATOR+set}" != set; then
6722 echo "#! /bin/sh" >conf$$.sh
6723 echo "exit 0" >>conf$$.sh
6725 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6735 if test "x$exec_prefix" = xNONE; then
6736 if test "x$prefix" = xNONE; then
6737 gcc_cv_tool_prefix=$ac_default_prefix
6739 gcc_cv_tool_prefix=$prefix
6742 gcc_cv_tool_prefix=$exec_prefix
6745 # If there is no compiler in the tree, use the PATH only. In any
6746 # case, if there is no compiler in the tree nobody should use
6747 # AS_FOR_TARGET and LD_FOR_TARGET.
6748 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6749 gcc_version=`cat $srcdir/gcc/BASE-VER`
6750 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6751 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6752 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6753 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6754 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6755 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6760 if test x$build = x$target && test -n "$md_exec_prefix"; then
6761 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6769 # Check whether --with-build-sysroot was given.
6770 if test "${with_build_sysroot+set}" = set; then :
6771 withval=$with_build_sysroot; if test x"$withval" != x ; then
6772 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6775 SYSROOT_CFLAGS_FOR_TARGET=
6781 # Check whether --with-debug-prefix-map was given.
6782 if test "${with_debug_prefix_map+set}" = set; then :
6783 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6784 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6785 for debug_map in $withval; do
6786 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6790 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6795 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6796 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6797 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6798 # We want to ensure that TARGET libraries (which we know are built with
6799 # gcc) are built with "-O2 -g", so include those options when setting
6800 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6801 if test "x$CFLAGS_FOR_TARGET" = x; then
6802 if test "x${is_cross_compiler}" = xyes; then
6803 CFLAGS_FOR_TARGET="-g -O2"
6805 CFLAGS_FOR_TARGET=$CFLAGS
6808 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6811 *" -g "* | *" -g3 "*) ;;
6812 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6818 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6819 if test "x${is_cross_compiler}" = xyes; then
6820 CXXFLAGS_FOR_TARGET="-g -O2"
6822 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6823 case " $CXXFLAGS " in
6825 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6827 case " $CXXFLAGS " in
6828 *" -g "* | *" -g3 "*) ;;
6829 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6837 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6838 # the named directory are copied to $(tooldir)/sys-include.
6839 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6840 if test x${is_cross_compiler} = xno ; then
6841 echo 1>&2 '***' --with-headers is only supported when cross compiling
6844 if test x"${with_headers}" != xyes ; then
6845 x=${gcc_cv_tool_prefix}
6846 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6850 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6851 # the name directories are copied to $(tooldir)/lib. Multiple directories
6853 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6854 if test x${is_cross_compiler} = xno ; then
6855 echo 1>&2 '***' --with-libs is only supported when cross compiling
6858 if test x"${with_libs}" != xyes ; then
6859 # Copy the libraries in reverse order, so that files in the first named
6860 # library override files in subsequent libraries.
6861 x=${gcc_cv_tool_prefix}
6862 for l in ${with_libs}; do
6863 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6868 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6870 # This is done by determining whether or not the appropriate directory
6871 # is available, and by checking whether or not specific configurations
6872 # have requested that this magic not happen.
6874 # The command line options always override the explicit settings in
6875 # configure.ac, and the settings in configure.ac override this magic.
6877 # If the default for a toolchain is to use GNU as and ld, and you don't
6878 # want to do that, then you should use the --without-gnu-as and
6879 # --without-gnu-ld options for the configure script. Similarly, if
6880 # the default is to use the included zlib and you don't want to do that,
6881 # you should use the --with-system-zlib option for the configure script.
6883 if test x${use_gnu_as} = x &&
6884 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6886 extra_host_args="$extra_host_args --with-gnu-as"
6889 if test x${use_gnu_ld} = x &&
6890 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6892 extra_host_args="$extra_host_args --with-gnu-ld"
6895 if test x${use_included_zlib} = x &&
6896 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6899 with_system_zlib=yes
6900 extra_host_args="$extra_host_args --with-system-zlib"
6903 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6904 # can detect this case.
6906 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6908 extra_host_args="$extra_host_args --with-newlib"
6911 # Handle ${copy_dirs}
6912 set fnord ${copy_dirs}
6914 while test $# != 0 ; do
6915 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6918 echo Copying $1 to $2
6920 # Use the install script to create the directory and all required
6921 # parent directories.
6922 if test -d $2 ; then
6926 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6929 # Copy the directory, assuming we have tar.
6930 # FIXME: Should we use B in the second tar? Not all systems support it.
6931 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6933 # It is the responsibility of the user to correctly adjust all
6934 # symlinks. If somebody can figure out how to handle them correctly
6935 # here, feel free to add the code.
6942 # Determine a target-dependent exec_prefix that the installed
6943 # gcc will search in. Keep this list sorted by triplet, with
6944 # the *-*-osname triplets last.
6947 i[34567]86-pc-msdosdjgpp*)
6948 md_exec_prefix=/dev/env/DJDIR/bin
6953 md_exec_prefix=/usr/ccs/bin
6957 extra_arflags_for_target=
6958 extra_nmflags_for_target=
6959 extra_ranlibflags_for_target=
6960 target_makefile_frag=/dev/null
6963 target_makefile_frag="config/mt-spu"
6965 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6966 target_makefile_frag="config/mt-sde"
6968 mipsisa*-*-elfoabi*)
6969 target_makefile_frag="config/mt-mips-elfoabi"
6971 mips*-*-*linux* | mips*-*-gnu*)
6972 target_makefile_frag="config/mt-mips-gnu"
6975 target_makefile_frag="config/mt-nios2-elf"
6977 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6978 target_makefile_frag="config/mt-gnu"
6980 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6981 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6982 # commands to handle both 32-bit and 64-bit objects. These flags are
6983 # harmless if we're using GNU nm or ar.
6984 extra_arflags_for_target=" -X32_64"
6985 extra_nmflags_for_target=" -B -X32_64"
6989 alphaieee_frag=/dev/null
6992 # This just makes sure to use the -mieee option to build target libs.
6993 # This should probably be set individually by each library.
6994 alphaieee_frag="config/mt-alphaieee"
6998 # If --enable-target-optspace always use -Os instead of -O2 to build
6999 # the target libraries, similarly if it is not specified, use -Os
7000 # on selected platforms.
7001 ospace_frag=/dev/null
7002 case "${enable_target_optspace}:${target}" in
7004 ospace_frag="config/mt-ospace"
7007 ospace_frag="config/mt-d30v"
7009 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7010 ospace_frag="config/mt-ospace"
7015 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7019 # Some systems (e.g., one of the i386-aix systems the gas testers are
7020 # using) don't handle "\$" correctly, so don't use it here.
7021 tooldir='${exec_prefix}'/${target_noncanonical}
7022 build_tooldir=${tooldir}
7024 # Create a .gdbinit file which runs the one in srcdir
7025 # and tells GDB to look there for source files.
7027 if test -r ${srcdir}/.gdbinit ; then
7030 *) cat > ./.gdbinit <<EOF
7034 source ${srcdir}/.gdbinit
7040 # Make sure that the compiler is able to generate an executable. If it
7041 # can't, we are probably in trouble. We don't care whether we can run the
7042 # executable--we might be using a cross compiler--we only care whether it
7043 # can be created. At this point the main configure script has set CC.
7045 echo "int main () { return 0; }" > conftest.c
7046 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7047 if test $? = 0 ; then
7048 if test -s conftest || test -s conftest.exe ; then
7054 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7055 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7062 # Decide which environment variable is used to find dynamic libraries.
7064 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7065 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7066 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7067 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7070 # On systems where the dynamic library environment variable is PATH,
7071 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7072 # built executables to PATH.
7073 if test "$RPATH_ENVVAR" = PATH; then
7074 GCC_SHLIB_SUBDIR=/shlib
7079 # Adjust the toplevel makefile according to whether bootstrap was selected.
7080 case $enable_bootstrap in
7082 bootstrap_suffix=bootstrap
7083 BUILD_CONFIG=bootstrap-debug
7086 bootstrap_suffix=no-bootstrap
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7092 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7095 # Check whether --with-build-config was given.
7096 if test "${with_build_config+set}" = set; then :
7097 withval=$with_build_config; case $with_build_config in
7098 yes) with_build_config= ;;
7099 no) with_build_config= BUILD_CONFIG= ;;
7104 if test "x${with_build_config}" != x; then
7105 BUILD_CONFIG=$with_build_config
7107 case $BUILD_CONFIG in
7109 if echo "int f (void) { return 0; }" > conftest.c &&
7110 ${CC} -c conftest.c &&
7111 mv conftest.o conftest.o.g0 &&
7112 ${CC} -c -g conftest.c &&
7113 mv conftest.o conftest.o.g &&
7114 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7119 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7124 $as_echo "$BUILD_CONFIG" >&6; }
7127 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7129 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7130 # Check whether --enable-vtable-verify was given.
7131 if test "${enable_vtable_verify+set}" = set; then :
7132 enableval=$enable_vtable_verify; case "$enableval" in
7133 yes) enable_vtable_verify=yes ;;
7134 no) enable_vtable_verify=no ;;
7135 *) enable_vtable_verify=no;;
7138 enable_vtable_verify=no
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7142 $as_echo "$enable_vtable_verify" >&6; }
7144 # Record target_configdirs and the configure arguments for target and
7145 # build configuration in Makefile.
7146 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7147 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7148 bootstrap_fixincludes=no
7150 # If we are building libgomp, bootstrap it.
7151 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7152 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7155 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7156 # or bootstrap-ubsan, bootstrap it.
7157 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7158 case "$BUILD_CONFIG" in
7159 *bootstrap-asan* | *bootstrap-ubsan* )
7160 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7161 bootstrap_fixincludes=yes
7166 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7167 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7168 test "$enable_vtable_verify" != no; then
7169 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7172 # If we are building libmpx, bootstrap it.
7173 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7174 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7177 # Determine whether gdb needs tk/tcl or not.
7178 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7179 # and in that case we want gdb to be built without tk. Ugh!
7180 # In fact I believe gdb is the *only* package directly dependent on tk,
7181 # so we should be able to put the 'maybe's in unconditionally and
7182 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7183 # 100% sure that that's safe though.
7185 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7186 case "$enable_gdbtk" in
7190 GDB_TK="${gdb_tk}" ;;
7192 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7193 # distro. Eventually someone will fix this and move Insight, nee
7194 # gdbtk to a separate directory.
7195 if test -d ${srcdir}/gdb/gdbtk ; then
7202 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7203 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7205 # Strip out unwanted targets.
7207 # While at that, we remove Makefiles if we were started for recursive
7208 # configuration, so that the top-level Makefile reconfigures them,
7209 # like we used to do when configure itself was recursive.
7211 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7212 # but now we're fixing up the Makefile ourselves with the additional
7213 # commands passed to AC_CONFIG_FILES. Use separate variables
7214 # extrasub-{build,host,target} not because there is any reason to split
7215 # the substitutions up that way, but only to remain below the limit of
7216 # 99 commands in a script, for HP-UX sed.
7217 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7219 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7220 yes:yes:*\ gold\ *:*,c++,*) ;;
7221 yes:yes:*\ gold\ *:*)
7222 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7227 for module in ${build_configdirs} ; do
7228 if test -z "${no_recursion}" \
7229 && test -f ${build_subdir}/${module}/Makefile; then
7230 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7231 rm -f ${build_subdir}/${module}/Makefile
7233 extrasub_build="$extrasub_build
7234 /^@if build-$module\$/d
7235 /^@endif build-$module\$/d
7236 /^@if build-$module-$bootstrap_suffix\$/d
7237 /^@endif build-$module-$bootstrap_suffix\$/d"
7240 for module in ${configdirs} ; do
7241 if test -z "${no_recursion}"; then
7242 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7243 if test -f ${file}; then
7244 echo 1>&2 "*** removing ${file} to force reconfigure"
7249 case ${module},${bootstrap_fixincludes} in
7250 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7251 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7253 extrasub_host="$extrasub_host
7255 /^@endif $module\$/d
7256 /^@if $module-$host_bootstrap_suffix\$/d
7257 /^@endif $module-$host_bootstrap_suffix\$/d"
7260 for module in ${target_configdirs} ; do
7261 if test -z "${no_recursion}" \
7262 && test -f ${target_subdir}/${module}/Makefile; then
7263 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7264 rm -f ${target_subdir}/${module}/Makefile
7267 # We only bootstrap target libraries listed in bootstrap_target_libs.
7268 case $bootstrap_target_libs in
7269 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7270 *) target_bootstrap_suffix=no-bootstrap ;;
7273 extrasub_target="$extrasub_target
7274 /^@if target-$module\$/d
7275 /^@endif target-$module\$/d
7276 /^@if target-$module-$target_bootstrap_suffix\$/d
7277 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7280 # Do the final fixup along with target modules.
7281 extrasub_target="$extrasub_target
7282 /^@if /,/^@endif /d"
7284 # Create the serialization dependencies. This uses a temporary file.
7286 # Check whether --enable-serial-configure was given.
7287 if test "${enable_serial_configure+set}" = set; then :
7288 enableval=$enable_serial_configure;
7292 case ${enable_serial_configure} in
7294 enable_serial_build_configure=yes
7295 enable_serial_host_configure=yes
7296 enable_serial_target_configure=yes
7300 # These force 'configure's to be done one at a time, to avoid problems
7301 # with contention over a shared config.cache.
7303 echo '# serdep.tmp' > serdep.tmp
7305 test "x${enable_serial_build_configure}" = xyes &&
7306 for item in ${build_configdirs} ; do
7309 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7314 test "x${enable_serial_host_configure}" = xyes &&
7315 for item in ${configdirs} ; do
7318 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7323 test "x${enable_serial_target_configure}" = xyes &&
7324 for item in ${target_configdirs} ; do
7327 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7331 serialization_dependencies=serdep.tmp
7334 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7335 # target, nonopt, and variable assignments. These are the ones we
7336 # might not want to pass down to subconfigures. The exception being
7337 # --cache-file=/dev/null, which is used to turn off the use of cache
7338 # files altogether, and which should be passed on to subconfigures.
7339 # Also strip program-prefix, program-suffix, and program-transform-name,
7340 # so that we can pass down a consistent program-transform-name.
7345 eval "set -- $ac_configure_args"
7348 if test X"$skip_next" = X"yes"; then
7352 if test X"$keep_next" = X"yes"; then
7355 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7357 baseargs="$baseargs '$ac_arg'"
7358 tbaseargs="$tbaseargs '$ac_arg'"
7363 # Handle separated arguments. Based on the logic generated by
7366 *=* | --config-cache | -C | -disable-* | --disable-* \
7367 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7368 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7369 | -with-* | --with-* | -without-* | --without-* | --x)
7383 --with-* | --without-*)
7384 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7388 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7391 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7400 mpc | mpfr | gmp | isl)
7401 # If we're processing --with-$lib, --with-$lib-include or
7402 # --with-$lib-lib, for one of the libs above, and target is
7403 # different from host, don't pass the current argument to any
7404 # target library's configure.
7405 if test x$is_cross_compiler = xyes; then
7414 --cache-file=/dev/null | \
7415 -cache-file=/dev/null )
7416 # Handled here to avoid the test to skip args below.
7417 baseargs="$baseargs '$ac_arg'"
7418 tbaseargs="$tbaseargs '$ac_arg'"
7419 # Assert: $separate_arg should always be no.
7420 keep_next=$separate_arg
7436 -program-prefix* | \
7437 -program-suffix* | \
7438 -program-transform-name* )
7439 skip_next=$separate_arg
7443 # An option. Add it.
7446 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7448 baseargs="$baseargs '$ac_arg'"
7449 if test X"$skip_targ" = Xno; then
7450 tbaseargs="$tbaseargs '$ac_arg'"
7452 keep_next=$separate_arg
7455 # Either a variable assignment, or a nonopt (triplet). Don't
7456 # pass it down; let the Makefile handle this.
7461 # Remove the initial space we just introduced and, as these will be
7462 # expanded by make, quote '$'.
7463 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7465 # Add in --program-transform-name, after --program-prefix and
7466 # --program-suffix have been applied to it. Autoconf has already
7467 # doubled dollar signs and backslashes in program_transform_name; we want
7468 # the backslashes un-doubled, and then the entire thing wrapped in single
7469 # quotes, because this will be expanded first by make and then by the shell.
7470 # Also, because we want to override the logic in subdir configure scripts to
7471 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7472 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7473 ${program_transform_name}
7475 gcc_transform_name=`cat conftestsed.out`
7476 rm -f conftestsed.out
7477 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7478 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7479 if test "$silent" = yes; then
7480 baseargs="$baseargs --silent"
7481 tbaseargs="$tbaseargs --silent"
7483 baseargs="$baseargs --disable-option-checking"
7484 tbaseargs="$tbaseargs --disable-option-checking"
7486 # Record and document user additions to sub configure arguments.
7491 # For the build-side libraries, we just need to pretend we're native,
7492 # and not use the same cache file. Multilibs are neither needed nor
7493 # desired. We can't even use the same cache file for all build-side
7494 # libraries, as they're compiled differently; some with C, some with
7495 # C++ or with different feature-enabling options.
7496 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7498 # For host modules, accept cache file option, or specification as blank.
7499 case "${cache_file}" in
7501 cache_file_option="" ;;
7502 /* | [A-Za-z]:[\\/]* ) # absolute path
7503 cache_file_option="--cache-file=${cache_file}" ;;
7505 cache_file_option="--cache-file=../${cache_file}" ;;
7508 # Host dirs don't like to share a cache file either, horribly enough.
7509 # This seems to be due to autoconf 2.5x stupidity.
7510 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7512 target_configargs="$target_configargs ${tbaseargs}"
7514 # Passing a --with-cross-host argument lets the target libraries know
7515 # whether they are being built with a cross-compiler or being built
7516 # native. However, it would be better to use other mechanisms to make the
7517 # sorts of decisions they want to make on this basis. Please consider
7518 # this option to be deprecated. FIXME.
7519 if test x${is_cross_compiler} = xyes ; then
7520 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7523 # Special user-friendly check for native x86_64-linux build, if
7524 # multilib is not explicitly enabled.
7525 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7526 x86_64-*linux*:yes:$build:$build:)
7527 # Make sure we have a development environment that handles 32-bit
7529 echo "int main () { return 0; }" > conftest.c
7530 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7531 if test $? = 0 ; then
7532 if test -s conftest || test -s conftest.exe ; then
7537 if test x${dev64} != xyes ; then
7538 as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7543 # Default to --enable-multilib.
7544 if test x${enable_multilib} = x ; then
7545 target_configargs="--enable-multilib ${target_configargs}"
7548 # Pass --with-newlib if appropriate. Note that target_configdirs has
7549 # changed from the earlier setting of with_newlib.
7550 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7551 target_configargs="--with-newlib ${target_configargs}"
7554 # Different target subdirs use different values of certain variables
7555 # (notably CXX). Worse, multilibs use *lots* of different values.
7556 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7557 # it doesn't automatically accept command-line overrides of them.
7558 # This means it's not safe for target subdirs to share a cache file,
7559 # which is disgusting, but there you have it. Hopefully this can be
7560 # fixed in future. It's still worthwhile to use a cache file for each
7561 # directory. I think.
7563 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7564 # We need to pass --target, as newer autoconf's requires consistency
7565 # for target_alias and gcc doesn't manage it consistently.
7566 target_configargs="--cache-file=./config.cache ${target_configargs}"
7569 case " $target_configdirs " in
7571 case " $target_configargs " in
7572 *" --with-newlib "*)
7575 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7579 # If we're not building GCC, don't discard standard headers.
7580 if test -d ${srcdir}/gcc; then
7581 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7583 if test "${build}" != "${host}"; then
7584 # On Canadian crosses, CC_FOR_TARGET will have already been set
7585 # by `configure', so we won't have an opportunity to add -Bgcc/
7586 # to it. This is right: we don't want to search that directory
7587 # for binaries, but we want the header files in there, so add
7589 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7591 # Someone might think of using the pre-installed headers on
7592 # Canadian crosses, in case the installed compiler is not fully
7593 # compatible with the compiler being built. In this case, it
7594 # would be better to flag an error than risking having
7595 # incompatible object files being constructed. We can't
7596 # guarantee that an error will be flagged, but let's hope the
7597 # compiler will do it, when presented with incompatible header
7602 case "${target}-${is_cross_compiler}" in
7603 i[3456789]86-*-linux*-no)
7604 # Here host == target, so we don't need to build gcc,
7605 # so we don't want to discard standard headers.
7606 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7609 # If we're building newlib, use its generic headers last, but search
7610 # for any libc-related directories first (so make it the last -B
7612 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7614 # If we're building libgloss, find the startup file, simulator library
7615 # and linker script.
7616 case " $target_configdirs " in
7618 # Look for startup file, simulator library and maybe linker script.
7619 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7620 # Look for libnosys.a in case the target needs it.
7621 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7622 # Most targets have the linker script in the source directory.
7623 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7634 x86_64-*mingw* | *-w64-mingw*)
7635 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7636 # however, use a symlink named 'mingw' in ${prefix} .
7637 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7640 # MinGW can't be handled as Cygwin above since it does not use newlib.
7641 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'
7645 # Allow the user to override the flags for
7646 # our build compiler if desired.
7647 if test x"${build}" = x"${host}" ; then
7648 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7649 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7650 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7653 # On Canadian crosses, we'll be searching the right directories for
7654 # the previously-installed cross compiler, so don't bother to add
7655 # flags for directories within the install tree of the compiler
7656 # being built; programs in there won't even run.
7657 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7658 # Search for pre-installed headers if nothing else fits.
7659 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7662 if test "x${use_gnu_ld}" = x &&
7663 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7664 # Arrange for us to find uninstalled linker scripts.
7665 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7668 # Search for other target-specific linker scripts and such.
7671 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7675 # Makefile fragments.
7676 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7678 eval fragval=\$$frag
7679 if test $fragval != /dev/null; then
7680 eval $frag=${srcdir}/$fragval
7688 # Miscellanea: directories, flags, etc.
7697 # Build module lists & subconfigure args.
7701 # Host module lists & subconfigure args.
7706 # Target module lists & subconfigure args.
7728 # Generate default definitions for YACC, M4, LEX and other programs that run
7729 # on the build machine. These are used if the Makefile can't locate these
7730 # programs in objdir.
7731 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7733 for ac_prog in 'bison -y' byacc yacc
7735 # Extract the first word of "$ac_prog", so it can be a program name with args.
7736 set dummy $ac_prog; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if test "${ac_cv_prog_YACC+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
7742 if test -n "$YACC"; then
7743 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752 ac_cv_prog_YACC="$ac_prog"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 YACC=$ac_cv_prog_YACC
7763 if test -n "$YACC"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7765 $as_echo "$YACC" >&6; }
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7772 test -n "$YACC" && break
7774 test -n "$YACC" || YACC="$MISSING bison -y"
7776 case " $build_configdirs " in
7777 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7780 for ac_prog in bison
7782 # Extract the first word of "$ac_prog", so it can be a program name with args.
7783 set dummy $ac_prog; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if test "${ac_cv_prog_BISON+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7789 if test -n "$BISON"; then
7790 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7799 ac_cv_prog_BISON="$ac_prog"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 BISON=$ac_cv_prog_BISON
7810 if test -n "$BISON"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7812 $as_echo "$BISON" >&6; }
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7819 test -n "$BISON" && break
7821 test -n "$BISON" || BISON="$MISSING bison"
7823 case " $build_configdirs " in
7824 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7827 for ac_prog in gm4 gnum4 m4
7829 # Extract the first word of "$ac_prog", so it can be a program name with args.
7830 set dummy $ac_prog; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if test "${ac_cv_prog_M4+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
7836 if test -n "$M4"; then
7837 ac_cv_prog_M4="$M4" # Let the user override the test.
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7846 ac_cv_prog_M4="$ac_prog"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 if test -n "$M4"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7859 $as_echo "$M4" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7866 test -n "$M4" && break
7868 test -n "$M4" || M4="$MISSING m4"
7870 case " $build_configdirs " in
7871 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7874 for ac_prog in flex lex
7876 # Extract the first word of "$ac_prog", so it can be a program name with args.
7877 set dummy $ac_prog; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if test "${ac_cv_prog_LEX+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7883 if test -n "$LEX"; then
7884 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7893 ac_cv_prog_LEX="$ac_prog"
7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 if test -n "$LEX"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7906 $as_echo "$LEX" >&6; }
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7913 test -n "$LEX" && break
7915 test -n "$LEX" || LEX="$MISSING flex"
7917 case " $build_configdirs " in
7918 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7919 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7924 # Extract the first word of "$ac_prog", so it can be a program name with args.
7925 set dummy $ac_prog; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if test "${ac_cv_prog_FLEX+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7931 if test -n "$FLEX"; then
7932 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_prog_FLEX="$ac_prog"
7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 FLEX=$ac_cv_prog_FLEX
7952 if test -n "$FLEX"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7954 $as_echo "$FLEX" >&6; }
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7961 test -n "$FLEX" && break
7963 test -n "$FLEX" || FLEX="$MISSING flex"
7965 case " $build_configdirs " in
7966 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7969 for ac_prog in makeinfo
7971 # Extract the first word of "$ac_prog", so it can be a program name with args.
7972 set dummy $ac_prog; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7978 if test -n "$MAKEINFO"; then
7979 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7988 ac_cv_prog_MAKEINFO="$ac_prog"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 MAKEINFO=$ac_cv_prog_MAKEINFO
7999 if test -n "$MAKEINFO"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8001 $as_echo "$MAKEINFO" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8008 test -n "$MAKEINFO" && break
8010 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8012 case " $build_configdirs " in
8013 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8016 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8017 # higher, else we use the "missing" dummy.
8018 if ${MAKEINFO} --version \
8019 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8022 MAKEINFO="$MISSING makeinfo"
8028 # FIXME: expect and dejagnu may become build tools?
8030 for ac_prog in expect
8032 # Extract the first word of "$ac_prog", so it can be a program name with args.
8033 set dummy $ac_prog; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8039 if test -n "$EXPECT"; then
8040 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_prog_EXPECT="$ac_prog"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 EXPECT=$ac_cv_prog_EXPECT
8060 if test -n "$EXPECT"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8062 $as_echo "$EXPECT" >&6; }
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8069 test -n "$EXPECT" && break
8071 test -n "$EXPECT" || EXPECT="expect"
8073 case " $configdirs " in
8075 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8079 for ac_prog in runtest
8081 # Extract the first word of "$ac_prog", so it can be a program name with args.
8082 set dummy $ac_prog; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8086 $as_echo_n "(cached) " >&6
8088 if test -n "$RUNTEST"; then
8089 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_prog_RUNTEST="$ac_prog"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 RUNTEST=$ac_cv_prog_RUNTEST
8109 if test -n "$RUNTEST"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8111 $as_echo "$RUNTEST" >&6; }
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8118 test -n "$RUNTEST" && break
8120 test -n "$RUNTEST" || RUNTEST="runtest"
8122 case " $configdirs " in
8124 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8131 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8132 ncn_target_tool_prefix=
8133 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8137 if test -n "$AR"; then
8139 elif test -n "$ac_cv_prog_AR"; then
8143 if test -n "$ac_cv_prog_AR"; then
8144 for ncn_progname in ar; do
8145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8146 set dummy ${ncn_progname}; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_prog_AR+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8152 if test -n "$AR"; then
8153 ac_cv_prog_AR="$AR" # Let the user override the test.
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_prog_AR="${ncn_progname}"
8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 if test -n "$AR"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8175 $as_echo "$AR" >&6; }
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8185 for ncn_progname in ar; do
8186 if test -n "$ncn_tool_prefix"; then
8187 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8188 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 $as_echo_n "checking for $ac_word... " >&6; }
8191 if test "${ac_cv_prog_AR+set}" = set; then :
8192 $as_echo_n "(cached) " >&6
8194 if test -n "$AR"; then
8195 ac_cv_prog_AR="$AR" # Let the user override the test.
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8204 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 if test -n "$AR"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8217 $as_echo "$AR" >&6; }
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 $as_echo "no" >&6; }
8225 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8227 set dummy ${ncn_progname}; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if test "${ac_cv_prog_AR+set}" = set; then :
8231 $as_echo_n "(cached) " >&6
8233 if test -n "$AR"; then
8234 ac_cv_prog_AR="$AR" # Let the user override the test.
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_prog_AR="${ncn_progname}"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254 if test -n "$AR"; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8256 $as_echo "$AR" >&6; }
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8264 test -n "$ac_cv_prog_AR" && break
8267 if test -z "$ac_cv_prog_AR" ; then
8269 if test $build = $host ; then
8272 AR="${ncn_tool_prefix}$2"
8278 if test -n "$AS"; then
8280 elif test -n "$ac_cv_prog_AS"; then
8284 if test -n "$ac_cv_prog_AS"; then
8285 for ncn_progname in as; do
8286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8287 set dummy ${ncn_progname}; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if test "${ac_cv_prog_AS+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8293 if test -n "$AS"; then
8294 ac_cv_prog_AS="$AS" # Let the user override the test.
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 ac_cv_prog_AS="${ncn_progname}"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 if test -n "$AS"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8316 $as_echo "$AS" >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8326 for ncn_progname in as; do
8327 if test -n "$ncn_tool_prefix"; then
8328 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8329 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if test "${ac_cv_prog_AS+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8335 if test -n "$AS"; then
8336 ac_cv_prog_AS="$AS" # Let the user override the test.
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 if test -n "$AS"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8358 $as_echo "$AS" >&6; }
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8366 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8368 set dummy ${ncn_progname}; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if test "${ac_cv_prog_AS+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
8374 if test -n "$AS"; then
8375 ac_cv_prog_AS="$AS" # Let the user override the test.
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 test -z "$as_dir" && as_dir=.
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384 ac_cv_prog_AS="${ncn_progname}"
8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8395 if test -n "$AS"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8397 $as_echo "$AS" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8405 test -n "$ac_cv_prog_AS" && break
8408 if test -z "$ac_cv_prog_AS" ; then
8410 if test $build = $host ; then
8413 AS="${ncn_tool_prefix}$2"
8419 if test -n "$DLLTOOL"; then
8420 ac_cv_prog_DLLTOOL=$DLLTOOL
8421 elif test -n "$ac_cv_prog_DLLTOOL"; then
8422 DLLTOOL=$ac_cv_prog_DLLTOOL
8425 if test -n "$ac_cv_prog_DLLTOOL"; then
8426 for ncn_progname in dlltool; do
8427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8428 set dummy ${ncn_progname}; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8434 if test -n "$DLLTOOL"; then
8435 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 ac_cv_prog_DLLTOOL="${ncn_progname}"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 DLLTOOL=$ac_cv_prog_DLLTOOL
8455 if test -n "$DLLTOOL"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8457 $as_echo "$DLLTOOL" >&6; }
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8467 for ncn_progname in dlltool; do
8468 if test -n "$ncn_tool_prefix"; then
8469 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8470 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8476 if test -n "$DLLTOOL"; then
8477 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 DLLTOOL=$ac_cv_prog_DLLTOOL
8497 if test -n "$DLLTOOL"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8499 $as_echo "$DLLTOOL" >&6; }
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8507 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8509 set dummy ${ncn_progname}; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8515 if test -n "$DLLTOOL"; then
8516 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8525 ac_cv_prog_DLLTOOL="${ncn_progname}"
8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 DLLTOOL=$ac_cv_prog_DLLTOOL
8536 if test -n "$DLLTOOL"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8538 $as_echo "$DLLTOOL" >&6; }
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8546 test -n "$ac_cv_prog_DLLTOOL" && break
8549 if test -z "$ac_cv_prog_DLLTOOL" ; then
8551 if test $build = $host ; then
8554 DLLTOOL="${ncn_tool_prefix}$2"
8560 if test -n "$LD"; then
8562 elif test -n "$ac_cv_prog_LD"; then
8566 if test -n "$ac_cv_prog_LD"; then
8567 for ncn_progname in ld; do
8568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8569 set dummy ${ncn_progname}; ac_word=$2
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 $as_echo_n "checking for $ac_word... " >&6; }
8572 if test "${ac_cv_prog_LD+set}" = set; then :
8573 $as_echo_n "(cached) " >&6
8575 if test -n "$LD"; then
8576 ac_cv_prog_LD="$LD" # Let the user override the test.
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 test -z "$as_dir" && as_dir=.
8583 for ac_exec_ext in '' $ac_executable_extensions; do
8584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8585 ac_cv_prog_LD="${ncn_progname}"
8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 if test -n "$LD"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8598 $as_echo "$LD" >&6; }
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8608 for ncn_progname in ld; do
8609 if test -n "$ncn_tool_prefix"; then
8610 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8611 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if test "${ac_cv_prog_LD+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8617 if test -n "$LD"; then
8618 ac_cv_prog_LD="$LD" # Let the user override the test.
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8638 if test -n "$LD"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8640 $as_echo "$LD" >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8648 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8650 set dummy ${ncn_progname}; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if test "${ac_cv_prog_LD+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
8656 if test -n "$LD"; then
8657 ac_cv_prog_LD="$LD" # Let the user override the test.
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666 ac_cv_prog_LD="${ncn_progname}"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8677 if test -n "$LD"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8679 $as_echo "$LD" >&6; }
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8687 test -n "$ac_cv_prog_LD" && break
8690 if test -z "$ac_cv_prog_LD" ; then
8692 if test $build = $host ; then
8695 LD="${ncn_tool_prefix}$2"
8701 if test -n "$LIPO"; then
8702 ac_cv_prog_LIPO=$LIPO
8703 elif test -n "$ac_cv_prog_LIPO"; then
8704 LIPO=$ac_cv_prog_LIPO
8707 if test -n "$ac_cv_prog_LIPO"; then
8708 for ncn_progname in lipo; do
8709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8710 set dummy ${ncn_progname}; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if test "${ac_cv_prog_LIPO+set}" = set; then :
8714 $as_echo_n "(cached) " >&6
8716 if test -n "$LIPO"; then
8717 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8726 ac_cv_prog_LIPO="${ncn_progname}"
8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8736 LIPO=$ac_cv_prog_LIPO
8737 if test -n "$LIPO"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8739 $as_echo "$LIPO" >&6; }
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8749 for ncn_progname in lipo; do
8750 if test -n "$ncn_tool_prefix"; then
8751 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8752 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; }
8755 if test "${ac_cv_prog_LIPO+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8758 if test -n "$LIPO"; then
8759 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8778 LIPO=$ac_cv_prog_LIPO
8779 if test -n "$LIPO"; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8781 $as_echo "$LIPO" >&6; }
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8789 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8791 set dummy ${ncn_progname}; ac_word=$2
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 $as_echo_n "checking for $ac_word... " >&6; }
8794 if test "${ac_cv_prog_LIPO+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8797 if test -n "$LIPO"; then
8798 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8807 ac_cv_prog_LIPO="${ncn_progname}"
8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8817 LIPO=$ac_cv_prog_LIPO
8818 if test -n "$LIPO"; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8820 $as_echo "$LIPO" >&6; }
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 $as_echo "no" >&6; }
8828 test -n "$ac_cv_prog_LIPO" && break
8831 if test -z "$ac_cv_prog_LIPO" ; then
8833 if test $build = $host ; then
8836 LIPO="${ncn_tool_prefix}$2"
8842 if test -n "$NM"; then
8844 elif test -n "$ac_cv_prog_NM"; then
8848 if test -n "$ac_cv_prog_NM"; then
8849 for ncn_progname in nm; do
8850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8851 set dummy ${ncn_progname}; ac_word=$2
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853 $as_echo_n "checking for $ac_word... " >&6; }
8854 if test "${ac_cv_prog_NM+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8857 if test -n "$NM"; then
8858 ac_cv_prog_NM="$NM" # Let the user override the test.
8860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864 test -z "$as_dir" && as_dir=.
8865 for ac_exec_ext in '' $ac_executable_extensions; do
8866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8867 ac_cv_prog_NM="${ncn_progname}"
8868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 if test -n "$NM"; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8880 $as_echo "$NM" >&6; }
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8890 for ncn_progname in nm; do
8891 if test -n "$ncn_tool_prefix"; then
8892 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8893 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895 $as_echo_n "checking for $ac_word... " >&6; }
8896 if test "${ac_cv_prog_NM+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8899 if test -n "$NM"; then
8900 ac_cv_prog_NM="$NM" # Let the user override the test.
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 test -z "$as_dir" && as_dir=.
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920 if test -n "$NM"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8922 $as_echo "$NM" >&6; }
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8930 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8932 set dummy ${ncn_progname}; ac_word=$2
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934 $as_echo_n "checking for $ac_word... " >&6; }
8935 if test "${ac_cv_prog_NM+set}" = set; then :
8936 $as_echo_n "(cached) " >&6
8938 if test -n "$NM"; then
8939 ac_cv_prog_NM="$NM" # Let the user override the test.
8941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 test -z "$as_dir" && as_dir=.
8946 for ac_exec_ext in '' $ac_executable_extensions; do
8947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8948 ac_cv_prog_NM="${ncn_progname}"
8949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959 if test -n "$NM"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8961 $as_echo "$NM" >&6; }
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8969 test -n "$ac_cv_prog_NM" && break
8972 if test -z "$ac_cv_prog_NM" ; then
8974 if test $build = $host ; then
8977 NM="${ncn_tool_prefix}$2"
8983 if test -n "$RANLIB"; then
8984 ac_cv_prog_RANLIB=$RANLIB
8985 elif test -n "$ac_cv_prog_RANLIB"; then
8986 RANLIB=$ac_cv_prog_RANLIB
8989 if test -n "$ac_cv_prog_RANLIB"; then
8990 for ncn_progname in ranlib; do
8991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8992 set dummy ${ncn_progname}; ac_word=$2
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994 $as_echo_n "checking for $ac_word... " >&6; }
8995 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8998 if test -n "$RANLIB"; then
8999 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 test -z "$as_dir" && as_dir=.
9006 for ac_exec_ext in '' $ac_executable_extensions; do
9007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9008 ac_cv_prog_RANLIB="${ncn_progname}"
9009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9018 RANLIB=$ac_cv_prog_RANLIB
9019 if test -n "$RANLIB"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9021 $as_echo "$RANLIB" >&6; }
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9031 for ncn_progname in ranlib; do
9032 if test -n "$ncn_tool_prefix"; then
9033 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9034 set dummy ${ncn_tool_prefix}${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_RANLIB+set}" = set; then :
9038 $as_echo_n "(cached) " >&6
9040 if test -n "$RANLIB"; then
9041 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 RANLIB=$ac_cv_prog_RANLIB
9061 if test -n "$RANLIB"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9063 $as_echo "$RANLIB" >&6; }
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9071 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9073 set dummy ${ncn_progname}; ac_word=$2
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075 $as_echo_n "checking for $ac_word... " >&6; }
9076 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9077 $as_echo_n "(cached) " >&6
9079 if test -n "$RANLIB"; then
9080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086 test -z "$as_dir" && as_dir=.
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9089 ac_cv_prog_RANLIB="${ncn_progname}"
9090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 RANLIB=$ac_cv_prog_RANLIB
9100 if test -n "$RANLIB"; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9102 $as_echo "$RANLIB" >&6; }
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9110 test -n "$ac_cv_prog_RANLIB" && break
9113 if test -z "$ac_cv_prog_RANLIB" ; then
9119 if test -n "$STRIP"; then
9120 ac_cv_prog_STRIP=$STRIP
9121 elif test -n "$ac_cv_prog_STRIP"; then
9122 STRIP=$ac_cv_prog_STRIP
9125 if test -n "$ac_cv_prog_STRIP"; then
9126 for ncn_progname in strip; do
9127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9128 set dummy ${ncn_progname}; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if test "${ac_cv_prog_STRIP+set}" = set; then :
9132 $as_echo_n "(cached) " >&6
9134 if test -n "$STRIP"; then
9135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9144 ac_cv_prog_STRIP="${ncn_progname}"
9145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 STRIP=$ac_cv_prog_STRIP
9155 if test -n "$STRIP"; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9157 $as_echo "$STRIP" >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9167 for ncn_progname in strip; do
9168 if test -n "$ncn_tool_prefix"; then
9169 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9170 set dummy ${ncn_tool_prefix}${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_STRIP+set}" = set; then :
9174 $as_echo_n "(cached) " >&6
9176 if test -n "$STRIP"; then
9177 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ncn_tool_prefix}${ncn_progname}"
9187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9196 STRIP=$ac_cv_prog_STRIP
9197 if test -n "$STRIP"; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9199 $as_echo "$STRIP" >&6; }
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202 $as_echo "no" >&6; }
9207 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9209 set dummy ${ncn_progname}; ac_word=$2
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9211 $as_echo_n "checking for $ac_word... " >&6; }
9212 if test "${ac_cv_prog_STRIP+set}" = set; then :
9213 $as_echo_n "(cached) " >&6
9215 if test -n "$STRIP"; then
9216 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222 test -z "$as_dir" && as_dir=.
9223 for ac_exec_ext in '' $ac_executable_extensions; do
9224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9225 ac_cv_prog_STRIP="${ncn_progname}"
9226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9235 STRIP=$ac_cv_prog_STRIP
9236 if test -n "$STRIP"; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9238 $as_echo "$STRIP" >&6; }
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 $as_echo "no" >&6; }
9246 test -n "$ac_cv_prog_STRIP" && break
9249 if test -z "$ac_cv_prog_STRIP" ; then
9255 if test -n "$WINDRES"; then
9256 ac_cv_prog_WINDRES=$WINDRES
9257 elif test -n "$ac_cv_prog_WINDRES"; then
9258 WINDRES=$ac_cv_prog_WINDRES
9261 if test -n "$ac_cv_prog_WINDRES"; then
9262 for ncn_progname in windres; do
9263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9264 set dummy ${ncn_progname}; ac_word=$2
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266 $as_echo_n "checking for $ac_word... " >&6; }
9267 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9270 if test -n "$WINDRES"; then
9271 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280 ac_cv_prog_WINDRES="${ncn_progname}"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9290 WINDRES=$ac_cv_prog_WINDRES
9291 if test -n "$WINDRES"; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9293 $as_echo "$WINDRES" >&6; }
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9303 for ncn_progname in windres; do
9304 if test -n "$ncn_tool_prefix"; then
9305 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9306 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9308 $as_echo_n "checking for $ac_word... " >&6; }
9309 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9310 $as_echo_n "(cached) " >&6
9312 if test -n "$WINDRES"; then
9313 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319 test -z "$as_dir" && as_dir=.
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9322 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9332 WINDRES=$ac_cv_prog_WINDRES
9333 if test -n "$WINDRES"; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9335 $as_echo "$WINDRES" >&6; }
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9343 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9345 set dummy ${ncn_progname}; ac_word=$2
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 $as_echo_n "checking for $ac_word... " >&6; }
9348 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9351 if test -n "$WINDRES"; then
9352 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 test -z "$as_dir" && as_dir=.
9359 for ac_exec_ext in '' $ac_executable_extensions; do
9360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9361 ac_cv_prog_WINDRES="${ncn_progname}"
9362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 WINDRES=$ac_cv_prog_WINDRES
9372 if test -n "$WINDRES"; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9374 $as_echo "$WINDRES" >&6; }
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377 $as_echo "no" >&6; }
9382 test -n "$ac_cv_prog_WINDRES" && break
9385 if test -z "$ac_cv_prog_WINDRES" ; then
9387 if test $build = $host ; then
9390 WINDRES="${ncn_tool_prefix}$2"
9396 if test -n "$WINDMC"; then
9397 ac_cv_prog_WINDMC=$WINDMC
9398 elif test -n "$ac_cv_prog_WINDMC"; then
9399 WINDMC=$ac_cv_prog_WINDMC
9402 if test -n "$ac_cv_prog_WINDMC"; then
9403 for ncn_progname in windmc; do
9404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9405 set dummy ${ncn_progname}; ac_word=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
9411 if test -n "$WINDMC"; then
9412 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9421 ac_cv_prog_WINDMC="${ncn_progname}"
9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9431 WINDMC=$ac_cv_prog_WINDMC
9432 if test -n "$WINDMC"; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9434 $as_echo "$WINDMC" >&6; }
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9444 for ncn_progname in windmc; do
9445 if test -n "$ncn_tool_prefix"; then
9446 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9447 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 $as_echo_n "checking for $ac_word... " >&6; }
9450 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9451 $as_echo_n "(cached) " >&6
9453 if test -n "$WINDMC"; then
9454 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 test -z "$as_dir" && as_dir=.
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9463 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473 WINDMC=$ac_cv_prog_WINDMC
9474 if test -n "$WINDMC"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9476 $as_echo "$WINDMC" >&6; }
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9484 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9486 set dummy ${ncn_progname}; ac_word=$2
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488 $as_echo_n "checking for $ac_word... " >&6; }
9489 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9492 if test -n "$WINDMC"; then
9493 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499 test -z "$as_dir" && as_dir=.
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9502 ac_cv_prog_WINDMC="${ncn_progname}"
9503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9512 WINDMC=$ac_cv_prog_WINDMC
9513 if test -n "$WINDMC"; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9515 $as_echo "$WINDMC" >&6; }
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9523 test -n "$ac_cv_prog_WINDMC" && break
9526 if test -z "$ac_cv_prog_WINDMC" ; then
9528 if test $build = $host ; then
9531 WINDMC="${ncn_tool_prefix}$2"
9537 if test -n "$OBJCOPY"; then
9538 ac_cv_prog_OBJCOPY=$OBJCOPY
9539 elif test -n "$ac_cv_prog_OBJCOPY"; then
9540 OBJCOPY=$ac_cv_prog_OBJCOPY
9543 if test -n "$ac_cv_prog_OBJCOPY"; then
9544 for ncn_progname in objcopy; do
9545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9546 set dummy ${ncn_progname}; ac_word=$2
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9548 $as_echo_n "checking for $ac_word... " >&6; }
9549 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9552 if test -n "$OBJCOPY"; then
9553 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559 test -z "$as_dir" && as_dir=.
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9562 ac_cv_prog_OBJCOPY="${ncn_progname}"
9563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9572 OBJCOPY=$ac_cv_prog_OBJCOPY
9573 if test -n "$OBJCOPY"; then
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9575 $as_echo "$OBJCOPY" >&6; }
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9585 for ncn_progname in objcopy; do
9586 if test -n "$ncn_tool_prefix"; then
9587 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9588 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590 $as_echo_n "checking for $ac_word... " >&6; }
9591 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9592 $as_echo_n "(cached) " >&6
9594 if test -n "$OBJCOPY"; then
9595 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601 test -z "$as_dir" && as_dir=.
9602 for ac_exec_ext in '' $ac_executable_extensions; do
9603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9604 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614 OBJCOPY=$ac_cv_prog_OBJCOPY
9615 if test -n "$OBJCOPY"; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9617 $as_echo "$OBJCOPY" >&6; }
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620 $as_echo "no" >&6; }
9625 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9627 set dummy ${ncn_progname}; ac_word=$2
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9633 if test -n "$OBJCOPY"; then
9634 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9643 ac_cv_prog_OBJCOPY="${ncn_progname}"
9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 OBJCOPY=$ac_cv_prog_OBJCOPY
9654 if test -n "$OBJCOPY"; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9656 $as_echo "$OBJCOPY" >&6; }
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9664 test -n "$ac_cv_prog_OBJCOPY" && break
9667 if test -z "$ac_cv_prog_OBJCOPY" ; then
9669 if test $build = $host ; then
9672 OBJCOPY="${ncn_tool_prefix}$2"
9678 if test -n "$OBJDUMP"; then
9679 ac_cv_prog_OBJDUMP=$OBJDUMP
9680 elif test -n "$ac_cv_prog_OBJDUMP"; then
9681 OBJDUMP=$ac_cv_prog_OBJDUMP
9684 if test -n "$ac_cv_prog_OBJDUMP"; then
9685 for ncn_progname in objdump; do
9686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9687 set dummy ${ncn_progname}; ac_word=$2
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689 $as_echo_n "checking for $ac_word... " >&6; }
9690 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9693 if test -n "$OBJDUMP"; then
9694 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 test -z "$as_dir" && as_dir=.
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9703 ac_cv_prog_OBJDUMP="${ncn_progname}"
9704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9713 OBJDUMP=$ac_cv_prog_OBJDUMP
9714 if test -n "$OBJDUMP"; then
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9716 $as_echo "$OBJDUMP" >&6; }
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; }
9726 for ncn_progname in objdump; do
9727 if test -n "$ncn_tool_prefix"; then
9728 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9729 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
9735 if test -n "$OBJDUMP"; then
9736 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9745 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 OBJDUMP=$ac_cv_prog_OBJDUMP
9756 if test -n "$OBJDUMP"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9758 $as_echo "$OBJDUMP" >&6; }
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9766 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9768 set dummy ${ncn_progname}; ac_word=$2
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770 $as_echo_n "checking for $ac_word... " >&6; }
9771 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9772 $as_echo_n "(cached) " >&6
9774 if test -n "$OBJDUMP"; then
9775 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784 ac_cv_prog_OBJDUMP="${ncn_progname}"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 OBJDUMP=$ac_cv_prog_OBJDUMP
9795 if test -n "$OBJDUMP"; then
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9797 $as_echo "$OBJDUMP" >&6; }
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9805 test -n "$ac_cv_prog_OBJDUMP" && break
9808 if test -z "$ac_cv_prog_OBJDUMP" ; then
9810 if test $build = $host ; then
9813 OBJDUMP="${ncn_tool_prefix}$2"
9819 if test -n "$READELF"; then
9820 ac_cv_prog_READELF=$READELF
9821 elif test -n "$ac_cv_prog_READELF"; then
9822 READELF=$ac_cv_prog_READELF
9825 if test -n "$ac_cv_prog_READELF"; then
9826 for ncn_progname in readelf; do
9827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9828 set dummy ${ncn_progname}; ac_word=$2
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9830 $as_echo_n "checking for $ac_word... " >&6; }
9831 if test "${ac_cv_prog_READELF+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9834 if test -n "$READELF"; then
9835 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9844 ac_cv_prog_READELF="${ncn_progname}"
9845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9854 READELF=$ac_cv_prog_READELF
9855 if test -n "$READELF"; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9857 $as_echo "$READELF" >&6; }
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860 $as_echo "no" >&6; }
9867 for ncn_progname in readelf; do
9868 if test -n "$ncn_tool_prefix"; then
9869 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9870 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9872 $as_echo_n "checking for $ac_word... " >&6; }
9873 if test "${ac_cv_prog_READELF+set}" = set; then :
9874 $as_echo_n "(cached) " >&6
9876 if test -n "$READELF"; then
9877 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883 test -z "$as_dir" && as_dir=.
9884 for ac_exec_ext in '' $ac_executable_extensions; do
9885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9886 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9896 READELF=$ac_cv_prog_READELF
9897 if test -n "$READELF"; then
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9899 $as_echo "$READELF" >&6; }
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902 $as_echo "no" >&6; }
9907 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9909 set dummy ${ncn_progname}; ac_word=$2
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911 $as_echo_n "checking for $ac_word... " >&6; }
9912 if test "${ac_cv_prog_READELF+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
9915 if test -n "$READELF"; then
9916 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 test -z "$as_dir" && as_dir=.
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9925 ac_cv_prog_READELF="${ncn_progname}"
9926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9935 READELF=$ac_cv_prog_READELF
9936 if test -n "$READELF"; then
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9938 $as_echo "$READELF" >&6; }
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941 $as_echo "no" >&6; }
9946 test -n "$ac_cv_prog_READELF" && break
9949 if test -z "$ac_cv_prog_READELF" ; then
9951 if test $build = $host ; then
9954 READELF="${ncn_tool_prefix}$2"
9965 # Check whether --with-build-time-tools was given.
9966 if test "${with_build_time_tools+set}" = set; then :
9967 withval=$with_build_time_tools; case x"$withval" in
9970 with_build_time_tools=
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9972 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9976 with_build_time_tools=
9982 if test -n "$CC_FOR_TARGET"; then
9983 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9984 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9985 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9988 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9989 for ncn_progname in cc gcc; do
9990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9991 set dummy ${ncn_progname}; ac_word=$2
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 $as_echo_n "checking for $ac_word... " >&6; }
9994 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9995 $as_echo_n "(cached) " >&6
9997 if test -n "$CC_FOR_TARGET"; then
9998 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001 for as_dir in $PATH
10004 test -z "$as_dir" && as_dir=.
10005 for ac_exec_ext in '' $ac_executable_extensions; do
10006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10007 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10018 if test -n "$CC_FOR_TARGET"; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10020 $as_echo "$CC_FOR_TARGET" >&6; }
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023 $as_echo "no" >&6; }
10030 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10031 for ncn_progname in cc gcc; do
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10033 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10034 if test -x $with_build_time_tools/${ncn_progname}; then
10035 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10037 $as_echo "yes" >&6; }
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10046 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10047 for ncn_progname in cc gcc; do
10048 if test -n "$ncn_target_tool_prefix"; then
10049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10050 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10052 $as_echo_n "checking for $ac_word... " >&6; }
10053 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10054 $as_echo_n "(cached) " >&6
10056 if test -n "$CC_FOR_TARGET"; then
10057 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10063 test -z "$as_dir" && as_dir=.
10064 for ac_exec_ext in '' $ac_executable_extensions; do
10065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10066 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10076 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10077 if test -n "$CC_FOR_TARGET"; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10079 $as_echo "$CC_FOR_TARGET" >&6; }
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10087 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10089 set dummy ${ncn_progname}; ac_word=$2
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10091 $as_echo_n "checking for $ac_word... " >&6; }
10092 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10093 $as_echo_n "(cached) " >&6
10095 if test -n "$CC_FOR_TARGET"; then
10096 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099 for as_dir in $PATH
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
10104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10105 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10116 if test -n "$CC_FOR_TARGET"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10118 $as_echo "$CC_FOR_TARGET" >&6; }
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10126 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10130 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10132 if test $build = $target ; then
10135 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10138 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10143 if test -n "$CXX_FOR_TARGET"; then
10144 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10145 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10146 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10149 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10150 for ncn_progname in c++ g++ cxx gxx; do
10151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10152 set dummy ${ncn_progname}; ac_word=$2
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154 $as_echo_n "checking for $ac_word... " >&6; }
10155 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10158 if test -n "$CXX_FOR_TARGET"; then
10159 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10165 test -z "$as_dir" && as_dir=.
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10168 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10178 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10179 if test -n "$CXX_FOR_TARGET"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10181 $as_echo "$CXX_FOR_TARGET" >&6; }
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10191 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10192 for ncn_progname in c++ g++ cxx gxx; do
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10194 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10195 if test -x $with_build_time_tools/${ncn_progname}; then
10196 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10198 $as_echo "yes" >&6; }
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10207 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10208 for ncn_progname in c++ g++ cxx gxx; do
10209 if test -n "$ncn_target_tool_prefix"; then
10210 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10211 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10215 $as_echo_n "(cached) " >&6
10217 if test -n "$CXX_FOR_TARGET"; then
10218 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in $PATH
10224 test -z "$as_dir" && as_dir=.
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10227 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10237 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10238 if test -n "$CXX_FOR_TARGET"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10240 $as_echo "$CXX_FOR_TARGET" >&6; }
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10248 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10250 set dummy ${ncn_progname}; ac_word=$2
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252 $as_echo_n "checking for $ac_word... " >&6; }
10253 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10254 $as_echo_n "(cached) " >&6
10256 if test -n "$CXX_FOR_TARGET"; then
10257 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260 for as_dir in $PATH
10263 test -z "$as_dir" && as_dir=.
10264 for ac_exec_ext in '' $ac_executable_extensions; do
10265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10266 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10277 if test -n "$CXX_FOR_TARGET"; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10279 $as_echo "$CXX_FOR_TARGET" >&6; }
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10287 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10291 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10292 set dummy c++ g++ cxx gxx
10293 if test $build = $target ; then
10294 CXX_FOR_TARGET="$2"
10296 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10299 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10304 if test -n "$GCC_FOR_TARGET"; then
10305 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10306 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10307 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10310 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10311 for ncn_progname in gcc; do
10312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10313 set dummy ${ncn_progname}; ac_word=$2
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315 $as_echo_n "checking for $ac_word... " >&6; }
10316 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10317 $as_echo_n "(cached) " >&6
10319 if test -n "$GCC_FOR_TARGET"; then
10320 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323 for as_dir in $PATH
10326 test -z "$as_dir" && as_dir=.
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10329 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10340 if test -n "$GCC_FOR_TARGET"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10342 $as_echo "$GCC_FOR_TARGET" >&6; }
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10352 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10353 for ncn_progname in gcc; do
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10355 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10356 if test -x $with_build_time_tools/${ncn_progname}; then
10357 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10359 $as_echo "yes" >&6; }
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10368 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10369 for ncn_progname in gcc; do
10370 if test -n "$ncn_target_tool_prefix"; then
10371 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10372 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10378 if test -n "$GCC_FOR_TARGET"; then
10379 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
10387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10399 if test -n "$GCC_FOR_TARGET"; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10401 $as_echo "$GCC_FOR_TARGET" >&6; }
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10409 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10411 set dummy ${ncn_progname}; ac_word=$2
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10415 $as_echo_n "(cached) " >&6
10417 if test -n "$GCC_FOR_TARGET"; then
10418 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in $PATH
10424 test -z "$as_dir" && as_dir=.
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10427 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10438 if test -n "$GCC_FOR_TARGET"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10440 $as_echo "$GCC_FOR_TARGET" >&6; }
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10448 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10452 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10453 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10455 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10460 if test -n "$GCJ_FOR_TARGET"; then
10461 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10462 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10463 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10466 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10467 for ncn_progname in gcj; do
10468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10469 set dummy ${ncn_progname}; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10473 $as_echo_n "(cached) " >&6
10475 if test -n "$GCJ_FOR_TARGET"; then
10476 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10482 test -z "$as_dir" && as_dir=.
10483 for ac_exec_ext in '' $ac_executable_extensions; do
10484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10485 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10495 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10496 if test -n "$GCJ_FOR_TARGET"; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10498 $as_echo "$GCJ_FOR_TARGET" >&6; }
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10508 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10509 for ncn_progname in gcj; do
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10511 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10512 if test -x $with_build_time_tools/${ncn_progname}; then
10513 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10515 $as_echo "yes" >&6; }
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10524 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10525 for ncn_progname in gcj; do
10526 if test -n "$ncn_target_tool_prefix"; then
10527 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10528 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530 $as_echo_n "checking for $ac_word... " >&6; }
10531 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10532 $as_echo_n "(cached) " >&6
10534 if test -n "$GCJ_FOR_TARGET"; then
10535 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538 for as_dir in $PATH
10541 test -z "$as_dir" && as_dir=.
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10544 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10554 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10555 if test -n "$GCJ_FOR_TARGET"; then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10557 $as_echo "$GCJ_FOR_TARGET" >&6; }
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560 $as_echo "no" >&6; }
10565 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10567 set dummy ${ncn_progname}; ac_word=$2
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569 $as_echo_n "checking for $ac_word... " >&6; }
10570 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10571 $as_echo_n "(cached) " >&6
10573 if test -n "$GCJ_FOR_TARGET"; then
10574 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10577 for as_dir in $PATH
10580 test -z "$as_dir" && as_dir=.
10581 for ac_exec_ext in '' $ac_executable_extensions; do
10582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10583 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10593 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10594 if test -n "$GCJ_FOR_TARGET"; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10596 $as_echo "$GCJ_FOR_TARGET" >&6; }
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; }
10604 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10608 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10610 if test $build = $target ; then
10611 GCJ_FOR_TARGET="$2"
10613 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10616 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10621 if test -n "$GFORTRAN_FOR_TARGET"; then
10622 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10623 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10624 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10627 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10628 for ncn_progname in gfortran; do
10629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10630 set dummy ${ncn_progname}; ac_word=$2
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632 $as_echo_n "checking for $ac_word... " >&6; }
10633 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10636 if test -n "$GFORTRAN_FOR_TARGET"; then
10637 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10643 test -z "$as_dir" && as_dir=.
10644 for ac_exec_ext in '' $ac_executable_extensions; do
10645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10646 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10656 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10657 if test -n "$GFORTRAN_FOR_TARGET"; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10659 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10669 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10670 for ncn_progname in gfortran; do
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10672 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10673 if test -x $with_build_time_tools/${ncn_progname}; then
10674 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10676 $as_echo "yes" >&6; }
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680 $as_echo "no" >&6; }
10685 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10686 for ncn_progname in gfortran; do
10687 if test -n "$ncn_target_tool_prefix"; then
10688 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10689 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691 $as_echo_n "checking for $ac_word... " >&6; }
10692 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10693 $as_echo_n "(cached) " >&6
10695 if test -n "$GFORTRAN_FOR_TARGET"; then
10696 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699 for as_dir in $PATH
10702 test -z "$as_dir" && as_dir=.
10703 for ac_exec_ext in '' $ac_executable_extensions; do
10704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10705 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10715 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10716 if test -n "$GFORTRAN_FOR_TARGET"; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10718 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721 $as_echo "no" >&6; }
10726 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10728 set dummy ${ncn_progname}; ac_word=$2
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10730 $as_echo_n "checking for $ac_word... " >&6; }
10731 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10732 $as_echo_n "(cached) " >&6
10734 if test -n "$GFORTRAN_FOR_TARGET"; then
10735 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738 for as_dir in $PATH
10741 test -z "$as_dir" && as_dir=.
10742 for ac_exec_ext in '' $ac_executable_extensions; do
10743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10744 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10754 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10755 if test -n "$GFORTRAN_FOR_TARGET"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10757 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760 $as_echo "no" >&6; }
10765 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10769 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10771 if test $build = $target ; then
10772 GFORTRAN_FOR_TARGET="$2"
10774 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10777 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10782 if test -n "$GOC_FOR_TARGET"; then
10783 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10784 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10785 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10788 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10789 for ncn_progname in gccgo; do
10790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10791 set dummy ${ncn_progname}; ac_word=$2
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793 $as_echo_n "checking for $ac_word... " >&6; }
10794 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10797 if test -n "$GOC_FOR_TARGET"; then
10798 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10807 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10818 if test -n "$GOC_FOR_TARGET"; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10820 $as_echo "$GOC_FOR_TARGET" >&6; }
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10830 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10831 for ncn_progname in gccgo; do
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10833 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10834 if test -x $with_build_time_tools/${ncn_progname}; then
10835 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10837 $as_echo "yes" >&6; }
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10846 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10847 for ncn_progname in gccgo; do
10848 if test -n "$ncn_target_tool_prefix"; then
10849 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10850 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852 $as_echo_n "checking for $ac_word... " >&6; }
10853 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
10856 if test -n "$GOC_FOR_TARGET"; then
10857 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10876 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10877 if test -n "$GOC_FOR_TARGET"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10879 $as_echo "$GOC_FOR_TARGET" >&6; }
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10887 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10889 set dummy ${ncn_progname}; ac_word=$2
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10891 $as_echo_n "checking for $ac_word... " >&6; }
10892 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
10895 if test -n "$GOC_FOR_TARGET"; then
10896 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899 for as_dir in $PATH
10902 test -z "$as_dir" && as_dir=.
10903 for ac_exec_ext in '' $ac_executable_extensions; do
10904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10905 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10915 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10916 if test -n "$GOC_FOR_TARGET"; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10918 $as_echo "$GOC_FOR_TARGET" >&6; }
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 $as_echo "no" >&6; }
10926 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10930 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10932 if test $build = $target ; then
10933 GOC_FOR_TARGET="$2"
10935 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10938 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10943 cat > conftest.c << \EOF
10948 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10949 have_gcc_for_target=yes
10951 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10952 have_gcc_for_target=no
10959 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10960 if test -n "$with_build_time_tools"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10962 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10963 if test -x $with_build_time_tools/ar; then
10964 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10965 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10967 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10972 elif test $build != $host && test $have_gcc_for_target = yes; then
10973 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10974 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10975 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10978 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10979 # Extract the first word of "ar", so it can be a program name with args.
10980 set dummy ar; ac_word=$2
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10982 $as_echo_n "checking for $ac_word... " >&6; }
10983 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10984 $as_echo_n "(cached) " >&6
10986 case $AR_FOR_TARGET in
10988 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in $gcc_cv_tool_dirs
10995 test -z "$as_dir" && as_dir=.
10996 for ac_exec_ext in '' $ac_executable_extensions; do
10997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10998 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11010 if test -n "$AR_FOR_TARGET"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11012 $as_echo "$AR_FOR_TARGET" >&6; }
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015 $as_echo "no" >&6; }
11020 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11023 if test -n "$AR_FOR_TARGET"; then
11024 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11025 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11026 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11029 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11030 for ncn_progname in ar; do
11031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11032 set dummy ${ncn_progname}; ac_word=$2
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11034 $as_echo_n "checking for $ac_word... " >&6; }
11035 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11036 $as_echo_n "(cached) " >&6
11038 if test -n "$AR_FOR_TARGET"; then
11039 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11048 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11058 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11059 if test -n "$AR_FOR_TARGET"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11061 $as_echo "$AR_FOR_TARGET" >&6; }
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11071 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11072 for ncn_progname in ar; do
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11074 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11075 if test -x $with_build_time_tools/${ncn_progname}; then
11076 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11078 $as_echo "yes" >&6; }
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11087 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11088 for ncn_progname in ar; do
11089 if test -n "$ncn_target_tool_prefix"; then
11090 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11091 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11097 if test -n "$AR_FOR_TARGET"; then
11098 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 for as_dir in $PATH
11104 test -z "$as_dir" && as_dir=.
11105 for ac_exec_ext in '' $ac_executable_extensions; do
11106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11107 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11117 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11118 if test -n "$AR_FOR_TARGET"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11120 $as_echo "$AR_FOR_TARGET" >&6; }
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11128 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11130 set dummy ${ncn_progname}; ac_word=$2
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11134 $as_echo_n "(cached) " >&6
11136 if test -n "$AR_FOR_TARGET"; then
11137 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11143 test -z "$as_dir" && as_dir=.
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11146 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11157 if test -n "$AR_FOR_TARGET"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11159 $as_echo "$AR_FOR_TARGET" >&6; }
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11167 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11171 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11173 if test $build = $target ; then
11176 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11179 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11183 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11189 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11190 if test -n "$with_build_time_tools"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11192 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11193 if test -x $with_build_time_tools/as; then
11194 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11195 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11197 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11202 elif test $build != $host && test $have_gcc_for_target = yes; then
11203 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11204 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11205 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11208 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11209 # Extract the first word of "as", so it can be a program name with args.
11210 set dummy as; ac_word=$2
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11212 $as_echo_n "checking for $ac_word... " >&6; }
11213 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
11216 case $AS_FOR_TARGET in
11218 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $gcc_cv_tool_dirs
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11239 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11240 if test -n "$AS_FOR_TARGET"; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11242 $as_echo "$AS_FOR_TARGET" >&6; }
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245 $as_echo "no" >&6; }
11250 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11253 if test -n "$AS_FOR_TARGET"; then
11254 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11255 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11256 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11259 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11260 for ncn_progname in as; do
11261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11262 set dummy ${ncn_progname}; ac_word=$2
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11264 $as_echo_n "checking for $ac_word... " >&6; }
11265 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11266 $as_echo_n "(cached) " >&6
11268 if test -n "$AS_FOR_TARGET"; then
11269 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in $PATH
11275 test -z "$as_dir" && as_dir=.
11276 for ac_exec_ext in '' $ac_executable_extensions; do
11277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11278 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11288 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11289 if test -n "$AS_FOR_TARGET"; then
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11291 $as_echo "$AS_FOR_TARGET" >&6; }
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11301 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11302 for ncn_progname in as; do
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11304 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11305 if test -x $with_build_time_tools/${ncn_progname}; then
11306 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11308 $as_echo "yes" >&6; }
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11317 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11318 for ncn_progname in as; do
11319 if test -n "$ncn_target_tool_prefix"; then
11320 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11321 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
11327 if test -n "$AS_FOR_TARGET"; then
11328 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11337 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11347 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11348 if test -n "$AS_FOR_TARGET"; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11350 $as_echo "$AS_FOR_TARGET" >&6; }
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353 $as_echo "no" >&6; }
11358 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11360 set dummy ${ncn_progname}; ac_word=$2
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11362 $as_echo_n "checking for $ac_word... " >&6; }
11363 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11364 $as_echo_n "(cached) " >&6
11366 if test -n "$AS_FOR_TARGET"; then
11367 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11370 for as_dir in $PATH
11373 test -z "$as_dir" && as_dir=.
11374 for ac_exec_ext in '' $ac_executable_extensions; do
11375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11376 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11386 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11387 if test -n "$AS_FOR_TARGET"; then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11389 $as_echo "$AS_FOR_TARGET" >&6; }
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392 $as_echo "no" >&6; }
11397 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11401 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11403 if test $build = $target ; then
11406 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11409 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11413 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11419 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11420 if test -n "$with_build_time_tools"; then
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11422 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11423 if test -x $with_build_time_tools/dlltool; then
11424 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11425 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11427 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430 $as_echo "no" >&6; }
11432 elif test $build != $host && test $have_gcc_for_target = yes; then
11433 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11434 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11435 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11438 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11439 # Extract the first word of "dlltool", so it can be a program name with args.
11440 set dummy dlltool; ac_word=$2
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11442 $as_echo_n "checking for $ac_word... " >&6; }
11443 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11444 $as_echo_n "(cached) " >&6
11446 case $DLLTOOL_FOR_TARGET in
11448 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in $gcc_cv_tool_dirs
11455 test -z "$as_dir" && as_dir=.
11456 for ac_exec_ext in '' $ac_executable_extensions; do
11457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11458 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11469 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11470 if test -n "$DLLTOOL_FOR_TARGET"; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11472 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11480 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11483 if test -n "$DLLTOOL_FOR_TARGET"; then
11484 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11485 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11486 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11489 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11490 for ncn_progname in dlltool; do
11491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11492 set dummy ${ncn_progname}; ac_word=$2
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11494 $as_echo_n "checking for $ac_word... " >&6; }
11495 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
11498 if test -n "$DLLTOOL_FOR_TARGET"; then
11499 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11505 test -z "$as_dir" && as_dir=.
11506 for ac_exec_ext in '' $ac_executable_extensions; do
11507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11508 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11518 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11519 if test -n "$DLLTOOL_FOR_TARGET"; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11521 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11531 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11532 for ncn_progname in dlltool; do
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11534 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11535 if test -x $with_build_time_tools/${ncn_progname}; then
11536 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11538 $as_echo "yes" >&6; }
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11547 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11548 for ncn_progname in dlltool; do
11549 if test -n "$ncn_target_tool_prefix"; then
11550 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11551 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11557 if test -n "$DLLTOOL_FOR_TARGET"; then
11558 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11564 test -z "$as_dir" && as_dir=.
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11567 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11577 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11578 if test -n "$DLLTOOL_FOR_TARGET"; then
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11580 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11588 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11590 set dummy ${ncn_progname}; ac_word=$2
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11592 $as_echo_n "checking for $ac_word... " >&6; }
11593 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11594 $as_echo_n "(cached) " >&6
11596 if test -n "$DLLTOOL_FOR_TARGET"; then
11597 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11606 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11616 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11617 if test -n "$DLLTOOL_FOR_TARGET"; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11619 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11622 $as_echo "no" >&6; }
11627 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11631 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11633 if test $build = $target ; then
11634 DLLTOOL_FOR_TARGET="$2"
11636 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11639 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11643 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11649 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11650 if test -n "$with_build_time_tools"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11652 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11653 if test -x $with_build_time_tools/ld; then
11654 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11655 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11657 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660 $as_echo "no" >&6; }
11662 elif test $build != $host && test $have_gcc_for_target = yes; then
11663 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11664 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11665 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11668 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11669 # Extract the first word of "ld", so it can be a program name with args.
11670 set dummy ld; ac_word=$2
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11672 $as_echo_n "checking for $ac_word... " >&6; }
11673 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11674 $as_echo_n "(cached) " >&6
11676 case $LD_FOR_TARGET in
11678 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $gcc_cv_tool_dirs
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11688 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11700 if test -n "$LD_FOR_TARGET"; then
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11702 $as_echo "$LD_FOR_TARGET" >&6; }
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705 $as_echo "no" >&6; }
11710 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11713 if test -n "$LD_FOR_TARGET"; then
11714 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11715 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11716 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11719 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11720 for ncn_progname in ld; do
11721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11722 set dummy ${ncn_progname}; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11726 $as_echo_n "(cached) " >&6
11728 if test -n "$LD_FOR_TARGET"; then
11729 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732 for as_dir in $PATH
11735 test -z "$as_dir" && as_dir=.
11736 for ac_exec_ext in '' $ac_executable_extensions; do
11737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11738 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11748 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11749 if test -n "$LD_FOR_TARGET"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11751 $as_echo "$LD_FOR_TARGET" >&6; }
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11761 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11762 for ncn_progname in ld; do
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11764 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11765 if test -x $with_build_time_tools/${ncn_progname}; then
11766 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11768 $as_echo "yes" >&6; }
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772 $as_echo "no" >&6; }
11777 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11778 for ncn_progname in ld; do
11779 if test -n "$ncn_target_tool_prefix"; then
11780 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11781 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783 $as_echo_n "checking for $ac_word... " >&6; }
11784 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
11787 if test -n "$LD_FOR_TARGET"; then
11788 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791 for as_dir in $PATH
11794 test -z "$as_dir" && as_dir=.
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11797 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11807 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11808 if test -n "$LD_FOR_TARGET"; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11810 $as_echo "$LD_FOR_TARGET" >&6; }
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11818 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11820 set dummy ${ncn_progname}; ac_word=$2
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11822 $as_echo_n "checking for $ac_word... " >&6; }
11823 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11824 $as_echo_n "(cached) " >&6
11826 if test -n "$LD_FOR_TARGET"; then
11827 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $PATH
11833 test -z "$as_dir" && as_dir=.
11834 for ac_exec_ext in '' $ac_executable_extensions; do
11835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11836 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11846 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11847 if test -n "$LD_FOR_TARGET"; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11849 $as_echo "$LD_FOR_TARGET" >&6; }
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11857 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11861 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11863 if test $build = $target ; then
11866 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11869 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11873 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11879 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11880 if test -n "$with_build_time_tools"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11882 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11883 if test -x $with_build_time_tools/lipo; then
11884 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11885 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11887 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11892 elif test $build != $host && test $have_gcc_for_target = yes; then
11893 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11894 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11895 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11898 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11899 # Extract the first word of "lipo", so it can be a program name with args.
11900 set dummy lipo; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11904 $as_echo_n "(cached) " >&6
11906 case $LIPO_FOR_TARGET in
11908 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $gcc_cv_tool_dirs
11915 test -z "$as_dir" && as_dir=.
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11918 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11929 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11930 if test -n "$LIPO_FOR_TARGET"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11932 $as_echo "$LIPO_FOR_TARGET" >&6; }
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11940 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11943 if test -n "$LIPO_FOR_TARGET"; then
11944 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11945 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11946 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11949 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11950 for ncn_progname in lipo; do
11951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11952 set dummy ${ncn_progname}; ac_word=$2
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11954 $as_echo_n "checking for $ac_word... " >&6; }
11955 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11956 $as_echo_n "(cached) " >&6
11958 if test -n "$LIPO_FOR_TARGET"; then
11959 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962 for as_dir in $PATH
11965 test -z "$as_dir" && as_dir=.
11966 for ac_exec_ext in '' $ac_executable_extensions; do
11967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11968 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11978 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11979 if test -n "$LIPO_FOR_TARGET"; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11981 $as_echo "$LIPO_FOR_TARGET" >&6; }
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11991 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11992 for ncn_progname in lipo; do
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11994 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11995 if test -x $with_build_time_tools/${ncn_progname}; then
11996 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11998 $as_echo "yes" >&6; }
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12007 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12008 for ncn_progname in lipo; do
12009 if test -n "$ncn_target_tool_prefix"; then
12010 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12011 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12017 if test -n "$LIPO_FOR_TARGET"; then
12018 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12024 test -z "$as_dir" && as_dir=.
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12027 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12037 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12038 if test -n "$LIPO_FOR_TARGET"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12040 $as_echo "$LIPO_FOR_TARGET" >&6; }
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12048 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12050 set dummy ${ncn_progname}; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12054 $as_echo_n "(cached) " >&6
12056 if test -n "$LIPO_FOR_TARGET"; then
12057 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12066 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12076 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12077 if test -n "$LIPO_FOR_TARGET"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12079 $as_echo "$LIPO_FOR_TARGET" >&6; }
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12087 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12091 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12093 if test $build = $target ; then
12094 LIPO_FOR_TARGET="$2"
12096 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12099 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12103 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12109 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12110 if test -n "$with_build_time_tools"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12112 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12113 if test -x $with_build_time_tools/nm; then
12114 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12115 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12117 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 $as_echo "no" >&6; }
12122 elif test $build != $host && test $have_gcc_for_target = yes; then
12123 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12124 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12125 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12128 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12129 # Extract the first word of "nm", so it can be a program name with args.
12130 set dummy nm; ac_word=$2
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12132 $as_echo_n "checking for $ac_word... " >&6; }
12133 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12134 $as_echo_n "(cached) " >&6
12136 case $NM_FOR_TARGET in
12138 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $gcc_cv_tool_dirs
12145 test -z "$as_dir" && as_dir=.
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12148 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12159 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12160 if test -n "$NM_FOR_TARGET"; then
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12162 $as_echo "$NM_FOR_TARGET" >&6; }
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165 $as_echo "no" >&6; }
12170 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12173 if test -n "$NM_FOR_TARGET"; then
12174 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12175 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12176 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12179 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12180 for ncn_progname in nm; do
12181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12182 set dummy ${ncn_progname}; ac_word=$2
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12184 $as_echo_n "checking for $ac_word... " >&6; }
12185 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12186 $as_echo_n "(cached) " >&6
12188 if test -n "$NM_FOR_TARGET"; then
12189 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12195 test -z "$as_dir" && as_dir=.
12196 for ac_exec_ext in '' $ac_executable_extensions; do
12197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12198 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12208 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12209 if test -n "$NM_FOR_TARGET"; then
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12211 $as_echo "$NM_FOR_TARGET" >&6; }
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214 $as_echo "no" >&6; }
12221 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12222 for ncn_progname in nm; do
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12224 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12225 if test -x $with_build_time_tools/${ncn_progname}; then
12226 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12228 $as_echo "yes" >&6; }
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12237 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12238 for ncn_progname in nm; do
12239 if test -n "$ncn_target_tool_prefix"; then
12240 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12241 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243 $as_echo_n "checking for $ac_word... " >&6; }
12244 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
12247 if test -n "$NM_FOR_TARGET"; then
12248 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251 for as_dir in $PATH
12254 test -z "$as_dir" && as_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12257 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12267 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12268 if test -n "$NM_FOR_TARGET"; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12270 $as_echo "$NM_FOR_TARGET" >&6; }
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273 $as_echo "no" >&6; }
12278 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12280 set dummy ${ncn_progname}; ac_word=$2
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282 $as_echo_n "checking for $ac_word... " >&6; }
12283 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12284 $as_echo_n "(cached) " >&6
12286 if test -n "$NM_FOR_TARGET"; then
12287 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 for as_dir in $PATH
12293 test -z "$as_dir" && as_dir=.
12294 for ac_exec_ext in '' $ac_executable_extensions; do
12295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12306 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12307 if test -n "$NM_FOR_TARGET"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12309 $as_echo "$NM_FOR_TARGET" >&6; }
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12317 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12321 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12323 if test $build = $target ; then
12326 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12329 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12333 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12339 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12340 if test -n "$with_build_time_tools"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12342 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12343 if test -x $with_build_time_tools/objcopy; then
12344 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12345 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12347 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12352 elif test $build != $host && test $have_gcc_for_target = yes; then
12353 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12354 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12355 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12358 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12359 # Extract the first word of "objcopy", so it can be a program name with args.
12360 set dummy objcopy; ac_word=$2
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362 $as_echo_n "checking for $ac_word... " >&6; }
12363 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12364 $as_echo_n "(cached) " >&6
12366 case $OBJCOPY_FOR_TARGET in
12368 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $gcc_cv_tool_dirs
12375 test -z "$as_dir" && as_dir=.
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12389 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12390 if test -n "$OBJCOPY_FOR_TARGET"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12392 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12400 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12403 if test -n "$OBJCOPY_FOR_TARGET"; then
12404 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12405 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12406 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12409 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12410 for ncn_progname in objcopy; do
12411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12412 set dummy ${ncn_progname}; ac_word=$2
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414 $as_echo_n "checking for $ac_word... " >&6; }
12415 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12418 if test -n "$OBJCOPY_FOR_TARGET"; then
12419 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH
12425 test -z "$as_dir" && as_dir=.
12426 for ac_exec_ext in '' $ac_executable_extensions; do
12427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12428 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12438 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12439 if test -n "$OBJCOPY_FOR_TARGET"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12441 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12451 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12452 for ncn_progname in objcopy; do
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12454 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12455 if test -x $with_build_time_tools/${ncn_progname}; then
12456 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12458 $as_echo "yes" >&6; }
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462 $as_echo "no" >&6; }
12467 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12468 for ncn_progname in objcopy; do
12469 if test -n "$ncn_target_tool_prefix"; then
12470 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12471 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12477 if test -n "$OBJCOPY_FOR_TARGET"; then
12478 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12497 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12498 if test -n "$OBJCOPY_FOR_TARGET"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12500 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12508 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12510 set dummy ${ncn_progname}; ac_word=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12514 $as_echo_n "(cached) " >&6
12516 if test -n "$OBJCOPY_FOR_TARGET"; then
12517 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $PATH
12523 test -z "$as_dir" && as_dir=.
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12526 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12537 if test -n "$OBJCOPY_FOR_TARGET"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12539 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12547 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12551 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12553 if test $build = $target ; then
12554 OBJCOPY_FOR_TARGET="$2"
12556 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12559 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12563 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12569 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12570 if test -n "$with_build_time_tools"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12572 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12573 if test -x $with_build_time_tools/objdump; then
12574 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12575 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12577 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 $as_echo "no" >&6; }
12582 elif test $build != $host && test $have_gcc_for_target = yes; then
12583 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12584 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12585 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12588 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12589 # Extract the first word of "objdump", so it can be a program name with args.
12590 set dummy objdump; ac_word=$2
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12592 $as_echo_n "checking for $ac_word... " >&6; }
12593 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12594 $as_echo_n "(cached) " >&6
12596 case $OBJDUMP_FOR_TARGET in
12598 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $gcc_cv_tool_dirs
12605 test -z "$as_dir" && as_dir=.
12606 for ac_exec_ext in '' $ac_executable_extensions; do
12607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12608 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12620 if test -n "$OBJDUMP_FOR_TARGET"; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12622 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12630 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12633 if test -n "$OBJDUMP_FOR_TARGET"; then
12634 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12635 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12636 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12639 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12640 for ncn_progname in objdump; do
12641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12642 set dummy ${ncn_progname}; ac_word=$2
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 $as_echo_n "checking for $ac_word... " >&6; }
12645 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12648 if test -n "$OBJDUMP_FOR_TARGET"; then
12649 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652 for as_dir in $PATH
12655 test -z "$as_dir" && as_dir=.
12656 for ac_exec_ext in '' $ac_executable_extensions; do
12657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12658 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12668 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12669 if test -n "$OBJDUMP_FOR_TARGET"; then
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12671 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674 $as_echo "no" >&6; }
12681 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12682 for ncn_progname in objdump; do
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12684 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12685 if test -x $with_build_time_tools/${ncn_progname}; then
12686 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12688 $as_echo "yes" >&6; }
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12697 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12698 for ncn_progname in objdump; do
12699 if test -n "$ncn_target_tool_prefix"; then
12700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12701 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703 $as_echo_n "checking for $ac_word... " >&6; }
12704 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
12707 if test -n "$OBJDUMP_FOR_TARGET"; then
12708 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711 for as_dir in $PATH
12714 test -z "$as_dir" && as_dir=.
12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12717 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12727 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12728 if test -n "$OBJDUMP_FOR_TARGET"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12730 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12738 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12740 set dummy ${ncn_progname}; ac_word=$2
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12742 $as_echo_n "checking for $ac_word... " >&6; }
12743 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12744 $as_echo_n "(cached) " >&6
12746 if test -n "$OBJDUMP_FOR_TARGET"; then
12747 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750 for as_dir in $PATH
12753 test -z "$as_dir" && as_dir=.
12754 for ac_exec_ext in '' $ac_executable_extensions; do
12755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12756 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12766 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12767 if test -n "$OBJDUMP_FOR_TARGET"; then
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12769 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772 $as_echo "no" >&6; }
12777 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12781 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12783 if test $build = $target ; then
12784 OBJDUMP_FOR_TARGET="$2"
12786 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12789 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12793 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12799 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12800 if test -n "$with_build_time_tools"; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12802 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12803 if test -x $with_build_time_tools/ranlib; then
12804 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12805 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12807 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810 $as_echo "no" >&6; }
12812 elif test $build != $host && test $have_gcc_for_target = yes; then
12813 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12814 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12815 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12818 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12819 # Extract the first word of "ranlib", so it can be a program name with args.
12820 set dummy ranlib; ac_word=$2
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12822 $as_echo_n "checking for $ac_word... " >&6; }
12823 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12824 $as_echo_n "(cached) " >&6
12826 case $RANLIB_FOR_TARGET in
12828 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $gcc_cv_tool_dirs
12835 test -z "$as_dir" && as_dir=.
12836 for ac_exec_ext in '' $ac_executable_extensions; do
12837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12838 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12850 if test -n "$RANLIB_FOR_TARGET"; then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12852 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12860 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12863 if test -n "$RANLIB_FOR_TARGET"; then
12864 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12865 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12866 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12869 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12870 for ncn_progname in ranlib; do
12871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12872 set dummy ${ncn_progname}; ac_word=$2
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12874 $as_echo_n "checking for $ac_word... " >&6; }
12875 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12878 if test -n "$RANLIB_FOR_TARGET"; then
12879 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12882 for as_dir in $PATH
12885 test -z "$as_dir" && as_dir=.
12886 for ac_exec_ext in '' $ac_executable_extensions; do
12887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12888 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12898 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12899 if test -n "$RANLIB_FOR_TARGET"; then
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12901 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 $as_echo "no" >&6; }
12911 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12912 for ncn_progname in ranlib; do
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12914 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12915 if test -x $with_build_time_tools/${ncn_progname}; then
12916 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12918 $as_echo "yes" >&6; }
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12927 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12928 for ncn_progname in ranlib; do
12929 if test -n "$ncn_target_tool_prefix"; then
12930 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12931 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933 $as_echo_n "checking for $ac_word... " >&6; }
12934 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12937 if test -n "$RANLIB_FOR_TARGET"; then
12938 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12947 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12958 if test -n "$RANLIB_FOR_TARGET"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12960 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12968 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12970 set dummy ${ncn_progname}; ac_word=$2
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12972 $as_echo_n "checking for $ac_word... " >&6; }
12973 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12974 $as_echo_n "(cached) " >&6
12976 if test -n "$RANLIB_FOR_TARGET"; then
12977 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980 for as_dir in $PATH
12983 test -z "$as_dir" && as_dir=.
12984 for ac_exec_ext in '' $ac_executable_extensions; do
12985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12986 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12996 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12997 if test -n "$RANLIB_FOR_TARGET"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12999 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13007 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13011 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13013 if test $build = $target ; then
13014 RANLIB_FOR_TARGET="$2"
13016 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13019 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13023 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13029 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13030 if test -n "$with_build_time_tools"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13032 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13033 if test -x $with_build_time_tools/readelf; then
13034 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13035 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13037 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040 $as_echo "no" >&6; }
13042 elif test $build != $host && test $have_gcc_for_target = yes; then
13043 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13044 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13045 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13048 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13049 # Extract the first word of "readelf", so it can be a program name with args.
13050 set dummy readelf; ac_word=$2
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13052 $as_echo_n "checking for $ac_word... " >&6; }
13053 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13054 $as_echo_n "(cached) " >&6
13056 case $READELF_FOR_TARGET in
13058 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062 for as_dir in $gcc_cv_tool_dirs
13065 test -z "$as_dir" && as_dir=.
13066 for ac_exec_ext in '' $ac_executable_extensions; do
13067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13068 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13080 if test -n "$READELF_FOR_TARGET"; then
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13082 $as_echo "$READELF_FOR_TARGET" >&6; }
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085 $as_echo "no" >&6; }
13090 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13093 if test -n "$READELF_FOR_TARGET"; then
13094 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13095 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13096 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13099 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13100 for ncn_progname in readelf; do
13101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13102 set dummy ${ncn_progname}; ac_word=$2
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104 $as_echo_n "checking for $ac_word... " >&6; }
13105 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13106 $as_echo_n "(cached) " >&6
13108 if test -n "$READELF_FOR_TARGET"; then
13109 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112 for as_dir in $PATH
13115 test -z "$as_dir" && as_dir=.
13116 for ac_exec_ext in '' $ac_executable_extensions; do
13117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13118 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13128 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13129 if test -n "$READELF_FOR_TARGET"; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13131 $as_echo "$READELF_FOR_TARGET" >&6; }
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134 $as_echo "no" >&6; }
13141 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13142 for ncn_progname in readelf; do
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13144 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13145 if test -x $with_build_time_tools/${ncn_progname}; then
13146 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13148 $as_echo "yes" >&6; }
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13157 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13158 for ncn_progname in readelf; do
13159 if test -n "$ncn_target_tool_prefix"; then
13160 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13161 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163 $as_echo_n "checking for $ac_word... " >&6; }
13164 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13165 $as_echo_n "(cached) " >&6
13167 if test -n "$READELF_FOR_TARGET"; then
13168 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171 for as_dir in $PATH
13174 test -z "$as_dir" && as_dir=.
13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13177 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13187 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13188 if test -n "$READELF_FOR_TARGET"; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13190 $as_echo "$READELF_FOR_TARGET" >&6; }
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193 $as_echo "no" >&6; }
13198 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13200 set dummy ${ncn_progname}; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13202 $as_echo_n "checking for $ac_word... " >&6; }
13203 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13204 $as_echo_n "(cached) " >&6
13206 if test -n "$READELF_FOR_TARGET"; then
13207 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13213 test -z "$as_dir" && as_dir=.
13214 for ac_exec_ext in '' $ac_executable_extensions; do
13215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13216 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13226 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13227 if test -n "$READELF_FOR_TARGET"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13229 $as_echo "$READELF_FOR_TARGET" >&6; }
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13237 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13241 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13243 if test $build = $target ; then
13244 READELF_FOR_TARGET="$2"
13246 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13249 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13253 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13259 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13260 if test -n "$with_build_time_tools"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13262 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13263 if test -x $with_build_time_tools/strip; then
13264 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13265 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13267 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13272 elif test $build != $host && test $have_gcc_for_target = yes; then
13273 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13274 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13275 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13278 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13279 # Extract the first word of "strip", so it can be a program name with args.
13280 set dummy strip; ac_word=$2
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13282 $as_echo_n "checking for $ac_word... " >&6; }
13283 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13284 $as_echo_n "(cached) " >&6
13286 case $STRIP_FOR_TARGET in
13288 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $gcc_cv_tool_dirs
13295 test -z "$as_dir" && as_dir=.
13296 for ac_exec_ext in '' $ac_executable_extensions; do
13297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13298 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13309 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13310 if test -n "$STRIP_FOR_TARGET"; then
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13312 $as_echo "$STRIP_FOR_TARGET" >&6; }
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13320 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13323 if test -n "$STRIP_FOR_TARGET"; then
13324 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13325 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13326 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13329 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13330 for ncn_progname in strip; do
13331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13332 set dummy ${ncn_progname}; ac_word=$2
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13334 $as_echo_n "checking for $ac_word... " >&6; }
13335 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13336 $as_echo_n "(cached) " >&6
13338 if test -n "$STRIP_FOR_TARGET"; then
13339 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342 for as_dir in $PATH
13345 test -z "$as_dir" && as_dir=.
13346 for ac_exec_ext in '' $ac_executable_extensions; do
13347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13348 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13359 if test -n "$STRIP_FOR_TARGET"; then
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13361 $as_echo "$STRIP_FOR_TARGET" >&6; }
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 $as_echo "no" >&6; }
13371 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13372 for ncn_progname in strip; do
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13374 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13375 if test -x $with_build_time_tools/${ncn_progname}; then
13376 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13378 $as_echo "yes" >&6; }
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13387 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13388 for ncn_progname in strip; do
13389 if test -n "$ncn_target_tool_prefix"; then
13390 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13391 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393 $as_echo_n "checking for $ac_word... " >&6; }
13394 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13395 $as_echo_n "(cached) " >&6
13397 if test -n "$STRIP_FOR_TARGET"; then
13398 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13404 test -z "$as_dir" && as_dir=.
13405 for ac_exec_ext in '' $ac_executable_extensions; do
13406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13407 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13417 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13418 if test -n "$STRIP_FOR_TARGET"; then
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13420 $as_echo "$STRIP_FOR_TARGET" >&6; }
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13428 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13430 set dummy ${ncn_progname}; ac_word=$2
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13432 $as_echo_n "checking for $ac_word... " >&6; }
13433 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13434 $as_echo_n "(cached) " >&6
13436 if test -n "$STRIP_FOR_TARGET"; then
13437 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13440 for as_dir in $PATH
13443 test -z "$as_dir" && as_dir=.
13444 for ac_exec_ext in '' $ac_executable_extensions; do
13445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13446 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13456 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13457 if test -n "$STRIP_FOR_TARGET"; then
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13459 $as_echo "$STRIP_FOR_TARGET" >&6; }
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462 $as_echo "no" >&6; }
13467 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13471 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13473 if test $build = $target ; then
13474 STRIP_FOR_TARGET="$2"
13476 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13479 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13483 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13489 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13490 if test -n "$with_build_time_tools"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13492 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13493 if test -x $with_build_time_tools/windres; then
13494 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13495 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13497 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500 $as_echo "no" >&6; }
13502 elif test $build != $host && test $have_gcc_for_target = yes; then
13503 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13504 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13505 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13508 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13509 # Extract the first word of "windres", so it can be a program name with args.
13510 set dummy windres; ac_word=$2
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13512 $as_echo_n "checking for $ac_word... " >&6; }
13513 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13514 $as_echo_n "(cached) " >&6
13516 case $WINDRES_FOR_TARGET in
13518 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13522 for as_dir in $gcc_cv_tool_dirs
13525 test -z "$as_dir" && as_dir=.
13526 for ac_exec_ext in '' $ac_executable_extensions; do
13527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13528 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13540 if test -n "$WINDRES_FOR_TARGET"; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13542 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13550 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13553 if test -n "$WINDRES_FOR_TARGET"; then
13554 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13555 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13556 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13559 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13560 for ncn_progname in windres; do
13561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13562 set dummy ${ncn_progname}; ac_word=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
13568 if test -n "$WINDRES_FOR_TARGET"; then
13569 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
13577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13578 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13588 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13589 if test -n "$WINDRES_FOR_TARGET"; then
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13591 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13601 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13602 for ncn_progname in windres; do
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13604 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13605 if test -x $with_build_time_tools/${ncn_progname}; then
13606 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13608 $as_echo "yes" >&6; }
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 $as_echo "no" >&6; }
13617 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13618 for ncn_progname in windres; do
13619 if test -n "$ncn_target_tool_prefix"; then
13620 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13621 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13627 if test -n "$WINDRES_FOR_TARGET"; then
13628 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13637 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13647 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13648 if test -n "$WINDRES_FOR_TARGET"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13650 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13658 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13660 set dummy ${ncn_progname}; ac_word=$2
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13662 $as_echo_n "checking for $ac_word... " >&6; }
13663 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13664 $as_echo_n "(cached) " >&6
13666 if test -n "$WINDRES_FOR_TARGET"; then
13667 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13670 for as_dir in $PATH
13673 test -z "$as_dir" && as_dir=.
13674 for ac_exec_ext in '' $ac_executable_extensions; do
13675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13676 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13686 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13687 if test -n "$WINDRES_FOR_TARGET"; then
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13689 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692 $as_echo "no" >&6; }
13697 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13701 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13703 if test $build = $target ; then
13704 WINDRES_FOR_TARGET="$2"
13706 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13709 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13713 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13719 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13720 if test -n "$with_build_time_tools"; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13722 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13723 if test -x $with_build_time_tools/windmc; then
13724 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13725 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13727 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730 $as_echo "no" >&6; }
13732 elif test $build != $host && test $have_gcc_for_target = yes; then
13733 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13734 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13735 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13738 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13739 # Extract the first word of "windmc", so it can be a program name with args.
13740 set dummy windmc; ac_word=$2
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13742 $as_echo_n "checking for $ac_word... " >&6; }
13743 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13744 $as_echo_n "(cached) " >&6
13746 case $WINDMC_FOR_TARGET in
13748 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $gcc_cv_tool_dirs
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13758 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13770 if test -n "$WINDMC_FOR_TARGET"; then
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13772 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775 $as_echo "no" >&6; }
13780 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13783 if test -n "$WINDMC_FOR_TARGET"; then
13784 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13785 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13786 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13789 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13790 for ncn_progname in windmc; do
13791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13792 set dummy ${ncn_progname}; ac_word=$2
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13794 $as_echo_n "checking for $ac_word... " >&6; }
13795 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13796 $as_echo_n "(cached) " >&6
13798 if test -n "$WINDMC_FOR_TARGET"; then
13799 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13805 test -z "$as_dir" && as_dir=.
13806 for ac_exec_ext in '' $ac_executable_extensions; do
13807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13808 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13818 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13819 if test -n "$WINDMC_FOR_TARGET"; then
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13821 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13824 $as_echo "no" >&6; }
13831 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13832 for ncn_progname in windmc; do
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13834 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13835 if test -x $with_build_time_tools/${ncn_progname}; then
13836 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13838 $as_echo "yes" >&6; }
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13842 $as_echo "no" >&6; }
13847 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13848 for ncn_progname in windmc; do
13849 if test -n "$ncn_target_tool_prefix"; then
13850 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13851 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13853 $as_echo_n "checking for $ac_word... " >&6; }
13854 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13855 $as_echo_n "(cached) " >&6
13857 if test -n "$WINDMC_FOR_TARGET"; then
13858 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861 for as_dir in $PATH
13864 test -z "$as_dir" && as_dir=.
13865 for ac_exec_ext in '' $ac_executable_extensions; do
13866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13867 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13877 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13878 if test -n "$WINDMC_FOR_TARGET"; then
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13880 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13883 $as_echo "no" >&6; }
13888 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13890 set dummy ${ncn_progname}; ac_word=$2
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13892 $as_echo_n "checking for $ac_word... " >&6; }
13893 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13894 $as_echo_n "(cached) " >&6
13896 if test -n "$WINDMC_FOR_TARGET"; then
13897 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13900 for as_dir in $PATH
13903 test -z "$as_dir" && as_dir=.
13904 for ac_exec_ext in '' $ac_executable_extensions; do
13905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13906 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13916 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13917 if test -n "$WINDMC_FOR_TARGET"; then
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13919 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13922 $as_echo "no" >&6; }
13927 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13931 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13933 if test $build = $target ; then
13934 WINDMC_FOR_TARGET="$2"
13936 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13939 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13943 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13947 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13950 $as_echo_n "checking where to find the target ar... " >&6; }
13951 if test "x${build}" != "x${host}" ; then
13952 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13953 # We already found the complete path
13954 ac_dir=`dirname $AR_FOR_TARGET`
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13956 $as_echo "pre-installed in $ac_dir" >&6; }
13958 # Canadian cross, just use what we found
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13960 $as_echo "pre-installed" >&6; }
13964 case " ${configdirs} " in
13969 if test $ok = yes; then
13970 # An in-tree tool is available and we can use it
13971 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13973 $as_echo "just compiled" >&6; }
13974 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13975 # We already found the complete path
13976 ac_dir=`dirname $AR_FOR_TARGET`
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13978 $as_echo "pre-installed in $ac_dir" >&6; }
13979 elif test "x$target" = "x$host"; then
13980 # We can use an host tool
13981 AR_FOR_TARGET='$(AR)'
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13983 $as_echo "host tool" >&6; }
13985 # We need a cross tool
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13987 $as_echo "pre-installed" >&6; }
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13992 $as_echo_n "checking where to find the target as... " >&6; }
13993 if test "x${build}" != "x${host}" ; then
13994 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13995 # We already found the complete path
13996 ac_dir=`dirname $AS_FOR_TARGET`
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13998 $as_echo "pre-installed in $ac_dir" >&6; }
14000 # Canadian cross, just use what we found
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14002 $as_echo "pre-installed" >&6; }
14006 case " ${configdirs} " in
14011 if test $ok = yes; then
14012 # An in-tree tool is available and we can use it
14013 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14015 $as_echo "just compiled" >&6; }
14016 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14017 # We already found the complete path
14018 ac_dir=`dirname $AS_FOR_TARGET`
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14020 $as_echo "pre-installed in $ac_dir" >&6; }
14021 elif test "x$target" = "x$host"; then
14022 # We can use an host tool
14023 AS_FOR_TARGET='$(AS)'
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14025 $as_echo "host tool" >&6; }
14027 # We need a cross tool
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14029 $as_echo "pre-installed" >&6; }
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14034 $as_echo_n "checking where to find the target cc... " >&6; }
14035 if test "x${build}" != "x${host}" ; then
14036 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14037 # We already found the complete path
14038 ac_dir=`dirname $CC_FOR_TARGET`
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14040 $as_echo "pre-installed in $ac_dir" >&6; }
14042 # Canadian cross, just use what we found
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14044 $as_echo "pre-installed" >&6; }
14048 case " ${configdirs} " in
14053 if test $ok = yes; then
14054 # An in-tree tool is available and we can use it
14055 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14057 $as_echo "just compiled" >&6; }
14058 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14059 # We already found the complete path
14060 ac_dir=`dirname $CC_FOR_TARGET`
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14062 $as_echo "pre-installed in $ac_dir" >&6; }
14063 elif test "x$target" = "x$host"; then
14064 # We can use an host tool
14065 CC_FOR_TARGET='$(CC)'
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14067 $as_echo "host tool" >&6; }
14069 # We need a cross tool
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14071 $as_echo "pre-installed" >&6; }
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14076 $as_echo_n "checking where to find the target c++... " >&6; }
14077 if test "x${build}" != "x${host}" ; then
14078 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14079 # We already found the complete path
14080 ac_dir=`dirname $CXX_FOR_TARGET`
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14082 $as_echo "pre-installed in $ac_dir" >&6; }
14084 # Canadian cross, just use what we found
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14086 $as_echo "pre-installed" >&6; }
14090 case " ${configdirs} " in
14094 case ,${enable_languages}, in
14098 if test $ok = yes; then
14099 # An in-tree tool is available and we can use it
14100 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14102 $as_echo "just compiled" >&6; }
14103 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14104 # We already found the complete path
14105 ac_dir=`dirname $CXX_FOR_TARGET`
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14107 $as_echo "pre-installed in $ac_dir" >&6; }
14108 elif test "x$target" = "x$host"; then
14109 # We can use an host tool
14110 CXX_FOR_TARGET='$(CXX)'
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14112 $as_echo "host tool" >&6; }
14114 # We need a cross tool
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14116 $as_echo "pre-installed" >&6; }
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14121 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14122 if test "x${build}" != "x${host}" ; then
14123 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14124 # We already found the complete path
14125 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14127 $as_echo "pre-installed in $ac_dir" >&6; }
14129 # Canadian cross, just use what we found
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14131 $as_echo "pre-installed" >&6; }
14135 case " ${configdirs} " in
14139 case ,${enable_languages}, in
14143 if test $ok = yes; then
14144 # An in-tree tool is available and we can use it
14145 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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14147 $as_echo "just compiled" >&6; }
14148 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14149 # We already found the complete path
14150 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14152 $as_echo "pre-installed in $ac_dir" >&6; }
14153 elif test "x$target" = "x$host"; then
14154 # We can use an host tool
14155 RAW_CXX_FOR_TARGET='$(CXX)'
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14157 $as_echo "host tool" >&6; }
14159 # We need a cross tool
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14161 $as_echo "pre-installed" >&6; }
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14166 $as_echo_n "checking where to find the target dlltool... " >&6; }
14167 if test "x${build}" != "x${host}" ; then
14168 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14169 # We already found the complete path
14170 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14172 $as_echo "pre-installed in $ac_dir" >&6; }
14174 # Canadian cross, just use what we found
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14176 $as_echo "pre-installed" >&6; }
14180 case " ${configdirs} " in
14185 if test $ok = yes; then
14186 # An in-tree tool is available and we can use it
14187 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14189 $as_echo "just compiled" >&6; }
14190 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14191 # We already found the complete path
14192 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14194 $as_echo "pre-installed in $ac_dir" >&6; }
14195 elif test "x$target" = "x$host"; then
14196 # We can use an host tool
14197 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14199 $as_echo "host tool" >&6; }
14201 # We need a cross tool
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14203 $as_echo "pre-installed" >&6; }
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14208 $as_echo_n "checking where to find the target gcc... " >&6; }
14209 if test "x${build}" != "x${host}" ; then
14210 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14211 # We already found the complete path
14212 ac_dir=`dirname $GCC_FOR_TARGET`
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14214 $as_echo "pre-installed in $ac_dir" >&6; }
14216 # Canadian cross, just use what we found
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14218 $as_echo "pre-installed" >&6; }
14222 case " ${configdirs} " in
14227 if test $ok = yes; then
14228 # An in-tree tool is available and we can use it
14229 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14231 $as_echo "just compiled" >&6; }
14232 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14233 # We already found the complete path
14234 ac_dir=`dirname $GCC_FOR_TARGET`
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14236 $as_echo "pre-installed in $ac_dir" >&6; }
14237 elif test "x$target" = "x$host"; then
14238 # We can use an host tool
14239 GCC_FOR_TARGET='$()'
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14241 $as_echo "host tool" >&6; }
14243 # We need a cross tool
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14245 $as_echo "pre-installed" >&6; }
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14250 $as_echo_n "checking where to find the target gcj... " >&6; }
14251 if test "x${build}" != "x${host}" ; then
14252 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14253 # We already found the complete path
14254 ac_dir=`dirname $GCJ_FOR_TARGET`
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14256 $as_echo "pre-installed in $ac_dir" >&6; }
14258 # Canadian cross, just use what we found
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14260 $as_echo "pre-installed" >&6; }
14264 case " ${configdirs} " in
14268 case ,${enable_languages}, in
14272 if test $ok = yes; then
14273 # An in-tree tool is available and we can use it
14274 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14276 $as_echo "just compiled" >&6; }
14277 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14278 # We already found the complete path
14279 ac_dir=`dirname $GCJ_FOR_TARGET`
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14281 $as_echo "pre-installed in $ac_dir" >&6; }
14282 elif test "x$target" = "x$host"; then
14283 # We can use an host tool
14284 GCJ_FOR_TARGET='$(GCJ)'
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14286 $as_echo "host tool" >&6; }
14288 # We need a cross tool
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14290 $as_echo "pre-installed" >&6; }
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14295 $as_echo_n "checking where to find the target gfortran... " >&6; }
14296 if test "x${build}" != "x${host}" ; then
14297 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14298 # We already found the complete path
14299 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14301 $as_echo "pre-installed in $ac_dir" >&6; }
14303 # Canadian cross, just use what we found
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14305 $as_echo "pre-installed" >&6; }
14309 case " ${configdirs} " in
14313 case ,${enable_languages}, in
14317 if test $ok = yes; then
14318 # An in-tree tool is available and we can use it
14319 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14321 $as_echo "just compiled" >&6; }
14322 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14323 # We already found the complete path
14324 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14326 $as_echo "pre-installed in $ac_dir" >&6; }
14327 elif test "x$target" = "x$host"; then
14328 # We can use an host tool
14329 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14331 $as_echo "host tool" >&6; }
14333 # We need a cross tool
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14335 $as_echo "pre-installed" >&6; }
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14340 $as_echo_n "checking where to find the target gccgo... " >&6; }
14341 if test "x${build}" != "x${host}" ; then
14342 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14343 # We already found the complete path
14344 ac_dir=`dirname $GOC_FOR_TARGET`
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14346 $as_echo "pre-installed in $ac_dir" >&6; }
14348 # Canadian cross, just use what we found
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14350 $as_echo "pre-installed" >&6; }
14354 case " ${configdirs} " in
14358 case ,${enable_languages}, in
14362 if test $ok = yes; then
14363 # An in-tree tool is available and we can use it
14364 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14366 $as_echo "just compiled" >&6; }
14367 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14368 # We already found the complete path
14369 ac_dir=`dirname $GOC_FOR_TARGET`
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14371 $as_echo "pre-installed in $ac_dir" >&6; }
14372 elif test "x$target" = "x$host"; then
14373 # We can use an host tool
14374 GOC_FOR_TARGET='$(GOC)'
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14376 $as_echo "host tool" >&6; }
14378 # We need a cross tool
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14380 $as_echo "pre-installed" >&6; }
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14385 $as_echo_n "checking where to find the target ld... " >&6; }
14386 if test "x${build}" != "x${host}" ; then
14387 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14388 # We already found the complete path
14389 ac_dir=`dirname $LD_FOR_TARGET`
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14391 $as_echo "pre-installed in $ac_dir" >&6; }
14393 # Canadian cross, just use what we found
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14395 $as_echo "pre-installed" >&6; }
14399 case " ${configdirs} " in
14404 if test $ok = yes; then
14405 # An in-tree tool is available and we can use it
14406 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14408 $as_echo "just compiled" >&6; }
14409 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14410 # We already found the complete path
14411 ac_dir=`dirname $LD_FOR_TARGET`
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14413 $as_echo "pre-installed in $ac_dir" >&6; }
14414 elif test "x$target" = "x$host"; then
14415 # We can use an host tool
14416 LD_FOR_TARGET='$(LD)'
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14418 $as_echo "host tool" >&6; }
14420 # We need a cross tool
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14422 $as_echo "pre-installed" >&6; }
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14427 $as_echo_n "checking where to find the target lipo... " >&6; }
14428 if test "x${build}" != "x${host}" ; then
14429 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14430 # We already found the complete path
14431 ac_dir=`dirname $LIPO_FOR_TARGET`
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14433 $as_echo "pre-installed in $ac_dir" >&6; }
14435 # Canadian cross, just use what we found
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14437 $as_echo "pre-installed" >&6; }
14440 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
14442 ac_dir=`dirname $LIPO_FOR_TARGET`
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444 $as_echo "pre-installed in $ac_dir" >&6; }
14445 elif test "x$target" = "x$host"; then
14446 # We can use an host tool
14447 LIPO_FOR_TARGET='$(LIPO)'
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14449 $as_echo "host tool" >&6; }
14451 # We need a cross tool
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453 $as_echo "pre-installed" >&6; }
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14458 $as_echo_n "checking where to find the target nm... " >&6; }
14459 if test "x${build}" != "x${host}" ; then
14460 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14461 # We already found the complete path
14462 ac_dir=`dirname $NM_FOR_TARGET`
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14464 $as_echo "pre-installed in $ac_dir" >&6; }
14466 # Canadian cross, just use what we found
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14468 $as_echo "pre-installed" >&6; }
14472 case " ${configdirs} " in
14477 if test $ok = yes; then
14478 # An in-tree tool is available and we can use it
14479 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14481 $as_echo "just compiled" >&6; }
14482 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14483 # We already found the complete path
14484 ac_dir=`dirname $NM_FOR_TARGET`
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14486 $as_echo "pre-installed in $ac_dir" >&6; }
14487 elif test "x$target" = "x$host"; then
14488 # We can use an host tool
14489 NM_FOR_TARGET='$(NM)'
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14491 $as_echo "host tool" >&6; }
14493 # We need a cross tool
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495 $as_echo "pre-installed" >&6; }
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14500 $as_echo_n "checking where to find the target objcopy... " >&6; }
14501 if test "x${build}" != "x${host}" ; then
14502 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14503 # We already found the complete path
14504 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14506 $as_echo "pre-installed in $ac_dir" >&6; }
14508 # Canadian cross, just use what we found
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14510 $as_echo "pre-installed" >&6; }
14514 case " ${configdirs} " in
14519 if test $ok = yes; then
14520 # An in-tree tool is available and we can use it
14521 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14523 $as_echo "just compiled" >&6; }
14524 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14525 # We already found the complete path
14526 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14528 $as_echo "pre-installed in $ac_dir" >&6; }
14529 elif test "x$target" = "x$host"; then
14530 # We can use an host tool
14531 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14533 $as_echo "host tool" >&6; }
14535 # We need a cross tool
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537 $as_echo "pre-installed" >&6; }
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14542 $as_echo_n "checking where to find the target objdump... " >&6; }
14543 if test "x${build}" != "x${host}" ; then
14544 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14545 # We already found the complete path
14546 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14548 $as_echo "pre-installed in $ac_dir" >&6; }
14550 # Canadian cross, just use what we found
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14552 $as_echo "pre-installed" >&6; }
14556 case " ${configdirs} " in
14561 if test $ok = yes; then
14562 # An in-tree tool is available and we can use it
14563 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14565 $as_echo "just compiled" >&6; }
14566 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14567 # We already found the complete path
14568 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14570 $as_echo "pre-installed in $ac_dir" >&6; }
14571 elif test "x$target" = "x$host"; then
14572 # We can use an host tool
14573 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14575 $as_echo "host tool" >&6; }
14577 # We need a cross tool
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14579 $as_echo "pre-installed" >&6; }
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14584 $as_echo_n "checking where to find the target ranlib... " >&6; }
14585 if test "x${build}" != "x${host}" ; then
14586 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14587 # We already found the complete path
14588 ac_dir=`dirname $RANLIB_FOR_TARGET`
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14590 $as_echo "pre-installed in $ac_dir" >&6; }
14592 # Canadian cross, just use what we found
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14594 $as_echo "pre-installed" >&6; }
14598 case " ${configdirs} " in
14603 if test $ok = yes; then
14604 # An in-tree tool is available and we can use it
14605 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14607 $as_echo "just compiled" >&6; }
14608 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14609 # We already found the complete path
14610 ac_dir=`dirname $RANLIB_FOR_TARGET`
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14612 $as_echo "pre-installed in $ac_dir" >&6; }
14613 elif test "x$target" = "x$host"; then
14614 # We can use an host tool
14615 RANLIB_FOR_TARGET='$(RANLIB)'
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14617 $as_echo "host tool" >&6; }
14619 # We need a cross tool
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14621 $as_echo "pre-installed" >&6; }
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14626 $as_echo_n "checking where to find the target readelf... " >&6; }
14627 if test "x${build}" != "x${host}" ; then
14628 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14629 # We already found the complete path
14630 ac_dir=`dirname $READELF_FOR_TARGET`
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14632 $as_echo "pre-installed in $ac_dir" >&6; }
14634 # Canadian cross, just use what we found
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14636 $as_echo "pre-installed" >&6; }
14640 case " ${configdirs} " in
14645 if test $ok = yes; then
14646 # An in-tree tool is available and we can use it
14647 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14649 $as_echo "just compiled" >&6; }
14650 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14651 # We already found the complete path
14652 ac_dir=`dirname $READELF_FOR_TARGET`
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14654 $as_echo "pre-installed in $ac_dir" >&6; }
14655 elif test "x$target" = "x$host"; then
14656 # We can use an host tool
14657 READELF_FOR_TARGET='$(READELF)'
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14659 $as_echo "host tool" >&6; }
14661 # We need a cross tool
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14663 $as_echo "pre-installed" >&6; }
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14668 $as_echo_n "checking where to find the target strip... " >&6; }
14669 if test "x${build}" != "x${host}" ; then
14670 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14671 # We already found the complete path
14672 ac_dir=`dirname $STRIP_FOR_TARGET`
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14674 $as_echo "pre-installed in $ac_dir" >&6; }
14676 # Canadian cross, just use what we found
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14678 $as_echo "pre-installed" >&6; }
14682 case " ${configdirs} " in
14687 if test $ok = yes; then
14688 # An in-tree tool is available and we can use it
14689 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14691 $as_echo "just compiled" >&6; }
14692 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14693 # We already found the complete path
14694 ac_dir=`dirname $STRIP_FOR_TARGET`
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14696 $as_echo "pre-installed in $ac_dir" >&6; }
14697 elif test "x$target" = "x$host"; then
14698 # We can use an host tool
14699 STRIP_FOR_TARGET='$(STRIP)'
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14701 $as_echo "host tool" >&6; }
14703 # We need a cross tool
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14705 $as_echo "pre-installed" >&6; }
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14710 $as_echo_n "checking where to find the target windres... " >&6; }
14711 if test "x${build}" != "x${host}" ; then
14712 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14713 # We already found the complete path
14714 ac_dir=`dirname $WINDRES_FOR_TARGET`
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14716 $as_echo "pre-installed in $ac_dir" >&6; }
14718 # Canadian cross, just use what we found
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14720 $as_echo "pre-installed" >&6; }
14724 case " ${configdirs} " in
14729 if test $ok = yes; then
14730 # An in-tree tool is available and we can use it
14731 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14733 $as_echo "just compiled" >&6; }
14734 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14735 # We already found the complete path
14736 ac_dir=`dirname $WINDRES_FOR_TARGET`
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14738 $as_echo "pre-installed in $ac_dir" >&6; }
14739 elif test "x$target" = "x$host"; then
14740 # We can use an host tool
14741 WINDRES_FOR_TARGET='$(WINDRES)'
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14743 $as_echo "host tool" >&6; }
14745 # We need a cross tool
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14747 $as_echo "pre-installed" >&6; }
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14752 $as_echo_n "checking where to find the target windmc... " >&6; }
14753 if test "x${build}" != "x${host}" ; then
14754 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14755 # We already found the complete path
14756 ac_dir=`dirname $WINDMC_FOR_TARGET`
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14758 $as_echo "pre-installed in $ac_dir" >&6; }
14760 # Canadian cross, just use what we found
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14762 $as_echo "pre-installed" >&6; }
14766 case " ${configdirs} " in
14771 if test $ok = yes; then
14772 # An in-tree tool is available and we can use it
14773 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14775 $as_echo "just compiled" >&6; }
14776 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14777 # We already found the complete path
14778 ac_dir=`dirname $WINDMC_FOR_TARGET`
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14780 $as_echo "pre-installed in $ac_dir" >&6; }
14781 elif test "x$target" = "x$host"; then
14782 # We can use an host tool
14783 WINDMC_FOR_TARGET='$(WINDMC)'
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14785 $as_echo "host tool" >&6; }
14787 # We need a cross tool
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14789 $as_echo "pre-installed" >&6; }
14797 # Certain tools may need extra flags.
14798 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14799 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14800 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14802 # When building target libraries, except in a Canadian cross, we use
14803 # the same toolchain as the compiler we just built.
14804 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14805 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14806 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14807 if test $host = $build; then
14808 case " $configdirs " in
14810 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14811 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14812 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14822 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14823 # Check whether --enable-maintainer-mode was given.
14824 if test "${enable_maintainer_mode+set}" = set; then :
14825 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14827 USE_MAINTAINER_MODE=no
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14831 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14834 if test "$USE_MAINTAINER_MODE" = yes; then
14835 MAINTAINER_MODE_TRUE=
14836 MAINTAINER_MODE_FALSE='#'
14838 MAINTAINER_MODE_TRUE='#'
14839 MAINTAINER_MODE_FALSE=
14841 MAINT=$MAINTAINER_MODE_TRUE
14843 # ---------------------
14844 # GCC bootstrap support
14845 # ---------------------
14847 # Stage specific cflags for build.
14852 yes) stage1_cflags="-g -Wa,-J" ;;
14853 *) stage1_cflags="-g -J" ;;
14859 # Enable --enable-checking in stage1 of the compiler.
14860 # Check whether --enable-stage1-checking was given.
14861 if test "${enable_stage1_checking+set}" = set; then :
14862 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14864 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14865 # For --disable-checking or implicit --enable-checking=release, avoid
14866 # setting --enable-checking=gc in the default stage1 checking for LTO
14867 # bootstraps. See PR62077.
14868 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14869 case $BUILD_CONFIG in
14871 if test "x$enable_checking" = x && \
14872 test -d ${srcdir}/gcc && \
14873 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14874 stage1_checking=--enable-checking=yes,types
14876 *) stage1_checking=--enable-checking=yes,types;;
14879 stage1_checking=--enable-checking=$enable_checking,types
14885 # Enable -Werror in bootstrap stage2 and later.
14886 # Check whether --enable-werror was given.
14887 if test "${enable_werror+set}" = set; then :
14888 enableval=$enable_werror;
14890 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14897 case ${enable_werror} in
14898 yes) stage2_werror_flag="--enable-werror-always" ;;
14899 *) stage2_werror_flag="" ;;
14903 # Enable --enable-host-shared.
14904 # Check whether --enable-host-shared was given.
14905 if test "${enable_host_shared+set}" = set; then :
14906 enableval=$enable_host_shared; host_shared=$enableval
14913 # PR jit/64780: Require the user to explicitly specify
14914 # --enable-host-shared if the jit is enabled, hinting
14915 # that they might want to do a separate configure/build of
14916 # the jit, to avoid users from slowing down the rest of the
14917 # compiler by enabling the jit.
14918 if test ${host_shared} = "no" ; then
14919 case "${enable_languages}" in
14922 Enabling language \"jit\" requires --enable-host-shared.
14924 --enable-host-shared typically slows the rest of the compiler down by
14925 a few %, so you must explicitly enable it.
14927 If you want to build both the jit and the regular compiler, it is often
14928 best to do this via two separate configure/builds, in separate
14929 directories, to avoid imposing the performance cost of
14930 --enable-host-shared on the regular compiler." "$LINENO" 5
14937 # Specify what files to not compare during bootstrap.
14939 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14941 hppa*64*-*-hpux*) ;;
14942 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14943 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14947 ac_config_files="$ac_config_files Makefile"
14949 cat >confcache <<\_ACEOF
14950 # This file is a shell script that caches the results of configure
14951 # tests run on this system so they can be shared between configure
14952 # scripts and configure runs, see configure's option --config-cache.
14953 # It is not useful on other systems. If it contains results you don't
14954 # want to keep, you may remove or edit it.
14956 # config.status only pays attention to the cache file if you give it
14957 # the --recheck option to rerun configure.
14959 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14960 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14961 # following values.
14965 # The following way of writing the cache mishandles newlines in values,
14966 # but we know of no workaround that is simple, portable, and efficient.
14967 # So, we kill variables containing newlines.
14968 # Ultrix sh set writes to stderr and can't be redirected directly,
14969 # and sets the high bit in the cache file unless we assign to the vars.
14971 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14972 eval ac_val=\$$ac_var
14976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14980 _ | IFS | as_nl) ;; #(
14981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14982 *) { eval $ac_var=; unset $ac_var;} ;;
14988 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14989 *${as_nl}ac_space=\ *)
14990 # `set' does not quote correctly, so add quotes: double-quote
14991 # substitution turns \\\\ into \\, and sed turns \\ into \.
14994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14997 # `set' quotes correctly as required by POSIX, so do not add quotes.
14998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15007 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15009 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15011 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15012 if test -w "$cache_file"; then
15013 test "x$cache_file" != "x/dev/null" &&
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15015 $as_echo "$as_me: updating cache $cache_file" >&6;}
15016 cat confcache >$cache_file
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15019 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15024 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15025 # Let make expand exec_prefix.
15026 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15028 # Transform confdefs.h into DEFS.
15029 # Protect against shell expansion while executing Makefile rules.
15030 # Protect against Makefile macro expansion.
15032 # If the first sed substitution is executed (which looks for macros that
15033 # take arguments), then branch to the quote section. Otherwise,
15034 # look for a macro that doesn't take arguments.
15044 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15046 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15050 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15063 DEFS=`sed -n "$ac_script" confdefs.h`
15068 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15069 # 1. Remove the extension, and $U if already installed.
15070 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15071 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15072 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15073 # will be set to the directory where LIBOBJS objects are built.
15074 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15075 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15077 LIBOBJS=$ac_libobjs
15079 LTLIBOBJS=$ac_ltlibobjs
15083 : ${CONFIG_STATUS=./config.status}
15085 ac_clean_files_save=$ac_clean_files
15086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15088 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15090 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15092 # Generated by $as_me.
15093 # Run this file to recreate the current configuration.
15094 # Compiler output produced by configure, useful for debugging
15095 # configure, is in config.log if it exists.
15098 ac_cs_recheck=false
15101 SHELL=\${CONFIG_SHELL-$SHELL}
15104 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15105 ## -------------------- ##
15106 ## M4sh Initialization. ##
15107 ## -------------------- ##
15109 # Be more Bourne compatible
15110 DUALCASE=1; export DUALCASE # for MKS sh
15111 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15114 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15115 # is contrary to our usage. Disable this feature.
15116 alias -g '${1+"$@"}'='"$@"'
15117 setopt NO_GLOB_SUBST
15119 case `(set -o) 2>/dev/null` in #(
15131 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15132 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15133 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15134 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15135 # Prefer a ksh shell builtin over an external printf program on Solaris,
15136 # but without wasting forks for bash or zsh.
15137 if test -z "$BASH_VERSION$ZSH_VERSION" \
15138 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15139 as_echo='print -r --'
15140 as_echo_n='print -rn --'
15141 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15142 as_echo='printf %s\n'
15143 as_echo_n='printf %s'
15145 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15146 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15147 as_echo_n='/usr/ucb/echo -n'
15149 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15150 as_echo_n_body='eval
15154 expr "X$arg" : "X\\(.*\\)$as_nl";
15155 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15157 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15159 export as_echo_n_body
15160 as_echo_n='sh -c $as_echo_n_body as_echo'
15162 export as_echo_body
15163 as_echo='sh -c $as_echo_body as_echo'
15166 # The user is always right.
15167 if test "${PATH_SEPARATOR+set}" != set; then
15169 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15170 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15177 # We need space, tab and new line, in precisely that order. Quoting is
15178 # there to prevent editors from complaining about space-tab.
15179 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15180 # splitting by setting IFS to empty value.)
15183 # Find who we are. Look in the path if we contain no directory separator.
15185 *[\\/]* ) as_myself=$0 ;;
15186 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15187 for as_dir in $PATH
15190 test -z "$as_dir" && as_dir=.
15191 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15197 # We did not find ourselves, most probably we were run as `sh COMMAND'
15198 # in which case we are not to be found in the path.
15199 if test "x$as_myself" = x; then
15202 if test ! -f "$as_myself"; then
15203 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15207 # Unset variables that we do not need and which cause bugs (e.g. in
15208 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15209 # suppresses any "Segmentation fault" message there. '((' could
15210 # trigger a bug in pdksh 5.2.14.
15211 for as_var in BASH_ENV ENV MAIL MAILPATH
15212 do eval test x\${$as_var+set} = xset \
15213 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15226 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15229 # as_fn_error ERROR [LINENO LOG_FD]
15230 # ---------------------------------
15231 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15232 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15233 # script with status $?, using 1 if that was 0.
15236 as_status=$?; test $as_status -eq 0 && as_status=1
15238 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15239 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15241 $as_echo "$as_me: error: $1" >&2
15242 as_fn_exit $as_status
15246 # as_fn_set_status STATUS
15247 # -----------------------
15248 # Set $? to STATUS, without forking.
15249 as_fn_set_status ()
15252 } # as_fn_set_status
15254 # as_fn_exit STATUS
15255 # -----------------
15256 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15260 as_fn_set_status $1
15266 # Portably unset VAR.
15269 { eval $1=; unset $1;}
15271 as_unset=as_fn_unset
15272 # as_fn_append VAR VALUE
15273 # ----------------------
15274 # Append the text in VALUE to the end of the definition contained in VAR. Take
15275 # advantage of any shell optimizations that allow amortized linear growth over
15276 # repeated appends, instead of the typical quadratic growth present in naive
15278 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15279 eval 'as_fn_append ()
15290 # as_fn_arith ARG...
15291 # ------------------
15292 # Perform arithmetic evaluation on the ARGs, and store the result in the
15293 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15294 # must be portable across $(()) and expr.
15295 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15296 eval 'as_fn_arith ()
15303 as_val=`expr "$@" || test $? -eq 1`
15308 if expr a : '\(a\)' >/dev/null 2>&1 &&
15309 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15315 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15316 as_basename=basename
15321 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15327 as_me=`$as_basename -- "$0" ||
15328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15329 X"$0" : 'X\(//\)$' \| \
15330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15332 sed '/^.*\/\([^/][^/]*\)\/*$/{
15346 # Avoid depending upon Character Ranges.
15347 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15348 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15349 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15350 as_cr_digits='0123456789'
15351 as_cr_alnum=$as_cr_Letters$as_cr_digits
15353 ECHO_C= ECHO_N= ECHO_T=
15354 case `echo -n x` in #(((((
15356 case `echo 'xy\c'` in
15357 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15359 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15366 rm -f conf$$ conf$$.exe conf$$.file
15367 if test -d conf$$.dir; then
15368 rm -f conf$$.dir/conf$$.file
15371 mkdir conf$$.dir 2>/dev/null
15373 if (echo >conf$$.file) 2>/dev/null; then
15374 if ln -s conf$$.file conf$$ 2>/dev/null; then
15376 # ... but there are two gotchas:
15377 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15378 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15379 # In both cases, we have to default to `cp -p'.
15380 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15382 elif ln conf$$.file conf$$ 2>/dev/null; then
15390 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15391 rmdir conf$$.dir 2>/dev/null
15396 # Create "$as_dir" as a directory, including parents if necessary.
15401 -*) as_dir=./$as_dir;;
15403 test -d "$as_dir" || eval $as_mkdir_p || {
15407 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15408 *) as_qdir=$as_dir;;
15410 as_dirs="'$as_qdir' $as_dirs"
15411 as_dir=`$as_dirname -- "$as_dir" ||
15412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15413 X"$as_dir" : 'X\(//\)[^/]' \| \
15414 X"$as_dir" : 'X\(//\)$' \| \
15415 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15416 $as_echo X"$as_dir" |
15417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15421 /^X\(\/\/\)[^/].*/{
15434 test -d "$as_dir" && break
15436 test -z "$as_dirs" || eval "mkdir $as_dirs"
15437 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15441 if mkdir -p . 2>/dev/null; then
15442 as_mkdir_p='mkdir -p "$as_dir"'
15444 test -d ./-p && rmdir ./-p
15448 if test -x / >/dev/null 2>&1; then
15449 as_test_x='test -x'
15451 if ls -dL / >/dev/null 2>&1; then
15458 if test -d "$1"; then
15464 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15465 ???[sx]*):;;*)false;;esac;fi
15469 as_executable_p=$as_test_x
15471 # Sed expression to map a string onto a valid CPP name.
15472 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15474 # Sed expression to map a string onto a valid variable name.
15475 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15479 ## ----------------------------------- ##
15480 ## Main body of $CONFIG_STATUS script. ##
15481 ## ----------------------------------- ##
15483 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15486 # Save the log message, to keep $0 and so on meaningful, and to
15487 # report actual input values of CONFIG_FILES etc. instead of their
15488 # values after options handling.
15490 This file was extended by $as_me, which was
15491 generated by GNU Autoconf 2.64. Invocation command line was
15493 CONFIG_FILES = $CONFIG_FILES
15494 CONFIG_HEADERS = $CONFIG_HEADERS
15495 CONFIG_LINKS = $CONFIG_LINKS
15496 CONFIG_COMMANDS = $CONFIG_COMMANDS
15499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15504 case $ac_config_files in *"
15505 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15511 # Files that config.status was made for.
15512 config_files="$ac_config_files"
15516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15518 \`$as_me' instantiates files and other configuration actions
15519 from templates according to the current configuration. Unless the files
15520 and actions are specified as TAGs, all are instantiated by default.
15522 Usage: $0 [OPTION]... [TAG]...
15524 -h, --help print this help, then exit
15525 -V, --version print version number and configuration settings, then exit
15526 -q, --quiet, --silent
15527 do not print progress messages
15528 -d, --debug don't remove temporary files
15529 --recheck update $as_me by reconfiguring in the same conditions
15530 --file=FILE[:TEMPLATE]
15531 instantiate the configuration file FILE
15533 Configuration files:
15536 Report bugs to the package provider."
15539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15542 configured by $0, generated by GNU Autoconf 2.64,
15543 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15545 Copyright (C) 2009 Free Software Foundation, Inc.
15546 This config.status script is free software; the Free Software Foundation
15547 gives unlimited permission to copy, distribute and modify it."
15553 test -n "\$AWK" || AWK=awk
15556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15557 # The default lists apply if the user does not specify any file.
15563 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15564 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15575 # Handling of the options.
15576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15578 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15579 $as_echo "$ac_cs_version"; exit ;;
15580 --debug | --debu | --deb | --de | --d | -d )
15582 --file | --fil | --fi | --f )
15585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15587 as_fn_append CONFIG_FILES " '$ac_optarg'"
15588 ac_need_defaults=false;;
15589 --he | --h | --help | --hel | -h )
15590 $as_echo "$ac_cs_usage"; exit ;;
15591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15592 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15595 # This is an error.
15596 -*) as_fn_error "unrecognized option: \`$1'
15597 Try \`$0 --help' for more information." ;;
15599 *) as_fn_append ac_config_targets " $1"
15600 ac_need_defaults=false ;;
15606 ac_configure_extra_args=
15608 if $ac_cs_silent; then
15610 ac_configure_extra_args="$ac_configure_extra_args --silent"
15614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15615 if \$ac_cs_recheck; then
15616 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15618 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15619 CONFIG_SHELL='$SHELL'
15620 export CONFIG_SHELL
15625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15630 ## Running $as_me. ##
15636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15640 extrasub_build="$extrasub_build"
15641 extrasub_host="$extrasub_host"
15642 extrasub_target="$extrasub_target"
15646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15648 # Handling of arguments.
15649 for ac_config_target in $ac_config_targets
15651 case $ac_config_target in
15652 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15654 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15659 # If the user did not use the arguments to specify the items to instantiate,
15660 # then the envvar interface is used. Set only those that are not.
15661 # We use the long form for the default assignment because of an extremely
15662 # bizarre bug on SunOS 4.1.3.
15663 if $ac_need_defaults; then
15664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15667 # Have a temporary directory for convenience. Make it in the build tree
15668 # simply because there is no reason against having it here, and in addition,
15669 # creating and moving files from /tmp can sometimes cause problems.
15670 # Hook for its removal unless debugging.
15671 # Note that there is a small window in which the directory will not be cleaned:
15672 # after its creation but before its name has been assigned to `$tmp'.
15676 trap 'exit_status=$?
15677 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15679 trap 'as_fn_exit 1' 1 2 13 15
15681 # Create a (secure) tmp directory for tmp files.
15684 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15685 test -n "$tmp" && test -d "$tmp"
15688 tmp=./conf$$-$RANDOM
15689 (umask 077 && mkdir "$tmp")
15690 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15692 # Set up the scripts for CONFIG_FILES section.
15693 # No need to generate them if there are no CONFIG_FILES.
15694 # This happens for instance with `./config.status config.h'.
15695 if test -n "$CONFIG_FILES"; then
15697 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15698 ac_cs_awk_getline=:
15699 ac_cs_awk_pipe_init=
15700 ac_cs_awk_read_file='
15701 while ((getline aline < (F[key])) > 0)
15704 ac_cs_awk_pipe_fini=
15706 ac_cs_awk_getline=false
15707 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15708 ac_cs_awk_read_file='
15710 print "cat " F[key] " &&"
15711 '$ac_cs_awk_pipe_init
15712 # The final `:' finishes the AND list.
15713 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15715 ac_cr=`echo X | tr X '\015'`
15716 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15717 # But we know of no other shell where ac_cr would be empty at this
15718 # point, so we can use a bashism as a fallback.
15719 if test "x$ac_cr" = x; then
15720 eval ac_cr=\$\'\\r\'
15722 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15723 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15726 ac_cs_awk_cr=$ac_cr
15729 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15732 # Create commands to substitute file output variables.
15734 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15735 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15736 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15739 } >conf$$files.sh &&
15740 . ./conf$$files.sh ||
15741 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15742 rm -f conf$$files.sh
15745 echo "cat >conf$$subs.awk <<_ACEOF" &&
15746 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15748 } >conf$$subs.sh ||
15749 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15750 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15752 for ac_last_try in false false false false false :; do
15753 . ./conf$$subs.sh ||
15754 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15756 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15757 if test $ac_delim_n = $ac_delim_num; then
15759 elif $ac_last_try; then
15760 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15765 rm -f conf$$subs.sh
15767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15768 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15772 s/^/S["/; s/!.*/"]=/
15782 s/\(.\{148\}\).*/\1/
15784 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15796 s/\(.\{148\}\).*/\1/
15798 s/["\\]/\\&/g; s/^/"/; s/$/"/
15802 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15807 ' <conf$$subs.awk | sed '
15812 ' >>$CONFIG_STATUS || ac_write_fail=1
15813 rm -f conf$$subs.awk
15814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15816 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15817 for (key in S) S_is_set[key] = 1
15819 \$ac_cs_awk_pipe_init
15823 nfields = split(line, field, "@")
15825 len = length(field[1])
15826 for (i = 2; i < nfields; i++) {
15828 keylen = length(key)
15829 if (S_is_set[key]) {
15831 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15832 len += length(value) + length(field[++i])
15837 if (nfields == 3 && !substed) {
15839 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15840 \$ac_cs_awk_read_file
15846 \$ac_cs_awk_pipe_fini
15849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15850 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15851 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15854 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15855 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15858 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15859 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15860 # trailing colons and then remove the whole line if VPATH becomes empty
15861 # (actually we leave an empty line to preserve line numbers).
15862 if test "x$srcdir" = x.; then
15863 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15864 s/:*\$(srcdir):*/:/
15865 s/:*\${srcdir}:*/:/
15867 s/^\([^=]*=[ ]*\):*/\1/
15873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15874 fi # test -n "$CONFIG_FILES"
15877 eval set X " :F $CONFIG_FILES "
15882 :[FHLC]) ac_mode=$ac_tag; continue;;
15884 case $ac_mode$ac_tag in
15886 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15887 :[FH]-) ac_tag=-:-;;
15888 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15905 -) ac_f="$tmp/stdin";;
15906 *) # Look for the file first in the build tree, then in the source tree
15907 # (if the path is not absolute). The absolute path cannot be DOS-style,
15908 # because $ac_f cannot contain `:'.
15912 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15914 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15916 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15917 as_fn_append ac_file_inputs " '$ac_f'"
15920 # Let's still pretend it is `configure' which instantiates (i.e., don't
15921 # use $as_me), people would be surprised to read:
15922 # /* config.h. Generated by config.status. */
15923 configure_input='Generated from '`
15924 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15926 if test x"$ac_file" != x-; then
15927 configure_input="$ac_file. $configure_input"
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15929 $as_echo "$as_me: creating $ac_file" >&6;}
15931 # Neutralize special characters interpreted by sed in replacement strings.
15932 case $configure_input in #(
15933 *\&* | *\|* | *\\* )
15934 ac_sed_conf_input=`$as_echo "$configure_input" |
15935 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15936 *) ac_sed_conf_input=$configure_input;;
15940 *:-:* | *:-) cat >"$tmp/stdin" \
15941 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15946 ac_dir=`$as_dirname -- "$ac_file" ||
15947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15948 X"$ac_file" : 'X\(//\)[^/]' \| \
15949 X"$ac_file" : 'X\(//\)$' \| \
15950 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15951 $as_echo X"$ac_file" |
15952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15956 /^X\(\/\/\)[^/].*/{
15969 as_dir="$ac_dir"; as_fn_mkdir_p
15973 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15975 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15976 # A ".." for each directory in $ac_dir_suffix.
15977 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15978 case $ac_top_builddir_sub in
15979 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15980 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15983 ac_abs_top_builddir=$ac_pwd
15984 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15985 # for backward compatibility:
15986 ac_top_builddir=$ac_top_build_prefix
15989 .) # We are building in place.
15991 ac_top_srcdir=$ac_top_builddir_sub
15992 ac_abs_top_srcdir=$ac_pwd ;;
15993 [\\/]* | ?:[\\/]* ) # Absolute name.
15994 ac_srcdir=$srcdir$ac_dir_suffix;
15995 ac_top_srcdir=$srcdir
15996 ac_abs_top_srcdir=$srcdir ;;
15997 *) # Relative name.
15998 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15999 ac_top_srcdir=$ac_top_build_prefix$srcdir
16000 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16002 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16012 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16013 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16018 # If the template does not know about datarootdir, expand it.
16019 # FIXME: This hack should be removed a few years after 2.60.
16020 ac_datarootdir_hack=; ac_datarootdir_seen=
16031 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16032 *datarootdir*) ac_datarootdir_seen=yes;;
16033 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16035 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16038 ac_datarootdir_hack='
16039 s&@datadir@&$datadir&g
16040 s&@docdir@&$docdir&g
16041 s&@infodir@&$infodir&g
16042 s&@localedir@&$localedir&g
16043 s&@mandir@&$mandir&g
16044 s&\\\${datarootdir}&$datarootdir&g' ;;
16048 # Neutralize VPATH when `$srcdir' = `.'.
16049 # Shell code in configure.ac might set extrasub.
16050 # FIXME: do we really want to maintain this feature?
16051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16052 ac_sed_extra="$ac_vpsub
16055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16058 s|@configure_input@|$ac_sed_conf_input|;t t
16059 s&@top_builddir@&$ac_top_builddir_sub&;t t
16060 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16061 s&@srcdir@&$ac_srcdir&;t t
16062 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16063 s&@top_srcdir@&$ac_top_srcdir&;t t
16064 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16065 s&@builddir@&$ac_builddir&;t t
16066 s&@abs_builddir@&$ac_abs_builddir&;t t
16067 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16068 s&@INSTALL@&$ac_INSTALL&;t t
16069 $ac_datarootdir_hack
16071 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16072 if $ac_cs_awk_getline; then
16073 $AWK -f "$tmp/subs.awk"
16075 $AWK -f "$tmp/subs.awk" | $SHELL
16077 || as_fn_error "could not create $ac_file" "$LINENO" 5
16079 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16080 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16081 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16083 which seems to be undefined. Please make sure it is defined." >&5
16084 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16085 which seems to be undefined. Please make sure it is defined." >&2;}
16089 -) cat "$tmp/out" && rm -f "$tmp/out";;
16090 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16092 || as_fn_error "could not create $ac_file" "$LINENO" 5
16100 case $ac_file$ac_mode in
16101 "Makefile":F) sed "$extrasub_build" Makefile |
16102 sed "$extrasub_host" |
16103 sed "$extrasub_target" > mf$$
16104 mv -f mf$$ Makefile ;;
16112 ac_clean_files=$ac_clean_files_save
16114 test $ac_write_fail = 0 ||
16115 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16118 # configure is writing to config.log, and then calls config.status.
16119 # config.status does its own redirection, appending to config.log.
16120 # Unfortunately, on DOS this fails, as config.log is still kept open
16121 # by configure, so config.status won't be able to write to it; its
16122 # output is simply discarded. So we exec the FD to /dev/null,
16123 # effectively closing config.log, so it can be properly (re)opened and
16124 # appended to by config.status. When coming back to configure, we
16125 # need to make the FD available again.
16126 if test "$no_create" != yes; then
16128 ac_config_status_args=
16129 test "$silent" = yes &&
16130 ac_config_status_args="$ac_config_status_args --quiet"
16132 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16134 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16135 # would make configure fail if this is the last instruction.
16136 $ac_cs_success || as_fn_exit $?
16138 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16140 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}