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
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
676 EXTRA_CONFIGARGS_LIBJAVA
677 extra_liboffloadmic_configure_flags
704 TOPLEVEL_CONFIGURE_ARGUMENTS
732 program_transform_name
743 ac_subst_files='serialization_dependencies
749 enable_option_checking
752 enable_as_accelerator_for
753 enable_offload_targets
757 enable_libquadmath_support
762 enable_static_libjava
783 enable_isl_version_check
785 enable_linker_plugin_configure_flags
786 enable_linker_plugin_flags
787 enable_stage1_languages
790 with_debug_prefix_map
793 enable_serial_configure
794 with_build_time_tools
795 enable_maintainer_mode
796 enable_stage1_checking
800 ac_precious_vars='build_alias
848 # Initialize some variables set by options.
850 ac_init_version=false
851 ac_unrecognized_opts=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
862 program_transform_name=s,x,x,
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir='${exec_prefix}/bin'
877 sbindir='${exec_prefix}/sbin'
878 libexecdir='${exec_prefix}/libexec'
879 datarootdir='${prefix}/share'
880 datadir='${datarootdir}'
881 sysconfdir='${prefix}/etc'
882 sharedstatedir='${prefix}/com'
883 localstatedir='${prefix}/var'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE}'
887 infodir='${datarootdir}/info'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
908 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 # Accept the important Cygnus configure options, so we can diagnose typos.
914 case $ac_dashdash$ac_option in
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
936 cache_file=config.cache ;;
938 -datadir | --datadir | --datadi | --datad)
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
964 eval enable_$ac_useropt=no ;;
966 -docdir | --docdir | --docdi | --doc | --do)
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976 -enable-* | --enable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
990 eval enable_$ac_useropt=\$ac_optarg ;;
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 htmldir=$ac_optarg ;;
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1035 -libdir | --libdir | --libdi | --libd)
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1126 -psdir | --psdir | --psdi | --psd | --ps)
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 sbindir=$ac_optarg ;;
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 sharedstatedir=$ac_optarg ;;
1152 -site | --site | --sit)
1154 -site=* | --site=* | --sit=*)
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1194 eval with_$ac_useropt=\$ac_optarg ;;
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1210 eval with_$ac_useropt=no ;;
1213 # Obsolete; use --with-x.
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) as_fn_error "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information."
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error "missing argument to $ac_option"
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1263 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1281 # Be sure to have absolute directory names.
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error "pwd does not report name of working directory"
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 as_fn_error "path to source, $srcdir, contains spaces"
1378 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1394 \`configure' configures this package to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 --target=TARGET configure for building compilers for TARGET [HOST]
1463 if test -n "$ac_init_help"; then
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-as-accelerator-for=ARG
1472 build as offload target compiler. Specify offload
1474 --enable-offload-targets=LIST
1475 enable offloading to devices from comma-separated
1476 LIST of TARGET[=DIR]. Use optional path to find
1477 offload target compiler during the build
1478 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1479 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1480 --disable-libquadmath do not build libquadmath directory
1481 --disable-libquadmath-support
1482 disable libquadmath support for Fortran
1483 --enable-libada build libada directory
1484 --enable-libssp build libssp directory
1485 --disable-libstdcxx do not build libstdc++-v3 directory
1486 --enable-liboffloadmic=ARG
1487 build liboffloadmic [ARG={no,host,target}]
1488 --enable-static-libjava[=ARG]
1489 build static libjava [default=no]
1490 --enable-bootstrap enable bootstrapping [yes if native build]
1491 --disable-isl-version-check
1492 disable check for ISL version
1493 --enable-lto enable link time optimization support
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1505 --enable-vtable-verify Enable vtable verification feature
1506 --enable-serial-[{host,target,build}-]configure
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1516 --enable-werror enable -Werror in bootstrap stage2 and later
1517 --enable-host-shared build host code as shared libraries
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
1523 --with-system-zlib use installed libz
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
1533 --with-mpfr-include=PATH
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
1543 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1545 --with-stage1-libs=LIBS libraries for stage1
1546 --with-stage1-ldflags=FLAGS
1547 linker flags for stage1
1548 --with-boot-libs=LIBS libraries for stage2 and later
1549 --with-boot-ldflags=FLAGS
1550 linker flags for stage2 and later
1551 --with-isl=PATH Specify prefix directory for the installed ISL
1552 package. Equivalent to
1553 --with-isl-include=PATH/include plus
1554 --with-isl-lib=PATH/lib
1555 --with-isl-include=PATH Specify directory for installed ISL include files
1556 --with-isl-lib=PATH Specify the directory for the installed ISL library
1557 --with-build-sysroot=SYSROOT
1558 use sysroot as the system root during the build
1559 --with-debug-prefix-map='A=B C=D ...'
1560 map A to B, C to D ... in debug information
1561 --with-build-config='NAME NAME2...'
1562 use config/NAME.mk build configuration
1563 --with-build-time-tools=PATH
1564 use given path to find target tools during the build
1566 Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1574 CXX C++ compiler command
1575 CXXFLAGS C++ compiler flags
1577 additional configure arguments for build directories
1579 additional configure arguments for host directories
1581 additional configure arguments for target directories
1584 DLLTOOL DLLTOOL for the host
1586 LIPO LIPO for the host
1588 RANLIB RANLIB for the host
1589 STRIP STRIP for the host
1590 WINDRES WINDRES for the host
1591 WINDMC WINDMC for the host
1592 OBJCOPY OBJCOPY for the host
1593 OBJDUMP OBJDUMP for the host
1594 READELF READELF for the host
1604 GFORTRAN for the target
1612 DLLTOOL for the target
1620 OBJCOPY for the target
1622 OBJDUMP for the target
1624 RANLIB for the target
1626 READELF for the target
1628 STRIP for the target
1630 WINDRES for the target
1632 WINDMC for the target
1634 Use these variables to override the choices made by `configure' or to help
1635 it to find libraries and programs with nonstandard names/locations.
1637 Report bugs to the package provider.
1642 if test "$ac_init_help" = "recursive"; then
1643 # If there are subdirs, report their specific --help.
1644 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1645 test -d "$ac_dir" ||
1646 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1654 # A ".." for each directory in $ac_dir_suffix.
1655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1656 case $ac_top_builddir_sub in
1657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 ac_abs_top_builddir=$ac_pwd
1662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663 # for backward compatibility:
1664 ac_top_builddir=$ac_top_build_prefix
1667 .) # We are building in place.
1669 ac_top_srcdir=$ac_top_builddir_sub
1670 ac_abs_top_srcdir=$ac_pwd ;;
1671 [\\/]* | ?:[\\/]* ) # Absolute name.
1672 ac_srcdir=$srcdir$ac_dir_suffix;
1673 ac_top_srcdir=$srcdir
1674 ac_abs_top_srcdir=$srcdir ;;
1676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677 ac_top_srcdir=$ac_top_build_prefix$srcdir
1678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1682 cd "$ac_dir" || { ac_status=$?; continue; }
1683 # Check for guested configure.
1684 if test -f "$ac_srcdir/configure.gnu"; then
1686 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687 elif test -f "$ac_srcdir/configure"; then
1689 $SHELL "$ac_srcdir/configure" --help=recursive
1691 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1693 cd "$ac_pwd" || { ac_status=$?; break; }
1697 test -n "$ac_init_help" && exit $ac_status
1698 if $ac_init_version; then
1701 generated by GNU Autoconf 2.64
1703 Copyright (C) 2009 Free Software Foundation, Inc.
1704 This configure script is free software; the Free Software Foundation
1705 gives unlimited permission to copy, distribute and modify it.
1710 ## ------------------------ ##
1711 ## Autoconf initialization. ##
1712 ## ------------------------ ##
1714 # ac_fn_c_try_compile LINENO
1715 # --------------------------
1716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_c_try_compile ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext
1721 if { { ac_try="$ac_compile"
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_compile") 2>conftest.err
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest.$ac_objext; then :
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 } # ac_fn_c_try_compile
1752 # ac_fn_cxx_try_compile LINENO
1753 # ----------------------------
1754 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_cxx_try_compile ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 rm -f conftest.$ac_objext
1759 if { { ac_try="$ac_compile"
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_compile") 2>conftest.err
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && {
1775 test -z "$ac_cxx_werror_flag" ||
1776 test ! -s conftest.err
1777 } && test -s conftest.$ac_objext; then :
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 } # ac_fn_cxx_try_compile
1790 # ac_fn_cxx_try_link LINENO
1791 # -------------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_cxx_try_link ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext conftest$ac_exeext
1797 if { { ac_try="$ac_link"
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>conftest.err
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_cxx_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest$ac_exeext && {
1816 test "$cross_compiling" = yes ||
1817 $as_test_x conftest$ac_exeext
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828 # interfere with the next link command; also delete a directory that is
1829 # left behind by Apple's compiler. We do this before executing the actions.
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 } # ac_fn_cxx_try_link
1836 # ac_fn_c_try_link LINENO
1837 # -----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded.
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext conftest$ac_exeext
1843 if { { ac_try="$ac_link"
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>conftest.err
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest$ac_exeext && {
1862 test "$cross_compiling" = yes ||
1863 $as_test_x conftest$ac_exeext
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874 # interfere with the next link command; also delete a directory that is
1875 # left behind by Apple's compiler. We do this before executing the actions.
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 } # ac_fn_c_try_link
1881 cat >config.log <<_ACEOF
1882 This file contains any messages produced by compilers while
1883 running configure, to aid debugging if configure makes a mistake.
1885 It was created by $as_me, which was
1886 generated by GNU Autoconf 2.64. Invocation command line was
1898 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1907 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1908 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1909 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1911 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1912 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1913 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 test -z "$as_dir" && as_dir=.
1922 $as_echo "PATH: $as_dir"
1938 # Keep a trace of the command line.
1939 # Strip out --no-create and --no-recursion so they do not pile up.
1940 # Strip out --silent because we don't want to record it for future runs.
1941 # Also quote any args containing shell meta-characters.
1942 # Make two passes to allow for proper duplicate-argument suppression.
1946 ac_must_keep_next=false
1952 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954 | -silent | --silent | --silen | --sile | --sil)
1957 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1962 as_fn_append ac_configure_args1 " '$ac_arg'"
1963 if test $ac_must_keep_next = true; then
1964 ac_must_keep_next=false # Got value, back to normal.
1967 *=* | --config-cache | -C | -disable-* | --disable-* \
1968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970 | -with-* | --with-* | -without-* | --without-* | --x)
1971 case "$ac_configure_args0 " in
1972 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1975 -* ) ac_must_keep_next=true ;;
1978 as_fn_append ac_configure_args " '$ac_arg'"
1983 { ac_configure_args0=; unset ac_configure_args0;}
1984 { ac_configure_args1=; unset ac_configure_args1;}
1986 # When interrupted or exit'd, cleanup temporary files, and complete
1987 # config.log. We remove comments because anyway the quotes in there
1988 # would cause problems or look ugly.
1989 # WARNING: Use '\'' to represent an apostrophe within the trap.
1990 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991 trap 'exit_status=$?
1992 # Save into config.log some information that might help in debugging.
1997 ## ---------------- ##
1998 ## Cache variables. ##
1999 ## ---------------- ##
2002 # The following way of writing the cache mishandles newlines in values,
2004 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005 eval ac_val=\$$ac_var
2009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2013 _ | IFS | as_nl) ;; #(
2014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015 *) { eval $ac_var=; unset $ac_var;} ;;
2020 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021 *${as_nl}ac_space=\ *)
2023 "s/'\''/'\''\\\\'\'''\''/g;
2024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2035 ## ----------------- ##
2036 ## Output variables. ##
2037 ## ----------------- ##
2040 for ac_var in $ac_subst_vars
2042 eval ac_val=\$$ac_var
2044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 $as_echo "$ac_var='\''$ac_val'\''"
2050 if test -n "$ac_subst_files"; then
2052 ## ------------------- ##
2053 ## File substitutions. ##
2054 ## ------------------- ##
2057 for ac_var in $ac_subst_files
2059 eval ac_val=\$$ac_var
2061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063 $as_echo "$ac_var='\''$ac_val'\''"
2068 if test -s confdefs.h; then
2078 test "$ac_signal" != 0 &&
2079 $as_echo "$as_me: caught signal $ac_signal"
2080 $as_echo "$as_me: exit $exit_status"
2082 rm -f core *.core core.conftest.* &&
2083 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2086 for ac_signal in 1 2 13 15; do
2087 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2092 rm -f -r conftest* confdefs.h
2094 $as_echo "/* confdefs.h */" > confdefs.h
2096 # Predefined preprocessor variables.
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_NAME "$PACKAGE_NAME"
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_STRING "$PACKAGE_STRING"
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_URL "$PACKAGE_URL"
2123 # Let the site file select an alternate cache file if it wants to.
2124 # Prefer an explicitly selected file to automatically selected ones.
2127 if test -n "$CONFIG_SITE"; then
2128 ac_site_file1=$CONFIG_SITE
2129 elif test "x$prefix" != xNONE; then
2130 ac_site_file1=$prefix/share/config.site
2131 ac_site_file2=$prefix/etc/config.site
2133 ac_site_file1=$ac_default_prefix/share/config.site
2134 ac_site_file2=$ac_default_prefix/etc/config.site
2136 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2138 test "x$ac_site_file" = xNONE && continue
2139 if test -r "$ac_site_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2142 sed 's/^/| /' "$ac_site_file" >&5
2147 if test -r "$cache_file"; then
2148 # Some versions of bash will fail to source /dev/null (special
2149 # files actually), so we avoid doing that.
2150 if test -f "$cache_file"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 $as_echo "$as_me: loading cache $cache_file" >&6;}
2154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155 *) . "./$cache_file";;
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 $as_echo "$as_me: creating cache $cache_file" >&6;}
2164 # Check that the precious variables saved in the cache have kept the same
2166 ac_cache_corrupted=false
2167 for ac_var in $ac_precious_vars; do
2168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169 eval ac_new_set=\$ac_env_${ac_var}_set
2170 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171 eval ac_new_val=\$ac_env_${ac_var}_value
2172 case $ac_old_set,$ac_new_set in
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2183 if test "x$ac_old_val" != "x$ac_new_val"; then
2184 # differences in whitespace do not lead to failure.
2185 ac_old_val_w=`echo x $ac_old_val`
2186 ac_new_val_w=`echo x $ac_new_val`
2187 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190 ac_cache_corrupted=:
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194 eval $ac_var=\$ac_old_val
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2197 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2199 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2202 # Pass precious variables to config.status.
2203 if test "$ac_new_set" = set; then
2205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206 *) ac_arg=$ac_var=$ac_new_val ;;
2208 case " $ac_configure_args " in
2209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2210 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2214 if $ac_cache_corrupted; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2221 ## -------------------- ##
2222 ## Main body of script. ##
2223 ## -------------------- ##
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240 # if PWD already has a value, it is probably wrong.
2241 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2243 # Export original configure arguments for use by sub-configures.
2244 # Quote arguments with shell meta charatcers.
2245 TOPLEVEL_CONFIGURE_ARGUMENTS=
2246 set -- "$progname" "$@"
2250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2252 # if the argument is of the form -foo=baz, quote the baz part only
2253 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2256 # Add the quoted argument to the list.
2257 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2259 if test "$silent" = yes; then
2260 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2262 # Remove the initial space we just introduced and, as these will be
2263 # expanded by make, quote '$'.
2264 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2267 # Find the build, host, and target systems.
2269 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2270 for ac_t in install-sh install.sh shtool; do
2271 if test -f "$ac_dir/$ac_t"; then
2273 ac_install_sh="$ac_aux_dir/$ac_t -c"
2278 if test -z "$ac_aux_dir"; then
2279 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2282 # These three variables are undocumented and unsupported,
2283 # and are intended to be withdrawn in a future Autoconf release.
2284 # They can cause serious problems if a builder's source tree is in a directory
2285 # whose full name contains unusual characters.
2286 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2287 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2288 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2291 # Make sure we can run config.sub.
2292 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2293 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2296 $as_echo_n "checking build system type... " >&6; }
2297 if test "${ac_cv_build+set}" = set; then :
2298 $as_echo_n "(cached) " >&6
2300 ac_build_alias=$build_alias
2301 test "x$ac_build_alias" = x &&
2302 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2303 test "x$ac_build_alias" = x &&
2304 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2305 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2306 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2310 $as_echo "$ac_cv_build" >&6; }
2311 case $ac_cv_build in
2313 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2316 ac_save_IFS=$IFS; IFS='-'
2322 # Remember, the first character of IFS is used to create $*,
2323 # except with old shells:
2326 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2329 case ${build_alias} in
2330 "") build_noncanonical=${build} ;;
2331 *) build_noncanonical=${build_alias} ;;
2336 case ${host_alias} in
2337 "") host_noncanonical=${build_noncanonical} ;;
2338 *) host_noncanonical=${host_alias} ;;
2343 case ${target_alias} in
2344 "") target_noncanonical=${host_noncanonical} ;;
2345 *) target_noncanonical=${target_alias} ;;
2351 test "$host_noncanonical" = "$target_noncanonical" &&
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2354 program_transform_name=s,y,y,
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2357 $as_echo_n "checking host system type... " >&6; }
2358 if test "${ac_cv_host+set}" = set; then :
2359 $as_echo_n "(cached) " >&6
2361 if test "x$host_alias" = x; then
2362 ac_cv_host=$ac_cv_build
2364 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2365 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2370 $as_echo "$ac_cv_host" >&6; }
2373 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2376 ac_save_IFS=$IFS; IFS='-'
2382 # Remember, the first character of IFS is used to create $*,
2383 # except with old shells:
2386 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2390 $as_echo_n "checking target system type... " >&6; }
2391 if test "${ac_cv_target+set}" = set; then :
2392 $as_echo_n "(cached) " >&6
2394 if test "x$target_alias" = x; then
2395 ac_cv_target=$ac_cv_host
2397 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2398 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2403 $as_echo "$ac_cv_target" >&6; }
2404 case $ac_cv_target in
2406 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2408 target=$ac_cv_target
2409 ac_save_IFS=$IFS; IFS='-'
2415 # Remember, the first character of IFS is used to create $*,
2416 # except with old shells:
2419 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2422 # The aliases save the names the user supplied, while $host etc.
2423 # will get canonicalized.
2424 test -n "$target_alias" &&
2425 test "$program_prefix$program_suffix$program_transform_name" = \
2427 program_prefix=${target_alias}-
2429 test "$program_prefix" != NONE &&
2430 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2431 # Use a double $ so make ignores it.
2432 test "$program_suffix" != NONE &&
2433 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2434 # Double any \ or $.
2435 # By default was `s,x,x', remove it if useless.
2436 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2441 # Get 'install' or 'install-sh' and its variants.
2442 # Find a good install program. We prefer a C program (faster),
2443 # so one script is as good as another. But avoid the broken or
2444 # incompatible versions:
2445 # SysV /etc/install, /usr/sbin/install
2446 # SunOS /usr/etc/install
2447 # IRIX /sbin/install
2449 # AmigaOS /C/install, which installs bootblocks on floppy discs
2450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2453 # OS/2's system install, which has a completely different semantic
2454 # ./install, which can be erroneously created by make from ./install.sh.
2455 # Reject install programs that cannot install multiple files.
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2457 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2458 if test -z "$INSTALL"; then
2459 if test "${ac_cv_path_install+set}" = set; then :
2460 $as_echo_n "(cached) " >&6
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir=.
2467 # Account for people who put trailing slashes in PATH elements.
2468 case $as_dir/ in #((
2469 ./ | .// | /[cC]/* | \
2470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2471 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2474 # OSF1 and SCO ODT 3.0 have their own names for install.
2475 # Don't use installbsd from OSF since it installs stuff as root
2477 for ac_prog in ginstall scoinst install; do
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2480 if test $ac_prog = install &&
2481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482 # AIX install. It has an incompatible calling convention.
2484 elif test $ac_prog = install &&
2485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486 # program-specific install script used by HP pwplus--don't use.
2489 rm -rf conftest.one conftest.two conftest.dir
2490 echo one > conftest.one
2491 echo two > conftest.two
2493 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2494 test -s conftest.one && test -s conftest.two &&
2495 test -s conftest.dir/conftest.one &&
2496 test -s conftest.dir/conftest.two
2498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2511 rm -rf conftest.one conftest.two conftest.dir
2514 if test "${ac_cv_path_install+set}" = set; then
2515 INSTALL=$ac_cv_path_install
2517 # As a last resort, use the slow shell script. Don't cache a
2518 # value for INSTALL within a source directory, because that will
2519 # break other packages using the cache if that directory is
2520 # removed, or if the value is a relative name.
2521 INSTALL=$ac_install_sh
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2525 $as_echo "$INSTALL" >&6; }
2527 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2528 # It thinks the first close brace ends the variable substitution.
2529 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2531 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2533 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2536 $as_echo_n "checking whether ln works... " >&6; }
2537 if test "${acx_cv_prog_LN+set}" = set; then :
2538 $as_echo_n "(cached) " >&6
2540 rm -f conftestdata_t
2541 echo >conftestdata_f
2542 if ln conftestdata_f conftestdata_t 2>/dev/null
2548 rm -f conftestdata_f conftestdata_t
2551 if test $acx_cv_prog_LN = no; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2554 $as_echo "no, using $LN" >&6; }
2556 LN="$acx_cv_prog_LN"
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2558 $as_echo "yes" >&6; }
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2562 $as_echo_n "checking whether ln -s works... " >&6; }
2564 if test "$LN_S" = "ln -s"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566 $as_echo "yes" >&6; }
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2569 $as_echo "no, using $LN_S" >&6; }
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2573 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2574 if test "${ac_cv_path_SED+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2577 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2578 for ac_i in 1 2 3 4 5 6 7; do
2579 ac_script="$ac_script$as_nl$ac_script"
2581 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2582 { ac_script=; unset ac_script;}
2583 if test -z "$SED"; then
2584 ac_path_SED_found=false
2585 # Loop through the user's path and test for each of PROGNAME-LIST
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_prog in sed gsed; do
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2594 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2595 # Check for GNU ac_path_SED and select it if it is found.
2596 # Check for GNU $ac_path_SED
2597 case `"$ac_path_SED" --version 2>&1` in
2599 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2602 $as_echo_n 0123456789 >"conftest.in"
2605 cat "conftest.in" "conftest.in" >"conftest.tmp"
2606 mv "conftest.tmp" "conftest.in"
2607 cp "conftest.in" "conftest.nl"
2608 $as_echo '' >> "conftest.nl"
2609 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2611 as_fn_arith $ac_count + 1 && ac_count=$as_val
2612 if test $ac_count -gt ${ac_path_SED_max-0}; then
2613 # Best one so far, save it but keep looking for a better one
2614 ac_cv_path_SED="$ac_path_SED"
2615 ac_path_SED_max=$ac_count
2617 # 10*(2^10) chars as input seems more than enough
2618 test $ac_count -gt 10 && break
2620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2623 $ac_path_SED_found && break 3
2628 if test -z "$ac_cv_path_SED"; then
2629 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2637 $as_echo "$ac_cv_path_SED" >&6; }
2638 SED="$ac_cv_path_SED"
2641 for ac_prog in gawk mawk nawk awk
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_AWK+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2650 if test -n "$AWK"; then
2651 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_AWK="$ac_prog"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 if test -n "$AWK"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2673 $as_echo "$AWK" >&6; }
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2680 test -n "$AWK" && break
2684 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2686 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2688 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2689 INSTALL="${srcpwd}/install-sh -c"
2692 # Set srcdir to "." if that's what it is.
2693 # This is important for multilib support.
2695 if test "${pwd}" = "${srcpwd}" ; then
2703 ### To add a new directory to the tree, first choose whether it is a target
2704 ### or a host dependent tool. Then put it into the appropriate list
2705 ### (library or tools, host or target), doing a dependency sort.
2707 # Subdirs will be configured in the order listed in build_configdirs,
2708 # configdirs, or target_configdirs; see the serialization section below.
2710 # Dependency sorting is only needed when *configuration* must be done in
2711 # a particular order. In all cases a dependency should be specified in
2712 # the Makefile, whether or not it's implicitly specified here.
2714 # Double entries in build_configdirs, configdirs, or target_configdirs may
2715 # cause circular dependencies and break everything horribly.
2717 # these library is used by various programs built for the build
2720 build_libs="build-libiberty build-libcpp"
2722 # these tools are built for the build environment
2723 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2725 # these libraries are used by various programs built for the host environment
2727 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2729 # these tools are built for the host environment
2730 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2731 # know that we are building the simulator.
2732 # binutils, gas and ld appear in that order because it makes sense to run
2733 # "make check" in that particular order.
2734 # If --enable-gold is used, "gold" may replace "ld".
2735 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"
2737 # libgcj represents the runtime libraries only used by gcj.
2738 libgcj="target-libffi \
2742 # these libraries are built for the target environment, and are built after
2743 # the host libraries and the host tools (which may be a cross compiler)
2744 # Note that libiberty is not a target library.
2745 target_libraries="target-libgcc \
2746 target-libbacktrace \
2751 target-liboffloadmic \
2754 target-libstdc++-v3 \
2755 target-libsanitizer \
2759 target-libquadmath \
2760 target-libgfortran \
2767 # these tools are built using the target libraries, and are intended to
2768 # run only in the target environment
2770 # note: any program that *uses* libraries that are in the "target_libraries"
2771 # list belongs in this list.
2773 target_tools="target-rda"
2775 ################################################################################
2777 ## All tools belong in one of the four categories, and are assigned above
2778 ## We assign ${configdirs} this way to remove all embedded newlines. This
2779 ## is important because configure will choke if they ever get through.
2780 ## ${configdirs} is directories we build using the host tools.
2781 ## ${target_configdirs} is directories we build using the target tools.
2782 configdirs=`echo ${host_libs} ${host_tools}`
2783 target_configdirs=`echo ${target_libraries} ${target_tools}`
2784 build_configdirs=`echo ${build_libs} ${build_tools}`
2788 ################################################################################
2790 srcname="gnu development package"
2792 # This gets set non-empty for some net releases of packages.
2795 # Define is_cross_compiler to save on calls to 'test'.
2797 if test x"${host}" = x"${target}" ; then
2798 is_cross_compiler=no
2800 is_cross_compiler=yes
2803 # Find the build and target subdir names.
2805 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806 # have matching libraries, they should use host libraries: Makefile.tpl
2807 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808 # However, they still use the build modules, because the corresponding
2809 # host modules (e.g. bison) are only built for the host when bootstrap
2811 # - build_subdir is where we find build modules, and never changes.
2812 # - build_libsubdir is where we find build libraries, and can be overridden.
2814 # Prefix 'build-' so this never conflicts with target_subdir.
2815 build_subdir="build-${build_noncanonical}"
2817 # Check whether --with-build-libsubdir was given.
2818 if test "${with_build_libsubdir+set}" = set; then :
2819 withval=$with_build_libsubdir; build_libsubdir="$withval"
2821 build_libsubdir="$build_subdir"
2824 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825 if ( test $srcdir = . && test -d gcc ) \
2826 || test -d $srcdir/../host-${host_noncanonical}; then
2827 host_subdir="host-${host_noncanonical}"
2832 target_subdir=${target_noncanonical}
2834 # Be sure to cover against remnants of an in-tree build.
2835 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2836 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2840 # Skipdirs are removed silently.
2842 # Noconfigdirs are removed loudly.
2846 # Make sure we don't let GNU ld be added if we didn't want it.
2847 if test x$with_gnu_ld = xno ; then
2849 noconfigdirs="$noconfigdirs ld gold"
2853 # Make sure we don't let GNU as be added if we didn't want it.
2854 if test x$with_gnu_as = xno ; then
2856 noconfigdirs="$noconfigdirs gas"
2861 # Check whether --with-system-zlib was given.
2862 if test "${with_system_zlib+set}" = set; then :
2863 withval=$with_system_zlib;
2866 # Make sure we don't let ZLIB be added if we didn't want it.
2867 if test x$with_system_zlib = xyes ; then
2868 use_included_zlib=no
2869 noconfigdirs="$noconfigdirs zlib"
2872 # some tools are so dependent upon X11 that if we're not building with X,
2873 # it's not even worth trying to configure, much less build, that tool.
2876 yes | "") ;; # the default value for this tree is that X11 is available
2878 skipdirs="${skipdirs} tk itcl libgui"
2879 # We won't be able to build gdbtk without X.
2882 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2885 # Some are only suitable for cross toolchains.
2886 # Remove these if host=target.
2887 cross_only="target-libgloss target-newlib target-opcodes"
2889 case $is_cross_compiler in
2890 no) skipdirs="${skipdirs} ${cross_only}" ;;
2893 # If both --with-headers and --with-libs are specified, default to
2895 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2897 if test x"${with_newlib}" = x ; then
2902 # Recognize --with-newlib/--without-newlib.
2903 case ${with_newlib} in
2904 no) skipdirs="${skipdirs} target-newlib" ;;
2905 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2908 # Check whether --enable-as-accelerator-for was given.
2909 if test "${enable_as_accelerator_for+set}" = set; then :
2910 enableval=$enable_as_accelerator_for;
2914 # Check whether --enable-offload-targets was given.
2915 if test "${enable_offload_targets+set}" = set; then :
2916 enableval=$enable_offload_targets;
2917 if test x"$enable_offload_targets" = x; then
2918 as_fn_error "no offload targets specified" "$LINENO" 5
2922 enable_offload_targets=
2926 # Handle --enable-gold, --enable-ld.
2927 # --disable-gold [--enable-ld]
2928 # Build only ld. Default option.
2929 # --enable-gold [--enable-ld]
2930 # Build both gold and ld. Install gold as "ld.gold", install ld
2931 # as "ld.bfd" and "ld".
2932 # --enable-gold=default [--enable-ld]
2933 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2934 # install ld as "ld.bfd".
2935 # --enable-gold[=default] --disable-ld
2936 # Build only gold, which is then installed as both "ld.gold" and "ld".
2937 # --enable-gold --enable-ld=default
2938 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2940 # In other words, ld is default
2941 # --enable-gold=default --enable-ld=default
2945 # Check whether --enable-gold was given.
2946 if test "${enable_gold+set}" = set; then :
2947 enableval=$enable_gold; ENABLE_GOLD=$enableval
2952 case "${ENABLE_GOLD}" in
2954 # Check for ELF target.
2957 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2958 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2959 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2960 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2962 *-*-linux*aout* | *-*-linux*oldld*)
2970 if test "$is_elf" = "yes"; then
2971 # Check for target supported by gold.
2973 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2974 | aarch64*-*-* | tilegx*-*-*)
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2991 # Check whether --enable-ld was given.
2992 if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2999 case "${ENABLE_LD}" in
3001 if test x${default_ld} != x; then
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3019 # Configure extra directories which are host specific
3023 configdirs="$configdirs libtermcap" ;;
3026 # A target can indicate whether a language isn't supported for some reason.
3027 # Only spaces may be used in this macro; not newlines or tabs.
3028 unsupported_languages=
3030 # Remove more programs from consideration, based on the host or
3031 # target this usually means that a port of the program doesn't
3035 i[3456789]86-*-msdosdjgpp*)
3036 noconfigdirs="$noconfigdirs tcl tk itcl"
3041 # Check whether --enable-libquadmath was given.
3042 if test "${enable_libquadmath+set}" = set; then :
3043 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3045 ENABLE_LIBQUADMATH=yes
3048 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3049 noconfigdirs="$noconfigdirs target-libquadmath"
3053 # Check whether --enable-libquadmath-support was given.
3054 if test "${enable_libquadmath_support+set}" = set; then :
3055 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3057 ENABLE_LIBQUADMATH_SUPPORT=yes
3060 enable_libquadmath_support=
3061 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3062 enable_libquadmath_support=no
3066 # Check whether --enable-libada was given.
3067 if test "${enable_libada+set}" = set; then :
3068 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3073 if test "${ENABLE_LIBADA}" != "yes" ; then
3074 noconfigdirs="$noconfigdirs gnattools"
3077 # Check whether --enable-libssp was given.
3078 if test "${enable_libssp+set}" = set; then :
3079 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3085 # Check whether --enable-libstdcxx was given.
3086 if test "${enable_libstdcxx+set}" = set; then :
3087 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3089 ENABLE_LIBSTDCXX=default
3092 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3093 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3096 # If this is accelerator compiler and its target is intelmic we enable
3097 # target liboffloadmic by default. If this is compiler with offloading
3098 # for intelmic we enable host liboffloadmic by default. Otherwise
3099 # liboffloadmic is disabled by default.
3100 # Check whether --enable-liboffloadmic was given.
3101 if test "${enable_liboffloadmic+set}" = set; then :
3102 enableval=$enable_liboffloadmic; case "$enableval" in
3104 enable_liboffloadmic=$enableval ;;
3106 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3109 if test x"$enable_as_accelerator_for" != x; then
3111 *-intelmic-* | *-intelmicemul-*)
3112 enable_liboffloadmic=target
3113 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3116 enable_liboffloadmic=no
3120 case "${enable_offload_targets}" in
3121 *-intelmic-* | *-intelmicemul-*)
3122 enable_liboffloadmic=host
3123 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3126 enable_liboffloadmic=no
3134 # Save it here so that, even in case of --enable-libgcj, if the Java
3135 # front-end isn't enabled, we still get libgcj disabled.
3136 libgcj_saved=$libgcj
3137 case $enable_libgcj in
3139 # If we reset it here, it won't get added to noconfigdirs in the
3140 # target-specific build rules, so it will be forcibly enabled
3141 # (unless the Java language itself isn't enabled).
3145 # Make sure we get it printed in the list of not supported target libs.
3146 # Don't disable libffi, though, other languages use it.
3147 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3148 # Clear libgcj_saved so that even if java is enabled libffi won't be
3154 # Check whether --enable-static-libjava was given.
3155 if test "${enable_static_libjava+set}" = set; then :
3156 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3158 ENABLE_STATIC_LIBJAVA=no
3161 enable_static_libjava=
3162 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3163 enable_static_libjava=yes
3166 if test x$enable_static_libjava != xyes ; then
3167 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3171 # Disable libgomp on non POSIX hosted systems.
3172 if test x$enable_libgomp = x ; then
3173 # Enable libgomp by default on hosted POSIX systems.
3175 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3177 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3179 *-*-solaris2* | *-*-hpux11*)
3181 *-*-darwin* | *-*-aix*)
3184 noconfigdirs="$noconfigdirs target-libgomp"
3189 # Disable libatomic on unsupported systems.
3190 if test -d ${srcdir}/libatomic; then
3191 if test x$enable_libatomic = x; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3193 $as_echo_n "checking for libatomic support... " >&6; }
3194 if (srcdir=${srcdir}/libatomic; \
3195 . ${srcdir}/configure.tgt; \
3196 test -n "$UNSUPPORTED")
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 noconfigdirs="$noconfigdirs target-libatomic"
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 $as_echo "yes" >&6; }
3208 # Disable libcilkrts on unsupported systems.
3209 if test -d ${srcdir}/libcilkrts; then
3210 if test x$enable_libcilkrts = x; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3212 $as_echo_n "checking for libcilkrts support... " >&6; }
3213 if (srcdir=${srcdir}/libcilkrts; \
3214 . ${srcdir}/configure.tgt; \
3215 test -n "$UNSUPPORTED")
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 noconfigdirs="$noconfigdirs target-libcilkrts"
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222 $as_echo "yes" >&6; }
3227 # Disable liboffloadmic on unsupported systems.
3228 if test -d ${srcdir}/liboffloadmic; then
3229 if test x$enable_liboffloadmic != xno; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3231 $as_echo_n "checking for liboffloadmic support... " >&6; }
3232 if (srcdir=${srcdir}/liboffloadmic; \
3233 . ${srcdir}/configure.tgt; \
3234 test -n "$UNSUPPORTED")
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 noconfigdirs="$noconfigdirs target-liboffloadmic"
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3246 # Disable libitm on unsupported systems.
3247 if test -d ${srcdir}/libitm; then
3248 if test x$enable_libitm = x; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3250 $as_echo_n "checking for libitm support... " >&6; }
3251 if (srcdir=${srcdir}/libitm; \
3252 . ${srcdir}/configure.tgt; \
3253 test -n "$UNSUPPORTED")
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 noconfigdirs="$noconfigdirs target-libitm"
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260 $as_echo "yes" >&6; }
3265 # Disable libsanitizer on unsupported systems.
3266 if test -d ${srcdir}/libsanitizer; then
3267 if test x$enable_libsanitizer = x; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3269 $as_echo_n "checking for libsanitizer support... " >&6; }
3270 if (srcdir=${srcdir}/libsanitizer; \
3271 . ${srcdir}/configure.tgt; \
3272 test -n "$UNSUPPORTED")
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 noconfigdirs="$noconfigdirs target-libsanitizer"
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279 $as_echo "yes" >&6; }
3284 # Disable libvtv on unsupported systems.
3285 if test -d ${srcdir}/libvtv; then
3286 if test x$enable_libvtv = x; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3288 $as_echo_n "checking for libvtv support... " >&6; }
3289 if (srcdir=${srcdir}/libvtv; \
3290 . ${srcdir}/configure.tgt; \
3291 test "$VTV_SUPPORTED" != "yes")
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 noconfigdirs="$noconfigdirs target-libvtv"
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298 $as_echo "yes" >&6; }
3304 # Enable libmpx on supported systems by request.
3305 if test -d ${srcdir}/libmpx; then
3306 if test x$enable_libmpx = xyes; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3308 $as_echo_n "checking for libmpx support... " >&6; }
3309 if (srcdir=${srcdir}/libmpx; \
3310 . ${srcdir}/configure.tgt; \
3311 test "$LIBMPX_SUPPORTED" != "yes")
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 noconfigdirs="$noconfigdirs target-libmpx"
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3321 noconfigdirs="$noconfigdirs target-libmpx"
3327 # Disable libquadmath for some systems.
3330 noconfigdirs="$noconfigdirs target-libquadmath"
3332 # libquadmath is unused on AIX and libquadmath build process use of
3333 # LD_LIBRARY_PATH can break AIX bootstrap.
3334 powerpc-*-aix* | rs6000-*-aix*)
3335 noconfigdirs="$noconfigdirs target-libquadmath"
3339 # Disable libssp for some systems.
3342 # No hosted I/O support.
3343 noconfigdirs="$noconfigdirs target-libssp"
3345 powerpc-*-aix* | rs6000-*-aix*)
3346 noconfigdirs="$noconfigdirs target-libssp"
3349 # libssp uses a misaligned load to trigger a fault, but the RL78
3350 # doesn't fault for those - instead, it gives a build-time error
3351 # for explicit misaligned loads.
3352 noconfigdirs="$noconfigdirs target-libssp"
3355 # No hosted I/O support.
3356 noconfigdirs="$noconfigdirs target-libssp"
3360 # Disable libstdc++-v3 for some systems.
3361 # Allow user to override this if they pass --enable-libstdc++-v3
3362 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3365 # VxWorks uses the Dinkumware C++ library.
3366 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3369 # the C++ libraries don't build on top of CE's C libraries
3370 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3378 # Disable Fortran for some systems.
3381 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3382 unsupported_languages="$unsupported_languages fortran"
3386 # Disable Java if libffi is not supported.
3418 powerpc-*-aix* | rs6000-*-aix*)
3422 powerpc64-*-freebsd*)
3426 s390-*-* | s390x-*-*)
3428 sh-*-* | sh[34]*-*-*)
3430 sh64-*-* | sh5*-*-*)
3437 unsupported_languages="$unsupported_languages java"
3441 # Disable Java, libgcj or related libraries for some systems.
3445 i[3456789]86-*-darwin*)
3447 x86_64-*-darwin[912]*)
3450 noconfigdirs="$noconfigdirs ${libgcj}"
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3456 noconfigdirs="$noconfigdirs ${libgcj}"
3459 noconfigdirs="$noconfigdirs ${libgcj}"
3462 noconfigdirs="$noconfigdirs ${libgcj}"
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3471 noconfigdirs="$noconfigdirs ${libgcj}"
3474 noconfigdirs="$noconfigdirs ${libgcj}"
3477 noconfigdirs="$noconfigdirs ${libgcj}"
3480 noconfigdirs="$noconfigdirs target-boehm-gc"
3482 cris-*-* | crisv32-*-*)
3483 unsupported_languages="$unsupported_languages java"
3487 *) # See PR46792 regarding target-libffi.
3488 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3492 # In this case, it's because the hppa64-linux target is for
3493 # the kernel only at this point and has no libc, and thus no
3494 # headers, crt*.o, etc., all of which are needed by these.
3495 unsupported_languages="$unsupported_languages java"
3498 noconfigdirs="$noconfigdirs ${libgcj}"
3503 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3504 # build on HP-UX 10.20.
3505 noconfigdirs="$noconfigdirs ${libgcj}"
3508 noconfigdirs="$noconfigdirs ${libgcj}"
3510 i[3456789]86-w64-mingw*)
3511 noconfigdirs="$noconfigdirs ${libgcj}"
3513 i[3456789]86-*-mingw*)
3514 noconfigdirs="$noconfigdirs ${libgcj}"
3517 noconfigdirs="$noconfigdirs ${libgcj}"
3520 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3523 # copied from rs6000-*-* entry
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3530 noconfigdirs="$noconfigdirs ${libgcj}"
3533 noconfigdirs="$noconfigdirs ${libgcj}"
3537 # Disable the go frontend on systems where it is known to not work. Please keep
3538 # this in sync with contrib/config-list.mk.
3540 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3541 unsupported_languages="$unsupported_languages go"
3545 # Disable libgo for some systems where it is known to not work.
3546 # For testing, you can easily override this with --enable-libgo.
3547 if test x$enable_libgo = x; then
3551 noconfigdirs="$noconfigdirs target-libgo"
3553 *-*-cygwin* | *-*-mingw*)
3554 noconfigdirs="$noconfigdirs target-libgo"
3557 noconfigdirs="$noconfigdirs target-libgo"
3562 # Default libgloss CPU subdirectory.
3563 libgloss_dir="$target_cpu"
3566 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3570 libgloss_dir=aarch64
3575 cris-*-* | crisv32-*-*)
3584 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3585 libgloss_dir=m68hc11
3587 m68*-*-* | fido-*-*)
3601 # Disable newlib and libgloss for various target OSes.
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3606 i[3456789]86-*-linux*)
3607 # This section makes it possible to build newlib natively on linux.
3608 # If we are using a cross compiler then don't configure newlib.
3609 if test x${is_cross_compiler} != xno ; then
3610 noconfigdirs="$noconfigdirs target-newlib"
3612 noconfigdirs="$noconfigdirs target-libgloss"
3613 # If we are not using a cross compiler, do configure newlib.
3614 # Note however, that newlib will only be configured in this situation
3615 # if the --with-newlib option has been given, because otherwise
3616 # 'target-newlib' will appear in skipdirs.
3618 i[3456789]86-*-rdos*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3621 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3673 noconfigdirs="$noconfigdirs sim target-rda"
3675 i[3456789]86-*-darwin*)
3676 noconfigdirs="$noconfigdirs ld gprof"
3677 noconfigdirs="$noconfigdirs sim target-rda"
3679 x86_64-*-darwin[912]*)
3680 noconfigdirs="$noconfigdirs ld gas gprof"
3681 noconfigdirs="$noconfigdirs sim target-rda"
3684 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3685 noconfigdirs="$noconfigdirs sim target-rda"
3690 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3691 && test -f /usr/local/include/gmp.h; then
3696 # Remove unsupported stuff on all kaOS configurations.
3697 noconfigdirs="$noconfigdirs target-libgloss"
3704 noconfigdirs="$noconfigdirs target-libgloss"
3705 # this is not caught below because this stanza matches earlier
3707 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3710 # The tpf target doesn't support gdb yet.
3712 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3715 noconfigdirs="$noconfigdirs target-rda"
3720 # ld works, but does not support shared libraries.
3721 # gas doesn't generate exception information.
3722 noconfigdirs="$noconfigdirs gas ld"
3725 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3728 # newlib is not 64 bit ready
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3732 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3735 noconfigdirs="$noconfigdirs target-libgloss"
3738 noconfigdirs="$noconfigdirs target-libgloss"
3741 noconfigdirs="$noconfigdirs ld target-libgloss"
3746 if test x${with_avrlibc} != xno; then
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3750 c4x-*-* | tic4x-*-*)
3751 noconfigdirs="$noconfigdirs target-libgloss"
3754 noconfigdirs="$noconfigdirs target-libgloss gdb"
3757 noconfigdirs="$noconfigdirs target-libgloss"
3760 noconfigdirs="$noconfigdirs gdb"
3763 noconfigdirs="$noconfigdirs gdb"
3766 noconfigdirs="$noconfigdirs target-rda gprof"
3769 noconfigdirs="$noconfigdirs"
3772 noconfigdirs="$noconfigdirs target-libgloss"
3775 noconfigdirs="$noconfigdirs target-libgloss"
3777 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3785 hppa*-*-openbsd* | \
3789 noconfigdirs="$noconfigdirs ld"
3794 noconfigdirs="$noconfigdirs ld"
3797 noconfigdirs="$noconfigdirs gdb"
3800 # No gdb support yet.
3801 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3804 # No ld support yet.
3805 noconfigdirs="$noconfigdirs libgui itcl ld"
3808 # No ld support yet.
3809 noconfigdirs="$noconfigdirs libgui itcl ld"
3811 i[3456789]86-w64-mingw*)
3813 i[3456789]86-*-mingw*)
3814 target_configdirs="$target_configdirs target-winsup"
3817 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3818 noconfigdirs="$noconfigdirs target-libgloss"
3819 # always build newlib if winsup directory is present.
3820 if test -d "$srcdir/winsup/cygwin"; then
3821 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3822 elif test -d "$srcdir/newlib"; then
3823 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3827 noconfigdirs="$noconfigdirs target-libgloss"
3829 i[3456789]86-*-sco3.2v5*)
3830 # The linker does not yet know about weak symbols in COFF,
3831 # and is not configured to handle mixed ELF and COFF.
3832 noconfigdirs="$noconfigdirs ld target-libgloss"
3834 i[3456789]86-*-sco*)
3835 noconfigdirs="$noconfigdirs gprof target-libgloss"
3837 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3838 noconfigdirs="$noconfigdirs target-libgloss"
3840 i[3456789]86-*-sysv4*)
3841 noconfigdirs="$noconfigdirs target-libgloss"
3843 i[3456789]86-*-beos*)
3844 noconfigdirs="$noconfigdirs gdb"
3846 i[3456789]86-*-rdos*)
3847 noconfigdirs="$noconfigdirs gdb"
3850 noconfigdirs="$noconfigdirs gdb"
3853 noconfigdirs="$noconfigdirs sim"
3856 # copied from rs6000-*-* entry
3857 noconfigdirs="$noconfigdirs gprof"
3859 powerpc*-*-winnt* | powerpc*-*-pe*)
3860 target_configdirs="$target_configdirs target-winsup"
3861 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3862 # always build newlib.
3863 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3865 # This is temporary until we can link against shared libraries
3866 powerpcle-*-solaris*)
3867 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3870 noconfigdirs="$noconfigdirs gdb"
3873 noconfigdirs="$noconfigdirs gprof"
3876 noconfigdirs="$noconfigdirs gprof"
3879 noconfigdirs="$noconfigdirs gprof"
3882 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3885 noconfigdirs="$noconfigdirs gprof"
3887 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3888 if test x$with_newlib = xyes; then
3889 noconfigdirs="$noconfigdirs gprof"
3893 noconfigdirs="$noconfigdirs gprof target-libgloss"
3896 noconfigdirs="$noconfigdirs gprof target-libgloss"
3899 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3903 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3904 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3905 noconfigdirs="$noconfigdirs ld gas gprof"
3908 noconfigdirs="$noconfigdirs gprof"
3911 noconfigdirs="$noconfigdirs gdb"
3914 # nvptx is just a compiler
3915 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3918 noconfigdirs="$noconfigdirs gdb"
3925 noconfigdirs="$noconfigdirs target-libgloss" ;;
3929 if test x${is_cross_compiler} = xno ; then
3934 noconfigdirs="$noconfigdirs sim"
3936 tilepro*-*-* | tilegx*-*-*)
3937 noconfigdirs="$noconfigdirs sim"
3940 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3943 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3947 # If we aren't building newlib, then don't build libgloss, since libgloss
3948 # depends upon some newlib header files.
3949 case "${noconfigdirs}" in
3950 *target-libgloss*) ;;
3951 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3954 # Work in distributions that contain no compiler tools, like Autoconf.
3955 host_makefile_frag=/dev/null
3956 if test -d ${srcdir}/config ; then
3958 i[3456789]86-*-msdosdjgpp*)
3959 host_makefile_frag="config/mh-djgpp"
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3964 $as_echo_n "checking to see if cat works as expected... " >&6; }
3965 echo a >cygwin-cat-check
3966 if test `cat cygwin-cat-check` = a ; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969 $as_echo "yes" >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 $as_echo "no" >&6; }
3974 as_fn_error "The cat command does not ignore carriage return characters.
3975 Please either mount the build directory in binary mode or run the following
3976 commands before running any configure script:
3982 host_makefile_frag="config/mh-cygwin"
3985 host_makefile_frag="config/mh-mingw"
3988 host_makefile_frag="config/mh-pa-hpux10"
3991 host_makefile_frag="config/mh-pa"
3994 host_makefile_frag="config/mh-pa"
3997 host_makefile_frag="config/mh-darwin"
4000 host_makefile_frag="config/mh-ppc-aix"
4003 host_makefile_frag="config/mh-ppc-aix"
4008 if test "${build}" != "${host}" ; then
4009 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4010 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4011 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4012 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4013 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4014 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4015 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4016 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4017 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4018 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4019 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4020 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4021 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4023 AR_FOR_BUILD="\$(AR)"
4024 AS_FOR_BUILD="\$(AS)"
4025 CC_FOR_BUILD="\$(CC)"
4026 CXX_FOR_BUILD="\$(CXX)"
4027 GCJ_FOR_BUILD="\$(GCJ)"
4028 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4029 GOC_FOR_BUILD="\$(GOC)"
4030 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4031 LD_FOR_BUILD="\$(LD)"
4032 NM_FOR_BUILD="\$(NM)"
4033 RANLIB_FOR_BUILD="\$(RANLIB)"
4034 WINDRES_FOR_BUILD="\$(WINDRES)"
4035 WINDMC_FOR_BUILD="\$(WINDMC)"
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if test "${ac_cv_prog_CC+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4061 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 if test -n "$CC"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4074 $as_echo "$CC" >&6; }
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4082 if test -z "$ac_cv_prog_CC"; then
4084 # Extract the first word of "gcc", so it can be a program name with args.
4085 set dummy gcc; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4091 if test -n "$ac_ct_CC"; then
4092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4101 ac_cv_prog_ac_ct_CC="gcc"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4112 if test -n "$ac_ct_CC"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4114 $as_echo "$ac_ct_CC" >&6; }
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4120 if test "x$ac_ct_CC" = x; then
4123 case $cross_compiling:$ac_tool_warned in
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4127 ac_tool_warned=yes ;;
4135 if test -z "$CC"; then
4136 if test -n "$ac_tool_prefix"; then
4137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}cc; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if test "${ac_cv_prog_CC+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_CC="${ac_tool_prefix}cc"
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 if test -n "$CC"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167 $as_echo "$CC" >&6; }
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4176 if test -z "$CC"; then
4177 # Extract the first word of "cc", so it can be a program name with args.
4178 set dummy cc; ac_word=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if test "${ac_cv_prog_CC+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4184 if test -n "$CC"; then
4185 ac_cv_prog_CC="$CC" # Let the user override the test.
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4196 ac_prog_rejected=yes
4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 if test $ac_prog_rejected = yes; then
4208 # We found a bogon in the path, so make sure we never use it.
4209 set dummy $ac_cv_prog_CC
4211 if test $# != 0; then
4212 # We chose a different compiler from the bogus one.
4213 # However, it has the same basename, so the bogon will be chosen
4214 # first if we set CC to just the basename; use the full file name.
4216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4232 if test -z "$CC"; then
4233 if test -n "$ac_tool_prefix"; then
4234 for ac_prog in cl.exe
4236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if test "${ac_cv_prog_CC+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
4243 if test -n "$CC"; then
4244 ac_cv_prog_CC="$CC" # Let the user override the test.
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 if test -n "$CC"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4266 $as_echo "$CC" >&6; }
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4273 test -n "$CC" && break
4276 if test -z "$CC"; then
4278 for ac_prog in cl.exe
4280 # Extract the first word of "$ac_prog", so it can be a program name with args.
4281 set dummy $ac_prog; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4285 $as_echo_n "(cached) " >&6
4287 if test -n "$ac_ct_CC"; then
4288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_prog_ac_ct_CC="$ac_prog"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4308 if test -n "$ac_ct_CC"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4310 $as_echo "$ac_ct_CC" >&6; }
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313 $as_echo "no" >&6; }
4317 test -n "$ac_ct_CC" && break
4320 if test "x$ac_ct_CC" = x; then
4323 case $cross_compiling:$ac_tool_warned in
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4327 ac_tool_warned=yes ;;
4336 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4338 as_fn_error "no acceptable C compiler found in \$PATH
4339 See \`config.log' for more details." "$LINENO" 5; }
4341 # Provide some information about the compiler.
4342 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4345 for ac_option in --version -v -V -qversion; do
4346 { { ac_try="$ac_compiler $ac_option >&5"
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352 $as_echo "$ac_try_echo"; } >&5
4353 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4355 if test -s conftest.err; then
4357 ... rest of stderr output deleted ...
4358 10q' conftest.err >conftest.er1
4359 cat conftest.er1 >&5
4360 rm -f conftest.er1 conftest.err
4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363 test $ac_status = 0; }
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4377 ac_clean_files_save=$ac_clean_files
4378 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4379 # Try to create an executable without -o first, disregard a.out.
4380 # It will help us diagnose broken compilers, and finding out an intuition
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4383 $as_echo_n "checking for C compiler default output file name... " >&6; }
4384 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4386 # The possible output files:
4387 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4390 for ac_file in $ac_files
4393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4394 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4399 if { { ac_try="$ac_link_default"
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405 $as_echo "$ac_try_echo"; } >&5
4406 (eval "$ac_link_default") 2>&5
4408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409 test $ac_status = 0; }; then :
4410 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4411 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4412 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4413 # so that the user can short-circuit this test for compilers unknown to
4415 for ac_file in $ac_files ''
4417 test -f "$ac_file" || continue
4419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4422 # We found the default executable, but exeext='' is most
4426 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4430 # We set ac_cv_exeext here because the later test for it is not
4431 # safe: cross compilers may not add the suffix if given an `-o'
4432 # argument, so we may need to know it at that point already.
4433 # Even if this section looks crufty: it has the advantage of
4440 test "$ac_cv_exeext" = no && ac_cv_exeext=
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4446 $as_echo "$ac_file" >&6; }
4447 if test -z "$ac_file"; then :
4448 $as_echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4453 { as_fn_set_status 77
4454 as_fn_error "C compiler cannot create executables
4455 See \`config.log' for more details." "$LINENO" 5; }; }
4457 ac_exeext=$ac_cv_exeext
4459 # Check that the compiler produces executables we can run. If not, either
4460 # the compiler is broken, or we cross compile.
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4462 $as_echo_n "checking whether the C compiler works... " >&6; }
4463 # If not cross compiling, check that we can run a simple program.
4464 if test "$cross_compiling" != yes; then
4465 if { ac_try='./$ac_file'
4466 { { case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4471 $as_echo "$ac_try_echo"; } >&5
4472 (eval "$ac_try") 2>&5
4474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4475 test $ac_status = 0; }; }; then
4478 if test "$cross_compiling" = maybe; then
4481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4483 as_fn_error "cannot run C compiled programs.
4484 If you meant to cross compile, use \`--host'.
4485 See \`config.log' for more details." "$LINENO" 5; }
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4490 $as_echo "yes" >&6; }
4492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4493 ac_clean_files=$ac_clean_files_save
4494 # Check that the compiler produces executables we can run. If not, either
4495 # the compiler is broken, or we cross compile.
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4497 $as_echo_n "checking whether we are cross compiling... " >&6; }
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4499 $as_echo "$cross_compiling" >&6; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4502 $as_echo_n "checking for suffix of executables... " >&6; }
4503 if { { ac_try="$ac_link"
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_link") 2>&5
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }; then :
4514 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4515 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4516 # work properly (i.e., refer to `conftest.exe'), while it won't with
4518 for ac_file in conftest.exe conftest conftest.*; do
4519 test -f "$ac_file" || continue
4521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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 compute suffix of executables: cannot compile and link
4531 See \`config.log' for more details." "$LINENO" 5; }
4533 rm -f conftest$ac_cv_exeext
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4535 $as_echo "$ac_cv_exeext" >&6; }
4537 rm -f conftest.$ac_ext
4538 EXEEXT=$ac_cv_exeext
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4541 $as_echo_n "checking for suffix of object files... " >&6; }
4542 if test "${ac_cv_objext+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h. */
4556 rm -f conftest.o conftest.obj
4557 if { { ac_try="$ac_compile"
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563 $as_echo "$ac_try_echo"; } >&5
4564 (eval "$ac_compile") 2>&5
4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }; then :
4568 for ac_file in conftest.o conftest.obj conftest.*; do
4569 test -f "$ac_file" || continue;
4571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4572 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4577 $as_echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582 as_fn_error "cannot compute suffix of object files: cannot compile
4583 See \`config.log' for more details." "$LINENO" 5; }
4585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4588 $as_echo "$ac_cv_objext" >&6; }
4589 OBJEXT=$ac_cv_objext
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4593 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4610 if ac_fn_c_try_compile "$LINENO"; then :
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4620 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4621 if test $ac_compiler_gnu = yes; then
4626 ac_test_CFLAGS=${CFLAGS+set}
4627 ac_save_CFLAGS=$CFLAGS
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4629 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4630 if test "${ac_cv_prog_cc_g+set}" = set; then :
4631 $as_echo_n "(cached) " >&6
4633 ac_save_c_werror_flag=$ac_c_werror_flag
4634 ac_c_werror_flag=yes
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4648 if ac_fn_c_try_compile "$LINENO"; then :
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4663 if ac_fn_c_try_compile "$LINENO"; then :
4666 ac_c_werror_flag=$ac_save_c_werror_flag
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4679 if ac_fn_c_try_compile "$LINENO"; then :
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 ac_c_werror_flag=$ac_save_c_werror_flag
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4690 $as_echo "$ac_cv_prog_cc_g" >&6; }
4691 if test "$ac_test_CFLAGS" = set; then
4692 CFLAGS=$ac_save_CFLAGS
4693 elif test $ac_cv_prog_cc_g = yes; then
4694 if test "$GCC" = yes; then
4700 if test "$GCC" = yes; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4707 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4708 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4711 ac_cv_prog_cc_c89=no
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4717 #include <sys/types.h>
4718 #include <sys/stat.h>
4719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4720 struct buf { int x; };
4721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4722 static char *e (p, i)
4728 static char *f (char * (*g) (char **, int), char **p, ...)
4733 s = g (p, va_arg (v,int));
4738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4739 function prototypes and stuff, but not '\xHH' hex character constants.
4740 These don't provoke an error unfortunately, instead are silently treated
4741 as 'x'. The following induces an error, until -std is added to get
4742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4743 array size at least. It's necessary to write '\x00'==0 to get something
4744 that's true only with -std. */
4745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4748 inside strings and character constants. */
4750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4752 int test (int i, double x);
4753 struct s1 {int (*f) (int a);};
4754 struct s2 {int (*f) (double a);};
4755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4769 CC="$ac_save_CC $ac_arg"
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_prog_cc_c89=$ac_arg
4773 rm -f core conftest.err conftest.$ac_objext
4774 test "x$ac_cv_prog_cc_c89" != "xno" && break
4776 rm -f conftest.$ac_ext
4781 case "x$ac_cv_prog_cc_c89" in
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4784 $as_echo "none needed" >&6; } ;;
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4787 $as_echo "unsupported" >&6; } ;;
4789 CC="$CC $ac_cv_prog_cc_c89"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4793 if test "x$ac_cv_prog_cc_c89" != xno; then :
4798 ac_cpp='$CPP $CPPFLAGS'
4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804 ac_cpp='$CXXCPP $CPPFLAGS'
4805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4808 if test -z "$CXX"; then
4809 if test -n "$CCC"; then
4812 if test -n "$ac_tool_prefix"; then
4813 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_CXX+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4822 if test -n "$CXX"; then
4823 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 if test -n "$CXX"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4845 $as_echo "$CXX" >&6; }
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4852 test -n "$CXX" && break
4855 if test -z "$CXX"; then
4857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4859 # Extract the first word of "$ac_prog", so it can be a program name with args.
4860 set dummy $ac_prog; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4866 if test -n "$ac_ct_CXX"; then
4867 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_ac_ct_CXX="$ac_prog"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4887 if test -n "$ac_ct_CXX"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4889 $as_echo "$ac_ct_CXX" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4896 test -n "$ac_ct_CXX" && break
4899 if test "x$ac_ct_CXX" = x; then
4902 case $cross_compiling:$ac_tool_warned in
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4914 # Provide some information about the compiler.
4915 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4918 for ac_option in --version -v -V -qversion; do
4919 { { ac_try="$ac_compiler $ac_option >&5"
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4925 $as_echo "$ac_try_echo"; } >&5
4926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4928 if test -s conftest.err; then
4930 ... rest of stderr output deleted ...
4931 10q' conftest.err >conftest.er1
4932 cat conftest.er1 >&5
4933 rm -f conftest.er1 conftest.err
4935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4936 test $ac_status = 0; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4940 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4941 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4958 if ac_fn_cxx_try_compile "$LINENO"; then :
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4968 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4969 if test $ac_compiler_gnu = yes; then
4974 ac_test_CXXFLAGS=${CXXFLAGS+set}
4975 ac_save_CXXFLAGS=$CXXFLAGS
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4977 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4978 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4981 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4982 ac_cxx_werror_flag=yes
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4996 if ac_fn_cxx_try_compile "$LINENO"; then :
4997 ac_cv_prog_cxx_g=yes
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5011 if ac_fn_cxx_try_compile "$LINENO"; then :
5014 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5027 if ac_fn_cxx_try_compile "$LINENO"; then :
5028 ac_cv_prog_cxx_g=yes
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5038 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5039 if test "$ac_test_CXXFLAGS" = set; then
5040 CXXFLAGS=$ac_save_CXXFLAGS
5041 elif test $ac_cv_prog_cxx_g = yes; then
5042 if test "$GXX" = yes; then
5048 if test "$GXX" = yes; then
5055 ac_cpp='$CPP $CPPFLAGS'
5056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5061 # We must set the default linker to the linker used by gcc for the correct
5062 # operation of libtool. If LD is not defined and we are using gcc, try to
5063 # set the LD default to the ld used by gcc.
5064 if test -z "$LD"; then
5065 if test "$GCC" = yes; then
5068 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5070 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5072 case $gcc_prog_ld in
5073 # Accept absolute paths.
5074 [\\/]* | [A-Za-z]:[\\/]*)
5075 LD="$gcc_prog_ld" ;;
5080 # Check whether -static-libstdc++ -static-libgcc is supported.
5082 if test "$GCC" = yes; then
5083 saved_LDFLAGS="$LDFLAGS"
5085 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5087 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5089 ac_cpp='$CXXCPP $CPPFLAGS'
5090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5098 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5099 #error -static-libstdc++ not implemented
5103 if ac_fn_cxx_try_link "$LINENO"; then :
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5105 $as_echo "yes" >&6; }; have_static_libs=yes
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5110 rm -f core conftest.err conftest.$ac_objext \
5111 conftest$ac_exeext conftest.$ac_ext
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119 LDFLAGS="$saved_LDFLAGS"
5125 if test -n "$ac_tool_prefix"; then
5126 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5127 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5133 if test -n "$GNATBIND"; then
5134 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 GNATBIND=$ac_cv_prog_GNATBIND
5154 if test -n "$GNATBIND"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5156 $as_echo "$GNATBIND" >&6; }
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5164 if test -z "$ac_cv_prog_GNATBIND"; then
5165 ac_ct_GNATBIND=$GNATBIND
5166 # Extract the first word of "gnatbind", so it can be a program name with args.
5167 set dummy gnatbind; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5171 $as_echo_n "(cached) " >&6
5173 if test -n "$ac_ct_GNATBIND"; then
5174 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5194 if test -n "$ac_ct_GNATBIND"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5196 $as_echo "$ac_ct_GNATBIND" >&6; }
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5202 if test "x$ac_ct_GNATBIND" = x; then
5205 case $cross_compiling:$ac_tool_warned in
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5209 ac_tool_warned=yes ;;
5211 GNATBIND=$ac_ct_GNATBIND
5214 GNATBIND="$ac_cv_prog_GNATBIND"
5217 if test -n "$ac_tool_prefix"; then
5218 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5219 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5225 if test -n "$GNATMAKE"; then
5226 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 GNATMAKE=$ac_cv_prog_GNATMAKE
5246 if test -n "$GNATMAKE"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5248 $as_echo "$GNATMAKE" >&6; }
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5256 if test -z "$ac_cv_prog_GNATMAKE"; then
5257 ac_ct_GNATMAKE=$GNATMAKE
5258 # Extract the first word of "gnatmake", so it can be a program name with args.
5259 set dummy gnatmake; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5265 if test -n "$ac_ct_GNATMAKE"; then
5266 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5286 if test -n "$ac_ct_GNATMAKE"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5288 $as_echo "$ac_ct_GNATMAKE" >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5294 if test "x$ac_ct_GNATMAKE" = x; then
5297 case $cross_compiling:$ac_tool_warned in
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5301 ac_tool_warned=yes ;;
5303 GNATMAKE=$ac_ct_GNATMAKE
5306 GNATMAKE="$ac_cv_prog_GNATMAKE"
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5310 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5311 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5314 cat >conftest.adb <<EOF
5315 procedure conftest is begin null; end conftest;
5317 acx_cv_cc_gcc_supports_ada=no
5318 # There is a bug in old released versions of GCC which causes the
5319 # driver to exit successfully when the appropriate language module
5320 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5321 # Therefore we must check for the error message as well as an
5322 # unsuccessful exit.
5323 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5324 # given a .adb file, but produce no object file. So we must check
5325 # if an object file was really produced to guard against this.
5326 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5327 if test x"$errors" = x && test -f conftest.$ac_objext; then
5328 acx_cv_cc_gcc_supports_ada=yes
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5333 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5335 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5342 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5343 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5348 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5349 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5350 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5353 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5356 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5357 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5360 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5367 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5368 do_compare="$gcc_cv_prog_cmp_skip"
5372 # Check whether --enable-bootstrap was given.
5373 if test "${enable_bootstrap+set}" = set; then :
5374 enableval=$enable_bootstrap;
5376 enable_bootstrap=default
5380 # Issue errors and warnings for invalid/strange bootstrap combinations.
5381 if test -r $srcdir/gcc/configure; then
5387 case "$have_compiler:$host:$target:$enable_bootstrap" in
5390 # Default behavior. Enable bootstrap if we have a compiler
5391 # and we are in a native configuration.
5392 yes:$build:$build:default)
5393 enable_bootstrap=yes ;;
5396 enable_bootstrap=no ;;
5398 # We have a compiler and we are in a native configuration, bootstrap is ok
5399 yes:$build:$build:yes)
5402 # Other configurations, but we have a compiler. Assume the user knows
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5406 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5409 # No compiler: if they passed --enable-bootstrap explicitly, fail
5411 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5413 # Fail if wrong command line
5415 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5419 # Used for setting $lt_cv_objdir
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5421 $as_echo_n "checking for objdir... " >&6; }
5422 if test "${lt_cv_objdir+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5425 rm -f .libs 2>/dev/null
5426 mkdir .libs 2>/dev/null
5427 if test -d .libs; then
5430 # MS-DOS does not allow filenames that begin with a dot.
5433 rmdir .libs 2>/dev/null
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5436 $as_echo "$lt_cv_objdir" >&6; }
5437 objdir=$lt_cv_objdir
5443 cat >>confdefs.h <<_ACEOF
5444 #define LT_OBJDIR "$lt_cv_objdir/"
5449 # Check for GMP, MPFR and MPC
5450 gmplibs="-lmpc -lmpfr -lgmp"
5454 # Specify a location for mpc
5455 # check for this first so it ends up on the link line before mpfr.
5457 # Check whether --with-mpc was given.
5458 if test "${with_mpc+set}" = set; then :
5463 # Check whether --with-mpc-include was given.
5464 if test "${with_mpc_include+set}" = set; then :
5465 withval=$with_mpc_include;
5469 # Check whether --with-mpc-lib was given.
5470 if test "${with_mpc_lib+set}" = set; then :
5471 withval=$with_mpc_lib;
5475 if test "x$with_mpc" != x; then
5476 gmplibs="-L$with_mpc/lib $gmplibs"
5477 gmpinc="-I$with_mpc/include $gmpinc"
5479 if test "x$with_mpc_include" != x; then
5480 gmpinc="-I$with_mpc_include $gmpinc"
5482 if test "x$with_mpc_lib" != x; then
5483 gmplibs="-L$with_mpc_lib $gmplibs"
5485 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5486 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5487 gmpinc='-I$$s/mpc/src '"$gmpinc"
5488 # Do not test the mpc version. Assume that it is sufficient, since
5489 # it is in the source tree, and the library has not been built yet
5490 # but it would be included on the link line in the version check below
5491 # hence making the test fail.
5495 # Specify a location for mpfr
5496 # check for this first so it ends up on the link line before gmp.
5498 # Check whether --with-mpfr-dir was given.
5499 if test "${with_mpfr_dir+set}" = set; then :
5500 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5501 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5506 # Check whether --with-mpfr was given.
5507 if test "${with_mpfr+set}" = set; then :
5512 # Check whether --with-mpfr-include was given.
5513 if test "${with_mpfr_include+set}" = set; then :
5514 withval=$with_mpfr_include;
5518 # Check whether --with-mpfr-lib was given.
5519 if test "${with_mpfr_lib+set}" = set; then :
5520 withval=$with_mpfr_lib;
5524 if test "x$with_mpfr" != x; then
5525 gmplibs="-L$with_mpfr/lib $gmplibs"
5526 gmpinc="-I$with_mpfr/include $gmpinc"
5528 if test "x$with_mpfr_include" != x; then
5529 gmpinc="-I$with_mpfr_include $gmpinc"
5531 if test "x$with_mpfr_lib" != x; then
5532 gmplibs="-L$with_mpfr_lib $gmplibs"
5534 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5535 # MPFR v3.1.0 moved the sources into a src sub-directory.
5536 if test -d ${srcdir}/mpfr/src; then
5537 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5538 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5539 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5541 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5542 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5543 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5545 # Do not test the mpfr version. Assume that it is sufficient, since
5546 # it is in the source tree, and the library has not been built yet
5547 # but it would be included on the link line in the version check below
5548 # hence making the test fail.
5552 # Specify a location for gmp
5554 # Check whether --with-gmp-dir was given.
5555 if test "${with_gmp_dir+set}" = set; then :
5556 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5557 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5562 # Check whether --with-gmp was given.
5563 if test "${with_gmp+set}" = set; then :
5568 # Check whether --with-gmp-include was given.
5569 if test "${with_gmp_include+set}" = set; then :
5570 withval=$with_gmp_include;
5574 # Check whether --with-gmp-lib was given.
5575 if test "${with_gmp_lib+set}" = set; then :
5576 withval=$with_gmp_lib;
5581 if test "x$with_gmp" != x; then
5582 gmplibs="-L$with_gmp/lib $gmplibs"
5583 gmpinc="-I$with_gmp/include $gmpinc"
5585 if test "x$with_gmp_include" != x; then
5586 gmpinc="-I$with_gmp_include $gmpinc"
5588 if test "x$with_gmp_lib" != x; then
5589 gmplibs="-L$with_gmp_lib $gmplibs"
5591 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5592 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5593 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5594 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5595 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5596 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5597 # Do not test the gmp version. Assume that it is sufficient, since
5598 # it is in the source tree, and the library has not been built yet
5599 # but it would be included on the link line in the version check below
5600 # hence making the test fail.
5604 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5606 saved_CFLAGS="$CFLAGS"
5607 CFLAGS="$CFLAGS $gmpinc"
5608 # Check for the recommended and required versions of GMP.
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5610 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5619 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5620 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5621 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5629 if ac_fn_c_try_compile "$LINENO"; then :
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5637 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5638 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5639 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649 $as_echo "yes" >&6; }
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5652 $as_echo "buggy but acceptable" >&6; }
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }; have_gmp=no
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 # If we have GMP, check the MPFR version.
5662 if test x"$have_gmp" = xyes; then
5663 # Check for the recommended and required versions of MPFR.
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5665 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5674 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5691 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5699 if ac_fn_c_try_compile "$LINENO"; then :
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701 $as_echo "yes" >&6; }
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5704 $as_echo "buggy but acceptable" >&6; }
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }; have_gmp=no
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 # Check for the MPC header version.
5715 if test x"$have_gmp" = xyes ; then
5716 # Check for the recommended and required versions of MPC.
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5718 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5726 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5734 if ac_fn_c_try_compile "$LINENO"; then :
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5742 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5750 if ac_fn_c_try_compile "$LINENO"; then :
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5752 $as_echo "yes" >&6; }
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5755 $as_echo "buggy but acceptable" >&6; }
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }; have_gmp=no
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 # Now check the MPFR library.
5766 if test x"$have_gmp" = xyes; then
5768 LIBS="$LIBS $gmplibs"
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5770 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5784 mpfr_atan2 (n, n, x, GMP_RNDN);
5785 mpfr_erfc (n, x, GMP_RNDN);
5786 mpfr_subnormalize (x, t, GMP_RNDN);
5790 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5791 mpc_cosh (c, c, MPC_RNDNN);
5792 mpc_pow (c, c, c, MPC_RNDNN);
5793 mpc_acosh (c, c, MPC_RNDNN);
5800 if ac_fn_c_try_link "$LINENO"; then :
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5802 $as_echo "yes" >&6; }
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }; have_gmp=no
5807 rm -f core conftest.err conftest.$ac_objext \
5808 conftest$ac_exeext conftest.$ac_ext
5812 CFLAGS="$saved_CFLAGS"
5814 # The library versions listed in the error message below should match
5815 # the HARD-minimums enforced above.
5816 if test x$have_gmp != xyes; then
5817 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5818 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5819 their locations. Source code for these libraries can be found at
5820 their respective hosting sites as well as at
5821 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5822 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5823 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5824 make sure that you have installed both the libraries and the header
5825 files. They may be located in separate packages." "$LINENO" 5
5829 # Flags needed for both GMP, MPFR and/or MPC.
5837 # Allow host libstdc++ to be specified for static linking with PPL.
5839 # Check whether --with-host-libstdcxx was given.
5840 if test "${with_host_libstdcxx+set}" = set; then :
5841 withval=$with_host_libstdcxx;
5845 case $with_host_libstdcxx in
5847 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5851 # Libraries to use for stage1 or when not bootstrapping.
5853 # Check whether --with-stage1-libs was given.
5854 if test "${with_stage1_libs+set}" = set; then :
5855 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5858 stage1_libs=$withval
5861 stage1_libs=$with_host_libstdcxx
5866 # Linker flags to use for stage1 or when not bootstrapping.
5868 # Check whether --with-stage1-ldflags was given.
5869 if test "${with_stage1_ldflags+set}" = set; then :
5870 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5873 stage1_ldflags=$withval
5877 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5878 # if supported. But if the user explicitly specified the libraries to use,
5879 # trust that they are doing what they want.
5880 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5881 stage1_ldflags="-static-libstdc++ -static-libgcc"
5887 # Libraries to use for stage2 and later builds. This defaults to the
5888 # argument passed to --with-host-libstdcxx.
5890 # Check whether --with-boot-libs was given.
5891 if test "${with_boot_libs+set}" = set; then :
5892 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5895 poststage1_libs=$withval
5898 poststage1_libs=$with_host_libstdcxx
5903 # Linker flags to use for stage2 and later builds.
5905 # Check whether --with-boot-ldflags was given.
5906 if test "${with_boot_ldflags+set}" = set; then :
5907 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5910 poststage1_ldflags=$withval
5914 # In stages 2 and 3, default to linking libstdc++ and libgcc
5915 # statically. But if the user explicitly specified the libraries to
5916 # use, trust that they are doing what they want.
5917 if test "$poststage1_libs" = ""; then
5918 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5924 # GCC GRAPHITE dependency ISL.
5925 # Basic setup is inlined here, actual checks are in config/isl.m4
5928 # Check whether --with-isl was given.
5929 if test "${with_isl+set}" = set; then :
5934 # Treat --without-isl as a request to disable
5935 # GRAPHITE support and skip all following checks.
5936 if test "x$with_isl" != "xno"; then
5940 # Check whether --with-isl-include was given.
5941 if test "${with_isl_include+set}" = set; then :
5942 withval=$with_isl_include;
5946 # Check whether --with-isl-lib was given.
5947 if test "${with_isl_lib+set}" = set; then :
5948 withval=$with_isl_lib;
5952 # Check whether --enable-isl-version-check was given.
5953 if test "${enable_isl_version_check+set}" = set; then :
5954 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5956 ENABLE_ISL_CHECK=yes
5960 # Initialize isllibs and islinc.
5969 isllibs="-L$with_isl/lib"
5970 islinc="-I$with_isl/include"
5973 if test "x${with_isl_include}" != x ; then
5974 islinc="-I$with_isl_include"
5976 if test "x${with_isl_lib}" != x; then
5977 isllibs="-L$with_isl_lib"
5979 if test "x${islinc}" = x && test "x${isllibs}" = x \
5980 && test -d ${srcdir}/isl; then
5981 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5982 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5985 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5988 isllibs="${isllibs} -lisl"
5992 if test "${ENABLE_ISL_CHECK}" = yes ; then
5993 _isl_saved_CFLAGS=$CFLAGS
5994 _isl_saved_LDFLAGS=$LDFLAGS
5995 _isl_saved_LIBS=$LIBS
5997 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5998 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5999 LIBS="${_isl_saved_LIBS} -lisl"
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
6002 $as_echo_n "checking for compatible ISL... " >&6; }
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6005 #include <isl/val.h>
6014 if ac_fn_c_try_link "$LINENO"; then :
6019 rm -f core conftest.err conftest.$ac_objext \
6020 conftest$ac_exeext conftest.$ac_ext
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6022 $as_echo "$gcc_cv_isl" >&6; }
6024 CFLAGS=$_isl_saved_CFLAGS
6025 LDFLAGS=$_isl_saved_LDFLAGS
6026 LIBS=$_isl_saved_LIBS
6034 if test "x${with_isl}" = xno; then
6035 graphite_requested=no
6036 elif test "x${with_isl}" != x \
6037 || test "x${with_isl_include}" != x \
6038 || test "x${with_isl_lib}" != x ; then
6039 graphite_requested=yes
6041 graphite_requested=no
6046 if test "${gcc_cv_isl}" = no ; then
6051 if test "${graphite_requested}" = yes \
6052 && test "x${isllibs}" = x \
6053 && test "x${islinc}" = x ; then
6055 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6061 # If the ISL check failed, disable builds of in-tree variant of ISL
6062 if test "x$with_isl" = xno ||
6063 test "x$gcc_cv_isl" = xno; then
6064 noconfigdirs="$noconfigdirs isl"
6071 # Check for LTO support.
6072 # Check whether --enable-lto was given.
6073 if test "${enable_lto+set}" = set; then :
6074 enableval=$enable_lto; enable_lto=$enableval
6076 enable_lto=yes; default_enable_lto=yes
6085 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6086 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6087 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6096 if test $target_elf = yes; then :
6097 # ELF platforms build the lto-plugin always.
6098 build_lto_plugin=yes
6101 if test x"$default_enable_lto" = x"yes" ; then
6103 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6104 # On other non-ELF platforms, LTO has yet to be validated.
6108 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6109 # It would also be nice to check the binutils support, but we don't
6110 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6111 # warn during gcc/ subconfigure; unless you're bootstrapping with
6112 # -flto it won't be needed until after installation anyway.
6114 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6115 *) if test x"$enable_lto" = x"yes"; then
6116 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6121 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6122 # Build it unless LTO was explicitly disabled.
6124 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6131 # Check whether --enable-linker-plugin-configure-flags was given.
6132 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6133 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6135 extra_linker_plugin_configure_flags=
6139 # Check whether --enable-linker-plugin-flags was given.
6140 if test "${enable_linker_plugin_flags+set}" = set; then :
6141 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6143 extra_linker_plugin_flags=
6149 # By default, C and C++ are the only stage 1 languages.
6150 stage1_languages=,c,
6152 # Target libraries that we bootstrap.
6153 bootstrap_target_libs=,target-libgcc,
6155 # Figure out what language subdirectories are present.
6156 # Look if the user specified --enable-languages="..."; if not, use
6157 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6159 # NB: embedded tabs in this IF block -- do not untabify
6160 if test -d ${srcdir}/gcc; then
6161 if test x"${enable_languages+set}" != xset; then
6162 if test x"${LANGUAGES+set}" = xset; then
6163 enable_languages="${LANGUAGES}"
6164 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6166 enable_languages=all
6169 if test x"${enable_languages}" = x ||
6170 test x"${enable_languages}" = xyes;
6172 echo configure.in: --enable-languages needs at least one language argument 1>&2
6176 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6178 # 'f95' is the old name for the 'fortran' language. We issue a warning
6179 # and make the substitution.
6180 case ,${enable_languages}, in
6182 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6183 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6187 # If bootstrapping, C++ must be enabled.
6188 case ",$enable_languages,:$enable_bootstrap" in
6191 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6192 enable_languages="${enable_languages},c++"
6194 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6199 # First scan to see if an enabled language requires some other language.
6200 # We assume that a given config-lang.in will list all the language
6201 # front ends it requires, even if some are required indirectly.
6202 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6203 case ${lang_frag} in
6205 # The odd quoting in the next line works around
6206 # an apparent bug in bash 1.12 on linux.
6207 ${srcdir}/gcc/[*]/config-lang.in) ;;
6209 # From the config-lang.in, get $language, $lang_requires, and
6210 # $lang_requires_boot_languages.
6213 lang_requires_boot_languages=
6215 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6216 case ,${enable_languages}, in
6220 echo " \`$other' language required by \`$language'; enabling" 1>&2
6221 enable_languages="${enable_languages},${other}"
6225 for other in ${lang_requires_boot_languages} ; do
6226 if test "$other" != "c"; then
6227 case ,${enable_stage1_languages}, in
6231 case ,${enable_languages}, in
6233 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6234 enable_stage1_languages="$enable_stage1_languages,${other}"
6245 new_enable_languages=,c,
6247 # If LTO is enabled, add the LTO front end.
6248 if test "$enable_lto" = "yes" ; then
6249 case ,${enable_languages}, in
6251 *) enable_languages="${enable_languages},lto" ;;
6253 if test "${build_lto_plugin}" = "yes" ; then
6254 configdirs="$configdirs lto-plugin"
6258 # If we're building an offloading compiler, add the LTO front end.
6259 if test x"$enable_as_accelerator_for" != x ; then
6260 case ,${enable_languages}, in
6262 *) enable_languages="${enable_languages},lto" ;;
6266 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6267 potential_languages=,c,
6269 enabled_target_libs=
6270 disabled_target_libs=
6272 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6273 case ${lang_frag} in
6275 # The odd quoting in the next line works around
6276 # an apparent bug in bash 1.12 on linux.
6277 ${srcdir}/gcc/[*]/config-lang.in) ;;
6279 # From the config-lang.in, get $language, $target_libs,
6280 # $lang_dirs, $boot_language, and $build_by_default
6286 build_by_default=yes
6288 if test x${language} = x; then
6289 echo "${lang_frag} doesn't set \$language." 1>&2
6293 if test "$language" = "c++"; then
6298 case ,${enable_languages}, in
6300 # Language was explicitly selected; include it
6301 # unless it is C, which is enabled by default.
6302 if test "$language" != "c"; then
6307 # 'all' was selected, select it if it is a default language
6308 if test "$language" != "c"; then
6309 add_this_lang=${build_by_default}
6314 # Disable languages that need other directories if these aren't available.
6315 for i in $subdir_requires; do
6316 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6317 case ,${enable_languages}, in
6319 # Specifically requested language; tell them.
6320 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6324 add_this_lang=unsupported
6329 # Disable Ada if no preexisting GNAT is available.
6330 case ,${enable_languages},:${language}:${have_gnat} in
6331 *,${language},*:ada:no)
6332 # Specifically requested language; tell them.
6333 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6337 add_this_lang=unsupported
6341 # Disable a language that is unsupported by the target.
6342 case " $unsupported_languages " in
6344 add_this_lang=unsupported
6348 case $add_this_lang in
6350 # Remove language-dependent dirs.
6351 disabled_target_libs="$disabled_target_libs $target_libs"
6352 noconfigdirs="$noconfigdirs $lang_dirs"
6355 # Remove language-dependent dirs; still show language as supported.
6356 disabled_target_libs="$disabled_target_libs $target_libs"
6357 noconfigdirs="$noconfigdirs $lang_dirs"
6358 potential_languages="${potential_languages}${language},"
6361 new_enable_languages="${new_enable_languages}${language},"
6362 potential_languages="${potential_languages}${language},"
6363 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6364 enabled_target_libs="$enabled_target_libs $target_libs"
6365 case "${boot_language}:,$enable_stage1_languages," in
6366 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6367 # Add to (comma-separated) list of stage 1 languages.
6368 case ",$stage1_languages," in
6369 *,$language,* | ,yes, | ,all,) ;;
6370 *) stage1_languages="${stage1_languages}${language}," ;;
6372 # We need to bootstrap any supporting libraries.
6373 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6382 # Add target libraries which are only needed for disabled languages
6384 if test -n "$disabled_target_libs"; then
6385 for dir in $disabled_target_libs; do
6386 case " $enabled_target_libs " in
6388 *) noconfigdirs="$noconfigdirs $dir" ;;
6393 # Check whether --enable-stage1-languages was given.
6394 if test "${enable_stage1_languages+set}" = set; then :
6395 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6397 # Set it to something that will have no effect in the loop below
6398 enable_stage1_languages=c ;;
6400 enable_stage1_languages=`echo $new_enable_languages | \
6401 sed -e "s/^,//" -e "s/,$//" ` ;;
6403 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6404 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6407 # Add "good" languages from enable_stage1_languages to stage1_languages,
6408 # while "bad" languages go in missing_languages. Leave no duplicates.
6409 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6410 case $potential_languages in
6412 case $stage1_languages in
6414 *) stage1_languages="$stage1_languages$i," ;;
6417 case $missing_languages in
6419 *) missing_languages="$missing_languages$i," ;;
6426 # Remove leading/trailing commas that were added for simplicity
6427 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6428 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6429 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6430 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6432 if test "x$missing_languages" != x; then
6434 The following requested languages could not be built: ${missing_languages}
6435 Supported languages are: ${potential_languages}" "$LINENO" 5
6437 if test "x$new_enable_languages" != "x$enable_languages"; then
6438 echo The following languages will be built: ${new_enable_languages}
6439 enable_languages="$new_enable_languages"
6443 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6446 # Handle --disable-<component> generically.
6447 for dir in $configdirs $build_configdirs $target_configdirs ; do
6448 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6449 varname=`echo $dirname | sed -e s/+/_/g`
6450 if eval test x\${enable_${varname}} "=" xno ; then
6451 noconfigdirs="$noconfigdirs $dir"
6455 # Check for Boehm's garbage collector
6456 # Check whether --enable-objc-gc was given.
6457 if test "${enable_objc_gc+set}" = set; then :
6458 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6459 *,objc,*:*:yes:*target-boehm-gc*)
6460 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6466 # Make sure we only build Boehm's garbage collector if required.
6467 case ,${enable_languages},:${enable_objc_gc} in
6469 # Keep target-boehm-gc if requested for Objective-C.
6472 # Otherwise remove target-boehm-gc depending on target-libjava.
6473 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6474 noconfigdirs="$noconfigdirs target-boehm-gc"
6479 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6480 case ,${enable_languages}, in
6482 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6483 case "${noconfigdirs}" in
6484 *target-libstdc++-v3*)
6485 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6491 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6495 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6496 # $build_configdirs and $target_configdirs.
6497 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6500 for dir in . $skipdirs $noconfigdirs ; do
6501 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6502 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6503 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6504 if test -r $srcdir/$dirname/configure ; then
6505 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6508 notsupp="$notsupp $dir"
6512 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6513 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6514 if test -r $srcdir/$dirname/configure ; then
6515 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6518 notsupp="$notsupp $dir"
6522 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6523 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6524 if test -r $srcdir/$dirname/configure ; then
6525 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6528 notsupp="$notsupp $dir"
6534 # Quietly strip out all directories which aren't configurable in this tree.
6535 # This relies on all configurable subdirectories being autoconfiscated, which
6537 build_configdirs_all="$build_configdirs"
6539 for i in ${build_configdirs_all} ; do
6540 j=`echo $i | sed -e s/build-//g`
6541 if test -f ${srcdir}/$j/configure ; then
6542 build_configdirs="${build_configdirs} $i"
6546 configdirs_all="$configdirs"
6548 for i in ${configdirs_all} ; do
6549 if test -f ${srcdir}/$i/configure ; then
6550 configdirs="${configdirs} $i"
6554 target_configdirs_all="$target_configdirs"
6556 for i in ${target_configdirs_all} ; do
6557 j=`echo $i | sed -e s/target-//g`
6558 if test -f ${srcdir}/$j/configure ; then
6559 target_configdirs="${target_configdirs} $i"
6563 # Exclude target-zlib if target-libjava isn't built.
6564 case ${target_configdirs} in
6568 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6572 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6573 # so we have to add it after the preceding checks.
6574 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6576 case " $configdirs " in
6578 # If we can build libiberty, we can also build libiberty-linker-plugin.
6579 configdirs="$configdirs libiberty-linker-plugin"
6580 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6581 --with-libiberty=../libiberty-linker-plugin";;
6583 as_fn_error "libiberty missing" "$LINENO" 5;;
6587 # Sometimes we have special requirements for the host libiberty.
6588 extra_host_libiberty_configure_flags=
6589 extra_host_zlib_configure_flags=
6590 case " $configdirs " in
6591 *" lto-plugin "* | *" libcc1 "*)
6592 # When these are to be built as shared libraries, the same applies to
6594 extra_host_libiberty_configure_flags=--enable-shared
6597 # When bfd is to be built as a shared library, the same applies to
6599 if test "$enable_shared" = "yes"; then
6600 extra_host_zlib_configure_flags=--enable-host-shared
6607 # Produce a warning message for the subdirs we can't configure.
6608 # This isn't especially interesting in the Cygnus tree, but in the individual
6609 # FSF releases, it's important to let people know when their machine isn't
6610 # supported by the one or two programs in a package.
6612 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6613 # If $appdirs is non-empty, at least one of those directories must still
6614 # be configured, or we error out. (E.g., if the gas release supports a
6615 # specified target in some subdirs but not the gas subdir, we shouldn't
6616 # pretend that all is well.)
6617 if test -n "$appdirs" ; then
6618 for dir in $appdirs ; do
6619 if test -r $dir/Makefile.in ; then
6620 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6624 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6630 if test -n "$appdirs" ; then
6631 echo "*** This configuration is not supported by this package." 1>&2
6635 # Okay, some application will build, or we don't care to check. Still
6636 # notify of subdirs not getting built.
6637 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6638 echo " ${notsupp}" 1>&2
6639 echo " (Any other directories should still work fine.)" 1>&2
6647 # To find our prefix, in gcc_cv_tool_prefix.
6649 # The user is always right.
6650 if test "${PATH_SEPARATOR+set}" != set; then
6651 echo "#! /bin/sh" >conf$$.sh
6652 echo "exit 0" >>conf$$.sh
6654 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6664 if test "x$exec_prefix" = xNONE; then
6665 if test "x$prefix" = xNONE; then
6666 gcc_cv_tool_prefix=$ac_default_prefix
6668 gcc_cv_tool_prefix=$prefix
6671 gcc_cv_tool_prefix=$exec_prefix
6674 # If there is no compiler in the tree, use the PATH only. In any
6675 # case, if there is no compiler in the tree nobody should use
6676 # AS_FOR_TARGET and LD_FOR_TARGET.
6677 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6678 gcc_version=`cat $srcdir/gcc/BASE-VER`
6679 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6680 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6681 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6682 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6683 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6684 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6689 if test x$build = x$target && test -n "$md_exec_prefix"; then
6690 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6698 # Check whether --with-build-sysroot was given.
6699 if test "${with_build_sysroot+set}" = set; then :
6700 withval=$with_build_sysroot; if test x"$withval" != x ; then
6701 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6704 SYSROOT_CFLAGS_FOR_TARGET=
6710 # Check whether --with-debug-prefix-map was given.
6711 if test "${with_debug_prefix_map+set}" = set; then :
6712 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6713 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6714 for debug_map in $withval; do
6715 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6719 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6724 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6725 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6726 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6727 # We want to ensure that TARGET libraries (which we know are built with
6728 # gcc) are built with "-O2 -g", so include those options when setting
6729 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6730 if test "x$CFLAGS_FOR_TARGET" = x; then
6731 if test "x${is_cross_compiler}" = xyes; then
6732 CFLAGS_FOR_TARGET="-g -O2"
6734 CFLAGS_FOR_TARGET=$CFLAGS
6737 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6740 *" -g "* | *" -g3 "*) ;;
6741 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6747 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6748 if test "x${is_cross_compiler}" = xyes; then
6749 CXXFLAGS_FOR_TARGET="-g -O2"
6751 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6752 case " $CXXFLAGS " in
6754 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6756 case " $CXXFLAGS " in
6757 *" -g "* | *" -g3 "*) ;;
6758 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6766 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6767 # the named directory are copied to $(tooldir)/sys-include.
6768 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6769 if test x${is_cross_compiler} = xno ; then
6770 echo 1>&2 '***' --with-headers is only supported when cross compiling
6773 if test x"${with_headers}" != xyes ; then
6774 x=${gcc_cv_tool_prefix}
6775 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6779 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6780 # the name directories are copied to $(tooldir)/lib. Multiple directories
6782 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6783 if test x${is_cross_compiler} = xno ; then
6784 echo 1>&2 '***' --with-libs is only supported when cross compiling
6787 if test x"${with_libs}" != xyes ; then
6788 # Copy the libraries in reverse order, so that files in the first named
6789 # library override files in subsequent libraries.
6790 x=${gcc_cv_tool_prefix}
6791 for l in ${with_libs}; do
6792 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6797 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6799 # This is done by determining whether or not the appropriate directory
6800 # is available, and by checking whether or not specific configurations
6801 # have requested that this magic not happen.
6803 # The command line options always override the explicit settings in
6804 # configure.in, and the settings in configure.in override this magic.
6806 # If the default for a toolchain is to use GNU as and ld, and you don't
6807 # want to do that, then you should use the --without-gnu-as and
6808 # --without-gnu-ld options for the configure script. Similarly, if
6809 # the default is to use the included zlib and you don't want to do that,
6810 # you should use the --with-system-zlib option for the configure script.
6812 if test x${use_gnu_as} = x &&
6813 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6815 extra_host_args="$extra_host_args --with-gnu-as"
6818 if test x${use_gnu_ld} = x &&
6819 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6821 extra_host_args="$extra_host_args --with-gnu-ld"
6824 if test x${use_included_zlib} = x &&
6825 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6828 with_system_zlib=yes
6829 extra_host_args="$extra_host_args --with-system-zlib"
6832 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6833 # can detect this case.
6835 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6837 extra_host_args="$extra_host_args --with-newlib"
6840 # Handle ${copy_dirs}
6841 set fnord ${copy_dirs}
6843 while test $# != 0 ; do
6844 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6847 echo Copying $1 to $2
6849 # Use the install script to create the directory and all required
6850 # parent directories.
6851 if test -d $2 ; then
6855 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6858 # Copy the directory, assuming we have tar.
6859 # FIXME: Should we use B in the second tar? Not all systems support it.
6860 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6862 # It is the responsibility of the user to correctly adjust all
6863 # symlinks. If somebody can figure out how to handle them correctly
6864 # here, feel free to add the code.
6871 # Determine a target-dependent exec_prefix that the installed
6872 # gcc will search in. Keep this list sorted by triplet, with
6873 # the *-*-osname triplets last.
6876 i[34567]86-pc-msdosdjgpp*)
6877 md_exec_prefix=/dev/env/DJDIR/bin
6882 md_exec_prefix=/usr/ccs/bin
6886 extra_arflags_for_target=
6887 extra_nmflags_for_target=
6888 extra_ranlibflags_for_target=
6889 target_makefile_frag=/dev/null
6892 target_makefile_frag="config/mt-spu"
6894 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6895 target_makefile_frag="config/mt-sde"
6897 mipsisa*-*-elfoabi*)
6898 target_makefile_frag="config/mt-mips-elfoabi"
6900 mips*-*-*linux* | mips*-*-gnu*)
6901 target_makefile_frag="config/mt-mips-gnu"
6904 target_makefile_frag="config/mt-nios2-elf"
6906 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6907 target_makefile_frag="config/mt-gnu"
6909 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6910 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6911 # commands to handle both 32-bit and 64-bit objects. These flags are
6912 # harmless if we're using GNU nm or ar.
6913 extra_arflags_for_target=" -X32_64"
6914 extra_nmflags_for_target=" -B -X32_64"
6918 alphaieee_frag=/dev/null
6921 # This just makes sure to use the -mieee option to build target libs.
6922 # This should probably be set individually by each library.
6923 alphaieee_frag="config/mt-alphaieee"
6927 # If --enable-target-optspace always use -Os instead of -O2 to build
6928 # the target libraries, similarly if it is not specified, use -Os
6929 # on selected platforms.
6930 ospace_frag=/dev/null
6931 case "${enable_target_optspace}:${target}" in
6933 ospace_frag="config/mt-ospace"
6936 ospace_frag="config/mt-d30v"
6938 :m32r-* | :d10v-* | :fr30-*)
6939 ospace_frag="config/mt-ospace"
6944 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6948 # Some systems (e.g., one of the i386-aix systems the gas testers are
6949 # using) don't handle "\$" correctly, so don't use it here.
6950 tooldir='${exec_prefix}'/${target_noncanonical}
6951 build_tooldir=${tooldir}
6953 # Create a .gdbinit file which runs the one in srcdir
6954 # and tells GDB to look there for source files.
6956 if test -r ${srcdir}/.gdbinit ; then
6959 *) cat > ./.gdbinit <<EOF
6963 source ${srcdir}/.gdbinit
6969 # Make sure that the compiler is able to generate an executable. If it
6970 # can't, we are probably in trouble. We don't care whether we can run the
6971 # executable--we might be using a cross compiler--we only care whether it
6972 # can be created. At this point the main configure script has set CC.
6974 echo "int main () { return 0; }" > conftest.c
6975 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6976 if test $? = 0 ; then
6977 if test -s conftest || test -s conftest.exe ; then
6983 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6984 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6991 # Decide which environment variable is used to find dynamic libraries.
6993 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6994 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6995 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6996 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6999 # On systems where the dynamic library environment variable is PATH,
7000 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7001 # built executables to PATH.
7002 if test "$RPATH_ENVVAR" = PATH; then
7003 GCC_SHLIB_SUBDIR=/shlib
7008 # Adjust the toplevel makefile according to whether bootstrap was selected.
7009 case $enable_bootstrap in
7011 bootstrap_suffix=bootstrap
7012 BUILD_CONFIG=bootstrap-debug
7015 bootstrap_suffix=no-bootstrap
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7021 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7024 # Check whether --with-build-config was given.
7025 if test "${with_build_config+set}" = set; then :
7026 withval=$with_build_config; case $with_build_config in
7027 yes) with_build_config= ;;
7028 no) with_build_config= BUILD_CONFIG= ;;
7033 if test "x${with_build_config}" != x; then
7034 BUILD_CONFIG=$with_build_config
7036 case $BUILD_CONFIG in
7038 if echo "int f (void) { return 0; }" > conftest.c &&
7039 ${CC} -c conftest.c &&
7040 mv conftest.o conftest.o.g0 &&
7041 ${CC} -c -g conftest.c &&
7042 mv conftest.o conftest.o.g &&
7043 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7048 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7053 $as_echo "$BUILD_CONFIG" >&6; }
7056 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7058 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7059 # Check whether --enable-vtable-verify was given.
7060 if test "${enable_vtable_verify+set}" = set; then :
7061 enableval=$enable_vtable_verify; case "$enableval" in
7062 yes) enable_vtable_verify=yes ;;
7063 no) enable_vtable_verify=no ;;
7064 *) enable_vtable_verify=no;;
7067 enable_vtable_verify=no
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7071 $as_echo "$enable_vtable_verify" >&6; }
7073 # Record target_configdirs and the configure arguments for target and
7074 # build configuration in Makefile.
7075 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7076 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7077 bootstrap_fixincludes=no
7079 # If we are building libgomp, bootstrap it.
7080 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7081 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7084 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7085 # or bootstrap-ubsan, bootstrap it.
7086 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7087 case "$BUILD_CONFIG" in
7088 *bootstrap-asan* | *bootstrap-ubsan* )
7089 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7090 bootstrap_fixincludes=yes
7095 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7096 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7097 test "$enable_vtable_verify" != no; then
7098 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7101 # If we are building libmpx, bootstrap it.
7102 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7103 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7106 # Determine whether gdb needs tk/tcl or not.
7107 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7108 # and in that case we want gdb to be built without tk. Ugh!
7109 # In fact I believe gdb is the *only* package directly dependent on tk,
7110 # so we should be able to put the 'maybe's in unconditionally and
7111 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7112 # 100% sure that that's safe though.
7114 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7115 case "$enable_gdbtk" in
7119 GDB_TK="${gdb_tk}" ;;
7121 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7122 # distro. Eventually someone will fix this and move Insight, nee
7123 # gdbtk to a separate directory.
7124 if test -d ${srcdir}/gdb/gdbtk ; then
7131 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7132 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7134 # Strip out unwanted targets.
7136 # While at that, we remove Makefiles if we were started for recursive
7137 # configuration, so that the top-level Makefile reconfigures them,
7138 # like we used to do when configure itself was recursive.
7140 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7141 # but now we're fixing up the Makefile ourselves with the additional
7142 # commands passed to AC_CONFIG_FILES. Use separate variables
7143 # extrasub-{build,host,target} not because there is any reason to split
7144 # the substitutions up that way, but only to remain below the limit of
7145 # 99 commands in a script, for HP-UX sed.
7146 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7148 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7149 yes:yes:*\ gold\ *:*,c++,*) ;;
7150 yes:yes:*\ gold\ *:*)
7151 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7156 for module in ${build_configdirs} ; do
7157 if test -z "${no_recursion}" \
7158 && test -f ${build_subdir}/${module}/Makefile; then
7159 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7160 rm -f ${build_subdir}/${module}/Makefile
7162 extrasub_build="$extrasub_build
7163 /^@if build-$module\$/d
7164 /^@endif build-$module\$/d
7165 /^@if build-$module-$bootstrap_suffix\$/d
7166 /^@endif build-$module-$bootstrap_suffix\$/d"
7169 for module in ${configdirs} ; do
7170 if test -z "${no_recursion}"; then
7171 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7172 if test -f ${file}; then
7173 echo 1>&2 "*** removing ${file} to force reconfigure"
7178 case ${module},${bootstrap_fixincludes} in
7179 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7180 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7182 extrasub_host="$extrasub_host
7184 /^@endif $module\$/d
7185 /^@if $module-$host_bootstrap_suffix\$/d
7186 /^@endif $module-$host_bootstrap_suffix\$/d"
7189 for module in ${target_configdirs} ; do
7190 if test -z "${no_recursion}" \
7191 && test -f ${target_subdir}/${module}/Makefile; then
7192 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7193 rm -f ${target_subdir}/${module}/Makefile
7196 # We only bootstrap target libraries listed in bootstrap_target_libs.
7197 case $bootstrap_target_libs in
7198 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7199 *) target_bootstrap_suffix=no-bootstrap ;;
7202 extrasub_target="$extrasub_target
7203 /^@if target-$module\$/d
7204 /^@endif target-$module\$/d
7205 /^@if target-$module-$target_bootstrap_suffix\$/d
7206 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7209 # Do the final fixup along with target modules.
7210 extrasub_target="$extrasub_target
7211 /^@if /,/^@endif /d"
7213 # Create the serialization dependencies. This uses a temporary file.
7215 # Check whether --enable-serial-configure was given.
7216 if test "${enable_serial_configure+set}" = set; then :
7217 enableval=$enable_serial_configure;
7221 case ${enable_serial_configure} in
7223 enable_serial_build_configure=yes
7224 enable_serial_host_configure=yes
7225 enable_serial_target_configure=yes
7229 # These force 'configure's to be done one at a time, to avoid problems
7230 # with contention over a shared config.cache.
7232 echo '# serdep.tmp' > serdep.tmp
7234 test "x${enable_serial_build_configure}" = xyes &&
7235 for item in ${build_configdirs} ; do
7238 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7243 test "x${enable_serial_host_configure}" = xyes &&
7244 for item in ${configdirs} ; do
7247 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7252 test "x${enable_serial_target_configure}" = xyes &&
7253 for item in ${target_configdirs} ; do
7256 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7260 serialization_dependencies=serdep.tmp
7263 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7264 # target, nonopt, and variable assignments. These are the ones we
7265 # might not want to pass down to subconfigures. The exception being
7266 # --cache-file=/dev/null, which is used to turn off the use of cache
7267 # files altogether, and which should be passed on to subconfigures.
7268 # Also strip program-prefix, program-suffix, and program-transform-name,
7269 # so that we can pass down a consistent program-transform-name.
7274 eval "set -- $ac_configure_args"
7277 if test X"$skip_next" = X"yes"; then
7281 if test X"$keep_next" = X"yes"; then
7284 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7286 baseargs="$baseargs '$ac_arg'"
7287 tbaseargs="$tbaseargs '$ac_arg'"
7292 # Handle separated arguments. Based on the logic generated by
7295 *=* | --config-cache | -C | -disable-* | --disable-* \
7296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7298 | -with-* | --with-* | -without-* | --without-* | --x)
7312 --with-* | --without-*)
7313 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7317 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7320 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7329 mpc | mpfr | gmp | isl)
7330 # If we're processing --with-$lib, --with-$lib-include or
7331 # --with-$lib-lib, for one of the libs above, and target is
7332 # different from host, don't pass the current argument to any
7333 # target library's configure.
7334 if test x$is_cross_compiler = xyes; then
7343 --cache-file=/dev/null | \
7344 -cache-file=/dev/null )
7345 # Handled here to avoid the test to skip args below.
7346 baseargs="$baseargs '$ac_arg'"
7347 tbaseargs="$tbaseargs '$ac_arg'"
7348 # Assert: $separate_arg should always be no.
7349 keep_next=$separate_arg
7365 -program-prefix* | \
7366 -program-suffix* | \
7367 -program-transform-name* )
7368 skip_next=$separate_arg
7372 # An option. Add it.
7375 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7377 baseargs="$baseargs '$ac_arg'"
7378 if test X"$skip_targ" = Xno; then
7379 tbaseargs="$tbaseargs '$ac_arg'"
7381 keep_next=$separate_arg
7384 # Either a variable assignment, or a nonopt (triplet). Don't
7385 # pass it down; let the Makefile handle this.
7390 # Remove the initial space we just introduced and, as these will be
7391 # expanded by make, quote '$'.
7392 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7394 # Add in --program-transform-name, after --program-prefix and
7395 # --program-suffix have been applied to it. Autoconf has already
7396 # doubled dollar signs and backslashes in program_transform_name; we want
7397 # the backslashes un-doubled, and then the entire thing wrapped in single
7398 # quotes, because this will be expanded first by make and then by the shell.
7399 # Also, because we want to override the logic in subdir configure scripts to
7400 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7401 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7402 ${program_transform_name}
7404 gcc_transform_name=`cat conftestsed.out`
7405 rm -f conftestsed.out
7406 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7407 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7408 if test "$silent" = yes; then
7409 baseargs="$baseargs --silent"
7410 tbaseargs="$tbaseargs --silent"
7412 baseargs="$baseargs --disable-option-checking"
7413 tbaseargs="$tbaseargs --disable-option-checking"
7415 # Record and document user additions to sub configure arguments.
7420 # For the build-side libraries, we just need to pretend we're native,
7421 # and not use the same cache file. Multilibs are neither needed nor
7422 # desired. We can't even use the same cache file for all build-side
7423 # libraries, as they're compiled differently; some with C, some with
7424 # C++ or with different feature-enabling options.
7425 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7427 # For host modules, accept cache file option, or specification as blank.
7428 case "${cache_file}" in
7430 cache_file_option="" ;;
7431 /* | [A-Za-z]:[\\/]* ) # absolute path
7432 cache_file_option="--cache-file=${cache_file}" ;;
7434 cache_file_option="--cache-file=../${cache_file}" ;;
7437 # Host dirs don't like to share a cache file either, horribly enough.
7438 # This seems to be due to autoconf 2.5x stupidity.
7439 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7441 target_configargs="$target_configargs ${tbaseargs}"
7443 # Passing a --with-cross-host argument lets the target libraries know
7444 # whether they are being built with a cross-compiler or being built
7445 # native. However, it would be better to use other mechanisms to make the
7446 # sorts of decisions they want to make on this basis. Please consider
7447 # this option to be deprecated. FIXME.
7448 if test x${is_cross_compiler} = xyes ; then
7449 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7452 # Special user-friendly check for native x86_64-linux build, if
7453 # multilib is not explicitly enabled.
7454 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7455 x86_64-*linux*:yes:$build:$build:)
7456 # Make sure we have a developement environment that handles 32-bit
7458 echo "int main () { return 0; }" > conftest.c
7459 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7460 if test $? = 0 ; then
7461 if test -s conftest || test -s conftest.exe ; then
7466 if test x${dev64} != xyes ; then
7467 as_fn_error "I suspect your system does not have 32-bit developement 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
7472 # Default to --enable-multilib.
7473 if test x${enable_multilib} = x ; then
7474 target_configargs="--enable-multilib ${target_configargs}"
7477 # Pass --with-newlib if appropriate. Note that target_configdirs has
7478 # changed from the earlier setting of with_newlib.
7479 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7480 target_configargs="--with-newlib ${target_configargs}"
7483 # Different target subdirs use different values of certain variables
7484 # (notably CXX). Worse, multilibs use *lots* of different values.
7485 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7486 # it doesn't automatically accept command-line overrides of them.
7487 # This means it's not safe for target subdirs to share a cache file,
7488 # which is disgusting, but there you have it. Hopefully this can be
7489 # fixed in future. It's still worthwhile to use a cache file for each
7490 # directory. I think.
7492 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7493 # We need to pass --target, as newer autoconf's requires consistency
7494 # for target_alias and gcc doesn't manage it consistently.
7495 target_configargs="--cache-file=./config.cache ${target_configargs}"
7498 case " $target_configdirs " in
7500 case " $target_configargs " in
7501 *" --with-newlib "*)
7504 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7508 # If we're not building GCC, don't discard standard headers.
7509 if test -d ${srcdir}/gcc; then
7510 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7512 if test "${build}" != "${host}"; then
7513 # On Canadian crosses, CC_FOR_TARGET will have already been set
7514 # by `configure', so we won't have an opportunity to add -Bgcc/
7515 # to it. This is right: we don't want to search that directory
7516 # for binaries, but we want the header files in there, so add
7518 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7520 # Someone might think of using the pre-installed headers on
7521 # Canadian crosses, in case the installed compiler is not fully
7522 # compatible with the compiler being built. In this case, it
7523 # would be better to flag an error than risking having
7524 # incompatible object files being constructed. We can't
7525 # guarantee that an error will be flagged, but let's hope the
7526 # compiler will do it, when presented with incompatible header
7531 case "${target}-${is_cross_compiler}" in
7532 i[3456789]86-*-linux*-no)
7533 # Here host == target, so we don't need to build gcc,
7534 # so we don't want to discard standard headers.
7535 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7538 # If we're building newlib, use its generic headers last, but search
7539 # for any libc-related directories first (so make it the last -B
7541 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7543 # If we're building libgloss, find the startup file, simulator library
7544 # and linker script.
7545 case " $target_configdirs " in
7547 # Look for startup file, simulator library and maybe linker script.
7548 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7549 # Look for libnosys.a in case the target needs it.
7550 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7551 # Most targets have the linker script in the source directory.
7552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7563 x86_64-*mingw* | *-w64-mingw*)
7564 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7565 # however, use a symlink named 'mingw' in ${prefix} .
7566 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7569 # MinGW can't be handled as Cygwin above since it does not use newlib.
7570 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'
7574 # Allow the user to override the flags for
7575 # our build compiler if desired.
7576 if test x"${build}" = x"${host}" ; then
7577 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7578 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7579 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7582 # On Canadian crosses, we'll be searching the right directories for
7583 # the previously-installed cross compiler, so don't bother to add
7584 # flags for directories within the install tree of the compiler
7585 # being built; programs in there won't even run.
7586 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7587 # Search for pre-installed headers if nothing else fits.
7588 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7591 if test "x${use_gnu_ld}" = x &&
7592 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7593 # Arrange for us to find uninstalled linker scripts.
7594 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7597 # Search for other target-specific linker scripts and such.
7600 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7604 # Makefile fragments.
7605 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7607 eval fragval=\$$frag
7608 if test $fragval != /dev/null; then
7609 eval $frag=${srcdir}/$fragval
7617 # Miscellanea: directories, flags, etc.
7626 # Build module lists & subconfigure args.
7630 # Host module lists & subconfigure args.
7635 # Target module lists & subconfigure args.
7657 # Generate default definitions for YACC, M4, LEX and other programs that run
7658 # on the build machine. These are used if the Makefile can't locate these
7659 # programs in objdir.
7660 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7662 for ac_prog in 'bison -y' byacc yacc
7664 # Extract the first word of "$ac_prog", so it can be a program name with args.
7665 set dummy $ac_prog; ac_word=$2
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 $as_echo_n "checking for $ac_word... " >&6; }
7668 if test "${ac_cv_prog_YACC+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
7671 if test -n "$YACC"; then
7672 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7681 ac_cv_prog_YACC="$ac_prog"
7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 YACC=$ac_cv_prog_YACC
7692 if test -n "$YACC"; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7694 $as_echo "$YACC" >&6; }
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7701 test -n "$YACC" && break
7703 test -n "$YACC" || YACC="$MISSING bison -y"
7705 case " $build_configdirs " in
7706 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7709 for ac_prog in bison
7711 # Extract the first word of "$ac_prog", so it can be a program name with args.
7712 set dummy $ac_prog; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if test "${ac_cv_prog_BISON+set}" = set; then :
7716 $as_echo_n "(cached) " >&6
7718 if test -n "$BISON"; then
7719 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_prog_BISON="$ac_prog"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 BISON=$ac_cv_prog_BISON
7739 if test -n "$BISON"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7741 $as_echo "$BISON" >&6; }
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7748 test -n "$BISON" && break
7750 test -n "$BISON" || BISON="$MISSING bison"
7752 case " $build_configdirs " in
7753 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7756 for ac_prog in gm4 gnum4 m4
7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy $ac_prog; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if test "${ac_cv_prog_M4+set}" = set; then :
7763 $as_echo_n "(cached) " >&6
7765 if test -n "$M4"; then
7766 ac_cv_prog_M4="$M4" # Let the user override the test.
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_prog_M4="$ac_prog"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 if test -n "$M4"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7788 $as_echo "$M4" >&6; }
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7795 test -n "$M4" && break
7797 test -n "$M4" || M4="$MISSING m4"
7799 case " $build_configdirs " in
7800 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7803 for ac_prog in flex lex
7805 # Extract the first word of "$ac_prog", so it can be a program name with args.
7806 set dummy $ac_prog; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if test "${ac_cv_prog_LEX+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7812 if test -n "$LEX"; then
7813 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_prog_LEX="$ac_prog"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 if test -n "$LEX"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7835 $as_echo "$LEX" >&6; }
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7842 test -n "$LEX" && break
7844 test -n "$LEX" || LEX="$MISSING flex"
7846 case " $build_configdirs " in
7847 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7848 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7853 # Extract the first word of "$ac_prog", so it can be a program name with args.
7854 set dummy $ac_prog; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if test "${ac_cv_prog_FLEX+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7860 if test -n "$FLEX"; then
7861 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_prog_FLEX="$ac_prog"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 FLEX=$ac_cv_prog_FLEX
7881 if test -n "$FLEX"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7883 $as_echo "$FLEX" >&6; }
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7890 test -n "$FLEX" && break
7892 test -n "$FLEX" || FLEX="$MISSING flex"
7894 case " $build_configdirs " in
7895 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7898 for ac_prog in makeinfo
7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
7901 set dummy $ac_prog; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7907 if test -n "$MAKEINFO"; then
7908 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_prog_MAKEINFO="$ac_prog"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 MAKEINFO=$ac_cv_prog_MAKEINFO
7928 if test -n "$MAKEINFO"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7930 $as_echo "$MAKEINFO" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7937 test -n "$MAKEINFO" && break
7939 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7941 case " $build_configdirs " in
7942 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7945 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7946 # higher, else we use the "missing" dummy.
7947 if ${MAKEINFO} --version \
7948 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7951 MAKEINFO="$MISSING makeinfo"
7957 # FIXME: expect and dejagnu may become build tools?
7959 for ac_prog in expect
7961 # Extract the first word of "$ac_prog", so it can be a program name with args.
7962 set dummy $ac_prog; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7968 if test -n "$EXPECT"; then
7969 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_prog_EXPECT="$ac_prog"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 EXPECT=$ac_cv_prog_EXPECT
7989 if test -n "$EXPECT"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7991 $as_echo "$EXPECT" >&6; }
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7998 test -n "$EXPECT" && break
8000 test -n "$EXPECT" || EXPECT="expect"
8002 case " $configdirs " in
8004 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8008 for ac_prog in runtest
8010 # Extract the first word of "$ac_prog", so it can be a program name with args.
8011 set dummy $ac_prog; ac_word=$2
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 $as_echo_n "checking for $ac_word... " >&6; }
8014 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
8017 if test -n "$RUNTEST"; then
8018 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_prog_RUNTEST="$ac_prog"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 RUNTEST=$ac_cv_prog_RUNTEST
8038 if test -n "$RUNTEST"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8040 $as_echo "$RUNTEST" >&6; }
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8047 test -n "$RUNTEST" && break
8049 test -n "$RUNTEST" || RUNTEST="runtest"
8051 case " $configdirs " in
8053 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8060 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8061 ncn_target_tool_prefix=
8062 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8066 if test -n "$AR"; then
8068 elif test -n "$ac_cv_prog_AR"; then
8072 if test -n "$ac_cv_prog_AR"; then
8073 for ncn_progname in ar; do
8074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8075 set dummy ${ncn_progname}; ac_word=$2
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 $as_echo_n "checking for $ac_word... " >&6; }
8078 if test "${ac_cv_prog_AR+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8081 if test -n "$AR"; then
8082 ac_cv_prog_AR="$AR" # Let the user override the test.
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091 ac_cv_prog_AR="${ncn_progname}"
8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102 if test -n "$AR"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8104 $as_echo "$AR" >&6; }
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8114 for ncn_progname in ar; do
8115 if test -n "$ncn_tool_prefix"; then
8116 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8117 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 $as_echo_n "checking for $ac_word... " >&6; }
8120 if test "${ac_cv_prog_AR+set}" = set; then :
8121 $as_echo_n "(cached) " >&6
8123 if test -n "$AR"; then
8124 ac_cv_prog_AR="$AR" # Let the user override the test.
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8133 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 if test -n "$AR"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8146 $as_echo "$AR" >&6; }
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8154 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8156 set dummy ${ncn_progname}; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if test "${ac_cv_prog_AR+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8162 if test -n "$AR"; then
8163 ac_cv_prog_AR="$AR" # Let the user override the test.
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8172 ac_cv_prog_AR="${ncn_progname}"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183 if test -n "$AR"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8185 $as_echo "$AR" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8193 test -n "$ac_cv_prog_AR" && break
8196 if test -z "$ac_cv_prog_AR" ; then
8198 if test $build = $host ; then
8201 AR="${ncn_tool_prefix}$2"
8207 if test -n "$AS"; then
8209 elif test -n "$ac_cv_prog_AS"; then
8213 if test -n "$ac_cv_prog_AS"; then
8214 for ncn_progname in as; do
8215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8216 set dummy ${ncn_progname}; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if test "${ac_cv_prog_AS+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8222 if test -n "$AS"; then
8223 ac_cv_prog_AS="$AS" # Let the user override the test.
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_prog_AS="${ncn_progname}"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 if test -n "$AS"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8245 $as_echo "$AS" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8255 for ncn_progname in as; do
8256 if test -n "$ncn_tool_prefix"; then
8257 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8258 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if test "${ac_cv_prog_AS+set}" = set; then :
8262 $as_echo_n "(cached) " >&6
8264 if test -n "$AS"; then
8265 ac_cv_prog_AS="$AS" # Let the user override the test.
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 test -z "$as_dir" && as_dir=.
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8274 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 if test -n "$AS"; then
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8287 $as_echo "$AS" >&6; }
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8295 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8297 set dummy ${ncn_progname}; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if test "${ac_cv_prog_AS+set}" = set; then :
8301 $as_echo_n "(cached) " >&6
8303 if test -n "$AS"; then
8304 ac_cv_prog_AS="$AS" # Let the user override the test.
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_prog_AS="${ncn_progname}"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 if test -n "$AS"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8326 $as_echo "$AS" >&6; }
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8334 test -n "$ac_cv_prog_AS" && break
8337 if test -z "$ac_cv_prog_AS" ; then
8339 if test $build = $host ; then
8342 AS="${ncn_tool_prefix}$2"
8348 if test -n "$DLLTOOL"; then
8349 ac_cv_prog_DLLTOOL=$DLLTOOL
8350 elif test -n "$ac_cv_prog_DLLTOOL"; then
8351 DLLTOOL=$ac_cv_prog_DLLTOOL
8354 if test -n "$ac_cv_prog_DLLTOOL"; then
8355 for ncn_progname in dlltool; do
8356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8357 set dummy ${ncn_progname}; ac_word=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
8363 if test -n "$DLLTOOL"; then
8364 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373 ac_cv_prog_DLLTOOL="${ncn_progname}"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 DLLTOOL=$ac_cv_prog_DLLTOOL
8384 if test -n "$DLLTOOL"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8386 $as_echo "$DLLTOOL" >&6; }
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8396 for ncn_progname in dlltool; do
8397 if test -n "$ncn_tool_prefix"; then
8398 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8399 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8401 $as_echo_n "checking for $ac_word... " >&6; }
8402 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8403 $as_echo_n "(cached) " >&6
8405 if test -n "$DLLTOOL"; then
8406 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 DLLTOOL=$ac_cv_prog_DLLTOOL
8426 if test -n "$DLLTOOL"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8428 $as_echo "$DLLTOOL" >&6; }
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8436 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8438 set dummy ${ncn_progname}; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
8444 if test -n "$DLLTOOL"; then
8445 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8454 ac_cv_prog_DLLTOOL="${ncn_progname}"
8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 DLLTOOL=$ac_cv_prog_DLLTOOL
8465 if test -n "$DLLTOOL"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8467 $as_echo "$DLLTOOL" >&6; }
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8475 test -n "$ac_cv_prog_DLLTOOL" && break
8478 if test -z "$ac_cv_prog_DLLTOOL" ; then
8480 if test $build = $host ; then
8483 DLLTOOL="${ncn_tool_prefix}$2"
8489 if test -n "$LD"; then
8491 elif test -n "$ac_cv_prog_LD"; then
8495 if test -n "$ac_cv_prog_LD"; then
8496 for ncn_progname in ld; do
8497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8498 set dummy ${ncn_progname}; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if test "${ac_cv_prog_LD+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8504 if test -n "$LD"; then
8505 ac_cv_prog_LD="$LD" # Let the user override the test.
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514 ac_cv_prog_LD="${ncn_progname}"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 if test -n "$LD"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8527 $as_echo "$LD" >&6; }
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8537 for ncn_progname in ld; do
8538 if test -n "$ncn_tool_prefix"; then
8539 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8540 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if test "${ac_cv_prog_LD+set}" = set; then :
8544 $as_echo_n "(cached) " >&6
8546 if test -n "$LD"; then
8547 ac_cv_prog_LD="$LD" # Let the user override the test.
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 if test -n "$LD"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8569 $as_echo "$LD" >&6; }
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8577 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8579 set dummy ${ncn_progname}; ac_word=$2
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if test "${ac_cv_prog_LD+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8585 if test -n "$LD"; then
8586 ac_cv_prog_LD="$LD" # Let the user override the test.
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 test -z "$as_dir" && as_dir=.
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8595 ac_cv_prog_LD="${ncn_progname}"
8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 if test -n "$LD"; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8608 $as_echo "$LD" >&6; }
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8616 test -n "$ac_cv_prog_LD" && break
8619 if test -z "$ac_cv_prog_LD" ; then
8621 if test $build = $host ; then
8624 LD="${ncn_tool_prefix}$2"
8630 if test -n "$LIPO"; then
8631 ac_cv_prog_LIPO=$LIPO
8632 elif test -n "$ac_cv_prog_LIPO"; then
8633 LIPO=$ac_cv_prog_LIPO
8636 if test -n "$ac_cv_prog_LIPO"; then
8637 for ncn_progname in lipo; do
8638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8639 set dummy ${ncn_progname}; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if test "${ac_cv_prog_LIPO+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
8645 if test -n "$LIPO"; then
8646 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8655 ac_cv_prog_LIPO="${ncn_progname}"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8665 LIPO=$ac_cv_prog_LIPO
8666 if test -n "$LIPO"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8668 $as_echo "$LIPO" >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8678 for ncn_progname in lipo; do
8679 if test -n "$ncn_tool_prefix"; then
8680 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8681 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683 $as_echo_n "checking for $ac_word... " >&6; }
8684 if test "${ac_cv_prog_LIPO+set}" = set; then :
8685 $as_echo_n "(cached) " >&6
8687 if test -n "$LIPO"; then
8688 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694 test -z "$as_dir" && as_dir=.
8695 for ac_exec_ext in '' $ac_executable_extensions; do
8696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8697 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707 LIPO=$ac_cv_prog_LIPO
8708 if test -n "$LIPO"; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8710 $as_echo "$LIPO" >&6; }
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713 $as_echo "no" >&6; }
8718 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8720 set dummy ${ncn_progname}; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if test "${ac_cv_prog_LIPO+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8726 if test -n "$LIPO"; then
8727 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8736 ac_cv_prog_LIPO="${ncn_progname}"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746 LIPO=$ac_cv_prog_LIPO
8747 if test -n "$LIPO"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8749 $as_echo "$LIPO" >&6; }
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8757 test -n "$ac_cv_prog_LIPO" && break
8760 if test -z "$ac_cv_prog_LIPO" ; then
8762 if test $build = $host ; then
8765 LIPO="${ncn_tool_prefix}$2"
8771 if test -n "$NM"; then
8773 elif test -n "$ac_cv_prog_NM"; then
8777 if test -n "$ac_cv_prog_NM"; then
8778 for ncn_progname in nm; do
8779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8780 set dummy ${ncn_progname}; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if test "${ac_cv_prog_NM+set}" = set; then :
8784 $as_echo_n "(cached) " >&6
8786 if test -n "$NM"; then
8787 ac_cv_prog_NM="$NM" # Let the user override the test.
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8796 ac_cv_prog_NM="${ncn_progname}"
8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807 if test -n "$NM"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8809 $as_echo "$NM" >&6; }
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8819 for ncn_progname in nm; do
8820 if test -n "$ncn_tool_prefix"; then
8821 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8822 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 $as_echo_n "checking for $ac_word... " >&6; }
8825 if test "${ac_cv_prog_NM+set}" = set; then :
8826 $as_echo_n "(cached) " >&6
8828 if test -n "$NM"; then
8829 ac_cv_prog_NM="$NM" # Let the user override the test.
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 test -z "$as_dir" && as_dir=.
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8838 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8849 if test -n "$NM"; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8851 $as_echo "$NM" >&6; }
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 $as_echo "no" >&6; }
8859 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8861 set dummy ${ncn_progname}; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if test "${ac_cv_prog_NM+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8867 if test -n "$NM"; then
8868 ac_cv_prog_NM="$NM" # Let the user override the test.
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_prog_NM="${ncn_progname}"
8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8888 if test -n "$NM"; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8890 $as_echo "$NM" >&6; }
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8898 test -n "$ac_cv_prog_NM" && break
8901 if test -z "$ac_cv_prog_NM" ; then
8903 if test $build = $host ; then
8906 NM="${ncn_tool_prefix}$2"
8912 if test -n "$RANLIB"; then
8913 ac_cv_prog_RANLIB=$RANLIB
8914 elif test -n "$ac_cv_prog_RANLIB"; then
8915 RANLIB=$ac_cv_prog_RANLIB
8918 if test -n "$ac_cv_prog_RANLIB"; then
8919 for ncn_progname in ranlib; do
8920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8921 set dummy ${ncn_progname}; ac_word=$2
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923 $as_echo_n "checking for $ac_word... " >&6; }
8924 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8925 $as_echo_n "(cached) " >&6
8927 if test -n "$RANLIB"; then
8928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 test -z "$as_dir" && as_dir=.
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8937 ac_cv_prog_RANLIB="${ncn_progname}"
8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8947 RANLIB=$ac_cv_prog_RANLIB
8948 if test -n "$RANLIB"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8950 $as_echo "$RANLIB" >&6; }
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8960 for ncn_progname in ranlib; do
8961 if test -n "$ncn_tool_prefix"; then
8962 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8963 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8967 $as_echo_n "(cached) " >&6
8969 if test -n "$RANLIB"; then
8970 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8979 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989 RANLIB=$ac_cv_prog_RANLIB
8990 if test -n "$RANLIB"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8992 $as_echo "$RANLIB" >&6; }
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
9000 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9002 set dummy ${ncn_progname}; ac_word=$2
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9004 $as_echo_n "checking for $ac_word... " >&6; }
9005 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9006 $as_echo_n "(cached) " >&6
9008 if test -n "$RANLIB"; then
9009 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015 test -z "$as_dir" && as_dir=.
9016 for ac_exec_ext in '' $ac_executable_extensions; do
9017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9018 ac_cv_prog_RANLIB="${ncn_progname}"
9019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028 RANLIB=$ac_cv_prog_RANLIB
9029 if test -n "$RANLIB"; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9031 $as_echo "$RANLIB" >&6; }
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034 $as_echo "no" >&6; }
9039 test -n "$ac_cv_prog_RANLIB" && break
9042 if test -z "$ac_cv_prog_RANLIB" ; then
9048 if test -n "$STRIP"; then
9049 ac_cv_prog_STRIP=$STRIP
9050 elif test -n "$ac_cv_prog_STRIP"; then
9051 STRIP=$ac_cv_prog_STRIP
9054 if test -n "$ac_cv_prog_STRIP"; then
9055 for ncn_progname in strip; do
9056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9057 set dummy ${ncn_progname}; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if test "${ac_cv_prog_STRIP+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9063 if test -n "$STRIP"; then
9064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070 test -z "$as_dir" && as_dir=.
9071 for ac_exec_ext in '' $ac_executable_extensions; do
9072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9073 ac_cv_prog_STRIP="${ncn_progname}"
9074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083 STRIP=$ac_cv_prog_STRIP
9084 if test -n "$STRIP"; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9086 $as_echo "$STRIP" >&6; }
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9096 for ncn_progname in strip; do
9097 if test -n "$ncn_tool_prefix"; then
9098 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9099 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9101 $as_echo_n "checking for $ac_word... " >&6; }
9102 if test "${ac_cv_prog_STRIP+set}" = set; then :
9103 $as_echo_n "(cached) " >&6
9105 if test -n "$STRIP"; then
9106 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112 test -z "$as_dir" && as_dir=.
9113 for ac_exec_ext in '' $ac_executable_extensions; do
9114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9115 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 STRIP=$ac_cv_prog_STRIP
9126 if test -n "$STRIP"; then
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9128 $as_echo "$STRIP" >&6; }
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9131 $as_echo "no" >&6; }
9136 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9138 set dummy ${ncn_progname}; ac_word=$2
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 $as_echo_n "checking for $ac_word... " >&6; }
9141 if test "${ac_cv_prog_STRIP+set}" = set; then :
9142 $as_echo_n "(cached) " >&6
9144 if test -n "$STRIP"; then
9145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 test -z "$as_dir" && as_dir=.
9152 for ac_exec_ext in '' $ac_executable_extensions; do
9153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9154 ac_cv_prog_STRIP="${ncn_progname}"
9155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9164 STRIP=$ac_cv_prog_STRIP
9165 if test -n "$STRIP"; then
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9167 $as_echo "$STRIP" >&6; }
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170 $as_echo "no" >&6; }
9175 test -n "$ac_cv_prog_STRIP" && break
9178 if test -z "$ac_cv_prog_STRIP" ; then
9184 if test -n "$WINDRES"; then
9185 ac_cv_prog_WINDRES=$WINDRES
9186 elif test -n "$ac_cv_prog_WINDRES"; then
9187 WINDRES=$ac_cv_prog_WINDRES
9190 if test -n "$ac_cv_prog_WINDRES"; then
9191 for ncn_progname in windres; do
9192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9193 set dummy ${ncn_progname}; ac_word=$2
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195 $as_echo_n "checking for $ac_word... " >&6; }
9196 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9199 if test -n "$WINDRES"; then
9200 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9206 test -z "$as_dir" && as_dir=.
9207 for ac_exec_ext in '' $ac_executable_extensions; do
9208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9209 ac_cv_prog_WINDRES="${ncn_progname}"
9210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9219 WINDRES=$ac_cv_prog_WINDRES
9220 if test -n "$WINDRES"; then
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9222 $as_echo "$WINDRES" >&6; }
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225 $as_echo "no" >&6; }
9232 for ncn_progname in windres; do
9233 if test -n "$ncn_tool_prefix"; then
9234 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9235 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9237 $as_echo_n "checking for $ac_word... " >&6; }
9238 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9241 if test -n "$WINDRES"; then
9242 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 test -z "$as_dir" && as_dir=.
9249 for ac_exec_ext in '' $ac_executable_extensions; do
9250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9251 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9261 WINDRES=$ac_cv_prog_WINDRES
9262 if test -n "$WINDRES"; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9264 $as_echo "$WINDRES" >&6; }
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267 $as_echo "no" >&6; }
9272 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9274 set dummy ${ncn_progname}; ac_word=$2
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9276 $as_echo_n "checking for $ac_word... " >&6; }
9277 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9280 if test -n "$WINDRES"; then
9281 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287 test -z "$as_dir" && as_dir=.
9288 for ac_exec_ext in '' $ac_executable_extensions; do
9289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9290 ac_cv_prog_WINDRES="${ncn_progname}"
9291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9300 WINDRES=$ac_cv_prog_WINDRES
9301 if test -n "$WINDRES"; then
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9303 $as_echo "$WINDRES" >&6; }
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306 $as_echo "no" >&6; }
9311 test -n "$ac_cv_prog_WINDRES" && break
9314 if test -z "$ac_cv_prog_WINDRES" ; then
9316 if test $build = $host ; then
9319 WINDRES="${ncn_tool_prefix}$2"
9325 if test -n "$WINDMC"; then
9326 ac_cv_prog_WINDMC=$WINDMC
9327 elif test -n "$ac_cv_prog_WINDMC"; then
9328 WINDMC=$ac_cv_prog_WINDMC
9331 if test -n "$ac_cv_prog_WINDMC"; then
9332 for ncn_progname in windmc; do
9333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9334 set dummy ${ncn_progname}; ac_word=$2
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336 $as_echo_n "checking for $ac_word... " >&6; }
9337 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
9340 if test -n "$WINDMC"; then
9341 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 test -z "$as_dir" && as_dir=.
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9350 ac_cv_prog_WINDMC="${ncn_progname}"
9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 WINDMC=$ac_cv_prog_WINDMC
9361 if test -n "$WINDMC"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9363 $as_echo "$WINDMC" >&6; }
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9373 for ncn_progname in windmc; do
9374 if test -n "$ncn_tool_prefix"; then
9375 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9376 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378 $as_echo_n "checking for $ac_word... " >&6; }
9379 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9380 $as_echo_n "(cached) " >&6
9382 if test -n "$WINDMC"; then
9383 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 test -z "$as_dir" && as_dir=.
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9392 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9402 WINDMC=$ac_cv_prog_WINDMC
9403 if test -n "$WINDMC"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9405 $as_echo "$WINDMC" >&6; }
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408 $as_echo "no" >&6; }
9413 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9415 set dummy ${ncn_progname}; ac_word=$2
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9419 $as_echo_n "(cached) " >&6
9421 if test -n "$WINDMC"; then
9422 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428 test -z "$as_dir" && as_dir=.
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9431 ac_cv_prog_WINDMC="${ncn_progname}"
9432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 WINDMC=$ac_cv_prog_WINDMC
9442 if test -n "$WINDMC"; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9444 $as_echo "$WINDMC" >&6; }
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 $as_echo "no" >&6; }
9452 test -n "$ac_cv_prog_WINDMC" && break
9455 if test -z "$ac_cv_prog_WINDMC" ; then
9457 if test $build = $host ; then
9460 WINDMC="${ncn_tool_prefix}$2"
9466 if test -n "$OBJCOPY"; then
9467 ac_cv_prog_OBJCOPY=$OBJCOPY
9468 elif test -n "$ac_cv_prog_OBJCOPY"; then
9469 OBJCOPY=$ac_cv_prog_OBJCOPY
9472 if test -n "$ac_cv_prog_OBJCOPY"; then
9473 for ncn_progname in objcopy; do
9474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9475 set dummy ${ncn_progname}; ac_word=$2
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477 $as_echo_n "checking for $ac_word... " >&6; }
9478 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9481 if test -n "$OBJCOPY"; then
9482 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 test -z "$as_dir" && as_dir=.
9489 for ac_exec_ext in '' $ac_executable_extensions; do
9490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9491 ac_cv_prog_OBJCOPY="${ncn_progname}"
9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501 OBJCOPY=$ac_cv_prog_OBJCOPY
9502 if test -n "$OBJCOPY"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9504 $as_echo "$OBJCOPY" >&6; }
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9514 for ncn_progname in objcopy; do
9515 if test -n "$ncn_tool_prefix"; then
9516 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9517 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 $as_echo_n "checking for $ac_word... " >&6; }
9520 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9521 $as_echo_n "(cached) " >&6
9523 if test -n "$OBJCOPY"; then
9524 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 test -z "$as_dir" && as_dir=.
9531 for ac_exec_ext in '' $ac_executable_extensions; do
9532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9533 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 OBJCOPY=$ac_cv_prog_OBJCOPY
9544 if test -n "$OBJCOPY"; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9546 $as_echo "$OBJCOPY" >&6; }
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9554 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9556 set dummy ${ncn_progname}; ac_word=$2
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9558 $as_echo_n "checking for $ac_word... " >&6; }
9559 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
9562 if test -n "$OBJCOPY"; then
9563 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 test -z "$as_dir" && as_dir=.
9570 for ac_exec_ext in '' $ac_executable_extensions; do
9571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9572 ac_cv_prog_OBJCOPY="${ncn_progname}"
9573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9582 OBJCOPY=$ac_cv_prog_OBJCOPY
9583 if test -n "$OBJCOPY"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9585 $as_echo "$OBJCOPY" >&6; }
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9593 test -n "$ac_cv_prog_OBJCOPY" && break
9596 if test -z "$ac_cv_prog_OBJCOPY" ; then
9598 if test $build = $host ; then
9601 OBJCOPY="${ncn_tool_prefix}$2"
9607 if test -n "$OBJDUMP"; then
9608 ac_cv_prog_OBJDUMP=$OBJDUMP
9609 elif test -n "$ac_cv_prog_OBJDUMP"; then
9610 OBJDUMP=$ac_cv_prog_OBJDUMP
9613 if test -n "$ac_cv_prog_OBJDUMP"; then
9614 for ncn_progname in objdump; do
9615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9616 set dummy ${ncn_progname}; ac_word=$2
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618 $as_echo_n "checking for $ac_word... " >&6; }
9619 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9622 if test -n "$OBJDUMP"; then
9623 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632 ac_cv_prog_OBJDUMP="${ncn_progname}"
9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9642 OBJDUMP=$ac_cv_prog_OBJDUMP
9643 if test -n "$OBJDUMP"; then
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9645 $as_echo "$OBJDUMP" >&6; }
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648 $as_echo "no" >&6; }
9655 for ncn_progname in objdump; do
9656 if test -n "$ncn_tool_prefix"; then
9657 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9658 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9660 $as_echo_n "checking for $ac_word... " >&6; }
9661 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9662 $as_echo_n "(cached) " >&6
9664 if test -n "$OBJDUMP"; then
9665 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671 test -z "$as_dir" && as_dir=.
9672 for ac_exec_ext in '' $ac_executable_extensions; do
9673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9674 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9684 OBJDUMP=$ac_cv_prog_OBJDUMP
9685 if test -n "$OBJDUMP"; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9687 $as_echo "$OBJDUMP" >&6; }
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690 $as_echo "no" >&6; }
9695 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9697 set dummy ${ncn_progname}; ac_word=$2
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699 $as_echo_n "checking for $ac_word... " >&6; }
9700 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9701 $as_echo_n "(cached) " >&6
9703 if test -n "$OBJDUMP"; then
9704 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 test -z "$as_dir" && as_dir=.
9711 for ac_exec_ext in '' $ac_executable_extensions; do
9712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9713 ac_cv_prog_OBJDUMP="${ncn_progname}"
9714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9723 OBJDUMP=$ac_cv_prog_OBJDUMP
9724 if test -n "$OBJDUMP"; then
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9726 $as_echo "$OBJDUMP" >&6; }
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 $as_echo "no" >&6; }
9734 test -n "$ac_cv_prog_OBJDUMP" && break
9737 if test -z "$ac_cv_prog_OBJDUMP" ; then
9739 if test $build = $host ; then
9742 OBJDUMP="${ncn_tool_prefix}$2"
9748 if test -n "$READELF"; then
9749 ac_cv_prog_READELF=$READELF
9750 elif test -n "$ac_cv_prog_READELF"; then
9751 READELF=$ac_cv_prog_READELF
9754 if test -n "$ac_cv_prog_READELF"; then
9755 for ncn_progname in readelf; do
9756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9757 set dummy ${ncn_progname}; ac_word=$2
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 $as_echo_n "checking for $ac_word... " >&6; }
9760 if test "${ac_cv_prog_READELF+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9763 if test -n "$READELF"; then
9764 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9773 ac_cv_prog_READELF="${ncn_progname}"
9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9783 READELF=$ac_cv_prog_READELF
9784 if test -n "$READELF"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9786 $as_echo "$READELF" >&6; }
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9796 for ncn_progname in readelf; do
9797 if test -n "$ncn_tool_prefix"; then
9798 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9799 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9801 $as_echo_n "checking for $ac_word... " >&6; }
9802 if test "${ac_cv_prog_READELF+set}" = set; then :
9803 $as_echo_n "(cached) " >&6
9805 if test -n "$READELF"; then
9806 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 test -z "$as_dir" && as_dir=.
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9815 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9825 READELF=$ac_cv_prog_READELF
9826 if test -n "$READELF"; then
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9828 $as_echo "$READELF" >&6; }
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9831 $as_echo "no" >&6; }
9836 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9838 set dummy ${ncn_progname}; ac_word=$2
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if test "${ac_cv_prog_READELF+set}" = set; then :
9842 $as_echo_n "(cached) " >&6
9844 if test -n "$READELF"; then
9845 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851 test -z "$as_dir" && as_dir=.
9852 for ac_exec_ext in '' $ac_executable_extensions; do
9853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9854 ac_cv_prog_READELF="${ncn_progname}"
9855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 READELF=$ac_cv_prog_READELF
9865 if test -n "$READELF"; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9867 $as_echo "$READELF" >&6; }
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9875 test -n "$ac_cv_prog_READELF" && break
9878 if test -z "$ac_cv_prog_READELF" ; then
9880 if test $build = $host ; then
9883 READELF="${ncn_tool_prefix}$2"
9894 # Check whether --with-build-time-tools was given.
9895 if test "${with_build_time_tools+set}" = set; then :
9896 withval=$with_build_time_tools; case x"$withval" in
9899 with_build_time_tools=
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9901 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9905 with_build_time_tools=
9911 if test -n "$CC_FOR_TARGET"; then
9912 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9913 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9914 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9917 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9918 for ncn_progname in cc gcc; do
9919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9920 set dummy ${ncn_progname}; ac_word=$2
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922 $as_echo_n "checking for $ac_word... " >&6; }
9923 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9924 $as_echo_n "(cached) " >&6
9926 if test -n "$CC_FOR_TARGET"; then
9927 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9936 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9946 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9947 if test -n "$CC_FOR_TARGET"; then
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9949 $as_echo "$CC_FOR_TARGET" >&6; }
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9959 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9960 for ncn_progname in cc gcc; do
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9962 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9963 if test -x $with_build_time_tools/${ncn_progname}; then
9964 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9966 $as_echo "yes" >&6; }
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9975 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9976 for ncn_progname in cc gcc; do
9977 if test -n "$ncn_target_tool_prefix"; then
9978 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9979 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981 $as_echo_n "checking for $ac_word... " >&6; }
9982 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9985 if test -n "$CC_FOR_TARGET"; then
9986 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992 test -z "$as_dir" && as_dir=.
9993 for ac_exec_ext in '' $ac_executable_extensions; do
9994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9995 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10005 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10006 if test -n "$CC_FOR_TARGET"; then
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10008 $as_echo "$CC_FOR_TARGET" >&6; }
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011 $as_echo "no" >&6; }
10016 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10018 set dummy ${ncn_progname}; ac_word=$2
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 $as_echo_n "checking for $ac_word... " >&6; }
10021 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10022 $as_echo_n "(cached) " >&6
10024 if test -n "$CC_FOR_TARGET"; then
10025 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10044 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10045 if test -n "$CC_FOR_TARGET"; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10047 $as_echo "$CC_FOR_TARGET" >&6; }
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050 $as_echo "no" >&6; }
10055 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10059 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10061 if test $build = $target ; then
10064 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10067 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10072 if test -n "$CXX_FOR_TARGET"; then
10073 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10074 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10075 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10078 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10079 for ncn_progname in c++ g++ cxx gxx; do
10080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10081 set dummy ${ncn_progname}; ac_word=$2
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083 $as_echo_n "checking for $ac_word... " >&6; }
10084 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
10087 if test -n "$CXX_FOR_TARGET"; then
10088 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10097 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10108 if test -n "$CXX_FOR_TARGET"; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10110 $as_echo "$CXX_FOR_TARGET" >&6; }
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10120 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10121 for ncn_progname in c++ g++ cxx gxx; do
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10123 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10124 if test -x $with_build_time_tools/${ncn_progname}; then
10125 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10127 $as_echo "yes" >&6; }
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10136 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10137 for ncn_progname in c++ g++ cxx gxx; do
10138 if test -n "$ncn_target_tool_prefix"; then
10139 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10140 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10142 $as_echo_n "checking for $ac_word... " >&6; }
10143 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10144 $as_echo_n "(cached) " >&6
10146 if test -n "$CXX_FOR_TARGET"; then
10147 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10150 for as_dir in $PATH
10153 test -z "$as_dir" && as_dir=.
10154 for ac_exec_ext in '' $ac_executable_extensions; do
10155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10156 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10166 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10167 if test -n "$CXX_FOR_TARGET"; then
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10169 $as_echo "$CXX_FOR_TARGET" >&6; }
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10172 $as_echo "no" >&6; }
10177 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10179 set dummy ${ncn_progname}; ac_word=$2
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10181 $as_echo_n "checking for $ac_word... " >&6; }
10182 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
10185 if test -n "$CXX_FOR_TARGET"; then
10186 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189 for as_dir in $PATH
10192 test -z "$as_dir" && as_dir=.
10193 for ac_exec_ext in '' $ac_executable_extensions; do
10194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10195 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10206 if test -n "$CXX_FOR_TARGET"; then
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10208 $as_echo "$CXX_FOR_TARGET" >&6; }
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10216 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10220 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10221 set dummy c++ g++ cxx gxx
10222 if test $build = $target ; then
10223 CXX_FOR_TARGET="$2"
10225 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10228 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10233 if test -n "$GCC_FOR_TARGET"; then
10234 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10235 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10236 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10239 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10240 for ncn_progname in gcc; do
10241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10242 set dummy ${ncn_progname}; ac_word=$2
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10244 $as_echo_n "checking for $ac_word... " >&6; }
10245 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
10248 if test -n "$GCC_FOR_TARGET"; then
10249 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10255 test -z "$as_dir" && as_dir=.
10256 for ac_exec_ext in '' $ac_executable_extensions; do
10257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10258 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10269 if test -n "$GCC_FOR_TARGET"; then
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10271 $as_echo "$GCC_FOR_TARGET" >&6; }
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274 $as_echo "no" >&6; }
10281 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10282 for ncn_progname in gcc; do
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10284 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10285 if test -x $with_build_time_tools/${ncn_progname}; then
10286 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10288 $as_echo "yes" >&6; }
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10297 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10298 for ncn_progname in gcc; do
10299 if test -n "$ncn_target_tool_prefix"; then
10300 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10301 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10303 $as_echo_n "checking for $ac_word... " >&6; }
10304 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10305 $as_echo_n "(cached) " >&6
10307 if test -n "$GCC_FOR_TARGET"; then
10308 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311 for as_dir in $PATH
10314 test -z "$as_dir" && as_dir=.
10315 for ac_exec_ext in '' $ac_executable_extensions; do
10316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10317 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10327 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10328 if test -n "$GCC_FOR_TARGET"; then
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10330 $as_echo "$GCC_FOR_TARGET" >&6; }
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10338 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10340 set dummy ${ncn_progname}; ac_word=$2
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342 $as_echo_n "checking for $ac_word... " >&6; }
10343 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
10346 if test -n "$GCC_FOR_TARGET"; then
10347 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350 for as_dir in $PATH
10353 test -z "$as_dir" && as_dir=.
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10356 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10367 if test -n "$GCC_FOR_TARGET"; then
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10369 $as_echo "$GCC_FOR_TARGET" >&6; }
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; }
10377 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10381 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10382 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10384 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10389 if test -n "$GCJ_FOR_TARGET"; then
10390 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10391 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10392 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10395 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10396 for ncn_progname in gcj; do
10397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10398 set dummy ${ncn_progname}; ac_word=$2
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10400 $as_echo_n "checking for $ac_word... " >&6; }
10401 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10402 $as_echo_n "(cached) " >&6
10404 if test -n "$GCJ_FOR_TARGET"; then
10405 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408 for as_dir in $PATH
10411 test -z "$as_dir" && as_dir=.
10412 for ac_exec_ext in '' $ac_executable_extensions; do
10413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10414 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10424 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10425 if test -n "$GCJ_FOR_TARGET"; then
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10427 $as_echo "$GCJ_FOR_TARGET" >&6; }
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430 $as_echo "no" >&6; }
10437 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10438 for ncn_progname in gcj; do
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10440 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10441 if test -x $with_build_time_tools/${ncn_progname}; then
10442 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10444 $as_echo "yes" >&6; }
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448 $as_echo "no" >&6; }
10453 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10454 for ncn_progname in gcj; do
10455 if test -n "$ncn_target_tool_prefix"; then
10456 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10457 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459 $as_echo_n "checking for $ac_word... " >&6; }
10460 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10461 $as_echo_n "(cached) " >&6
10463 if test -n "$GCJ_FOR_TARGET"; then
10464 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467 for as_dir in $PATH
10470 test -z "$as_dir" && as_dir=.
10471 for ac_exec_ext in '' $ac_executable_extensions; do
10472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10473 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10484 if test -n "$GCJ_FOR_TARGET"; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10486 $as_echo "$GCJ_FOR_TARGET" >&6; }
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; }
10494 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10496 set dummy ${ncn_progname}; ac_word=$2
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10498 $as_echo_n "checking for $ac_word... " >&6; }
10499 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10500 $as_echo_n "(cached) " >&6
10502 if test -n "$GCJ_FOR_TARGET"; then
10503 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506 for as_dir in $PATH
10509 test -z "$as_dir" && as_dir=.
10510 for ac_exec_ext in '' $ac_executable_extensions; do
10511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10512 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10523 if test -n "$GCJ_FOR_TARGET"; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10525 $as_echo "$GCJ_FOR_TARGET" >&6; }
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10533 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10537 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10539 if test $build = $target ; then
10540 GCJ_FOR_TARGET="$2"
10542 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10545 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10550 if test -n "$GFORTRAN_FOR_TARGET"; then
10551 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10552 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10553 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10556 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10557 for ncn_progname in gfortran; do
10558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10559 set dummy ${ncn_progname}; ac_word=$2
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561 $as_echo_n "checking for $ac_word... " >&6; }
10562 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
10565 if test -n "$GFORTRAN_FOR_TARGET"; then
10566 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569 for as_dir in $PATH
10572 test -z "$as_dir" && as_dir=.
10573 for ac_exec_ext in '' $ac_executable_extensions; do
10574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10575 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10585 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10586 if test -n "$GFORTRAN_FOR_TARGET"; then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10588 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10598 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10599 for ncn_progname in gfortran; do
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10601 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10602 if test -x $with_build_time_tools/${ncn_progname}; then
10603 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10605 $as_echo "yes" >&6; }
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10614 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10615 for ncn_progname in gfortran; do
10616 if test -n "$ncn_target_tool_prefix"; then
10617 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10618 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10620 $as_echo_n "checking for $ac_word... " >&6; }
10621 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10622 $as_echo_n "(cached) " >&6
10624 if test -n "$GFORTRAN_FOR_TARGET"; then
10625 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628 for as_dir in $PATH
10631 test -z "$as_dir" && as_dir=.
10632 for ac_exec_ext in '' $ac_executable_extensions; do
10633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10634 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10644 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10645 if test -n "$GFORTRAN_FOR_TARGET"; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10647 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650 $as_echo "no" >&6; }
10655 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10657 set dummy ${ncn_progname}; ac_word=$2
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10659 $as_echo_n "checking for $ac_word... " >&6; }
10660 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10661 $as_echo_n "(cached) " >&6
10663 if test -n "$GFORTRAN_FOR_TARGET"; then
10664 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10670 test -z "$as_dir" && as_dir=.
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10673 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10684 if test -n "$GFORTRAN_FOR_TARGET"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10686 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10694 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10698 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10700 if test $build = $target ; then
10701 GFORTRAN_FOR_TARGET="$2"
10703 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10706 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10711 if test -n "$GOC_FOR_TARGET"; then
10712 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10713 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10714 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10717 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10718 for ncn_progname in gccgo; do
10719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10720 set dummy ${ncn_progname}; ac_word=$2
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722 $as_echo_n "checking for $ac_word... " >&6; }
10723 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10724 $as_echo_n "(cached) " >&6
10726 if test -n "$GOC_FOR_TARGET"; then
10727 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $PATH
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10736 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10746 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10747 if test -n "$GOC_FOR_TARGET"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10749 $as_echo "$GOC_FOR_TARGET" >&6; }
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10759 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10760 for ncn_progname in gccgo; do
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10762 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10763 if test -x $with_build_time_tools/${ncn_progname}; then
10764 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10766 $as_echo "yes" >&6; }
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10775 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10776 for ncn_progname in gccgo; do
10777 if test -n "$ncn_target_tool_prefix"; then
10778 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10779 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781 $as_echo_n "checking for $ac_word... " >&6; }
10782 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
10785 if test -n "$GOC_FOR_TARGET"; then
10786 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789 for as_dir in $PATH
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10805 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10806 if test -n "$GOC_FOR_TARGET"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10808 $as_echo "$GOC_FOR_TARGET" >&6; }
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10816 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10818 set dummy ${ncn_progname}; ac_word=$2
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10820 $as_echo_n "checking for $ac_word... " >&6; }
10821 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10822 $as_echo_n "(cached) " >&6
10824 if test -n "$GOC_FOR_TARGET"; then
10825 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in $PATH
10831 test -z "$as_dir" && as_dir=.
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10834 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10845 if test -n "$GOC_FOR_TARGET"; then
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10847 $as_echo "$GOC_FOR_TARGET" >&6; }
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850 $as_echo "no" >&6; }
10855 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10859 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10861 if test $build = $target ; then
10862 GOC_FOR_TARGET="$2"
10864 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10867 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10872 cat > conftest.c << \EOF
10877 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10878 have_gcc_for_target=yes
10880 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10881 have_gcc_for_target=no
10888 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10889 if test -n "$with_build_time_tools"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10891 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10892 if test -x $with_build_time_tools/ar; then
10893 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10894 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10896 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 $as_echo "no" >&6; }
10901 elif test $build != $host && test $have_gcc_for_target = yes; then
10902 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10903 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10904 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10907 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10908 # Extract the first word of "ar", so it can be a program name with args.
10909 set dummy ar; ac_word=$2
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911 $as_echo_n "checking for $ac_word... " >&6; }
10912 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
10915 case $AR_FOR_TARGET in
10917 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $gcc_cv_tool_dirs
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10927 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10938 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10939 if test -n "$AR_FOR_TARGET"; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10941 $as_echo "$AR_FOR_TARGET" >&6; }
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944 $as_echo "no" >&6; }
10949 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10952 if test -n "$AR_FOR_TARGET"; then
10953 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10954 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10955 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10958 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10959 for ncn_progname in ar; do
10960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10961 set dummy ${ncn_progname}; ac_word=$2
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963 $as_echo_n "checking for $ac_word... " >&6; }
10964 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10965 $as_echo_n "(cached) " >&6
10967 if test -n "$AR_FOR_TARGET"; then
10968 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10974 test -z "$as_dir" && as_dir=.
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10977 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10988 if test -n "$AR_FOR_TARGET"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10990 $as_echo "$AR_FOR_TARGET" >&6; }
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
11000 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11001 for ncn_progname in ar; do
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11003 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11004 if test -x $with_build_time_tools/${ncn_progname}; then
11005 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11007 $as_echo "yes" >&6; }
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011 $as_echo "no" >&6; }
11016 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11017 for ncn_progname in ar; do
11018 if test -n "$ncn_target_tool_prefix"; then
11019 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11020 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022 $as_echo_n "checking for $ac_word... " >&6; }
11023 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11026 if test -n "$AR_FOR_TARGET"; then
11027 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11033 test -z "$as_dir" && as_dir=.
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11036 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11046 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11047 if test -n "$AR_FOR_TARGET"; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11049 $as_echo "$AR_FOR_TARGET" >&6; }
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11057 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11059 set dummy ${ncn_progname}; ac_word=$2
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061 $as_echo_n "checking for $ac_word... " >&6; }
11062 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11063 $as_echo_n "(cached) " >&6
11065 if test -n "$AR_FOR_TARGET"; then
11066 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069 for as_dir in $PATH
11072 test -z "$as_dir" && as_dir=.
11073 for ac_exec_ext in '' $ac_executable_extensions; do
11074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11075 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11086 if test -n "$AR_FOR_TARGET"; then
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11088 $as_echo "$AR_FOR_TARGET" >&6; }
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11096 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11100 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11102 if test $build = $target ; then
11105 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11108 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11112 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11118 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11119 if test -n "$with_build_time_tools"; then
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11121 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11122 if test -x $with_build_time_tools/as; then
11123 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11124 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11126 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11131 elif test $build != $host && test $have_gcc_for_target = yes; then
11132 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11133 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11134 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11137 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11138 # Extract the first word of "as", so it can be a program name with args.
11139 set dummy as; ac_word=$2
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141 $as_echo_n "checking for $ac_word... " >&6; }
11142 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11143 $as_echo_n "(cached) " >&6
11145 case $AS_FOR_TARGET in
11147 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151 for as_dir in $gcc_cv_tool_dirs
11154 test -z "$as_dir" && as_dir=.
11155 for ac_exec_ext in '' $ac_executable_extensions; do
11156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11157 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11168 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11169 if test -n "$AS_FOR_TARGET"; then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11171 $as_echo "$AS_FOR_TARGET" >&6; }
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11179 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11182 if test -n "$AS_FOR_TARGET"; then
11183 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11184 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11185 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11188 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11189 for ncn_progname in as; do
11190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11191 set dummy ${ncn_progname}; ac_word=$2
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193 $as_echo_n "checking for $ac_word... " >&6; }
11194 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
11197 if test -n "$AS_FOR_TARGET"; then
11198 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11204 test -z "$as_dir" && as_dir=.
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11207 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11218 if test -n "$AS_FOR_TARGET"; then
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11220 $as_echo "$AS_FOR_TARGET" >&6; }
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223 $as_echo "no" >&6; }
11230 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11231 for ncn_progname in as; do
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11233 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11234 if test -x $with_build_time_tools/${ncn_progname}; then
11235 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11237 $as_echo "yes" >&6; }
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241 $as_echo "no" >&6; }
11246 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11247 for ncn_progname in as; do
11248 if test -n "$ncn_target_tool_prefix"; then
11249 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11250 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11254 $as_echo_n "(cached) " >&6
11256 if test -n "$AS_FOR_TARGET"; then
11257 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11266 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11276 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11277 if test -n "$AS_FOR_TARGET"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11279 $as_echo "$AS_FOR_TARGET" >&6; }
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11287 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11289 set dummy ${ncn_progname}; ac_word=$2
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11291 $as_echo_n "checking for $ac_word... " >&6; }
11292 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11293 $as_echo_n "(cached) " >&6
11295 if test -n "$AS_FOR_TARGET"; then
11296 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299 for as_dir in $PATH
11302 test -z "$as_dir" && as_dir=.
11303 for ac_exec_ext in '' $ac_executable_extensions; do
11304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11305 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11315 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11316 if test -n "$AS_FOR_TARGET"; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11318 $as_echo "$AS_FOR_TARGET" >&6; }
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11326 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11330 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11332 if test $build = $target ; then
11335 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11338 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11342 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11348 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11349 if test -n "$with_build_time_tools"; then
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11351 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11352 if test -x $with_build_time_tools/dlltool; then
11353 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11354 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11356 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359 $as_echo "no" >&6; }
11361 elif test $build != $host && test $have_gcc_for_target = yes; then
11362 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11363 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11364 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11367 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11368 # Extract the first word of "dlltool", so it can be a program name with args.
11369 set dummy dlltool; ac_word=$2
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11371 $as_echo_n "checking for $ac_word... " >&6; }
11372 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11373 $as_echo_n "(cached) " >&6
11375 case $DLLTOOL_FOR_TARGET in
11377 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381 for as_dir in $gcc_cv_tool_dirs
11384 test -z "$as_dir" && as_dir=.
11385 for ac_exec_ext in '' $ac_executable_extensions; do
11386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11387 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11399 if test -n "$DLLTOOL_FOR_TARGET"; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11401 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11409 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11412 if test -n "$DLLTOOL_FOR_TARGET"; then
11413 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11414 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11415 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11418 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11419 for ncn_progname in dlltool; do
11420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11421 set dummy ${ncn_progname}; ac_word=$2
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423 $as_echo_n "checking for $ac_word... " >&6; }
11424 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11425 $as_echo_n "(cached) " >&6
11427 if test -n "$DLLTOOL_FOR_TARGET"; then
11428 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431 for as_dir in $PATH
11434 test -z "$as_dir" && as_dir=.
11435 for ac_exec_ext in '' $ac_executable_extensions; do
11436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11437 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11447 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11448 if test -n "$DLLTOOL_FOR_TARGET"; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11450 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453 $as_echo "no" >&6; }
11460 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11461 for ncn_progname in dlltool; do
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11463 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11464 if test -x $with_build_time_tools/${ncn_progname}; then
11465 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11467 $as_echo "yes" >&6; }
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11476 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11477 for ncn_progname in dlltool; do
11478 if test -n "$ncn_target_tool_prefix"; then
11479 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11480 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11484 $as_echo_n "(cached) " >&6
11486 if test -n "$DLLTOOL_FOR_TARGET"; then
11487 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11507 if test -n "$DLLTOOL_FOR_TARGET"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11509 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11517 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11519 set dummy ${ncn_progname}; ac_word=$2
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11521 $as_echo_n "checking for $ac_word... " >&6; }
11522 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11523 $as_echo_n "(cached) " >&6
11525 if test -n "$DLLTOOL_FOR_TARGET"; then
11526 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529 for as_dir in $PATH
11532 test -z "$as_dir" && as_dir=.
11533 for ac_exec_ext in '' $ac_executable_extensions; do
11534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11535 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11545 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11546 if test -n "$DLLTOOL_FOR_TARGET"; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11548 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11556 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11560 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11562 if test $build = $target ; then
11563 DLLTOOL_FOR_TARGET="$2"
11565 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11568 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11572 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11578 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11579 if test -n "$with_build_time_tools"; then
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11581 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11582 if test -x $with_build_time_tools/ld; then
11583 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11584 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11586 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589 $as_echo "no" >&6; }
11591 elif test $build != $host && test $have_gcc_for_target = yes; then
11592 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11593 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11594 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11597 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11598 # Extract the first word of "ld", so it can be a program name with args.
11599 set dummy ld; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 $as_echo_n "checking for $ac_word... " >&6; }
11602 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11603 $as_echo_n "(cached) " >&6
11605 case $LD_FOR_TARGET in
11607 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $gcc_cv_tool_dirs
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11617 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11629 if test -n "$LD_FOR_TARGET"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11631 $as_echo "$LD_FOR_TARGET" >&6; }
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11639 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11642 if test -n "$LD_FOR_TARGET"; then
11643 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11644 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11645 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11648 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11649 for ncn_progname in ld; do
11650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11651 set dummy ${ncn_progname}; ac_word=$2
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11653 $as_echo_n "checking for $ac_word... " >&6; }
11654 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11655 $as_echo_n "(cached) " >&6
11657 if test -n "$LD_FOR_TARGET"; then
11658 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11664 test -z "$as_dir" && as_dir=.
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11667 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11677 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11678 if test -n "$LD_FOR_TARGET"; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11680 $as_echo "$LD_FOR_TARGET" >&6; }
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11690 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11691 for ncn_progname in ld; do
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11693 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11694 if test -x $with_build_time_tools/${ncn_progname}; then
11695 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11697 $as_echo "yes" >&6; }
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; }
11706 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11707 for ncn_progname in ld; do
11708 if test -n "$ncn_target_tool_prefix"; then
11709 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11710 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11714 $as_echo_n "(cached) " >&6
11716 if test -n "$LD_FOR_TARGET"; then
11717 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11737 if test -n "$LD_FOR_TARGET"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11739 $as_echo "$LD_FOR_TARGET" >&6; }
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11747 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11749 set dummy ${ncn_progname}; ac_word=$2
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11751 $as_echo_n "checking for $ac_word... " >&6; }
11752 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11753 $as_echo_n "(cached) " >&6
11755 if test -n "$LD_FOR_TARGET"; then
11756 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759 for as_dir in $PATH
11762 test -z "$as_dir" && as_dir=.
11763 for ac_exec_ext in '' $ac_executable_extensions; do
11764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11765 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11775 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11776 if test -n "$LD_FOR_TARGET"; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11778 $as_echo "$LD_FOR_TARGET" >&6; }
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11786 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11790 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11792 if test $build = $target ; then
11795 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11798 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11802 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11808 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11809 if test -n "$with_build_time_tools"; then
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11811 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11812 if test -x $with_build_time_tools/lipo; then
11813 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11814 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11816 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11821 elif test $build != $host && test $have_gcc_for_target = yes; then
11822 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11823 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11824 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11827 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11828 # Extract the first word of "lipo", so it can be a program name with args.
11829 set dummy lipo; ac_word=$2
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831 $as_echo_n "checking for $ac_word... " >&6; }
11832 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11833 $as_echo_n "(cached) " >&6
11835 case $LIPO_FOR_TARGET in
11837 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $gcc_cv_tool_dirs
11844 test -z "$as_dir" && as_dir=.
11845 for ac_exec_ext in '' $ac_executable_extensions; do
11846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11847 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11859 if test -n "$LIPO_FOR_TARGET"; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11861 $as_echo "$LIPO_FOR_TARGET" >&6; }
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11869 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11872 if test -n "$LIPO_FOR_TARGET"; then
11873 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11874 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11875 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11878 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11879 for ncn_progname in lipo; do
11880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11881 set dummy ${ncn_progname}; ac_word=$2
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883 $as_echo_n "checking for $ac_word... " >&6; }
11884 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11887 if test -n "$LIPO_FOR_TARGET"; then
11888 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in $PATH
11894 test -z "$as_dir" && as_dir=.
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11897 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11907 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11908 if test -n "$LIPO_FOR_TARGET"; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11910 $as_echo "$LIPO_FOR_TARGET" >&6; }
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11920 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11921 for ncn_progname in lipo; do
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11923 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11924 if test -x $with_build_time_tools/${ncn_progname}; then
11925 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11927 $as_echo "yes" >&6; }
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 $as_echo "no" >&6; }
11936 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11937 for ncn_progname in lipo; do
11938 if test -n "$ncn_target_tool_prefix"; then
11939 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11940 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
11946 if test -n "$LIPO_FOR_TARGET"; then
11947 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11966 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11967 if test -n "$LIPO_FOR_TARGET"; then
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11969 $as_echo "$LIPO_FOR_TARGET" >&6; }
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11977 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11979 set dummy ${ncn_progname}; ac_word=$2
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11981 $as_echo_n "checking for $ac_word... " >&6; }
11982 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11983 $as_echo_n "(cached) " >&6
11985 if test -n "$LIPO_FOR_TARGET"; then
11986 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11992 test -z "$as_dir" && as_dir=.
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11995 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12006 if test -n "$LIPO_FOR_TARGET"; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12008 $as_echo "$LIPO_FOR_TARGET" >&6; }
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011 $as_echo "no" >&6; }
12016 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12020 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12022 if test $build = $target ; then
12023 LIPO_FOR_TARGET="$2"
12025 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12028 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12032 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12038 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12039 if test -n "$with_build_time_tools"; then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12041 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12042 if test -x $with_build_time_tools/nm; then
12043 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12044 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12046 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049 $as_echo "no" >&6; }
12051 elif test $build != $host && test $have_gcc_for_target = yes; then
12052 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12053 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12054 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12057 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12058 # Extract the first word of "nm", so it can be a program name with args.
12059 set dummy nm; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12063 $as_echo_n "(cached) " >&6
12065 case $NM_FOR_TARGET in
12067 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $gcc_cv_tool_dirs
12074 test -z "$as_dir" && as_dir=.
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12077 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12088 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12089 if test -n "$NM_FOR_TARGET"; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12091 $as_echo "$NM_FOR_TARGET" >&6; }
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12099 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12102 if test -n "$NM_FOR_TARGET"; then
12103 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12104 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12105 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12108 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12109 for ncn_progname in nm; do
12110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12111 set dummy ${ncn_progname}; ac_word=$2
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113 $as_echo_n "checking for $ac_word... " >&6; }
12114 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12115 $as_echo_n "(cached) " >&6
12117 if test -n "$NM_FOR_TARGET"; then
12118 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121 for as_dir in $PATH
12124 test -z "$as_dir" && as_dir=.
12125 for ac_exec_ext in '' $ac_executable_extensions; do
12126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12127 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12137 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12138 if test -n "$NM_FOR_TARGET"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12140 $as_echo "$NM_FOR_TARGET" >&6; }
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12150 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12151 for ncn_progname in nm; do
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12153 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12154 if test -x $with_build_time_tools/${ncn_progname}; then
12155 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12157 $as_echo "yes" >&6; }
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 $as_echo "no" >&6; }
12166 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12167 for ncn_progname in nm; do
12168 if test -n "$ncn_target_tool_prefix"; then
12169 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12170 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12172 $as_echo_n "checking for $ac_word... " >&6; }
12173 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
12176 if test -n "$NM_FOR_TARGET"; then
12177 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12183 test -z "$as_dir" && as_dir=.
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12186 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12197 if test -n "$NM_FOR_TARGET"; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12199 $as_echo "$NM_FOR_TARGET" >&6; }
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12207 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12209 set dummy ${ncn_progname}; ac_word=$2
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12211 $as_echo_n "checking for $ac_word... " >&6; }
12212 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12213 $as_echo_n "(cached) " >&6
12215 if test -n "$NM_FOR_TARGET"; then
12216 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219 for as_dir in $PATH
12222 test -z "$as_dir" && as_dir=.
12223 for ac_exec_ext in '' $ac_executable_extensions; do
12224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12225 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12235 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12236 if test -n "$NM_FOR_TARGET"; then
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12238 $as_echo "$NM_FOR_TARGET" >&6; }
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; }
12246 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12250 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12252 if test $build = $target ; then
12255 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12258 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12262 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12268 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12269 if test -n "$with_build_time_tools"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12271 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12272 if test -x $with_build_time_tools/objcopy; then
12273 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12274 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12276 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12281 elif test $build != $host && test $have_gcc_for_target = yes; then
12282 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12283 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12284 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12287 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12288 # Extract the first word of "objcopy", so it can be a program name with args.
12289 set dummy objcopy; ac_word=$2
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291 $as_echo_n "checking for $ac_word... " >&6; }
12292 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12293 $as_echo_n "(cached) " >&6
12295 case $OBJCOPY_FOR_TARGET in
12297 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301 for as_dir in $gcc_cv_tool_dirs
12304 test -z "$as_dir" && as_dir=.
12305 for ac_exec_ext in '' $ac_executable_extensions; do
12306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12307 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12318 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12319 if test -n "$OBJCOPY_FOR_TARGET"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12321 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12329 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12332 if test -n "$OBJCOPY_FOR_TARGET"; then
12333 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12334 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12335 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12338 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12339 for ncn_progname in objcopy; do
12340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12341 set dummy ${ncn_progname}; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12345 $as_echo_n "(cached) " >&6
12347 if test -n "$OBJCOPY_FOR_TARGET"; then
12348 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12357 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12368 if test -n "$OBJCOPY_FOR_TARGET"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12370 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12380 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12381 for ncn_progname in objcopy; do
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12383 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12384 if test -x $with_build_time_tools/${ncn_progname}; then
12385 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12387 $as_echo "yes" >&6; }
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12396 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12397 for ncn_progname in objcopy; do
12398 if test -n "$ncn_target_tool_prefix"; then
12399 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12400 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402 $as_echo_n "checking for $ac_word... " >&6; }
12403 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12404 $as_echo_n "(cached) " >&6
12406 if test -n "$OBJCOPY_FOR_TARGET"; then
12407 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410 for as_dir in $PATH
12413 test -z "$as_dir" && as_dir=.
12414 for ac_exec_ext in '' $ac_executable_extensions; do
12415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12416 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12426 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12427 if test -n "$OBJCOPY_FOR_TARGET"; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12429 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12437 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12439 set dummy ${ncn_progname}; ac_word=$2
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12441 $as_echo_n "checking for $ac_word... " >&6; }
12442 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12443 $as_echo_n "(cached) " >&6
12445 if test -n "$OBJCOPY_FOR_TARGET"; then
12446 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449 for as_dir in $PATH
12452 test -z "$as_dir" && as_dir=.
12453 for ac_exec_ext in '' $ac_executable_extensions; do
12454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12455 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12466 if test -n "$OBJCOPY_FOR_TARGET"; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12468 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 $as_echo "no" >&6; }
12476 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12480 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12482 if test $build = $target ; then
12483 OBJCOPY_FOR_TARGET="$2"
12485 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12488 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12492 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12498 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12499 if test -n "$with_build_time_tools"; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12501 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12502 if test -x $with_build_time_tools/objdump; then
12503 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12504 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12506 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509 $as_echo "no" >&6; }
12511 elif test $build != $host && test $have_gcc_for_target = yes; then
12512 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12513 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12514 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12517 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12518 # Extract the first word of "objdump", so it can be a program name with args.
12519 set dummy objdump; ac_word=$2
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12521 $as_echo_n "checking for $ac_word... " >&6; }
12522 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
12525 case $OBJDUMP_FOR_TARGET in
12527 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531 for as_dir in $gcc_cv_tool_dirs
12534 test -z "$as_dir" && as_dir=.
12535 for ac_exec_ext in '' $ac_executable_extensions; do
12536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12537 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12548 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12549 if test -n "$OBJDUMP_FOR_TARGET"; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12551 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12559 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12562 if test -n "$OBJDUMP_FOR_TARGET"; then
12563 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12564 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12565 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12568 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12569 for ncn_progname in objdump; do
12570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12571 set dummy ${ncn_progname}; ac_word=$2
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 $as_echo_n "checking for $ac_word... " >&6; }
12574 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12575 $as_echo_n "(cached) " >&6
12577 if test -n "$OBJDUMP_FOR_TARGET"; then
12578 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581 for as_dir in $PATH
12584 test -z "$as_dir" && as_dir=.
12585 for ac_exec_ext in '' $ac_executable_extensions; do
12586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12587 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12598 if test -n "$OBJDUMP_FOR_TARGET"; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12600 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603 $as_echo "no" >&6; }
12610 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12611 for ncn_progname in objdump; do
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12613 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12614 if test -x $with_build_time_tools/${ncn_progname}; then
12615 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617 $as_echo "yes" >&6; }
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12626 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12627 for ncn_progname in objdump; do
12628 if test -n "$ncn_target_tool_prefix"; then
12629 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12630 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632 $as_echo_n "checking for $ac_word... " >&6; }
12633 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12634 $as_echo_n "(cached) " >&6
12636 if test -n "$OBJDUMP_FOR_TARGET"; then
12637 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640 for as_dir in $PATH
12643 test -z "$as_dir" && as_dir=.
12644 for ac_exec_ext in '' $ac_executable_extensions; do
12645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12646 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12656 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12657 if test -n "$OBJDUMP_FOR_TARGET"; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12659 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662 $as_echo "no" >&6; }
12667 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12669 set dummy ${ncn_progname}; ac_word=$2
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671 $as_echo_n "checking for $ac_word... " >&6; }
12672 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12673 $as_echo_n "(cached) " >&6
12675 if test -n "$OBJDUMP_FOR_TARGET"; then
12676 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12679 for as_dir in $PATH
12682 test -z "$as_dir" && as_dir=.
12683 for ac_exec_ext in '' $ac_executable_extensions; do
12684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12685 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12696 if test -n "$OBJDUMP_FOR_TARGET"; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12698 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701 $as_echo "no" >&6; }
12706 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12710 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12712 if test $build = $target ; then
12713 OBJDUMP_FOR_TARGET="$2"
12715 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12718 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12722 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12728 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12729 if test -n "$with_build_time_tools"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12731 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12732 if test -x $with_build_time_tools/ranlib; then
12733 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12734 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12736 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12741 elif test $build != $host && test $have_gcc_for_target = yes; then
12742 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12743 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12744 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12747 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12748 # Extract the first word of "ranlib", so it can be a program name with args.
12749 set dummy ranlib; ac_word=$2
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12751 $as_echo_n "checking for $ac_word... " >&6; }
12752 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
12755 case $RANLIB_FOR_TARGET in
12757 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761 for as_dir in $gcc_cv_tool_dirs
12764 test -z "$as_dir" && as_dir=.
12765 for ac_exec_ext in '' $ac_executable_extensions; do
12766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12767 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12778 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12779 if test -n "$RANLIB_FOR_TARGET"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12781 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12789 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12792 if test -n "$RANLIB_FOR_TARGET"; then
12793 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12794 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12795 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12798 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12799 for ncn_progname in ranlib; do
12800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12801 set dummy ${ncn_progname}; ac_word=$2
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12803 $as_echo_n "checking for $ac_word... " >&6; }
12804 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12807 if test -n "$RANLIB_FOR_TARGET"; then
12808 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811 for as_dir in $PATH
12814 test -z "$as_dir" && as_dir=.
12815 for ac_exec_ext in '' $ac_executable_extensions; do
12816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12817 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12827 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12828 if test -n "$RANLIB_FOR_TARGET"; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12830 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833 $as_echo "no" >&6; }
12840 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12841 for ncn_progname in ranlib; do
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12843 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12844 if test -x $with_build_time_tools/${ncn_progname}; then
12845 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12847 $as_echo "yes" >&6; }
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851 $as_echo "no" >&6; }
12856 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12857 for ncn_progname in ranlib; do
12858 if test -n "$ncn_target_tool_prefix"; then
12859 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12860 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862 $as_echo_n "checking for $ac_word... " >&6; }
12863 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
12866 if test -n "$RANLIB_FOR_TARGET"; then
12867 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12873 test -z "$as_dir" && as_dir=.
12874 for ac_exec_ext in '' $ac_executable_extensions; do
12875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12886 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12887 if test -n "$RANLIB_FOR_TARGET"; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12889 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; }
12897 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12899 set dummy ${ncn_progname}; ac_word=$2
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12901 $as_echo_n "checking for $ac_word... " >&6; }
12902 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12905 if test -n "$RANLIB_FOR_TARGET"; then
12906 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12915 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12925 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12926 if test -n "$RANLIB_FOR_TARGET"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12928 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931 $as_echo "no" >&6; }
12936 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12940 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12942 if test $build = $target ; then
12943 RANLIB_FOR_TARGET="$2"
12945 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12948 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12952 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12958 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12959 if test -n "$with_build_time_tools"; then
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12961 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12962 if test -x $with_build_time_tools/readelf; then
12963 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12964 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12966 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 $as_echo "no" >&6; }
12971 elif test $build != $host && test $have_gcc_for_target = yes; then
12972 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12973 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12974 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12977 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12978 # Extract the first word of "readelf", so it can be a program name with args.
12979 set dummy readelf; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981 $as_echo_n "checking for $ac_word... " >&6; }
12982 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12983 $as_echo_n "(cached) " >&6
12985 case $READELF_FOR_TARGET in
12987 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $gcc_cv_tool_dirs
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
12996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12997 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13008 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13009 if test -n "$READELF_FOR_TARGET"; then
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13011 $as_echo "$READELF_FOR_TARGET" >&6; }
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13019 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13022 if test -n "$READELF_FOR_TARGET"; then
13023 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13024 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13025 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13028 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13029 for ncn_progname in readelf; do
13030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13031 set dummy ${ncn_progname}; ac_word=$2
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13033 $as_echo_n "checking for $ac_word... " >&6; }
13034 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13035 $as_echo_n "(cached) " >&6
13037 if test -n "$READELF_FOR_TARGET"; then
13038 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041 for as_dir in $PATH
13044 test -z "$as_dir" && as_dir=.
13045 for ac_exec_ext in '' $ac_executable_extensions; do
13046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13047 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13057 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13058 if test -n "$READELF_FOR_TARGET"; then
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13060 $as_echo "$READELF_FOR_TARGET" >&6; }
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13063 $as_echo "no" >&6; }
13070 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13071 for ncn_progname in readelf; do
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13073 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13074 if test -x $with_build_time_tools/${ncn_progname}; then
13075 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13077 $as_echo "yes" >&6; }
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 $as_echo "no" >&6; }
13086 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13087 for ncn_progname in readelf; do
13088 if test -n "$ncn_target_tool_prefix"; then
13089 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13090 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13092 $as_echo_n "checking for $ac_word... " >&6; }
13093 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13094 $as_echo_n "(cached) " >&6
13096 if test -n "$READELF_FOR_TARGET"; then
13097 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100 for as_dir in $PATH
13103 test -z "$as_dir" && as_dir=.
13104 for ac_exec_ext in '' $ac_executable_extensions; do
13105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13106 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13116 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13117 if test -n "$READELF_FOR_TARGET"; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13119 $as_echo "$READELF_FOR_TARGET" >&6; }
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122 $as_echo "no" >&6; }
13127 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13128 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13129 set dummy ${ncn_progname}; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 $as_echo_n "checking for $ac_word... " >&6; }
13132 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13133 $as_echo_n "(cached) " >&6
13135 if test -n "$READELF_FOR_TARGET"; then
13136 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13156 if test -n "$READELF_FOR_TARGET"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13158 $as_echo "$READELF_FOR_TARGET" >&6; }
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13166 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13170 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13172 if test $build = $target ; then
13173 READELF_FOR_TARGET="$2"
13175 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13178 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13182 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13188 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13189 if test -n "$with_build_time_tools"; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13191 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13192 if test -x $with_build_time_tools/strip; then
13193 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13194 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13196 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13201 elif test $build != $host && test $have_gcc_for_target = yes; then
13202 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13203 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13204 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13207 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13208 # Extract the first word of "strip", so it can be a program name with args.
13209 set dummy strip; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
13215 case $STRIP_FOR_TARGET in
13217 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in $gcc_cv_tool_dirs
13224 test -z "$as_dir" && as_dir=.
13225 for ac_exec_ext in '' $ac_executable_extensions; do
13226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13227 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13238 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13239 if test -n "$STRIP_FOR_TARGET"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13241 $as_echo "$STRIP_FOR_TARGET" >&6; }
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13249 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13252 if test -n "$STRIP_FOR_TARGET"; then
13253 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13254 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13255 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13258 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13259 for ncn_progname in strip; do
13260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13261 set dummy ${ncn_progname}; ac_word=$2
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263 $as_echo_n "checking for $ac_word... " >&6; }
13264 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13265 $as_echo_n "(cached) " >&6
13267 if test -n "$STRIP_FOR_TARGET"; then
13268 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13271 for as_dir in $PATH
13274 test -z "$as_dir" && as_dir=.
13275 for ac_exec_ext in '' $ac_executable_extensions; do
13276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13277 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13288 if test -n "$STRIP_FOR_TARGET"; then
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13290 $as_echo "$STRIP_FOR_TARGET" >&6; }
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293 $as_echo "no" >&6; }
13300 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13301 for ncn_progname in strip; do
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13303 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13304 if test -x $with_build_time_tools/${ncn_progname}; then
13305 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13307 $as_echo "yes" >&6; }
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13316 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13317 for ncn_progname in strip; do
13318 if test -n "$ncn_target_tool_prefix"; then
13319 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13320 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13322 $as_echo_n "checking for $ac_word... " >&6; }
13323 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13324 $as_echo_n "(cached) " >&6
13326 if test -n "$STRIP_FOR_TARGET"; then
13327 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330 for as_dir in $PATH
13333 test -z "$as_dir" && as_dir=.
13334 for ac_exec_ext in '' $ac_executable_extensions; do
13335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13336 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13346 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13347 if test -n "$STRIP_FOR_TARGET"; then
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13349 $as_echo "$STRIP_FOR_TARGET" >&6; }
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352 $as_echo "no" >&6; }
13357 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13359 set dummy ${ncn_progname}; ac_word=$2
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361 $as_echo_n "checking for $ac_word... " >&6; }
13362 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13363 $as_echo_n "(cached) " >&6
13365 if test -n "$STRIP_FOR_TARGET"; then
13366 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13369 for as_dir in $PATH
13372 test -z "$as_dir" && as_dir=.
13373 for ac_exec_ext in '' $ac_executable_extensions; do
13374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13375 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13385 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13386 if test -n "$STRIP_FOR_TARGET"; then
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13388 $as_echo "$STRIP_FOR_TARGET" >&6; }
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13391 $as_echo "no" >&6; }
13396 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13400 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13402 if test $build = $target ; then
13403 STRIP_FOR_TARGET="$2"
13405 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13408 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13412 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13418 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13419 if test -n "$with_build_time_tools"; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13421 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13422 if test -x $with_build_time_tools/windres; then
13423 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13424 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13426 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429 $as_echo "no" >&6; }
13431 elif test $build != $host && test $have_gcc_for_target = yes; then
13432 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13433 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13434 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13437 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13438 # Extract the first word of "windres", so it can be a program name with args.
13439 set dummy windres; ac_word=$2
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441 $as_echo_n "checking for $ac_word... " >&6; }
13442 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13443 $as_echo_n "(cached) " >&6
13445 case $WINDRES_FOR_TARGET in
13447 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451 for as_dir in $gcc_cv_tool_dirs
13454 test -z "$as_dir" && as_dir=.
13455 for ac_exec_ext in '' $ac_executable_extensions; do
13456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13457 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13468 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13469 if test -n "$WINDRES_FOR_TARGET"; then
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13471 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13474 $as_echo "no" >&6; }
13479 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13482 if test -n "$WINDRES_FOR_TARGET"; then
13483 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13484 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13485 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13488 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13489 for ncn_progname in windres; do
13490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13491 set dummy ${ncn_progname}; ac_word=$2
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13493 $as_echo_n "checking for $ac_word... " >&6; }
13494 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13495 $as_echo_n "(cached) " >&6
13497 if test -n "$WINDRES_FOR_TARGET"; then
13498 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13501 for as_dir in $PATH
13504 test -z "$as_dir" && as_dir=.
13505 for ac_exec_ext in '' $ac_executable_extensions; do
13506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13507 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13517 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13518 if test -n "$WINDRES_FOR_TARGET"; then
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13520 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13523 $as_echo "no" >&6; }
13530 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13531 for ncn_progname in windres; do
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13533 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13534 if test -x $with_build_time_tools/${ncn_progname}; then
13535 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13537 $as_echo "yes" >&6; }
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541 $as_echo "no" >&6; }
13546 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13547 for ncn_progname in windres; do
13548 if test -n "$ncn_target_tool_prefix"; then
13549 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13550 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13552 $as_echo_n "checking for $ac_word... " >&6; }
13553 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13556 if test -n "$WINDRES_FOR_TARGET"; then
13557 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560 for as_dir in $PATH
13563 test -z "$as_dir" && as_dir=.
13564 for ac_exec_ext in '' $ac_executable_extensions; do
13565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13566 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13576 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13577 if test -n "$WINDRES_FOR_TARGET"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13579 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 $as_echo "no" >&6; }
13587 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13589 set dummy ${ncn_progname}; ac_word=$2
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13591 $as_echo_n "checking for $ac_word... " >&6; }
13592 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13593 $as_echo_n "(cached) " >&6
13595 if test -n "$WINDRES_FOR_TARGET"; then
13596 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13599 for as_dir in $PATH
13602 test -z "$as_dir" && as_dir=.
13603 for ac_exec_ext in '' $ac_executable_extensions; do
13604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13605 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13615 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13616 if test -n "$WINDRES_FOR_TARGET"; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13618 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13626 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13630 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13632 if test $build = $target ; then
13633 WINDRES_FOR_TARGET="$2"
13635 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13638 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13642 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13648 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13649 if test -n "$with_build_time_tools"; then
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13651 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13652 if test -x $with_build_time_tools/windmc; then
13653 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13654 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13656 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659 $as_echo "no" >&6; }
13661 elif test $build != $host && test $have_gcc_for_target = yes; then
13662 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13663 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13664 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13667 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13668 # Extract the first word of "windmc", so it can be a program name with args.
13669 set dummy windmc; ac_word=$2
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13671 $as_echo_n "checking for $ac_word... " >&6; }
13672 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13673 $as_echo_n "(cached) " >&6
13675 case $WINDMC_FOR_TARGET in
13677 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681 for as_dir in $gcc_cv_tool_dirs
13684 test -z "$as_dir" && as_dir=.
13685 for ac_exec_ext in '' $ac_executable_extensions; do
13686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13687 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13698 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13699 if test -n "$WINDMC_FOR_TARGET"; then
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13701 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704 $as_echo "no" >&6; }
13709 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13712 if test -n "$WINDMC_FOR_TARGET"; then
13713 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13714 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13715 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13718 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13719 for ncn_progname in windmc; do
13720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13721 set dummy ${ncn_progname}; ac_word=$2
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13723 $as_echo_n "checking for $ac_word... " >&6; }
13724 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13725 $as_echo_n "(cached) " >&6
13727 if test -n "$WINDMC_FOR_TARGET"; then
13728 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13731 for as_dir in $PATH
13734 test -z "$as_dir" && as_dir=.
13735 for ac_exec_ext in '' $ac_executable_extensions; do
13736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13737 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13747 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13748 if test -n "$WINDMC_FOR_TARGET"; then
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13750 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753 $as_echo "no" >&6; }
13760 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13761 for ncn_progname in windmc; do
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13763 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13764 if test -x $with_build_time_tools/${ncn_progname}; then
13765 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13767 $as_echo "yes" >&6; }
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 $as_echo "no" >&6; }
13776 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13777 for ncn_progname in windmc; do
13778 if test -n "$ncn_target_tool_prefix"; then
13779 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13780 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13782 $as_echo_n "checking for $ac_word... " >&6; }
13783 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13784 $as_echo_n "(cached) " >&6
13786 if test -n "$WINDMC_FOR_TARGET"; then
13787 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790 for as_dir in $PATH
13793 test -z "$as_dir" && as_dir=.
13794 for ac_exec_ext in '' $ac_executable_extensions; do
13795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13796 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13807 if test -n "$WINDMC_FOR_TARGET"; then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13809 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13812 $as_echo "no" >&6; }
13817 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13819 set dummy ${ncn_progname}; ac_word=$2
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13821 $as_echo_n "checking for $ac_word... " >&6; }
13822 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13823 $as_echo_n "(cached) " >&6
13825 if test -n "$WINDMC_FOR_TARGET"; then
13826 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13829 for as_dir in $PATH
13832 test -z "$as_dir" && as_dir=.
13833 for ac_exec_ext in '' $ac_executable_extensions; do
13834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13835 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13845 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13846 if test -n "$WINDMC_FOR_TARGET"; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13848 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13856 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13860 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13862 if test $build = $target ; then
13863 WINDMC_FOR_TARGET="$2"
13865 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13868 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13872 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13876 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13879 $as_echo_n "checking where to find the target ar... " >&6; }
13880 if test "x${build}" != "x${host}" ; then
13881 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13882 # We already found the complete path
13883 ac_dir=`dirname $AR_FOR_TARGET`
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13885 $as_echo "pre-installed in $ac_dir" >&6; }
13887 # Canadian cross, just use what we found
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13889 $as_echo "pre-installed" >&6; }
13893 case " ${configdirs} " in
13898 if test $ok = yes; then
13899 # An in-tree tool is available and we can use it
13900 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13902 $as_echo "just compiled" >&6; }
13903 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13904 # We already found the complete path
13905 ac_dir=`dirname $AR_FOR_TARGET`
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13907 $as_echo "pre-installed in $ac_dir" >&6; }
13908 elif test "x$target" = "x$host"; then
13909 # We can use an host tool
13910 AR_FOR_TARGET='$(AR)'
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13912 $as_echo "host tool" >&6; }
13914 # We need a cross tool
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916 $as_echo "pre-installed" >&6; }
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13921 $as_echo_n "checking where to find the target as... " >&6; }
13922 if test "x${build}" != "x${host}" ; then
13923 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13924 # We already found the complete path
13925 ac_dir=`dirname $AS_FOR_TARGET`
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13927 $as_echo "pre-installed in $ac_dir" >&6; }
13929 # Canadian cross, just use what we found
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931 $as_echo "pre-installed" >&6; }
13935 case " ${configdirs} " in
13940 if test $ok = yes; then
13941 # An in-tree tool is available and we can use it
13942 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13944 $as_echo "just compiled" >&6; }
13945 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13946 # We already found the complete path
13947 ac_dir=`dirname $AS_FOR_TARGET`
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13949 $as_echo "pre-installed in $ac_dir" >&6; }
13950 elif test "x$target" = "x$host"; then
13951 # We can use an host tool
13952 AS_FOR_TARGET='$(AS)'
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13954 $as_echo "host tool" >&6; }
13956 # We need a cross tool
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13958 $as_echo "pre-installed" >&6; }
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13963 $as_echo_n "checking where to find the target cc... " >&6; }
13964 if test "x${build}" != "x${host}" ; then
13965 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13966 # We already found the complete path
13967 ac_dir=`dirname $CC_FOR_TARGET`
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13969 $as_echo "pre-installed in $ac_dir" >&6; }
13971 # Canadian cross, just use what we found
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13973 $as_echo "pre-installed" >&6; }
13977 case " ${configdirs} " in
13982 if test $ok = yes; then
13983 # An in-tree tool is available and we can use it
13984 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13986 $as_echo "just compiled" >&6; }
13987 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13988 # We already found the complete path
13989 ac_dir=`dirname $CC_FOR_TARGET`
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13991 $as_echo "pre-installed in $ac_dir" >&6; }
13992 elif test "x$target" = "x$host"; then
13993 # We can use an host tool
13994 CC_FOR_TARGET='$(CC)'
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13996 $as_echo "host tool" >&6; }
13998 # We need a cross tool
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14000 $as_echo "pre-installed" >&6; }
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14005 $as_echo_n "checking where to find the target c++... " >&6; }
14006 if test "x${build}" != "x${host}" ; then
14007 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14008 # We already found the complete path
14009 ac_dir=`dirname $CXX_FOR_TARGET`
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14011 $as_echo "pre-installed in $ac_dir" >&6; }
14013 # Canadian cross, just use what we found
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14015 $as_echo "pre-installed" >&6; }
14019 case " ${configdirs} " in
14023 case ,${enable_languages}, in
14027 if test $ok = yes; then
14028 # An in-tree tool is available and we can use it
14029 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'
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14031 $as_echo "just compiled" >&6; }
14032 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14033 # We already found the complete path
14034 ac_dir=`dirname $CXX_FOR_TARGET`
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14036 $as_echo "pre-installed in $ac_dir" >&6; }
14037 elif test "x$target" = "x$host"; then
14038 # We can use an host tool
14039 CXX_FOR_TARGET='$(CXX)'
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14041 $as_echo "host tool" >&6; }
14043 # We need a cross tool
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14045 $as_echo "pre-installed" >&6; }
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14050 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14051 if test "x${build}" != "x${host}" ; then
14052 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14053 # We already found the complete path
14054 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056 $as_echo "pre-installed in $ac_dir" >&6; }
14058 # Canadian cross, just use what we found
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14060 $as_echo "pre-installed" >&6; }
14064 case " ${configdirs} " in
14068 case ,${enable_languages}, in
14072 if test $ok = yes; then
14073 # An in-tree tool is available and we can use it
14074 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'
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14076 $as_echo "just compiled" >&6; }
14077 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14078 # We already found the complete path
14079 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081 $as_echo "pre-installed in $ac_dir" >&6; }
14082 elif test "x$target" = "x$host"; then
14083 # We can use an host tool
14084 RAW_CXX_FOR_TARGET='$(CXX)'
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14086 $as_echo "host tool" >&6; }
14088 # We need a cross tool
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14090 $as_echo "pre-installed" >&6; }
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14095 $as_echo_n "checking where to find the target dlltool... " >&6; }
14096 if test "x${build}" != "x${host}" ; then
14097 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14098 # We already found the complete path
14099 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101 $as_echo "pre-installed in $ac_dir" >&6; }
14103 # Canadian cross, just use what we found
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105 $as_echo "pre-installed" >&6; }
14109 case " ${configdirs} " in
14114 if test $ok = yes; then
14115 # An in-tree tool is available and we can use it
14116 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14118 $as_echo "just compiled" >&6; }
14119 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
14121 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123 $as_echo "pre-installed in $ac_dir" >&6; }
14124 elif test "x$target" = "x$host"; then
14125 # We can use an host tool
14126 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128 $as_echo "host tool" >&6; }
14130 # We need a cross tool
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132 $as_echo "pre-installed" >&6; }
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14137 $as_echo_n "checking where to find the target gcc... " >&6; }
14138 if test "x${build}" != "x${host}" ; then
14139 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
14141 ac_dir=`dirname $GCC_FOR_TARGET`
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143 $as_echo "pre-installed in $ac_dir" >&6; }
14145 # Canadian cross, just use what we found
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14147 $as_echo "pre-installed" >&6; }
14151 case " ${configdirs} " in
14156 if test $ok = yes; then
14157 # An in-tree tool is available and we can use it
14158 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14160 $as_echo "just compiled" >&6; }
14161 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
14163 ac_dir=`dirname $GCC_FOR_TARGET`
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165 $as_echo "pre-installed in $ac_dir" >&6; }
14166 elif test "x$target" = "x$host"; then
14167 # We can use an host tool
14168 GCC_FOR_TARGET='$()'
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14170 $as_echo "host tool" >&6; }
14172 # We need a cross tool
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174 $as_echo "pre-installed" >&6; }
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14179 $as_echo_n "checking where to find the target gcj... " >&6; }
14180 if test "x${build}" != "x${host}" ; then
14181 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
14183 ac_dir=`dirname $GCJ_FOR_TARGET`
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185 $as_echo "pre-installed in $ac_dir" >&6; }
14187 # Canadian cross, just use what we found
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189 $as_echo "pre-installed" >&6; }
14193 case " ${configdirs} " in
14197 case ,${enable_languages}, in
14201 if test $ok = yes; then
14202 # An in-tree tool is available and we can use it
14203 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14205 $as_echo "just compiled" >&6; }
14206 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14207 # We already found the complete path
14208 ac_dir=`dirname $GCJ_FOR_TARGET`
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14210 $as_echo "pre-installed in $ac_dir" >&6; }
14211 elif test "x$target" = "x$host"; then
14212 # We can use an host tool
14213 GCJ_FOR_TARGET='$(GCJ)'
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14215 $as_echo "host tool" >&6; }
14217 # We need a cross tool
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14219 $as_echo "pre-installed" >&6; }
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14224 $as_echo_n "checking where to find the target gfortran... " >&6; }
14225 if test "x${build}" != "x${host}" ; then
14226 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14227 # We already found the complete path
14228 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14230 $as_echo "pre-installed in $ac_dir" >&6; }
14232 # Canadian cross, just use what we found
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14234 $as_echo "pre-installed" >&6; }
14238 case " ${configdirs} " in
14242 case ,${enable_languages}, in
14246 if test $ok = yes; then
14247 # An in-tree tool is available and we can use it
14248 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14250 $as_echo "just compiled" >&6; }
14251 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14252 # We already found the complete path
14253 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14255 $as_echo "pre-installed in $ac_dir" >&6; }
14256 elif test "x$target" = "x$host"; then
14257 # We can use an host tool
14258 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14260 $as_echo "host tool" >&6; }
14262 # We need a cross tool
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14264 $as_echo "pre-installed" >&6; }
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14269 $as_echo_n "checking where to find the target gccgo... " >&6; }
14270 if test "x${build}" != "x${host}" ; then
14271 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14272 # We already found the complete path
14273 ac_dir=`dirname $GOC_FOR_TARGET`
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14275 $as_echo "pre-installed in $ac_dir" >&6; }
14277 # Canadian cross, just use what we found
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14279 $as_echo "pre-installed" >&6; }
14283 case " ${configdirs} " in
14287 case ,${enable_languages}, in
14291 if test $ok = yes; then
14292 # An in-tree tool is available and we can use it
14293 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14295 $as_echo "just compiled" >&6; }
14296 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $GOC_FOR_TARGET`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300 $as_echo "pre-installed in $ac_dir" >&6; }
14301 elif test "x$target" = "x$host"; then
14302 # We can use an host tool
14303 GOC_FOR_TARGET='$(GOC)'
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14305 $as_echo "host tool" >&6; }
14307 # We need a cross tool
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14309 $as_echo "pre-installed" >&6; }
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14314 $as_echo_n "checking where to find the target ld... " >&6; }
14315 if test "x${build}" != "x${host}" ; then
14316 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14317 # We already found the complete path
14318 ac_dir=`dirname $LD_FOR_TARGET`
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320 $as_echo "pre-installed in $ac_dir" >&6; }
14322 # Canadian cross, just use what we found
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14324 $as_echo "pre-installed" >&6; }
14328 case " ${configdirs} " in
14333 if test $ok = yes; then
14334 # An in-tree tool is available and we can use it
14335 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14337 $as_echo "just compiled" >&6; }
14338 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
14340 ac_dir=`dirname $LD_FOR_TARGET`
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342 $as_echo "pre-installed in $ac_dir" >&6; }
14343 elif test "x$target" = "x$host"; then
14344 # We can use an host tool
14345 LD_FOR_TARGET='$(LD)'
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14347 $as_echo "host tool" >&6; }
14349 # We need a cross tool
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14351 $as_echo "pre-installed" >&6; }
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14356 $as_echo_n "checking where to find the target lipo... " >&6; }
14357 if test "x${build}" != "x${host}" ; then
14358 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14359 # We already found the complete path
14360 ac_dir=`dirname $LIPO_FOR_TARGET`
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14362 $as_echo "pre-installed in $ac_dir" >&6; }
14364 # Canadian cross, just use what we found
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14366 $as_echo "pre-installed" >&6; }
14369 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14370 # We already found the complete path
14371 ac_dir=`dirname $LIPO_FOR_TARGET`
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14373 $as_echo "pre-installed in $ac_dir" >&6; }
14374 elif test "x$target" = "x$host"; then
14375 # We can use an host tool
14376 LIPO_FOR_TARGET='$(LIPO)'
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14378 $as_echo "host tool" >&6; }
14380 # We need a cross tool
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14382 $as_echo "pre-installed" >&6; }
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14387 $as_echo_n "checking where to find the target nm... " >&6; }
14388 if test "x${build}" != "x${host}" ; then
14389 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14390 # We already found the complete path
14391 ac_dir=`dirname $NM_FOR_TARGET`
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14393 $as_echo "pre-installed in $ac_dir" >&6; }
14395 # Canadian cross, just use what we found
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14397 $as_echo "pre-installed" >&6; }
14401 case " ${configdirs} " in
14406 if test $ok = yes; then
14407 # An in-tree tool is available and we can use it
14408 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14410 $as_echo "just compiled" >&6; }
14411 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14412 # We already found the complete path
14413 ac_dir=`dirname $NM_FOR_TARGET`
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14415 $as_echo "pre-installed in $ac_dir" >&6; }
14416 elif test "x$target" = "x$host"; then
14417 # We can use an host tool
14418 NM_FOR_TARGET='$(NM)'
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14420 $as_echo "host tool" >&6; }
14422 # We need a cross tool
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14424 $as_echo "pre-installed" >&6; }
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14429 $as_echo_n "checking where to find the target objcopy... " >&6; }
14430 if test "x${build}" != "x${host}" ; then
14431 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14432 # We already found the complete path
14433 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14435 $as_echo "pre-installed in $ac_dir" >&6; }
14437 # Canadian cross, just use what we found
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14439 $as_echo "pre-installed" >&6; }
14443 case " ${configdirs} " in
14448 if test $ok = yes; then
14449 # An in-tree tool is available and we can use it
14450 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14452 $as_echo "just compiled" >&6; }
14453 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14454 # We already found the complete path
14455 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14457 $as_echo "pre-installed in $ac_dir" >&6; }
14458 elif test "x$target" = "x$host"; then
14459 # We can use an host tool
14460 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14462 $as_echo "host tool" >&6; }
14464 # We need a cross tool
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14466 $as_echo "pre-installed" >&6; }
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14471 $as_echo_n "checking where to find the target objdump... " >&6; }
14472 if test "x${build}" != "x${host}" ; then
14473 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14474 # We already found the complete path
14475 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14477 $as_echo "pre-installed in $ac_dir" >&6; }
14479 # Canadian cross, just use what we found
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14481 $as_echo "pre-installed" >&6; }
14485 case " ${configdirs} " in
14490 if test $ok = yes; then
14491 # An in-tree tool is available and we can use it
14492 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14494 $as_echo "just compiled" >&6; }
14495 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14496 # We already found the complete path
14497 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14499 $as_echo "pre-installed in $ac_dir" >&6; }
14500 elif test "x$target" = "x$host"; then
14501 # We can use an host tool
14502 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14504 $as_echo "host tool" >&6; }
14506 # We need a cross tool
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14508 $as_echo "pre-installed" >&6; }
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14513 $as_echo_n "checking where to find the target ranlib... " >&6; }
14514 if test "x${build}" != "x${host}" ; then
14515 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14516 # We already found the complete path
14517 ac_dir=`dirname $RANLIB_FOR_TARGET`
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14519 $as_echo "pre-installed in $ac_dir" >&6; }
14521 # Canadian cross, just use what we found
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14523 $as_echo "pre-installed" >&6; }
14527 case " ${configdirs} " in
14532 if test $ok = yes; then
14533 # An in-tree tool is available and we can use it
14534 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14536 $as_echo "just compiled" >&6; }
14537 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14538 # We already found the complete path
14539 ac_dir=`dirname $RANLIB_FOR_TARGET`
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14541 $as_echo "pre-installed in $ac_dir" >&6; }
14542 elif test "x$target" = "x$host"; then
14543 # We can use an host tool
14544 RANLIB_FOR_TARGET='$(RANLIB)'
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14546 $as_echo "host tool" >&6; }
14548 # We need a cross tool
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14550 $as_echo "pre-installed" >&6; }
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14555 $as_echo_n "checking where to find the target readelf... " >&6; }
14556 if test "x${build}" != "x${host}" ; then
14557 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14558 # We already found the complete path
14559 ac_dir=`dirname $READELF_FOR_TARGET`
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14561 $as_echo "pre-installed in $ac_dir" >&6; }
14563 # Canadian cross, just use what we found
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14565 $as_echo "pre-installed" >&6; }
14569 case " ${configdirs} " in
14574 if test $ok = yes; then
14575 # An in-tree tool is available and we can use it
14576 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14578 $as_echo "just compiled" >&6; }
14579 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14580 # We already found the complete path
14581 ac_dir=`dirname $READELF_FOR_TARGET`
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14583 $as_echo "pre-installed in $ac_dir" >&6; }
14584 elif test "x$target" = "x$host"; then
14585 # We can use an host tool
14586 READELF_FOR_TARGET='$(READELF)'
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14588 $as_echo "host tool" >&6; }
14590 # We need a cross tool
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14592 $as_echo "pre-installed" >&6; }
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14597 $as_echo_n "checking where to find the target strip... " >&6; }
14598 if test "x${build}" != "x${host}" ; then
14599 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14600 # We already found the complete path
14601 ac_dir=`dirname $STRIP_FOR_TARGET`
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14603 $as_echo "pre-installed in $ac_dir" >&6; }
14605 # Canadian cross, just use what we found
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14607 $as_echo "pre-installed" >&6; }
14611 case " ${configdirs} " in
14616 if test $ok = yes; then
14617 # An in-tree tool is available and we can use it
14618 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14620 $as_echo "just compiled" >&6; }
14621 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14622 # We already found the complete path
14623 ac_dir=`dirname $STRIP_FOR_TARGET`
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14625 $as_echo "pre-installed in $ac_dir" >&6; }
14626 elif test "x$target" = "x$host"; then
14627 # We can use an host tool
14628 STRIP_FOR_TARGET='$(STRIP)'
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14630 $as_echo "host tool" >&6; }
14632 # We need a cross tool
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14634 $as_echo "pre-installed" >&6; }
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14639 $as_echo_n "checking where to find the target windres... " >&6; }
14640 if test "x${build}" != "x${host}" ; then
14641 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14642 # We already found the complete path
14643 ac_dir=`dirname $WINDRES_FOR_TARGET`
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14645 $as_echo "pre-installed in $ac_dir" >&6; }
14647 # Canadian cross, just use what we found
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14649 $as_echo "pre-installed" >&6; }
14653 case " ${configdirs} " in
14658 if test $ok = yes; then
14659 # An in-tree tool is available and we can use it
14660 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14662 $as_echo "just compiled" >&6; }
14663 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14664 # We already found the complete path
14665 ac_dir=`dirname $WINDRES_FOR_TARGET`
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14667 $as_echo "pre-installed in $ac_dir" >&6; }
14668 elif test "x$target" = "x$host"; then
14669 # We can use an host tool
14670 WINDRES_FOR_TARGET='$(WINDRES)'
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14672 $as_echo "host tool" >&6; }
14674 # We need a cross tool
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14676 $as_echo "pre-installed" >&6; }
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14681 $as_echo_n "checking where to find the target windmc... " >&6; }
14682 if test "x${build}" != "x${host}" ; then
14683 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14684 # We already found the complete path
14685 ac_dir=`dirname $WINDMC_FOR_TARGET`
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14687 $as_echo "pre-installed in $ac_dir" >&6; }
14689 # Canadian cross, just use what we found
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14691 $as_echo "pre-installed" >&6; }
14695 case " ${configdirs} " in
14700 if test $ok = yes; then
14701 # An in-tree tool is available and we can use it
14702 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14704 $as_echo "just compiled" >&6; }
14705 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14706 # We already found the complete path
14707 ac_dir=`dirname $WINDMC_FOR_TARGET`
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14709 $as_echo "pre-installed in $ac_dir" >&6; }
14710 elif test "x$target" = "x$host"; then
14711 # We can use an host tool
14712 WINDMC_FOR_TARGET='$(WINDMC)'
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14714 $as_echo "host tool" >&6; }
14716 # We need a cross tool
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14718 $as_echo "pre-installed" >&6; }
14726 # Certain tools may need extra flags.
14727 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14728 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14729 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14731 # When building target libraries, except in a Canadian cross, we use
14732 # the same toolchain as the compiler we just built.
14733 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14734 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14735 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14736 if test $host = $build; then
14737 case " $configdirs " in
14739 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14740 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14741 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14751 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14752 # Check whether --enable-maintainer-mode was given.
14753 if test "${enable_maintainer_mode+set}" = set; then :
14754 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14756 USE_MAINTAINER_MODE=no
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14760 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14763 if test "$USE_MAINTAINER_MODE" = yes; then
14764 MAINTAINER_MODE_TRUE=
14765 MAINTAINER_MODE_FALSE='#'
14767 MAINTAINER_MODE_TRUE='#'
14768 MAINTAINER_MODE_FALSE=
14770 MAINT=$MAINTAINER_MODE_TRUE
14772 # ---------------------
14773 # GCC bootstrap support
14774 # ---------------------
14776 # Stage specific cflags for build.
14781 yes) stage1_cflags="-g -Wa,-J" ;;
14782 *) stage1_cflags="-g -J" ;;
14788 # Enable --enable-checking in stage1 of the compiler.
14789 # Check whether --enable-stage1-checking was given.
14790 if test "${enable_stage1_checking+set}" = set; then :
14791 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14793 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14794 stage1_checking=--enable-checking=yes,types
14796 stage1_checking=--enable-checking=$enable_checking,types
14802 # Enable -Werror in bootstrap stage2 and later.
14803 # Check whether --enable-werror was given.
14804 if test "${enable_werror+set}" = set; then :
14805 enableval=$enable_werror;
14807 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14814 case ${enable_werror} in
14815 yes) stage2_werror_flag="--enable-werror-always" ;;
14816 *) stage2_werror_flag="" ;;
14820 # Enable --enable-host-shared.
14821 # Check whether --enable-host-shared was given.
14822 if test "${enable_host_shared+set}" = set; then :
14823 enableval=$enable_host_shared; host_shared=$enableval
14830 # PR jit/64780: Require the user to explicitly specify
14831 # --enable-host-shared if the jit is enabled, hinting
14832 # that they might want to do a separate configure/build of
14833 # the jit, to avoid users from slowing down the rest of the
14834 # compiler by enabling the jit.
14835 if test ${host_shared} = "no" ; then
14836 case "${enable_languages}" in
14839 Enabling language \"jit\" requires --enable-host-shared.
14841 --enable-host-shared typically slows the rest of the compiler down by
14842 a few %, so you must explicitly enable it.
14844 If you want to build both the jit and the regular compiler, it is often
14845 best to do this via two separate configure/builds, in separate
14846 directories, to avoid imposing the performance cost of
14847 --enable-host-shared on the regular compiler." "$LINENO" 5
14854 # Specify what files to not compare during bootstrap.
14856 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14858 hppa*64*-*-hpux*) ;;
14859 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14860 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14864 ac_config_files="$ac_config_files Makefile"
14866 cat >confcache <<\_ACEOF
14867 # This file is a shell script that caches the results of configure
14868 # tests run on this system so they can be shared between configure
14869 # scripts and configure runs, see configure's option --config-cache.
14870 # It is not useful on other systems. If it contains results you don't
14871 # want to keep, you may remove or edit it.
14873 # config.status only pays attention to the cache file if you give it
14874 # the --recheck option to rerun configure.
14876 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14877 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14878 # following values.
14882 # The following way of writing the cache mishandles newlines in values,
14883 # but we know of no workaround that is simple, portable, and efficient.
14884 # So, we kill variables containing newlines.
14885 # Ultrix sh set writes to stderr and can't be redirected directly,
14886 # and sets the high bit in the cache file unless we assign to the vars.
14888 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14889 eval ac_val=\$$ac_var
14893 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14894 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14897 _ | IFS | as_nl) ;; #(
14898 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14899 *) { eval $ac_var=; unset $ac_var;} ;;
14905 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14906 *${as_nl}ac_space=\ *)
14907 # `set' does not quote correctly, so add quotes: double-quote
14908 # substitution turns \\\\ into \\, and sed turns \\ into \.
14911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14914 # `set' quotes correctly as required by POSIX, so do not add quotes.
14915 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14926 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14928 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14929 if test -w "$cache_file"; then
14930 test "x$cache_file" != "x/dev/null" &&
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14932 $as_echo "$as_me: updating cache $cache_file" >&6;}
14933 cat confcache >$cache_file
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14936 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14942 # Let make expand exec_prefix.
14943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14945 # Transform confdefs.h into DEFS.
14946 # Protect against shell expansion while executing Makefile rules.
14947 # Protect against Makefile macro expansion.
14949 # If the first sed substitution is executed (which looks for macros that
14950 # take arguments), then branch to the quote section. Otherwise,
14951 # look for a macro that doesn't take arguments.
14961 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14963 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14967 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14980 DEFS=`sed -n "$ac_script" confdefs.h`
14985 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14986 # 1. Remove the extension, and $U if already installed.
14987 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14988 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14989 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14990 # will be set to the directory where LIBOBJS objects are built.
14991 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14992 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14994 LIBOBJS=$ac_libobjs
14996 LTLIBOBJS=$ac_ltlibobjs
15000 : ${CONFIG_STATUS=./config.status}
15002 ac_clean_files_save=$ac_clean_files
15003 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15005 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15007 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15009 # Generated by $as_me.
15010 # Run this file to recreate the current configuration.
15011 # Compiler output produced by configure, useful for debugging
15012 # configure, is in config.log if it exists.
15015 ac_cs_recheck=false
15018 SHELL=\${CONFIG_SHELL-$SHELL}
15021 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15022 ## -------------------- ##
15023 ## M4sh Initialization. ##
15024 ## -------------------- ##
15026 # Be more Bourne compatible
15027 DUALCASE=1; export DUALCASE # for MKS sh
15028 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15031 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15032 # is contrary to our usage. Disable this feature.
15033 alias -g '${1+"$@"}'='"$@"'
15034 setopt NO_GLOB_SUBST
15036 case `(set -o) 2>/dev/null` in #(
15048 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15049 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15050 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15051 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15052 # Prefer a ksh shell builtin over an external printf program on Solaris,
15053 # but without wasting forks for bash or zsh.
15054 if test -z "$BASH_VERSION$ZSH_VERSION" \
15055 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15056 as_echo='print -r --'
15057 as_echo_n='print -rn --'
15058 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15059 as_echo='printf %s\n'
15060 as_echo_n='printf %s'
15062 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15063 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15064 as_echo_n='/usr/ucb/echo -n'
15066 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15067 as_echo_n_body='eval
15071 expr "X$arg" : "X\\(.*\\)$as_nl";
15072 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15074 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15076 export as_echo_n_body
15077 as_echo_n='sh -c $as_echo_n_body as_echo'
15079 export as_echo_body
15080 as_echo='sh -c $as_echo_body as_echo'
15083 # The user is always right.
15084 if test "${PATH_SEPARATOR+set}" != set; then
15086 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15087 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15094 # We need space, tab and new line, in precisely that order. Quoting is
15095 # there to prevent editors from complaining about space-tab.
15096 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15097 # splitting by setting IFS to empty value.)
15100 # Find who we are. Look in the path if we contain no directory separator.
15102 *[\\/]* ) as_myself=$0 ;;
15103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15104 for as_dir in $PATH
15107 test -z "$as_dir" && as_dir=.
15108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15114 # We did not find ourselves, most probably we were run as `sh COMMAND'
15115 # in which case we are not to be found in the path.
15116 if test "x$as_myself" = x; then
15119 if test ! -f "$as_myself"; then
15120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15124 # Unset variables that we do not need and which cause bugs (e.g. in
15125 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15126 # suppresses any "Segmentation fault" message there. '((' could
15127 # trigger a bug in pdksh 5.2.14.
15128 for as_var in BASH_ENV ENV MAIL MAILPATH
15129 do eval test x\${$as_var+set} = xset \
15130 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15146 # as_fn_error ERROR [LINENO LOG_FD]
15147 # ---------------------------------
15148 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15149 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15150 # script with status $?, using 1 if that was 0.
15153 as_status=$?; test $as_status -eq 0 && as_status=1
15155 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15156 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15158 $as_echo "$as_me: error: $1" >&2
15159 as_fn_exit $as_status
15163 # as_fn_set_status STATUS
15164 # -----------------------
15165 # Set $? to STATUS, without forking.
15166 as_fn_set_status ()
15169 } # as_fn_set_status
15171 # as_fn_exit STATUS
15172 # -----------------
15173 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15177 as_fn_set_status $1
15183 # Portably unset VAR.
15186 { eval $1=; unset $1;}
15188 as_unset=as_fn_unset
15189 # as_fn_append VAR VALUE
15190 # ----------------------
15191 # Append the text in VALUE to the end of the definition contained in VAR. Take
15192 # advantage of any shell optimizations that allow amortized linear growth over
15193 # repeated appends, instead of the typical quadratic growth present in naive
15195 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15196 eval 'as_fn_append ()
15207 # as_fn_arith ARG...
15208 # ------------------
15209 # Perform arithmetic evaluation on the ARGs, and store the result in the
15210 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15211 # must be portable across $(()) and expr.
15212 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15213 eval 'as_fn_arith ()
15220 as_val=`expr "$@" || test $? -eq 1`
15225 if expr a : '\(a\)' >/dev/null 2>&1 &&
15226 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15232 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15233 as_basename=basename
15238 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15244 as_me=`$as_basename -- "$0" ||
15245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15246 X"$0" : 'X\(//\)$' \| \
15247 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15249 sed '/^.*\/\([^/][^/]*\)\/*$/{
15263 # Avoid depending upon Character Ranges.
15264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15267 as_cr_digits='0123456789'
15268 as_cr_alnum=$as_cr_Letters$as_cr_digits
15270 ECHO_C= ECHO_N= ECHO_T=
15271 case `echo -n x` in #(((((
15273 case `echo 'xy\c'` in
15274 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15276 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15283 rm -f conf$$ conf$$.exe conf$$.file
15284 if test -d conf$$.dir; then
15285 rm -f conf$$.dir/conf$$.file
15288 mkdir conf$$.dir 2>/dev/null
15290 if (echo >conf$$.file) 2>/dev/null; then
15291 if ln -s conf$$.file conf$$ 2>/dev/null; then
15293 # ... but there are two gotchas:
15294 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15295 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15296 # In both cases, we have to default to `cp -p'.
15297 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15299 elif ln conf$$.file conf$$ 2>/dev/null; then
15307 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15308 rmdir conf$$.dir 2>/dev/null
15313 # Create "$as_dir" as a directory, including parents if necessary.
15318 -*) as_dir=./$as_dir;;
15320 test -d "$as_dir" || eval $as_mkdir_p || {
15324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15325 *) as_qdir=$as_dir;;
15327 as_dirs="'$as_qdir' $as_dirs"
15328 as_dir=`$as_dirname -- "$as_dir" ||
15329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15330 X"$as_dir" : 'X\(//\)[^/]' \| \
15331 X"$as_dir" : 'X\(//\)$' \| \
15332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15333 $as_echo X"$as_dir" |
15334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15338 /^X\(\/\/\)[^/].*/{
15351 test -d "$as_dir" && break
15353 test -z "$as_dirs" || eval "mkdir $as_dirs"
15354 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15358 if mkdir -p . 2>/dev/null; then
15359 as_mkdir_p='mkdir -p "$as_dir"'
15361 test -d ./-p && rmdir ./-p
15365 if test -x / >/dev/null 2>&1; then
15366 as_test_x='test -x'
15368 if ls -dL / >/dev/null 2>&1; then
15375 if test -d "$1"; then
15381 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15382 ???[sx]*):;;*)false;;esac;fi
15386 as_executable_p=$as_test_x
15388 # Sed expression to map a string onto a valid CPP name.
15389 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15391 # Sed expression to map a string onto a valid variable name.
15392 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15396 ## ----------------------------------- ##
15397 ## Main body of $CONFIG_STATUS script. ##
15398 ## ----------------------------------- ##
15400 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15403 # Save the log message, to keep $0 and so on meaningful, and to
15404 # report actual input values of CONFIG_FILES etc. instead of their
15405 # values after options handling.
15407 This file was extended by $as_me, which was
15408 generated by GNU Autoconf 2.64. Invocation command line was
15410 CONFIG_FILES = $CONFIG_FILES
15411 CONFIG_HEADERS = $CONFIG_HEADERS
15412 CONFIG_LINKS = $CONFIG_LINKS
15413 CONFIG_COMMANDS = $CONFIG_COMMANDS
15416 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15421 case $ac_config_files in *"
15422 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15428 # Files that config.status was made for.
15429 config_files="$ac_config_files"
15433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15435 \`$as_me' instantiates files and other configuration actions
15436 from templates according to the current configuration. Unless the files
15437 and actions are specified as TAGs, all are instantiated by default.
15439 Usage: $0 [OPTION]... [TAG]...
15441 -h, --help print this help, then exit
15442 -V, --version print version number and configuration settings, then exit
15443 -q, --quiet, --silent
15444 do not print progress messages
15445 -d, --debug don't remove temporary files
15446 --recheck update $as_me by reconfiguring in the same conditions
15447 --file=FILE[:TEMPLATE]
15448 instantiate the configuration file FILE
15450 Configuration files:
15453 Report bugs to the package provider."
15456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15459 configured by $0, generated by GNU Autoconf 2.64,
15460 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15462 Copyright (C) 2009 Free Software Foundation, Inc.
15463 This config.status script is free software; the Free Software Foundation
15464 gives unlimited permission to copy, distribute and modify it."
15470 test -n "\$AWK" || AWK=awk
15473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15474 # The default lists apply if the user does not specify any file.
15480 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15481 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15492 # Handling of the options.
15493 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15495 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15496 $as_echo "$ac_cs_version"; exit ;;
15497 --debug | --debu | --deb | --de | --d | -d )
15499 --file | --fil | --fi | --f )
15502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15504 as_fn_append CONFIG_FILES " '$ac_optarg'"
15505 ac_need_defaults=false;;
15506 --he | --h | --help | --hel | -h )
15507 $as_echo "$ac_cs_usage"; exit ;;
15508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15509 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15512 # This is an error.
15513 -*) as_fn_error "unrecognized option: \`$1'
15514 Try \`$0 --help' for more information." ;;
15516 *) as_fn_append ac_config_targets " $1"
15517 ac_need_defaults=false ;;
15523 ac_configure_extra_args=
15525 if $ac_cs_silent; then
15527 ac_configure_extra_args="$ac_configure_extra_args --silent"
15531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15532 if \$ac_cs_recheck; then
15533 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15535 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15536 CONFIG_SHELL='$SHELL'
15537 export CONFIG_SHELL
15542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15546 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15547 ## Running $as_me. ##
15553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15557 extrasub_build="$extrasub_build"
15558 extrasub_host="$extrasub_host"
15559 extrasub_target="$extrasub_target"
15563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15565 # Handling of arguments.
15566 for ac_config_target in $ac_config_targets
15568 case $ac_config_target in
15569 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15571 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15576 # If the user did not use the arguments to specify the items to instantiate,
15577 # then the envvar interface is used. Set only those that are not.
15578 # We use the long form for the default assignment because of an extremely
15579 # bizarre bug on SunOS 4.1.3.
15580 if $ac_need_defaults; then
15581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15584 # Have a temporary directory for convenience. Make it in the build tree
15585 # simply because there is no reason against having it here, and in addition,
15586 # creating and moving files from /tmp can sometimes cause problems.
15587 # Hook for its removal unless debugging.
15588 # Note that there is a small window in which the directory will not be cleaned:
15589 # after its creation but before its name has been assigned to `$tmp'.
15593 trap 'exit_status=$?
15594 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15596 trap 'as_fn_exit 1' 1 2 13 15
15598 # Create a (secure) tmp directory for tmp files.
15601 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15602 test -n "$tmp" && test -d "$tmp"
15605 tmp=./conf$$-$RANDOM
15606 (umask 077 && mkdir "$tmp")
15607 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15609 # Set up the scripts for CONFIG_FILES section.
15610 # No need to generate them if there are no CONFIG_FILES.
15611 # This happens for instance with `./config.status config.h'.
15612 if test -n "$CONFIG_FILES"; then
15614 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15615 ac_cs_awk_getline=:
15616 ac_cs_awk_pipe_init=
15617 ac_cs_awk_read_file='
15618 while ((getline aline < (F[key])) > 0)
15621 ac_cs_awk_pipe_fini=
15623 ac_cs_awk_getline=false
15624 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15625 ac_cs_awk_read_file='
15627 print "cat " F[key] " &&"
15628 '$ac_cs_awk_pipe_init
15629 # The final `:' finishes the AND list.
15630 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15632 ac_cr=`echo X | tr X '\015'`
15633 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15634 # But we know of no other shell where ac_cr would be empty at this
15635 # point, so we can use a bashism as a fallback.
15636 if test "x$ac_cr" = x; then
15637 eval ac_cr=\$\'\\r\'
15639 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15640 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15643 ac_cs_awk_cr=$ac_cr
15646 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15649 # Create commands to substitute file output variables.
15651 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15652 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15653 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15656 } >conf$$files.sh &&
15657 . ./conf$$files.sh ||
15658 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15659 rm -f conf$$files.sh
15662 echo "cat >conf$$subs.awk <<_ACEOF" &&
15663 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15665 } >conf$$subs.sh ||
15666 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15667 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15669 for ac_last_try in false false false false false :; do
15670 . ./conf$$subs.sh ||
15671 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15673 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15674 if test $ac_delim_n = $ac_delim_num; then
15676 elif $ac_last_try; then
15677 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15679 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15682 rm -f conf$$subs.sh
15684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15685 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15689 s/^/S["/; s/!.*/"]=/
15699 s/\(.\{148\}\).*/\1/
15701 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15713 s/\(.\{148\}\).*/\1/
15715 s/["\\]/\\&/g; s/^/"/; s/$/"/
15719 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15724 ' <conf$$subs.awk | sed '
15729 ' >>$CONFIG_STATUS || ac_write_fail=1
15730 rm -f conf$$subs.awk
15731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15733 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15734 for (key in S) S_is_set[key] = 1
15736 \$ac_cs_awk_pipe_init
15740 nfields = split(line, field, "@")
15742 len = length(field[1])
15743 for (i = 2; i < nfields; i++) {
15745 keylen = length(key)
15746 if (S_is_set[key]) {
15748 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15749 len += length(value) + length(field[++i])
15754 if (nfields == 3 && !substed) {
15756 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15757 \$ac_cs_awk_read_file
15763 \$ac_cs_awk_pipe_fini
15766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15767 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15768 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15771 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15772 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15775 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15776 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15777 # trailing colons and then remove the whole line if VPATH becomes empty
15778 # (actually we leave an empty line to preserve line numbers).
15779 if test "x$srcdir" = x.; then
15780 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15781 s/:*\$(srcdir):*/:/
15782 s/:*\${srcdir}:*/:/
15784 s/^\([^=]*=[ ]*\):*/\1/
15790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15791 fi # test -n "$CONFIG_FILES"
15794 eval set X " :F $CONFIG_FILES "
15799 :[FHLC]) ac_mode=$ac_tag; continue;;
15801 case $ac_mode$ac_tag in
15803 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15804 :[FH]-) ac_tag=-:-;;
15805 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15822 -) ac_f="$tmp/stdin";;
15823 *) # Look for the file first in the build tree, then in the source tree
15824 # (if the path is not absolute). The absolute path cannot be DOS-style,
15825 # because $ac_f cannot contain `:'.
15829 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15831 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15833 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15834 as_fn_append ac_file_inputs " '$ac_f'"
15837 # Let's still pretend it is `configure' which instantiates (i.e., don't
15838 # use $as_me), people would be surprised to read:
15839 # /* config.h. Generated by config.status. */
15840 configure_input='Generated from '`
15841 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15843 if test x"$ac_file" != x-; then
15844 configure_input="$ac_file. $configure_input"
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15846 $as_echo "$as_me: creating $ac_file" >&6;}
15848 # Neutralize special characters interpreted by sed in replacement strings.
15849 case $configure_input in #(
15850 *\&* | *\|* | *\\* )
15851 ac_sed_conf_input=`$as_echo "$configure_input" |
15852 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15853 *) ac_sed_conf_input=$configure_input;;
15857 *:-:* | *:-) cat >"$tmp/stdin" \
15858 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15863 ac_dir=`$as_dirname -- "$ac_file" ||
15864 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15865 X"$ac_file" : 'X\(//\)[^/]' \| \
15866 X"$ac_file" : 'X\(//\)$' \| \
15867 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15868 $as_echo X"$ac_file" |
15869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15873 /^X\(\/\/\)[^/].*/{
15886 as_dir="$ac_dir"; as_fn_mkdir_p
15890 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15892 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15893 # A ".." for each directory in $ac_dir_suffix.
15894 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15895 case $ac_top_builddir_sub in
15896 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15897 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15900 ac_abs_top_builddir=$ac_pwd
15901 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15902 # for backward compatibility:
15903 ac_top_builddir=$ac_top_build_prefix
15906 .) # We are building in place.
15908 ac_top_srcdir=$ac_top_builddir_sub
15909 ac_abs_top_srcdir=$ac_pwd ;;
15910 [\\/]* | ?:[\\/]* ) # Absolute name.
15911 ac_srcdir=$srcdir$ac_dir_suffix;
15912 ac_top_srcdir=$srcdir
15913 ac_abs_top_srcdir=$srcdir ;;
15914 *) # Relative name.
15915 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15916 ac_top_srcdir=$ac_top_build_prefix$srcdir
15917 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15919 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15929 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15930 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15935 # If the template does not know about datarootdir, expand it.
15936 # FIXME: This hack should be removed a few years after 2.60.
15937 ac_datarootdir_hack=; ac_datarootdir_seen=
15948 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15949 *datarootdir*) ac_datarootdir_seen=yes;;
15950 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15952 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15955 ac_datarootdir_hack='
15956 s&@datadir@&$datadir&g
15957 s&@docdir@&$docdir&g
15958 s&@infodir@&$infodir&g
15959 s&@localedir@&$localedir&g
15960 s&@mandir@&$mandir&g
15961 s&\\\${datarootdir}&$datarootdir&g' ;;
15965 # Neutralize VPATH when `$srcdir' = `.'.
15966 # Shell code in configure.ac might set extrasub.
15967 # FIXME: do we really want to maintain this feature?
15968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15969 ac_sed_extra="$ac_vpsub
15972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15975 s|@configure_input@|$ac_sed_conf_input|;t t
15976 s&@top_builddir@&$ac_top_builddir_sub&;t t
15977 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15978 s&@srcdir@&$ac_srcdir&;t t
15979 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15980 s&@top_srcdir@&$ac_top_srcdir&;t t
15981 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15982 s&@builddir@&$ac_builddir&;t t
15983 s&@abs_builddir@&$ac_abs_builddir&;t t
15984 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15985 s&@INSTALL@&$ac_INSTALL&;t t
15986 $ac_datarootdir_hack
15988 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15989 if $ac_cs_awk_getline; then
15990 $AWK -f "$tmp/subs.awk"
15992 $AWK -f "$tmp/subs.awk" | $SHELL
15994 || as_fn_error "could not create $ac_file" "$LINENO" 5
15996 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15997 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15998 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16000 which seems to be undefined. Please make sure it is defined." >&5
16001 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16002 which seems to be undefined. Please make sure it is defined." >&2;}
16006 -) cat "$tmp/out" && rm -f "$tmp/out";;
16007 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16009 || as_fn_error "could not create $ac_file" "$LINENO" 5
16017 case $ac_file$ac_mode in
16018 "Makefile":F) sed "$extrasub_build" Makefile |
16019 sed "$extrasub_host" |
16020 sed "$extrasub_target" > mf$$
16021 mv -f mf$$ Makefile ;;
16029 ac_clean_files=$ac_clean_files_save
16031 test $ac_write_fail = 0 ||
16032 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16035 # configure is writing to config.log, and then calls config.status.
16036 # config.status does its own redirection, appending to config.log.
16037 # Unfortunately, on DOS this fails, as config.log is still kept open
16038 # by configure, so config.status won't be able to write to it; its
16039 # output is simply discarded. So we exec the FD to /dev/null,
16040 # effectively closing config.log, so it can be properly (re)opened and
16041 # appended to by config.status. When coming back to configure, we
16042 # need to make the FD available again.
16043 if test "$no_create" != yes; then
16045 ac_config_status_args=
16046 test "$silent" = yes &&
16047 ac_config_status_args="$ac_config_status_args --quiet"
16049 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16051 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16052 # would make configure fail if this is the last instruction.
16053 $ac_cs_success || as_fn_exit $?
16055 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16057 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}