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."
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
563 MAINTAINER_MODE_FALSE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
645 extra_host_libiberty_configure_flags
654 extra_isl_gmp_configure_flags
655 extra_mpc_mpfr_configure_flags
656 extra_mpc_gmp_configure_flags
657 extra_mpfr_configure_flags
673 EXTRA_CONFIGARGS_LIBJAVA
700 TOPLEVEL_CONFIGURE_ARGUMENTS
728 program_transform_name
739 ac_subst_files='serialization_dependencies
745 enable_option_checking
750 enable_libquadmath_support
753 enable_static_libjava
774 enable_isl_version_check
778 enable_cloog_version_check
780 enable_stage1_languages
783 with_debug_prefix_map
785 enable_serial_configure
786 with_build_time_tools
787 enable_maintainer_mode
788 enable_stage1_checking
791 ac_precious_vars='build_alias
838 # Initialize some variables set by options.
840 ac_init_version=false
841 ac_unrecognized_opts=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
852 program_transform_name=s,x,x,
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE}'
877 infodir='${datarootdir}/info'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
898 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 # Accept the important Cygnus configure options, so we can diagnose typos.
904 case $ac_dashdash$ac_option in
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
926 cache_file=config.cache ;;
928 -datadir | --datadir | --datadi | --datad)
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
954 eval enable_$ac_useropt=no ;;
956 -docdir | --docdir | --docdi | --doc | --do)
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
980 eval enable_$ac_useropt=\$ac_optarg ;;
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
995 -help | --help | --hel | --he | -h)
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 htmldir=$ac_optarg ;;
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1025 -libdir | --libdir | --libdi | --libd)
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1116 -psdir | --psdir | --psdi | --psd | --ps)
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 sbindir=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 sharedstatedir=$ac_optarg ;;
1142 -site | --site | --sit)
1144 -site=* | --site=* | --sit=*)
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1184 eval with_$ac_useropt=\$ac_optarg ;;
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1200 eval with_$ac_useropt=no ;;
1203 # Obsolete; use --with-x.
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1220 -*) as_fn_error "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information."
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error "missing argument to $ac_option"
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1253 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1271 # Be sure to have absolute directory names.
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error "pwd does not report name of working directory"
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1343 ac_srcdir_defaulted=no
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 as_fn_error "path to source, $srcdir, contains spaces"
1368 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1370 for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 # Report the --help message.
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1384 \`configure' configures this package to adapt to many kinds of systems.
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1391 Defaults for the options are specified in brackets.
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1415 For better control, use the options below.
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1453 if test -n "$ac_init_help"; then
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1462 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1463 --disable-libquadmath do not build libquadmath directory
1464 --disable-libquadmath-support
1465 disable libquadmath support for Fortran
1466 --enable-libada build libada directory
1467 --enable-libssp build libssp directory
1468 --enable-static-libjava[=ARG]
1469 build static libjava [default=no]
1470 --enable-bootstrap enable bootstrapping [yes if native build]
1471 --disable-isl-version-check
1472 disable check for ISL version
1473 --disable-cloog-version-check
1474 disable check for CLooG version
1475 --enable-lto enable link time optimization support
1476 --enable-stage1-languages[=all]
1477 choose additional languages to build during stage1.
1478 Mostly useful for compiler development
1479 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1481 --enable-serial-[{host,target,build}-]configure
1482 force sequential configuration of sub-packages for
1483 the host, target or build machine, or all
1485 --enable-maintainer-mode
1486 enable make rules and dependencies not useful (and
1487 sometimes confusing) to the casual installer
1488 --enable-stage1-checking[=all]
1489 choose additional checking for stage1 of the
1491 --enable-werror enable -Werror in bootstrap stage2 and later
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-build-libsubdir=DIR Directory where to find libraries for build system
1497 --with-mpc=PATH specify prefix directory for installed MPC package.
1498 Equivalent to --with-mpc-include=PATH/include plus
1499 --with-mpc-lib=PATH/lib
1500 --with-mpc-include=PATH specify directory for installed MPC include files
1501 --with-mpc-lib=PATH specify directory for the installed MPC library
1502 --with-mpfr-dir=PATH this option has been REMOVED
1503 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1504 Equivalent to --with-mpfr-include=PATH/include plus
1505 --with-mpfr-lib=PATH/lib
1506 --with-mpfr-include=PATH
1507 specify directory for installed MPFR include files
1508 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1509 --with-gmp-dir=PATH this option has been REMOVED
1510 --with-gmp=PATH specify prefix directory for the installed GMP
1511 package. Equivalent to
1512 --with-gmp-include=PATH/include plus
1513 --with-gmp-lib=PATH/lib
1514 --with-gmp-include=PATH specify directory for installed GMP include files
1515 --with-gmp-lib=PATH specify directory for the installed GMP library
1516 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1518 --with-stage1-ldflags=FLAGS
1519 linker flags for stage1
1520 --with-stage1-libs=LIBS libraries for stage1
1521 --with-boot-libs=LIBS libraries for stage2 and later
1522 --with-boot-ldflags=FLAGS
1523 linker flags for stage2 and later
1524 --with-isl=PATH Specify prefix directory for the installed ISL
1525 package. Equivalent to
1526 --with-isl-include=PATH/include plus
1527 --with-isl-lib=PATH/lib
1528 --with-isl-include=PATH Specify directory for installed ISL include files
1529 --with-isl-lib=PATH Specify the directory for the installed ISL library
1530 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1531 package. Equivalent to
1532 --with-cloog-include=PATH/include plus
1533 --with-cloog-lib=PATH/lib
1534 --with-cloog-include=PATH
1535 Specify directory for installed CLooG include files
1536 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1538 --with-build-sysroot=SYSROOT
1539 use sysroot as the system root during the build
1540 --with-debug-prefix-map='A=B C=D ...'
1541 map A to B, C to D ... in debug information
1542 --with-build-config='NAME NAME2...'
1543 use config/NAME.mk build configuration
1544 --with-build-time-tools=PATH
1545 use given path to find target tools during the build
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1555 CXX C++ compiler command
1556 CXXFLAGS C++ compiler flags
1558 additional configure arguments for build directories
1560 additional configure arguments for host directories
1562 additional configure arguments for target directories
1565 DLLTOOL DLLTOOL for the host
1567 LIPO LIPO for the host
1569 RANLIB RANLIB for the host
1570 STRIP STRIP for the host
1571 WINDRES WINDRES for the host
1572 WINDMC WINDMC for the host
1573 OBJCOPY OBJCOPY for the host
1574 OBJDUMP OBJDUMP for the host
1575 READELF READELF for the host
1585 GFORTRAN for the target
1593 DLLTOOL for the target
1601 OBJDUMP for the target
1603 RANLIB for the target
1605 READELF for the target
1607 STRIP for the target
1609 WINDRES for the target
1611 WINDMC for the target
1613 Use these variables to override the choices made by `configure' or to help
1614 it to find libraries and programs with nonstandard names/locations.
1616 Report bugs to the package provider.
1621 if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1646 .) # We are building in place.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1680 generated by GNU Autoconf 2.64
1682 Copyright (C) 2009 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1689 ## ------------------------ ##
1690 ## Autoconf initialization. ##
1691 ## ------------------------ ##
1693 # ac_fn_c_try_compile LINENO
1694 # --------------------------
1695 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_compile ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 } # ac_fn_c_try_compile
1731 # ac_fn_cxx_try_compile LINENO
1732 # ----------------------------
1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_cxx_try_compile ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext
1738 if { { ac_try="$ac_compile"
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_cxx_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext; then :
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 } # ac_fn_cxx_try_compile
1769 # ac_fn_c_try_link LINENO
1770 # -----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded.
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext conftest$ac_exeext
1776 if { { ac_try="$ac_link"
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>conftest.err
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest$ac_exeext && {
1795 test "$cross_compiling" = yes ||
1796 $as_test_x conftest$ac_exeext
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1805 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807 # interfere with the next link command; also delete a directory that is
1808 # left behind by Apple's compiler. We do this before executing the actions.
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813 } # ac_fn_c_try_link
1815 # ac_fn_c_try_run LINENO
1816 # ----------------------
1817 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818 # that executables *can* be run.
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1849 ac_retval=$ac_status
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 cat >config.log <<_ACEOF
1857 This file contains any messages produced by compilers while
1858 running configure, to aid debugging if configure makes a mistake.
1860 It was created by $as_me, which was
1861 generated by GNU Autoconf 2.64. Invocation command line was
1873 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1874 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1875 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1876 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1877 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1879 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1880 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1882 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1883 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1884 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1885 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1886 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1887 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1888 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir=.
1897 $as_echo "PATH: $as_dir"
1913 # Keep a trace of the command line.
1914 # Strip out --no-create and --no-recursion so they do not pile up.
1915 # Strip out --silent because we don't want to record it for future runs.
1916 # Also quote any args containing shell meta-characters.
1917 # Make two passes to allow for proper duplicate-argument suppression.
1921 ac_must_keep_next=false
1927 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1929 | -silent | --silent | --silen | --sile | --sil)
1932 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1935 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1937 as_fn_append ac_configure_args1 " '$ac_arg'"
1938 if test $ac_must_keep_next = true; then
1939 ac_must_keep_next=false # Got value, back to normal.
1942 *=* | --config-cache | -C | -disable-* | --disable-* \
1943 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1944 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1945 | -with-* | --with-* | -without-* | --without-* | --x)
1946 case "$ac_configure_args0 " in
1947 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1950 -* ) ac_must_keep_next=true ;;
1953 as_fn_append ac_configure_args " '$ac_arg'"
1958 { ac_configure_args0=; unset ac_configure_args0;}
1959 { ac_configure_args1=; unset ac_configure_args1;}
1961 # When interrupted or exit'd, cleanup temporary files, and complete
1962 # config.log. We remove comments because anyway the quotes in there
1963 # would cause problems or look ugly.
1964 # WARNING: Use '\'' to represent an apostrophe within the trap.
1965 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1966 trap 'exit_status=$?
1967 # Save into config.log some information that might help in debugging.
1972 ## ---------------- ##
1973 ## Cache variables. ##
1974 ## ---------------- ##
1977 # The following way of writing the cache mishandles newlines in values,
1979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980 eval ac_val=\$$ac_var
1984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988 _ | IFS | as_nl) ;; #(
1989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990 *) { eval $ac_var=; unset $ac_var;} ;;
1995 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996 *${as_nl}ac_space=\ *)
1998 "s/'\''/'\''\\\\'\'''\''/g;
1999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2010 ## ----------------- ##
2011 ## Output variables. ##
2012 ## ----------------- ##
2015 for ac_var in $ac_subst_vars
2017 eval ac_val=\$$ac_var
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 $as_echo "$ac_var='\''$ac_val'\''"
2025 if test -n "$ac_subst_files"; then
2027 ## ------------------- ##
2028 ## File substitutions. ##
2029 ## ------------------- ##
2032 for ac_var in $ac_subst_files
2034 eval ac_val=\$$ac_var
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 $as_echo "$ac_var='\''$ac_val'\''"
2043 if test -s confdefs.h; then
2053 test "$ac_signal" != 0 &&
2054 $as_echo "$as_me: caught signal $ac_signal"
2055 $as_echo "$as_me: exit $exit_status"
2057 rm -f core *.core core.conftest.* &&
2058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2061 for ac_signal in 1 2 13 15; do
2062 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2066 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2067 rm -f -r conftest* confdefs.h
2069 $as_echo "/* confdefs.h */" > confdefs.h
2071 # Predefined preprocessor variables.
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_NAME "$PACKAGE_NAME"
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_STRING "$PACKAGE_STRING"
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_URL "$PACKAGE_URL"
2098 # Let the site file select an alternate cache file if it wants to.
2099 # Prefer an explicitly selected file to automatically selected ones.
2102 if test -n "$CONFIG_SITE"; then
2103 ac_site_file1=$CONFIG_SITE
2104 elif test "x$prefix" != xNONE; then
2105 ac_site_file1=$prefix/share/config.site
2106 ac_site_file2=$prefix/etc/config.site
2108 ac_site_file1=$ac_default_prefix/share/config.site
2109 ac_site_file2=$ac_default_prefix/etc/config.site
2111 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2113 test "x$ac_site_file" = xNONE && continue
2114 if test -r "$ac_site_file"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2117 sed 's/^/| /' "$ac_site_file" >&5
2122 if test -r "$cache_file"; then
2123 # Some versions of bash will fail to source /dev/null (special
2124 # files actually), so we avoid doing that.
2125 if test -f "$cache_file"; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127 $as_echo "$as_me: loading cache $cache_file" >&6;}
2129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130 *) . "./$cache_file";;
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135 $as_echo "$as_me: creating cache $cache_file" >&6;}
2139 # Check that the precious variables saved in the cache have kept the same
2141 ac_cache_corrupted=false
2142 for ac_var in $ac_precious_vars; do
2143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2144 eval ac_new_set=\$ac_env_${ac_var}_set
2145 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2146 eval ac_new_val=\$ac_env_${ac_var}_value
2147 case $ac_old_set,$ac_new_set in
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2150 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2151 ac_cache_corrupted=: ;;
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2154 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2155 ac_cache_corrupted=: ;;
2158 if test "x$ac_old_val" != "x$ac_new_val"; then
2159 # differences in whitespace do not lead to failure.
2160 ac_old_val_w=`echo x $ac_old_val`
2161 ac_new_val_w=`echo x $ac_new_val`
2162 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2164 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2165 ac_cache_corrupted=:
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2168 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2169 eval $ac_var=\$ac_old_val
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2172 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2174 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2177 # Pass precious variables to config.status.
2178 if test "$ac_new_set" = set; then
2180 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 *) ac_arg=$ac_var=$ac_new_val ;;
2183 case " $ac_configure_args " in
2184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2185 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2189 if $ac_cache_corrupted; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2193 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2194 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2196 ## -------------------- ##
2197 ## Main body of script. ##
2198 ## -------------------- ##
2201 ac_cpp='$CPP $CPPFLAGS'
2202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2215 # if PWD already has a value, it is probably wrong.
2216 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2218 # Export original configure arguments for use by sub-configures.
2219 # Quote arguments with shell meta charatcers.
2220 TOPLEVEL_CONFIGURE_ARGUMENTS=
2221 set -- "$progname" "$@"
2225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2227 # if the argument is of the form -foo=baz, quote the baz part only
2228 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2231 # Add the quoted argument to the list.
2232 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2234 if test "$silent" = yes; then
2235 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2237 # Remove the initial space we just introduced and, as these will be
2238 # expanded by make, quote '$'.
2239 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2242 # Find the build, host, and target systems.
2244 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2245 for ac_t in install-sh install.sh shtool; do
2246 if test -f "$ac_dir/$ac_t"; then
2248 ac_install_sh="$ac_aux_dir/$ac_t -c"
2253 if test -z "$ac_aux_dir"; then
2254 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2257 # These three variables are undocumented and unsupported,
2258 # and are intended to be withdrawn in a future Autoconf release.
2259 # They can cause serious problems if a builder's source tree is in a directory
2260 # whose full name contains unusual characters.
2261 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2262 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2263 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2266 # Make sure we can run config.sub.
2267 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2268 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2271 $as_echo_n "checking build system type... " >&6; }
2272 if test "${ac_cv_build+set}" = set; then :
2273 $as_echo_n "(cached) " >&6
2275 ac_build_alias=$build_alias
2276 test "x$ac_build_alias" = x &&
2277 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2278 test "x$ac_build_alias" = x &&
2279 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2280 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2281 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2285 $as_echo "$ac_cv_build" >&6; }
2286 case $ac_cv_build in
2288 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2291 ac_save_IFS=$IFS; IFS='-'
2297 # Remember, the first character of IFS is used to create $*,
2298 # except with old shells:
2301 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2304 case ${build_alias} in
2305 "") build_noncanonical=${build} ;;
2306 *) build_noncanonical=${build_alias} ;;
2311 case ${host_alias} in
2312 "") host_noncanonical=${build_noncanonical} ;;
2313 *) host_noncanonical=${host_alias} ;;
2318 case ${target_alias} in
2319 "") target_noncanonical=${host_noncanonical} ;;
2320 *) target_noncanonical=${target_alias} ;;
2326 test "$host_noncanonical" = "$target_noncanonical" &&
2327 test "$program_prefix$program_suffix$program_transform_name" = \
2329 program_transform_name=s,y,y,
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2332 $as_echo_n "checking host system type... " >&6; }
2333 if test "${ac_cv_host+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
2336 if test "x$host_alias" = x; then
2337 ac_cv_host=$ac_cv_build
2339 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2340 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2345 $as_echo "$ac_cv_host" >&6; }
2348 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2351 ac_save_IFS=$IFS; IFS='-'
2357 # Remember, the first character of IFS is used to create $*,
2358 # except with old shells:
2361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2365 $as_echo_n "checking target system type... " >&6; }
2366 if test "${ac_cv_target+set}" = set; then :
2367 $as_echo_n "(cached) " >&6
2369 if test "x$target_alias" = x; then
2370 ac_cv_target=$ac_cv_host
2372 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2373 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2378 $as_echo "$ac_cv_target" >&6; }
2379 case $ac_cv_target in
2381 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2383 target=$ac_cv_target
2384 ac_save_IFS=$IFS; IFS='-'
2390 # Remember, the first character of IFS is used to create $*,
2391 # except with old shells:
2394 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2397 # The aliases save the names the user supplied, while $host etc.
2398 # will get canonicalized.
2399 test -n "$target_alias" &&
2400 test "$program_prefix$program_suffix$program_transform_name" = \
2402 program_prefix=${target_alias}-
2404 test "$program_prefix" != NONE &&
2405 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2406 # Use a double $ so make ignores it.
2407 test "$program_suffix" != NONE &&
2408 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2409 # Double any \ or $.
2410 # By default was `s,x,x', remove it if useless.
2411 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2412 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2416 # Get 'install' or 'install-sh' and its variants.
2417 # Find a good install program. We prefer a C program (faster),
2418 # so one script is as good as another. But avoid the broken or
2419 # incompatible versions:
2420 # SysV /etc/install, /usr/sbin/install
2421 # SunOS /usr/etc/install
2422 # IRIX /sbin/install
2424 # AmigaOS /C/install, which installs bootblocks on floppy discs
2425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2428 # OS/2's system install, which has a completely different semantic
2429 # ./install, which can be erroneously created by make from ./install.sh.
2430 # Reject install programs that cannot install multiple files.
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2433 if test -z "$INSTALL"; then
2434 if test "${ac_cv_path_install+set}" = set; then :
2435 $as_echo_n "(cached) " >&6
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 # Account for people who put trailing slashes in PATH elements.
2443 case $as_dir/ in #((
2444 ./ | .// | /[cC]/* | \
2445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2449 # OSF1 and SCO ODT 3.0 have their own names for install.
2450 # Don't use installbsd from OSF since it installs stuff as root
2452 for ac_prog in ginstall scoinst install; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2455 if test $ac_prog = install &&
2456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # AIX install. It has an incompatible calling convention.
2459 elif test $ac_prog = install &&
2460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # program-specific install script used by HP pwplus--don't use.
2464 rm -rf conftest.one conftest.two conftest.dir
2465 echo one > conftest.one
2466 echo two > conftest.two
2468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469 test -s conftest.one && test -s conftest.two &&
2470 test -s conftest.dir/conftest.one &&
2471 test -s conftest.dir/conftest.two
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2486 rm -rf conftest.one conftest.two conftest.dir
2489 if test "${ac_cv_path_install+set}" = set; then
2490 INSTALL=$ac_cv_path_install
2492 # As a last resort, use the slow shell script. Don't cache a
2493 # value for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the value is a relative name.
2496 INSTALL=$ac_install_sh
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500 $as_echo "$INSTALL" >&6; }
2502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503 # It thinks the first close brace ends the variable substitution.
2504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2511 $as_echo_n "checking whether ln works... " >&6; }
2512 if test "${acx_cv_prog_LN+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2515 rm -f conftestdata_t
2516 echo >conftestdata_f
2517 if ln conftestdata_f conftestdata_t 2>/dev/null
2523 rm -f conftestdata_f conftestdata_t
2526 if test $acx_cv_prog_LN = no; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2529 $as_echo "no, using $LN" >&6; }
2531 LN="$acx_cv_prog_LN"
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533 $as_echo "yes" >&6; }
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2537 $as_echo_n "checking whether ln -s works... " >&6; }
2539 if test "$LN_S" = "ln -s"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2541 $as_echo "yes" >&6; }
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2544 $as_echo "no, using $LN_S" >&6; }
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2548 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2549 if test "${ac_cv_path_SED+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2552 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2553 for ac_i in 1 2 3 4 5 6 7; do
2554 ac_script="$ac_script$as_nl$ac_script"
2556 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2557 { ac_script=; unset ac_script;}
2558 if test -z "$SED"; then
2559 ac_path_SED_found=false
2560 # Loop through the user's path and test for each of PROGNAME-LIST
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_prog in sed gsed; do
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2569 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2570 # Check for GNU ac_path_SED and select it if it is found.
2571 # Check for GNU $ac_path_SED
2572 case `"$ac_path_SED" --version 2>&1` in
2574 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2577 $as_echo_n 0123456789 >"conftest.in"
2580 cat "conftest.in" "conftest.in" >"conftest.tmp"
2581 mv "conftest.tmp" "conftest.in"
2582 cp "conftest.in" "conftest.nl"
2583 $as_echo '' >> "conftest.nl"
2584 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2586 as_fn_arith $ac_count + 1 && ac_count=$as_val
2587 if test $ac_count -gt ${ac_path_SED_max-0}; then
2588 # Best one so far, save it but keep looking for a better one
2589 ac_cv_path_SED="$ac_path_SED"
2590 ac_path_SED_max=$ac_count
2592 # 10*(2^10) chars as input seems more than enough
2593 test $ac_count -gt 10 && break
2595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2598 $ac_path_SED_found && break 3
2603 if test -z "$ac_cv_path_SED"; then
2604 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2612 $as_echo "$ac_cv_path_SED" >&6; }
2613 SED="$ac_cv_path_SED"
2616 for ac_prog in gawk mawk nawk awk
2618 # Extract the first word of "$ac_prog", so it can be a program name with args.
2619 set dummy $ac_prog; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if test "${ac_cv_prog_AWK+set}" = set; then :
2623 $as_echo_n "(cached) " >&6
2625 if test -n "$AWK"; then
2626 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_AWK="$ac_prog"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 if test -n "$AWK"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2648 $as_echo "$AWK" >&6; }
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2655 test -n "$AWK" && break
2659 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2661 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2663 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2664 INSTALL="${srcpwd}/install-sh -c"
2667 # Set srcdir to "." if that's what it is.
2668 # This is important for multilib support.
2670 if test "${pwd}" = "${srcpwd}" ; then
2678 ### To add a new directory to the tree, first choose whether it is a target
2679 ### or a host dependent tool. Then put it into the appropriate list
2680 ### (library or tools, host or target), doing a dependency sort.
2682 # Subdirs will be configured in the order listed in build_configdirs,
2683 # configdirs, or target_configdirs; see the serialization section below.
2685 # Dependency sorting is only needed when *configuration* must be done in
2686 # a particular order. In all cases a dependency should be specified in
2687 # the Makefile, whether or not it's implicitly specified here.
2689 # Double entries in build_configdirs, configdirs, or target_configdirs may
2690 # cause circular dependencies and break everything horribly.
2692 # these library is used by various programs built for the build
2695 build_libs="build-libiberty"
2697 # these tools are built for the build environment
2698 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2700 # these libraries are used by various programs built for the host environment
2702 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2704 # these tools are built for the host environment
2705 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2706 # know that we are building the simulator.
2707 # binutils, gas and ld appear in that order because it makes sense to run
2708 # "make check" in that particular order.
2709 # If --enable-gold is used, "gold" may replace "ld".
2710 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2712 # libgcj represents the runtime libraries only used by gcj.
2713 libgcj="target-libffi \
2717 # these libraries are built for the target environment, and are built after
2718 # the host libraries and the host tools (which may be a cross compiler)
2719 # Note that libiberty is not a target library.
2720 target_libraries="target-libgcc \
2726 target-libstdc++-v3 \
2729 target-libquadmath \
2730 target-libgfortran \
2737 # these tools are built using the target libraries, and are intended to
2738 # run only in the target environment
2740 # note: any program that *uses* libraries that are in the "target_libraries"
2741 # list belongs in this list.
2743 target_tools="target-rda"
2745 ################################################################################
2747 ## All tools belong in one of the four categories, and are assigned above
2748 ## We assign ${configdirs} this way to remove all embedded newlines. This
2749 ## is important because configure will choke if they ever get through.
2750 ## ${configdirs} is directories we build using the host tools.
2751 ## ${target_configdirs} is directories we build using the target tools.
2752 configdirs=`echo ${host_libs} ${host_tools}`
2753 target_configdirs=`echo ${target_libraries} ${target_tools}`
2754 build_configdirs=`echo ${build_libs} ${build_tools}`
2758 ################################################################################
2760 srcname="gnu development package"
2762 # This gets set non-empty for some net releases of packages.
2765 # Define is_cross_compiler to save on calls to 'test'.
2767 if test x"${host}" = x"${target}" ; then
2768 is_cross_compiler=no
2770 is_cross_compiler=yes
2773 # Find the build and target subdir names.
2775 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2776 # have matching libraries, they should use host libraries: Makefile.tpl
2777 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2778 # However, they still use the build modules, because the corresponding
2779 # host modules (e.g. bison) are only built for the host when bootstrap
2781 # - build_subdir is where we find build modules, and never changes.
2782 # - build_libsubdir is where we find build libraries, and can be overridden.
2784 # Prefix 'build-' so this never conflicts with target_subdir.
2785 build_subdir="build-${build_noncanonical}"
2787 # Check whether --with-build-libsubdir was given.
2788 if test "${with_build_libsubdir+set}" = set; then :
2789 withval=$with_build_libsubdir; build_libsubdir="$withval"
2791 build_libsubdir="$build_subdir"
2794 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2795 if ( test $srcdir = . && test -d gcc ) \
2796 || test -d $srcdir/../host-${host_noncanonical}; then
2797 host_subdir="host-${host_noncanonical}"
2802 target_subdir=${target_noncanonical}
2804 # Be sure to cover against remnants of an in-tree build.
2805 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2806 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2807 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2810 # Skipdirs are removed silently.
2812 # Noconfigdirs are removed loudly.
2816 # Make sure we don't let GNU ld be added if we didn't want it.
2817 if test x$with_gnu_ld = xno ; then
2819 noconfigdirs="$noconfigdirs ld gold"
2823 # Make sure we don't let GNU as be added if we didn't want it.
2824 if test x$with_gnu_as = xno ; then
2826 noconfigdirs="$noconfigdirs gas"
2830 # Make sure we don't let ZLIB be added if we didn't want it.
2831 if test x$with_system_zlib = xyes ; then
2832 use_included_zlib=no
2833 noconfigdirs="$noconfigdirs zlib"
2836 # some tools are so dependent upon X11 that if we're not building with X,
2837 # it's not even worth trying to configure, much less build, that tool.
2840 yes | "") ;; # the default value for this tree is that X11 is available
2842 skipdirs="${skipdirs} tk itcl libgui"
2843 # We won't be able to build gdbtk without X.
2846 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2849 # Some are only suitable for cross toolchains.
2850 # Remove these if host=target.
2851 cross_only="target-libgloss target-newlib target-opcodes"
2853 case $is_cross_compiler in
2854 no) skipdirs="${skipdirs} ${cross_only}" ;;
2857 # If both --with-headers and --with-libs are specified, default to
2859 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2860 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2861 if test x"${with_newlib}" = x ; then
2866 # Recognize --with-newlib/--without-newlib.
2867 case ${with_newlib} in
2868 no) skipdirs="${skipdirs} target-newlib" ;;
2869 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2872 # Handle --enable-gold, --enable-ld.
2873 # --disable-gold [--enable-ld]
2874 # Build only ld. Default option.
2875 # --enable-gold [--enable-ld]
2876 # Build both gold and ld. Install gold as "ld.gold", install ld
2877 # as "ld.bfd" and "ld".
2878 # --enable-gold=default [--enable-ld]
2879 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2880 # install ld as "ld.bfd".
2881 # --enable-gold[=default] --disable-ld
2882 # Build only gold, which is then installed as both "ld.gold" and "ld".
2883 # --enable-gold --enable-ld=default
2884 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2886 # In other words, ld is default
2887 # --enable-gold=default --enable-ld=default
2891 # Check whether --enable-gold was given.
2892 if test "${enable_gold+set}" = set; then :
2893 enableval=$enable_gold; ENABLE_GOLD=$enableval
2898 case "${ENABLE_GOLD}" in
2900 # Check for ELF target.
2903 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2904 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2905 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2906 | *-*-solaris2* | *-*-nto*)
2908 *-*-linux*aout* | *-*-linux*oldld*)
2916 if test "$is_elf" = "yes"; then
2917 # Check for target supported by gold.
2919 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2920 configdirs="$configdirs gold"
2921 if test x${ENABLE_GOLD} = xdefault; then
2932 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2936 # Check whether --enable-ld was given.
2937 if test "${enable_ld+set}" = set; then :
2938 enableval=$enable_ld; ENABLE_LD=$enableval
2944 case "${ENABLE_LD}" in
2946 if test x${default_ld} != x; then
2947 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2953 if test x${ENABLE_GOLD} != xyes; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2955 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2957 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2960 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2964 # Configure extra directories which are host specific
2968 configdirs="$configdirs libtermcap" ;;
2971 # A target can indicate whether a language isn't supported for some reason.
2972 # Only spaces may be used in this macro; not newlines or tabs.
2973 unsupported_languages=
2975 # Remove more programs from consideration, based on the host or
2976 # target this usually means that a port of the program doesn't
2980 i[3456789]86-*-msdosdjgpp*)
2981 noconfigdirs="$noconfigdirs tcl tk itcl"
2986 # Check whether --enable-libquadmath was given.
2987 if test "${enable_libquadmath+set}" = set; then :
2988 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2990 ENABLE_LIBQUADMATH=yes
2993 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2994 noconfigdirs="$noconfigdirs target-libquadmath"
2998 # Check whether --enable-libquadmath-support was given.
2999 if test "${enable_libquadmath_support+set}" = set; then :
3000 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3002 ENABLE_LIBQUADMATH_SUPPORT=yes
3005 enable_libquadmath_support=
3006 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3007 enable_libquadmath_support=no
3011 # Check whether --enable-libada was given.
3012 if test "${enable_libada+set}" = set; then :
3013 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3018 if test "${ENABLE_LIBADA}" != "yes" ; then
3019 noconfigdirs="$noconfigdirs gnattools"
3022 # Check whether --enable-libssp was given.
3023 if test "${enable_libssp+set}" = set; then :
3024 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3030 # Save it here so that, even in case of --enable-libgcj, if the Java
3031 # front-end isn't enabled, we still get libgcj disabled.
3032 libgcj_saved=$libgcj
3033 case $enable_libgcj in
3035 # If we reset it here, it won't get added to noconfigdirs in the
3036 # target-specific build rules, so it will be forcibly enabled
3037 # (unless the Java language itself isn't enabled).
3041 # Make sure we get it printed in the list of not supported target libs.
3042 # Don't disable libffi, though, other languages use it.
3043 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3044 # Clear libgcj_saved so that even if java is enabled libffi won't be
3050 # Check whether --enable-static-libjava was given.
3051 if test "${enable_static_libjava+set}" = set; then :
3052 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3054 ENABLE_STATIC_LIBJAVA=no
3057 enable_static_libjava=
3058 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3059 enable_static_libjava=yes
3062 if test x$enable_static_libjava != xyes ; then
3063 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3067 # Disable libmudflap on some systems.
3068 if test x$enable_libmudflap = x ; then
3070 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3071 # Enable libmudflap by default in GNU and friends.
3074 # Enable libmudflap by default in FreeBSD.
3077 # Disable it by default everywhere else.
3078 noconfigdirs="$noconfigdirs target-libmudflap"
3083 # Disable libgomp on non POSIX hosted systems.
3084 if test x$enable_libgomp = x ; then
3085 # Enable libgomp by default on hosted POSIX systems.
3087 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3089 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3091 *-*-solaris2* | *-*-hpux11*)
3093 *-*-darwin* | *-*-aix*)
3096 noconfigdirs="$noconfigdirs target-libgomp"
3101 # Disable libatomic on unsupported systems.
3102 if test -d ${srcdir}/libatomic; then
3103 if test x$enable_libatomic = x; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3105 $as_echo_n "checking for libatomic support... " >&6; }
3106 if (srcdir=${srcdir}/libatomic; \
3107 . ${srcdir}/configure.tgt; \
3108 test -n "$UNSUPPORTED")
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 noconfigdirs="$noconfigdirs target-libatomic"
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3115 $as_echo "yes" >&6; }
3120 # Disable libitm on unsupported systems.
3121 if test -d ${srcdir}/libitm; then
3122 if test x$enable_libitm = x; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3124 $as_echo_n "checking for libitm support... " >&6; }
3125 if (srcdir=${srcdir}/libitm; \
3126 . ${srcdir}/configure.tgt; \
3127 test -n "$UNSUPPORTED")
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 noconfigdirs="$noconfigdirs target-libitm"
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3139 # Disable libquadmath for some systems.
3141 # libquadmath is unused on AIX and libquadmath build process use of
3142 # LD_LIBRARY_PATH can break AIX bootstrap.
3143 powerpc-*-aix* | rs6000-*-aix*)
3144 noconfigdirs="$noconfigdirs target-libquadmath"
3148 # Disable libssp for some systems.
3151 # No hosted I/O support.
3152 noconfigdirs="$noconfigdirs target-libssp"
3154 powerpc-*-aix* | rs6000-*-aix*)
3155 noconfigdirs="$noconfigdirs target-libssp"
3158 # libssp uses a misaligned load to trigger a fault, but the RL78
3159 # doesn't fault for those - instead, it gives a build-time error
3160 # for explicit misaligned loads.
3161 noconfigdirs="$noconfigdirs target-libssp"
3165 # Disable libstdc++-v3 for some systems.
3168 # VxWorks uses the Dinkumware C++ library.
3169 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3172 # the C++ libraries don't build on top of CE's C libraries
3173 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3176 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3180 # Disable Fortran for some systems.
3183 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3184 unsupported_languages="$unsupported_languages fortran"
3188 # Disable Java if libffi is not supported.
3218 powerpc-*-aix* | rs6000-*-aix*)
3222 powerpc64-*-freebsd*)
3226 s390-*-* | s390x-*-*)
3228 sh-*-* | sh[34]*-*-*)
3230 sh64-*-* | sh5*-*-*)
3237 unsupported_languages="$unsupported_languages java"
3241 # Disable Java, libgcj or related libraries for some systems.
3245 i[3456789]86-*-darwin*)
3247 x86_64-*-darwin[912]*)
3250 noconfigdirs="$noconfigdirs ${libgcj}"
3253 noconfigdirs="$noconfigdirs ${libgcj}"
3256 noconfigdirs="$noconfigdirs ${libgcj}"
3259 noconfigdirs="$noconfigdirs ${libgcj}"
3262 noconfigdirs="$noconfigdirs ${libgcj}"
3265 noconfigdirs="$noconfigdirs ${libgcj}"
3268 noconfigdirs="$noconfigdirs ${libgcj}"
3271 noconfigdirs="$noconfigdirs ${libgcj}"
3274 noconfigdirs="$noconfigdirs ${libgcj}"
3277 noconfigdirs="$noconfigdirs target-boehm-gc"
3279 cris-*-* | crisv32-*-*)
3280 unsupported_languages="$unsupported_languages java"
3284 *) # See PR46792 regarding target-libffi.
3285 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3289 # In this case, it's because the hppa64-linux target is for
3290 # the kernel only at this point and has no libc, and thus no
3291 # headers, crt*.o, etc., all of which are needed by these.
3292 unsupported_languages="$unsupported_languages java"
3295 noconfigdirs="$noconfigdirs ${libgcj}"
3301 # build on HP-UX 10.20.
3302 noconfigdirs="$noconfigdirs ${libgcj}"
3305 noconfigdirs="$noconfigdirs ${libgcj}"
3307 i[3456789]86-w64-mingw*)
3308 noconfigdirs="$noconfigdirs ${libgcj}"
3310 i[3456789]86-*-mingw*)
3311 noconfigdirs="$noconfigdirs ${libgcj}"
3314 noconfigdirs="$noconfigdirs ${libgcj}"
3317 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3320 # copied from rs6000-*-* entry
3321 noconfigdirs="$noconfigdirs ${libgcj}"
3324 noconfigdirs="$noconfigdirs ${libgcj}"
3327 noconfigdirs="$noconfigdirs ${libgcj}"
3331 # Default libgloss CPU subdirectory.
3332 libgloss_dir="$target_cpu"
3335 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3341 cris-*-* | crisv32-*-*)
3350 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3351 libgloss_dir=m68hc11
3353 m68*-*-* | fido-*-*)
3367 # Disable newlib and libgloss for various target OSes.
3370 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3372 i[3456789]86-*-linux*)
3373 # This section makes it possible to build newlib natively on linux.
3374 # If we are using a cross compiler then don't configure newlib.
3375 if test x${is_cross_compiler} != xno ; then
3376 noconfigdirs="$noconfigdirs target-newlib"
3378 noconfigdirs="$noconfigdirs target-libgloss"
3379 # If we are not using a cross compiler, do configure newlib.
3380 # Note however, that newlib will only be configured in this situation
3381 # if the --with-newlib option has been given, because otherwise
3382 # 'target-newlib' will appear in skipdirs.
3384 i[3456789]86-*-rdos*)
3385 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3387 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3388 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3391 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3394 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3397 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3400 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3403 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3406 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3408 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3409 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3412 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3415 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3418 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3421 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3424 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3427 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3430 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3438 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3439 noconfigdirs="$noconfigdirs sim target-rda"
3441 i[3456789]86-*-darwin*)
3442 noconfigdirs="$noconfigdirs ld gprof"
3443 noconfigdirs="$noconfigdirs sim target-rda"
3445 x86_64-*-darwin[912]*)
3446 noconfigdirs="$noconfigdirs ld gas gprof"
3447 noconfigdirs="$noconfigdirs sim target-rda"
3450 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3451 noconfigdirs="$noconfigdirs sim target-rda"
3456 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3457 && test -f /usr/local/include/gmp.h; then
3462 # Remove unsupported stuff on all kaOS configurations.
3463 noconfigdirs="$noconfigdirs target-libgloss"
3470 noconfigdirs="$noconfigdirs target-libgloss"
3472 # The tpf target doesn't support gdb yet.
3474 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3477 noconfigdirs="$noconfigdirs target-rda"
3482 # ld works, but does not support shared libraries.
3483 # gas doesn't generate exception information.
3484 noconfigdirs="$noconfigdirs gas ld"
3487 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3490 # newlib is not 64 bit ready
3491 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3493 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3494 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3497 noconfigdirs="$noconfigdirs target-libgloss"
3500 noconfigdirs="$noconfigdirs target-libgloss"
3503 noconfigdirs="$noconfigdirs ld target-libgloss"
3505 c4x-*-* | tic4x-*-*)
3506 noconfigdirs="$noconfigdirs target-libgloss"
3509 noconfigdirs="$noconfigdirs target-libgloss gdb"
3512 noconfigdirs="$noconfigdirs target-libgloss"
3515 noconfigdirs="$noconfigdirs gdb"
3518 noconfigdirs="$noconfigdirs gdb"
3521 noconfigdirs="$noconfigdirs gprof"
3524 noconfigdirs="$noconfigdirs target-libgloss"
3527 noconfigdirs="$noconfigdirs target-libgloss"
3529 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3537 hppa*-*-openbsd* | \
3541 noconfigdirs="$noconfigdirs ld"
3546 noconfigdirs="$noconfigdirs ld"
3549 noconfigdirs="$noconfigdirs gdb"
3552 # No gdb support yet.
3553 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3556 # No ld support yet.
3557 noconfigdirs="$noconfigdirs libgui itcl ld"
3560 # No ld support yet.
3561 noconfigdirs="$noconfigdirs libgui itcl ld"
3563 i[3456789]86-w64-mingw*)
3565 i[3456789]86-*-mingw*)
3566 target_configdirs="$target_configdirs target-winsup"
3569 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3570 noconfigdirs="$noconfigdirs target-libgloss"
3571 # always build newlib if winsup directory is present.
3572 if test -d "$srcdir/winsup/cygwin"; then
3573 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3574 elif test -d "$srcdir/newlib"; then
3575 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3579 noconfigdirs="$noconfigdirs target-libgloss"
3581 i[3456789]86-*-sco3.2v5*)
3582 # The linker does not yet know about weak symbols in COFF,
3583 # and is not configured to handle mixed ELF and COFF.
3584 noconfigdirs="$noconfigdirs ld target-libgloss"
3586 i[3456789]86-*-sco*)
3587 noconfigdirs="$noconfigdirs gprof target-libgloss"
3589 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3590 noconfigdirs="$noconfigdirs target-libgloss"
3592 i[3456789]86-*-sysv4*)
3593 noconfigdirs="$noconfigdirs target-libgloss"
3595 i[3456789]86-*-beos*)
3596 noconfigdirs="$noconfigdirs gdb"
3598 i[3456789]86-*-rdos*)
3599 noconfigdirs="$noconfigdirs gdb"
3602 noconfigdirs="$noconfigdirs gdb"
3605 noconfigdirs="$noconfigdirs sim"
3608 # copied from rs6000-*-* entry
3609 noconfigdirs="$noconfigdirs gprof"
3611 powerpc*-*-winnt* | powerpc*-*-pe*)
3612 target_configdirs="$target_configdirs target-winsup"
3613 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3614 # always build newlib.
3615 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3617 # This is temporary until we can link against shared libraries
3618 powerpcle-*-solaris*)
3619 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3622 noconfigdirs="$noconfigdirs gdb"
3625 noconfigdirs="$noconfigdirs gprof"
3628 noconfigdirs="$noconfigdirs gprof"
3631 noconfigdirs="$noconfigdirs gprof"
3634 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3637 noconfigdirs="$noconfigdirs gprof"
3640 if test x$with_newlib = xyes; then
3641 noconfigdirs="$noconfigdirs gprof"
3645 noconfigdirs="$noconfigdirs gprof target-libgloss"
3648 noconfigdirs="$noconfigdirs gprof target-libgloss"
3651 noconfigdirs="$noconfigdirs gprof target-libgloss"
3656 noconfigdirs="$noconfigdirs gprof"
3663 noconfigdirs="$noconfigdirs target-libgloss" ;;
3667 if test x${is_cross_compiler} = xno ; then
3672 noconfigdirs="$noconfigdirs sim"
3674 tilepro-*-* | tilegx-*-*)
3675 noconfigdirs="$noconfigdirs sim"
3678 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 # If we aren't building newlib, then don't build libgloss, since libgloss
3686 # depends upon some newlib header files.
3687 case "${noconfigdirs}" in
3688 *target-libgloss*) ;;
3689 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3692 # Work in distributions that contain no compiler tools, like Autoconf.
3693 host_makefile_frag=/dev/null
3694 if test -d ${srcdir}/config ; then
3696 i[3456789]86-*-msdosdjgpp*)
3697 host_makefile_frag="config/mh-djgpp"
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3702 $as_echo_n "checking to see if cat works as expected... " >&6; }
3703 echo a >cygwin-cat-check
3704 if test `cat cygwin-cat-check` = a ; then
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3707 $as_echo "yes" >&6; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3712 as_fn_error "The cat command does not ignore carriage return characters.
3713 Please either mount the build directory in binary mode or run the following
3714 commands before running any configure script:
3720 host_makefile_frag="config/mh-cygwin"
3723 host_makefile_frag="config/mh-mingw"
3726 host_makefile_frag="config/mh-pa-hpux10"
3729 host_makefile_frag="config/mh-pa"
3732 host_makefile_frag="config/mh-pa"
3735 host_makefile_frag="config/mh-darwin"
3738 host_makefile_frag="config/mh-ppc-aix"
3741 host_makefile_frag="config/mh-ppc-aix"
3746 if test "${build}" != "${host}" ; then
3747 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3748 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3749 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3750 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3751 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3752 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3753 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3754 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3755 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3756 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3757 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3758 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3759 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3761 AR_FOR_BUILD="\$(AR)"
3762 AS_FOR_BUILD="\$(AS)"
3763 CC_FOR_BUILD="\$(CC)"
3764 CXX_FOR_BUILD="\$(CXX)"
3765 GCJ_FOR_BUILD="\$(GCJ)"
3766 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3767 GOC_FOR_BUILD="\$(GOC)"
3768 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3769 LD_FOR_BUILD="\$(LD)"
3770 NM_FOR_BUILD="\$(NM)"
3771 RANLIB_FOR_BUILD="\$(RANLIB)"
3772 WINDRES_FOR_BUILD="\$(WINDRES)"
3773 WINDMC_FOR_BUILD="\$(WINDMC)"
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 if test -n "$ac_tool_prefix"; then
3782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if test "${ac_cv_prog_CC+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3789 if test -n "$CC"; then
3790 ac_cv_prog_CC="$CC" # Let the user override the test.
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 if test -n "$CC"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812 $as_echo "$CC" >&6; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3820 if test -z "$ac_cv_prog_CC"; then
3822 # Extract the first word of "gcc", so it can be a program name with args.
3823 set dummy gcc; ac_word=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3827 $as_echo_n "(cached) " >&6
3829 if test -n "$ac_ct_CC"; then
3830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839 ac_cv_prog_ac_ct_CC="gcc"
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3850 if test -n "$ac_ct_CC"; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3852 $as_echo "$ac_ct_CC" >&6; }
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 $as_echo "no" >&6; }
3858 if test "x$ac_ct_CC" = x; then
3861 case $cross_compiling:$ac_tool_warned in
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3865 ac_tool_warned=yes ;;
3873 if test -z "$CC"; then
3874 if test -n "$ac_tool_prefix"; then
3875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3876 set dummy ${ac_tool_prefix}cc; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if test "${ac_cv_prog_CC+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
3882 if test -n "$CC"; then
3883 ac_cv_prog_CC="$CC" # Let the user override the test.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_CC="${ac_tool_prefix}cc"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 if test -n "$CC"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3905 $as_echo "$CC" >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3914 if test -z "$CC"; then
3915 # Extract the first word of "cc", so it can be a program name with args.
3916 set dummy cc; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if test "${ac_cv_prog_CC+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
3922 if test -n "$CC"; then
3923 ac_cv_prog_CC="$CC" # Let the user override the test.
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3934 ac_prog_rejected=yes
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 if test $ac_prog_rejected = yes; then
3946 # We found a bogon in the path, so make sure we never use it.
3947 set dummy $ac_cv_prog_CC
3949 if test $# != 0; then
3950 # We chose a different compiler from the bogus one.
3951 # However, it has the same basename, so the bogon will be chosen
3952 # first if we set CC to just the basename; use the full file name.
3954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3960 if test -n "$CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 $as_echo "$CC" >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3970 if test -z "$CC"; then
3971 if test -n "$ac_tool_prefix"; then
3972 for ac_prog in cl.exe
3974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if test "${ac_cv_prog_CC+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3981 if test -n "$CC"; then
3982 ac_cv_prog_CC="$CC" # Let the user override the test.
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 if test -n "$CC"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4004 $as_echo "$CC" >&6; }
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4011 test -n "$CC" && break
4014 if test -z "$CC"; then
4016 for ac_prog in cl.exe
4018 # Extract the first word of "$ac_prog", so it can be a program name with args.
4019 set dummy $ac_prog; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
4025 if test -n "$ac_ct_CC"; then
4026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035 ac_cv_prog_ac_ct_CC="$ac_prog"
4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4046 if test -n "$ac_ct_CC"; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4048 $as_echo "$ac_ct_CC" >&6; }
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4055 test -n "$ac_ct_CC" && break
4058 if test "x$ac_ct_CC" = x; then
4061 case $cross_compiling:$ac_tool_warned in
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065 ac_tool_warned=yes ;;
4074 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4076 as_fn_error "no acceptable C compiler found in \$PATH
4077 See \`config.log' for more details." "$LINENO" 5; }
4079 # Provide some information about the compiler.
4080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4083 for ac_option in --version -v -V -qversion; do
4084 { { ac_try="$ac_compiler $ac_option >&5"
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 $as_echo "$ac_try_echo"; } >&5
4091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4093 if test -s conftest.err; then
4095 ... rest of stderr output deleted ...
4096 10q' conftest.err >conftest.er1
4097 cat conftest.er1 >&5
4098 rm -f conftest.er1 conftest.err
4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4115 ac_clean_files_save=$ac_clean_files
4116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4117 # Try to create an executable without -o first, disregard a.out.
4118 # It will help us diagnose broken compilers, and finding out an intuition
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4121 $as_echo_n "checking for C compiler default output file name... " >&6; }
4122 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4124 # The possible output files:
4125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4128 for ac_file in $ac_files
4131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4137 if { { ac_try="$ac_link_default"
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143 $as_echo "$ac_try_echo"; } >&5
4144 (eval "$ac_link_default") 2>&5
4146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147 test $ac_status = 0; }; then :
4148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4149 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4150 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4151 # so that the user can short-circuit this test for compilers unknown to
4153 for ac_file in $ac_files ''
4155 test -f "$ac_file" || continue
4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4160 # We found the default executable, but exeext='' is most
4164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4168 # We set ac_cv_exeext here because the later test for it is not
4169 # safe: cross compilers may not add the suffix if given an `-o'
4170 # argument, so we may need to know it at that point already.
4171 # Even if this section looks crufty: it has the advantage of
4178 test "$ac_cv_exeext" = no && ac_cv_exeext=
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4184 $as_echo "$ac_file" >&6; }
4185 if test -z "$ac_file"; then :
4186 $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191 { as_fn_set_status 77
4192 as_fn_error "C compiler cannot create executables
4193 See \`config.log' for more details." "$LINENO" 5; }; }
4195 ac_exeext=$ac_cv_exeext
4197 # Check that the compiler produces executables we can run. If not, either
4198 # the compiler is broken, or we cross compile.
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4200 $as_echo_n "checking whether the C compiler works... " >&6; }
4201 # If not cross compiling, check that we can run a simple program.
4202 if test "$cross_compiling" != yes; then
4203 if { ac_try='./$ac_file'
4204 { { case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209 $as_echo "$ac_try_echo"; } >&5
4210 (eval "$ac_try") 2>&5
4212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; }; }; then
4216 if test "$cross_compiling" = maybe; then
4219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4221 as_fn_error "cannot run C compiled programs.
4222 If you meant to cross compile, use \`--host'.
4223 See \`config.log' for more details." "$LINENO" 5; }
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228 $as_echo "yes" >&6; }
4230 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4231 ac_clean_files=$ac_clean_files_save
4232 # Check that the compiler produces executables we can run. If not, either
4233 # the compiler is broken, or we cross compile.
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4235 $as_echo_n "checking whether we are cross compiling... " >&6; }
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4237 $as_echo "$cross_compiling" >&6; }
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4240 $as_echo_n "checking for suffix of executables... " >&6; }
4241 if { { ac_try="$ac_link"
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4247 $as_echo "$ac_try_echo"; } >&5
4248 (eval "$ac_link") 2>&5
4250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; }; then :
4252 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4253 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4254 # work properly (i.e., refer to `conftest.exe'), while it won't with
4256 for ac_file in conftest.exe conftest conftest.*; do
4257 test -f "$ac_file" || continue
4259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4260 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4268 as_fn_error "cannot compute suffix of executables: cannot compile and link
4269 See \`config.log' for more details." "$LINENO" 5; }
4271 rm -f conftest$ac_cv_exeext
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4273 $as_echo "$ac_cv_exeext" >&6; }
4275 rm -f conftest.$ac_ext
4276 EXEEXT=$ac_cv_exeext
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4279 $as_echo_n "checking for suffix of object files... " >&6; }
4280 if test "${ac_cv_objext+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4294 rm -f conftest.o conftest.obj
4295 if { { ac_try="$ac_compile"
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 $as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_compile") 2>&5
4304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305 test $ac_status = 0; }; then :
4306 for ac_file in conftest.o conftest.obj conftest.*; do
4307 test -f "$ac_file" || continue;
4309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4315 $as_echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error "cannot compute suffix of object files: cannot compile
4321 See \`config.log' for more details." "$LINENO" 5; }
4323 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4326 $as_echo "$ac_cv_objext" >&6; }
4327 OBJEXT=$ac_cv_objext
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4330 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4331 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4348 if ac_fn_c_try_compile "$LINENO"; then :
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4358 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4359 if test $ac_compiler_gnu = yes; then
4364 ac_test_CFLAGS=${CFLAGS+set}
4365 ac_save_CFLAGS=$CFLAGS
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4367 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4368 if test "${ac_cv_prog_cc_g+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4371 ac_save_c_werror_flag=$ac_c_werror_flag
4372 ac_c_werror_flag=yes
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4386 if ac_fn_c_try_compile "$LINENO"; then :
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4401 if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_c_werror_flag=$ac_save_c_werror_flag
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4417 if ac_fn_c_try_compile "$LINENO"; then :
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 ac_c_werror_flag=$ac_save_c_werror_flag
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4428 $as_echo "$ac_cv_prog_cc_g" >&6; }
4429 if test "$ac_test_CFLAGS" = set; then
4430 CFLAGS=$ac_save_CFLAGS
4431 elif test $ac_cv_prog_cc_g = yes; then
4432 if test "$GCC" = yes; then
4438 if test "$GCC" = yes; then
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4445 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4446 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4449 ac_cv_prog_cc_c89=no
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4455 #include <sys/types.h>
4456 #include <sys/stat.h>
4457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4458 struct buf { int x; };
4459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4460 static char *e (p, i)
4466 static char *f (char * (*g) (char **, int), char **p, ...)
4471 s = g (p, va_arg (v,int));
4476 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4477 function prototypes and stuff, but not '\xHH' hex character constants.
4478 These don't provoke an error unfortunately, instead are silently treated
4479 as 'x'. The following induces an error, until -std is added to get
4480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4481 array size at least. It's necessary to write '\x00'==0 to get something
4482 that's true only with -std. */
4483 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4485 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4486 inside strings and character constants. */
4488 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4490 int test (int i, double x);
4491 struct s1 {int (*f) (int a);};
4492 struct s2 {int (*f) (double a);};
4493 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4499 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4504 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4505 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4507 CC="$ac_save_CC $ac_arg"
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509 ac_cv_prog_cc_c89=$ac_arg
4511 rm -f core conftest.err conftest.$ac_objext
4512 test "x$ac_cv_prog_cc_c89" != "xno" && break
4514 rm -f conftest.$ac_ext
4519 case "x$ac_cv_prog_cc_c89" in
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4522 $as_echo "none needed" >&6; } ;;
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4525 $as_echo "unsupported" >&6; } ;;
4527 CC="$CC $ac_cv_prog_cc_c89"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4529 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4531 if test "x$ac_cv_prog_cc_c89" != xno; then :
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542 ac_cpp='$CXXCPP $CPPFLAGS'
4543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4546 if test -z "$CXX"; then
4547 if test -n "$CCC"; then
4550 if test -n "$ac_tool_prefix"; then
4551 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_CXX+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 if test -n "$CXX"; then
4561 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 if test -n "$CXX"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4583 $as_echo "$CXX" >&6; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4590 test -n "$CXX" && break
4593 if test -z "$CXX"; then
4595 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4597 # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4604 if test -n "$ac_ct_CXX"; then
4605 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_ac_ct_CXX="$ac_prog"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4625 if test -n "$ac_ct_CXX"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4627 $as_echo "$ac_ct_CXX" >&6; }
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4634 test -n "$ac_ct_CXX" && break
4637 if test "x$ac_ct_CXX" = x; then
4640 case $cross_compiling:$ac_tool_warned in
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644 ac_tool_warned=yes ;;
4652 # Provide some information about the compiler.
4653 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4656 for ac_option in --version -v -V -qversion; do
4657 { { ac_try="$ac_compiler $ac_option >&5"
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4663 $as_echo "$ac_try_echo"; } >&5
4664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4666 if test -s conftest.err; then
4668 ... rest of stderr output deleted ...
4669 10q' conftest.err >conftest.er1
4670 cat conftest.er1 >&5
4671 rm -f conftest.er1 conftest.err
4673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674 test $ac_status = 0; }
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4678 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4696 if ac_fn_cxx_try_compile "$LINENO"; then :
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4706 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4707 if test $ac_compiler_gnu = yes; then
4712 ac_test_CXXFLAGS=${CXXFLAGS+set}
4713 ac_save_CXXFLAGS=$CXXFLAGS
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4715 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4716 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4719 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4720 ac_cxx_werror_flag=yes
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4734 if ac_fn_cxx_try_compile "$LINENO"; then :
4735 ac_cv_prog_cxx_g=yes
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4749 if ac_fn_cxx_try_compile "$LINENO"; then :
4752 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4765 if ac_fn_cxx_try_compile "$LINENO"; then :
4766 ac_cv_prog_cxx_g=yes
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4776 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4777 if test "$ac_test_CXXFLAGS" = set; then
4778 CXXFLAGS=$ac_save_CXXFLAGS
4779 elif test $ac_cv_prog_cxx_g = yes; then
4780 if test "$GXX" = yes; then
4786 if test "$GXX" = yes; then
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799 # We must set the default linker to the linker used by gcc for the correct
4800 # operation of libtool. If LD is not defined and we are using gcc, try to
4801 # set the LD default to the ld used by gcc.
4802 if test -z "$LD"; then
4803 if test "$GCC" = yes; then
4806 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4808 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4810 case $gcc_prog_ld in
4811 # Accept absolute paths.
4812 [\\/]* | [A-Za-z]:[\\/]*)
4813 LD="$gcc_prog_ld" ;;
4821 if test -n "$ac_tool_prefix"; then
4822 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4823 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4829 if test -n "$GNATBIND"; then
4830 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 GNATBIND=$ac_cv_prog_GNATBIND
4850 if test -n "$GNATBIND"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4852 $as_echo "$GNATBIND" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4860 if test -z "$ac_cv_prog_GNATBIND"; then
4861 ac_ct_GNATBIND=$GNATBIND
4862 # Extract the first word of "gnatbind", so it can be a program name with args.
4863 set dummy gnatbind; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4869 if test -n "$ac_ct_GNATBIND"; then
4870 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4890 if test -n "$ac_ct_GNATBIND"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4892 $as_echo "$ac_ct_GNATBIND" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4898 if test "x$ac_ct_GNATBIND" = x; then
4901 case $cross_compiling:$ac_tool_warned in
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905 ac_tool_warned=yes ;;
4907 GNATBIND=$ac_ct_GNATBIND
4910 GNATBIND="$ac_cv_prog_GNATBIND"
4913 if test -n "$ac_tool_prefix"; then
4914 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4915 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4921 if test -n "$GNATMAKE"; then
4922 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 GNATMAKE=$ac_cv_prog_GNATMAKE
4942 if test -n "$GNATMAKE"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4944 $as_echo "$GNATMAKE" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4952 if test -z "$ac_cv_prog_GNATMAKE"; then
4953 ac_ct_GNATMAKE=$GNATMAKE
4954 # Extract the first word of "gnatmake", so it can be a program name with args.
4955 set dummy gnatmake; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4959 $as_echo_n "(cached) " >&6
4961 if test -n "$ac_ct_GNATMAKE"; then
4962 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4982 if test -n "$ac_ct_GNATMAKE"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4984 $as_echo "$ac_ct_GNATMAKE" >&6; }
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4990 if test "x$ac_ct_GNATMAKE" = x; then
4993 case $cross_compiling:$ac_tool_warned in
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4997 ac_tool_warned=yes ;;
4999 GNATMAKE=$ac_ct_GNATMAKE
5002 GNATMAKE="$ac_cv_prog_GNATMAKE"
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5006 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5007 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5008 $as_echo_n "(cached) " >&6
5010 cat >conftest.adb <<EOF
5011 procedure conftest is begin null; end conftest;
5013 acx_cv_cc_gcc_supports_ada=no
5014 # There is a bug in old released versions of GCC which causes the
5015 # driver to exit successfully when the appropriate language module
5016 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5017 # Therefore we must check for the error message as well as an
5018 # unsuccessful exit.
5019 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5020 # given a .adb file, but produce no object file. So we must check
5021 # if an object file was really produced to guard against this.
5022 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5023 if test x"$errors" = x && test -f conftest.$ac_objext; then
5024 acx_cv_cc_gcc_supports_ada=yes
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5029 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5031 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5038 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5039 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5040 $as_echo_n "(cached) " >&6
5044 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5045 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5046 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5049 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5052 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5053 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5056 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5063 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5064 do_compare="$gcc_cv_prog_cmp_skip"
5068 # Check whether --enable-bootstrap was given.
5069 if test "${enable_bootstrap+set}" = set; then :
5070 enableval=$enable_bootstrap;
5072 enable_bootstrap=default
5076 # Issue errors and warnings for invalid/strange bootstrap combinations.
5077 if test -r $srcdir/gcc/configure; then
5083 case "$have_compiler:$host:$target:$enable_bootstrap" in
5086 # Default behavior. Enable bootstrap if we have a compiler
5087 # and we are in a native configuration.
5088 yes:$build:$build:default)
5089 enable_bootstrap=yes ;;
5092 enable_bootstrap=no ;;
5094 # We have a compiler and we are in a native configuration, bootstrap is ok
5095 yes:$build:$build:yes)
5098 # Other configurations, but we have a compiler. Assume the user knows
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5102 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5105 # No compiler: if they passed --enable-bootstrap explicitly, fail
5107 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5109 # Fail if wrong command line
5111 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5115 # Used for setting $lt_cv_objdir
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5117 $as_echo_n "checking for objdir... " >&6; }
5118 if test "${lt_cv_objdir+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5121 rm -f .libs 2>/dev/null
5122 mkdir .libs 2>/dev/null
5123 if test -d .libs; then
5126 # MS-DOS does not allow filenames that begin with a dot.
5129 rmdir .libs 2>/dev/null
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5132 $as_echo "$lt_cv_objdir" >&6; }
5133 objdir=$lt_cv_objdir
5139 cat >>confdefs.h <<_ACEOF
5140 #define LT_OBJDIR "$lt_cv_objdir/"
5145 # Check for GMP, MPFR and MPC
5146 gmplibs="-lmpc -lmpfr -lgmp"
5150 # Specify a location for mpc
5151 # check for this first so it ends up on the link line before mpfr.
5153 # Check whether --with-mpc was given.
5154 if test "${with_mpc+set}" = set; then :
5159 # Check whether --with-mpc-include was given.
5160 if test "${with_mpc_include+set}" = set; then :
5161 withval=$with_mpc_include;
5165 # Check whether --with-mpc-lib was given.
5166 if test "${with_mpc_lib+set}" = set; then :
5167 withval=$with_mpc_lib;
5171 if test "x$with_mpc" != x; then
5172 gmplibs="-L$with_mpc/lib $gmplibs"
5173 gmpinc="-I$with_mpc/include $gmpinc"
5175 if test "x$with_mpc_include" != x; then
5176 gmpinc="-I$with_mpc_include $gmpinc"
5178 if test "x$with_mpc_lib" != x; then
5179 gmplibs="-L$with_mpc_lib $gmplibs"
5181 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5182 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5183 gmpinc='-I$$s/mpc/src '"$gmpinc"
5184 # Do not test the mpc version. Assume that it is sufficient, since
5185 # it is in the source tree, and the library has not been built yet
5186 # but it would be included on the link line in the version check below
5187 # hence making the test fail.
5191 # Specify a location for mpfr
5192 # check for this first so it ends up on the link line before gmp.
5194 # Check whether --with-mpfr-dir was given.
5195 if test "${with_mpfr_dir+set}" = set; then :
5196 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5197 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5202 # Check whether --with-mpfr was given.
5203 if test "${with_mpfr+set}" = set; then :
5208 # Check whether --with-mpfr-include was given.
5209 if test "${with_mpfr_include+set}" = set; then :
5210 withval=$with_mpfr_include;
5214 # Check whether --with-mpfr-lib was given.
5215 if test "${with_mpfr_lib+set}" = set; then :
5216 withval=$with_mpfr_lib;
5220 if test "x$with_mpfr" != x; then
5221 gmplibs="-L$with_mpfr/lib $gmplibs"
5222 gmpinc="-I$with_mpfr/include $gmpinc"
5224 if test "x$with_mpfr_include" != x; then
5225 gmpinc="-I$with_mpfr_include $gmpinc"
5227 if test "x$with_mpfr_lib" != x; then
5228 gmplibs="-L$with_mpfr_lib $gmplibs"
5230 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5231 # MPFR v3.1.0 moved the sources into a src sub-directory.
5232 if test -d ${srcdir}/mpfr/src; then
5233 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5234 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5235 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5237 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5238 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5239 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5241 # Do not test the mpfr version. Assume that it is sufficient, since
5242 # it is in the source tree, and the library has not been built yet
5243 # but it would be included on the link line in the version check below
5244 # hence making the test fail.
5248 # Specify a location for gmp
5250 # Check whether --with-gmp-dir was given.
5251 if test "${with_gmp_dir+set}" = set; then :
5252 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5253 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5258 # Check whether --with-gmp was given.
5259 if test "${with_gmp+set}" = set; then :
5264 # Check whether --with-gmp-include was given.
5265 if test "${with_gmp_include+set}" = set; then :
5266 withval=$with_gmp_include;
5270 # Check whether --with-gmp-lib was given.
5271 if test "${with_gmp_lib+set}" = set; then :
5272 withval=$with_gmp_lib;
5277 if test "x$with_gmp" != x; then
5278 gmplibs="-L$with_gmp/lib $gmplibs"
5279 gmpinc="-I$with_gmp/include $gmpinc"
5281 if test "x$with_gmp_include" != x; then
5282 gmpinc="-I$with_gmp_include $gmpinc"
5284 if test "x$with_gmp_lib" != x; then
5285 gmplibs="-L$with_gmp_lib $gmplibs"
5287 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5288 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5289 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5290 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5291 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5292 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5293 # Do not test the gmp version. Assume that it is sufficient, since
5294 # it is in the source tree, and the library has not been built yet
5295 # but it would be included on the link line in the version check below
5296 # hence making the test fail.
5300 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5302 saved_CFLAGS="$CFLAGS"
5303 CFLAGS="$CFLAGS $gmpinc"
5304 # Check for the recommended and required versions of GMP.
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5306 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5315 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5316 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5317 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5325 if ac_fn_c_try_compile "$LINENO"; then :
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5333 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5334 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5335 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5343 if ac_fn_c_try_compile "$LINENO"; then :
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5345 $as_echo "yes" >&6; }
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5348 $as_echo "buggy but acceptable" >&6; }
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }; have_gmp=no
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 # If we have GMP, check the MPFR version.
5358 if test x"$have_gmp" = xyes; then
5359 # Check for the recommended and required versions of MPFR.
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5361 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5370 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5378 if ac_fn_c_try_compile "$LINENO"; then :
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5387 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5395 if ac_fn_c_try_compile "$LINENO"; then :
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5397 $as_echo "yes" >&6; }
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5400 $as_echo "buggy but acceptable" >&6; }
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }; have_gmp=no
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 # Check for the MPC header version.
5411 if test x"$have_gmp" = xyes ; then
5412 # Check for the recommended and required versions of MPC.
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5414 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5422 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5430 if ac_fn_c_try_compile "$LINENO"; then :
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5438 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5446 if ac_fn_c_try_compile "$LINENO"; then :
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448 $as_echo "yes" >&6; }
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5451 $as_echo "buggy but acceptable" >&6; }
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }; have_gmp=no
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 # Now check the MPFR library.
5462 if test x"$have_gmp" = xyes; then
5464 LIBS="$LIBS $gmplibs"
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5466 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5480 mpfr_atan2 (n, n, x, GMP_RNDN);
5481 mpfr_erfc (n, x, GMP_RNDN);
5482 mpfr_subnormalize (x, t, GMP_RNDN);
5486 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5487 mpc_cosh (c, c, MPC_RNDNN);
5488 mpc_pow (c, c, c, MPC_RNDNN);
5489 mpc_acosh (c, c, MPC_RNDNN);
5496 if ac_fn_c_try_link "$LINENO"; then :
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5498 $as_echo "yes" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }; have_gmp=no
5503 rm -f core conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
5508 CFLAGS="$saved_CFLAGS"
5510 # The library versions listed in the error message below should match
5511 # the HARD-minimums enforced above.
5512 if test x$have_gmp != xyes; then
5513 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5514 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5515 their locations. Source code for these libraries can be found at
5516 their respective hosting sites as well as at
5517 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5518 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5519 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5520 make sure that you have installed both the libraries and the header
5521 files. They may be located in separate packages." "$LINENO" 5
5525 # Flags needed for both GMP, MPFR and/or MPC.
5533 # Allow host libstdc++ to be specified for static linking with PPL.
5535 # Check whether --with-host-libstdcxx was given.
5536 if test "${with_host_libstdcxx+set}" = set; then :
5537 withval=$with_host_libstdcxx;
5541 case $with_host_libstdcxx in
5543 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5547 # Linker flags to use for stage1 or when not boostrapping.
5549 # Check whether --with-stage1-ldflags was given.
5550 if test "${with_stage1_ldflags+set}" = set; then :
5551 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5554 stage1_ldflags=$withval
5562 # Libraries to use for stage1 or when not bootstrapping.
5564 # Check whether --with-stage1-libs was given.
5565 if test "${with_stage1_libs+set}" = set; then :
5566 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5569 stage1_libs=$withval
5572 stage1_libs=$with_host_libstdcxx
5577 # Libraries to use for stage2 and later builds. This defaults to the
5578 # argument passed to --with-host-libstdcxx.
5580 # Check whether --with-boot-libs was given.
5581 if test "${with_boot_libs+set}" = set; then :
5582 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5585 poststage1_libs=$withval
5588 poststage1_libs=$with_host_libstdcxx
5593 # Linker flags to use for stage2 and later builds.
5595 # Check whether --with-boot-ldflags was given.
5596 if test "${with_boot_ldflags+set}" = set; then :
5597 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5600 poststage1_ldflags=$withval
5604 # In stages 2 and 3, default to linking libstdc++ and libgcc
5605 # statically. But if the user explicitly specified the libraries to
5606 # use, trust that they are doing what they want.
5607 if test "$poststage1_libs" = ""; then
5608 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5617 # Check whether --with-isl was given.
5618 if test "${with_isl+set}" = set; then :
5623 # Check whether --with-isl-include was given.
5624 if test "${with_isl_include+set}" = set; then :
5625 withval=$with_isl_include;
5629 # Check whether --with-isl-lib was given.
5630 if test "${with_isl_lib+set}" = set; then :
5631 withval=$with_isl_lib;
5635 # Check whether --enable-isl-version-check was given.
5636 if test "${enable_isl_version_check+set}" = set; then :
5637 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5639 ENABLE_ISL_CHECK=yes
5643 # Initialize isllibs and islinc.
5652 isllibs="-L$with_isl/lib"
5653 islinc="-I$with_isl/include"
5656 if test "x${with_isl_include}" != x ; then
5657 islinc="-I$with_isl_include"
5659 if test "x${with_isl_lib}" != x; then
5660 isllibs="-L$with_isl_lib"
5662 if test "x${islinc}" = x && test "x${isllibs}" = x \
5663 && test -d ${srcdir}/isl; then
5664 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5665 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5669 isllibs="${isllibs} -lisl"
5675 if test "x$with_isl" != "xno"; then
5677 if test "${ENABLE_ISL_CHECK}" = yes ; then
5678 _isl_saved_CFLAGS=$CFLAGS
5679 _isl_saved_LDFLAGS=$LDFLAGS
5680 _isl_saved_LIBS=$LIBS
5682 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5683 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5684 LIBS="${_isl_saved_LIBS} -lisl"
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5688 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5689 if test "${gcc_cv_isl+set}" = set; then :
5690 $as_echo_n "(cached) " >&6
5692 if test "$cross_compiling" = yes; then :
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #include <isl/version.h>
5702 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5709 if ac_fn_c_try_run "$LINENO"; then :
5714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5715 conftest.$ac_objext conftest.beam conftest.$ac_ext
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5720 $as_echo "$gcc_cv_isl" >&6; }
5722 CFLAGS=$_isl_saved_CFLAGS
5723 LDFLAGS=$_isl_saved_LDFLAGS
5724 LIBS=$_isl_saved_LIBS
5733 if test "x${with_isl}" = xno; then
5734 graphite_requested=no
5735 elif test "x${with_isl}" != x \
5736 || test "x${with_isl_include}" != x \
5737 || test "x${with_isl_lib}" != x ; then
5738 graphite_requested=yes
5740 graphite_requested=no
5745 if test "${gcc_cv_isl}" = no ; then
5750 if test "${graphite_requested}" = yes \
5751 && test "x${isllibs}" = x \
5752 && test "x${islinc}" = x ; then
5754 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5763 # Check whether --with-cloog was given.
5764 if test "${with_cloog+set}" = set; then :
5765 withval=$with_cloog;
5769 # Check whether --with-cloog-include was given.
5770 if test "${with_cloog_include+set}" = set; then :
5771 withval=$with_cloog_include;
5775 # Check whether --with-cloog-lib was given.
5776 if test "${with_cloog_lib+set}" = set; then :
5777 withval=$with_cloog_lib;
5781 # Check whether --enable-cloog-version-check was given.
5782 if test "${enable_cloog_version_check+set}" = set; then :
5783 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5785 ENABLE_CLOOG_CHECK=yes
5789 # Initialize clooglibs and clooginc.
5798 clooglibs="-L$with_cloog/lib"
5799 clooginc="-I$with_cloog/include"
5802 if test "x${with_cloog_include}" != x ; then
5803 clooginc="-I$with_cloog_include"
5805 if test "x${with_cloog_lib}" != x; then
5806 clooglibs="-L$with_cloog_lib"
5808 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5809 && test -d ${srcdir}/cloog; then
5810 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5811 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
5814 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5815 clooglibs="${clooglibs} -lcloog-isl ${isllibs}"
5821 if test "x$isllibs" = x && test "x$islinc" = x; then
5824 elif test "x$with_cloog" != "xno"; then
5828 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5829 _cloog_saved_CFLAGS=$CFLAGS
5830 _cloog_saved_LDFLAGS=$LDFLAGS
5832 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5833 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5836 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5837 if test "${gcc_cv_cloog+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include "cloog/version.h"
5846 #if CLOOG_VERSION_MAJOR != 0 \
5847 || CLOOG_VERSION_MINOR != 17 \
5848 || CLOOG_VERSION_REVISION < 0
5855 if ac_fn_c_try_compile "$LINENO"; then :
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5863 $as_echo "$gcc_cv_cloog" >&6; }
5865 CFLAGS=$_cloog_saved_CFLAGS
5866 LDFLAGS=$_cloog_saved_LDFLAGS
5875 if test "x${with_cloog}" = xno; then
5876 graphite_requested=no
5877 elif test "x${with_cloog}" != x \
5878 || test "x${with_cloog_include}" != x \
5879 || test "x${with_cloog_lib}" != x ; then
5880 graphite_requested=yes
5882 graphite_requested=no
5887 if test "${gcc_cv_cloog}" = no ; then
5892 if test "${graphite_requested}" = yes \
5893 && test "x${clooglibs}" = x \
5894 && test "x${clooginc}" = x ; then
5896 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5902 # If either the ISL or the CLooG check failed, disable builds of in-tree
5904 if test "x$clooglibs" = x && test "x$clooginc" = x; then
5905 noconfigdirs="$noconfigdirs cloog isl"
5908 # Check for LTO support.
5909 # Check whether --enable-lto was given.
5910 if test "${enable_lto+set}" = set; then :
5911 enableval=$enable_lto; enable_lto=$enableval
5913 enable_lto=yes; default_enable_lto=yes
5922 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5923 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5924 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5932 if test $target_elf = yes; then :
5933 # ELF platforms build the lto-plugin always.
5934 build_lto_plugin=yes
5937 if test x"$default_enable_lto" = x"yes" ; then
5939 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
5940 # On other non-ELF platforms, LTO has yet to be validated.
5944 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5945 # It would also be nice to check the binutils support, but we don't
5946 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5947 # warn during gcc/ subconfigure; unless you're bootstrapping with
5948 # -flto it won't be needed until after installation anyway.
5950 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5951 *) if test x"$enable_lto" = x"yes"; then
5952 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5957 # Among non-ELF, only Windows platforms support the lto-plugin so far.
5958 # Build it unless LTO was explicitly disabled.
5960 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
5968 # By default, C and C++ are the only stage 1 languages.
5969 stage1_languages=,c,
5971 # Target libraries that we bootstrap.
5972 bootstrap_target_libs=,target-libgcc,
5974 # Figure out what language subdirectories are present.
5975 # Look if the user specified --enable-languages="..."; if not, use
5976 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5978 # NB: embedded tabs in this IF block -- do not untabify
5979 if test -d ${srcdir}/gcc; then
5980 if test x"${enable_languages+set}" != xset; then
5981 if test x"${LANGUAGES+set}" = xset; then
5982 enable_languages="${LANGUAGES}"
5983 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5985 enable_languages=all
5988 if test x"${enable_languages}" = x ||
5989 test x"${enable_languages}" = xyes;
5991 echo configure.in: --enable-languages needs at least one language argument 1>&2
5995 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5997 # 'f95' is the old name for the 'fortran' language. We issue a warning
5998 # and make the substitution.
5999 case ,${enable_languages}, in
6001 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6002 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6006 # If bootstrapping, C++ must be enabled.
6007 case ",$enable_languages,:$enable_bootstrap" in
6010 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6011 enable_languages="${enable_languages},c++"
6013 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6018 # First scan to see if an enabled language requires some other language.
6019 # We assume that a given config-lang.in will list all the language
6020 # front ends it requires, even if some are required indirectly.
6021 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6022 case ${lang_frag} in
6024 # The odd quoting in the next line works around
6025 # an apparent bug in bash 1.12 on linux.
6026 ${srcdir}/gcc/[*]/config-lang.in) ;;
6028 # From the config-lang.in, get $language, $lang_requires, and
6029 # $lang_requires_boot_languages.
6032 lang_requires_boot_languages=
6034 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6035 case ,${enable_languages}, in
6039 echo " \`$other' language required by \`$language'; enabling" 1>&2
6040 enable_languages="${enable_languages},${other}"
6044 for other in ${lang_requires_boot_languages} ; do
6045 if test "$other" != "c"; then
6046 case ,${enable_stage1_languages}, in
6050 case ,${enable_languages}, in
6052 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6053 enable_stage1_languages="$enable_stage1_languages,${other}"
6064 new_enable_languages=,c,
6066 # If LTO is enabled, add the LTO front end.
6067 extra_host_libiberty_configure_flags=
6068 if test "$enable_lto" = "yes" ; then
6069 case ,${enable_languages}, in
6071 *) enable_languages="${enable_languages},lto" ;;
6073 if test "${build_lto_plugin}" = "yes" ; then
6074 configdirs="$configdirs lto-plugin"
6075 extra_host_libiberty_configure_flags=--enable-shared
6080 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6081 potential_languages=,c,
6083 enabled_target_libs=
6084 disabled_target_libs=
6086 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6087 case ${lang_frag} in
6089 # The odd quoting in the next line works around
6090 # an apparent bug in bash 1.12 on linux.
6091 ${srcdir}/gcc/[*]/config-lang.in) ;;
6093 # From the config-lang.in, get $language, $target_libs,
6094 # $lang_dirs, $boot_language, and $build_by_default
6100 build_by_default=yes
6102 if test x${language} = x; then
6103 echo "${lang_frag} doesn't set \$language." 1>&2
6107 if test "$language" = "c++"; then
6111 case ,${enable_languages}, in
6113 # Language was explicitly selected; include it
6114 # unless it is C, which is enabled by default.
6115 if test "$language" != "c"; then
6120 # 'all' was selected, select it if it is a default language
6121 add_this_lang=${build_by_default}
6128 # Disable languages that need other directories if these aren't available.
6129 for i in $subdir_requires; do
6130 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6131 case ,${enable_languages}, in
6133 # Specifically requested language; tell them.
6134 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6138 add_this_lang=unsupported
6143 # Disable Ada if no preexisting GNAT is available.
6144 case ,${enable_languages},:${language}:${have_gnat} in
6145 *,${language},*:ada:no)
6146 # Specifically requested language; tell them.
6147 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6151 add_this_lang=unsupported
6155 # Disable a language that is unsupported by the target.
6156 case " $unsupported_languages " in
6158 add_this_lang=unsupported
6162 case $add_this_lang in
6164 # Remove language-dependent dirs.
6165 disabled_target_libs="$disabled_target_libs $target_libs"
6166 noconfigdirs="$noconfigdirs $lang_dirs"
6169 # Remove language-dependent dirs; still show language as supported.
6170 disabled_target_libs="$disabled_target_libs $target_libs"
6171 noconfigdirs="$noconfigdirs $lang_dirs"
6172 potential_languages="${potential_languages}${language},"
6175 new_enable_languages="${new_enable_languages}${language},"
6176 potential_languages="${potential_languages}${language},"
6177 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6178 enabled_target_libs="$enabled_target_libs $target_libs"
6179 case "${boot_language}:,$enable_stage1_languages," in
6180 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6181 # Add to (comma-separated) list of stage 1 languages.
6182 case ",$stage1_languages," in
6183 *,$language,* | ,yes, | ,all,) ;;
6184 *) stage1_languages="${stage1_languages}${language}," ;;
6186 # We need to bootstrap any supporting libraries.
6187 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6196 # Add target libraries which are only needed for disabled languages
6198 if test -n "$disabled_target_libs"; then
6199 for dir in $disabled_target_libs; do
6200 case " $enabled_target_libs " in
6202 *) noconfigdirs="$noconfigdirs $dir" ;;
6207 # Check whether --enable-stage1-languages was given.
6208 if test "${enable_stage1_languages+set}" = set; then :
6209 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6211 # Set it to something that will have no effect in the loop below
6212 enable_stage1_languages=c ;;
6214 enable_stage1_languages=`echo $new_enable_languages | \
6215 sed -e "s/^,//" -e "s/,$//" ` ;;
6217 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6218 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6221 # Add "good" languages from enable_stage1_languages to stage1_languages,
6222 # while "bad" languages go in missing_languages. Leave no duplicates.
6223 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6224 case $potential_languages in
6226 case $stage1_languages in
6228 *) stage1_languages="$stage1_languages$i," ;;
6231 case $missing_languages in
6233 *) missing_languages="$missing_languages$i," ;;
6240 # Remove leading/trailing commas that were added for simplicity
6241 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6242 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6243 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6244 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6246 if test "x$missing_languages" != x; then
6248 The following requested languages could not be built: ${missing_languages}
6249 Supported languages are: ${potential_languages}" "$LINENO" 5
6251 if test "x$new_enable_languages" != "x$enable_languages"; then
6252 echo The following languages will be built: ${new_enable_languages}
6253 enable_languages="$new_enable_languages"
6257 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6260 # Handle --disable-<component> generically.
6261 for dir in $configdirs $build_configdirs $target_configdirs ; do
6262 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6263 varname=`echo $dirname | sed -e s/+/_/g`
6264 if eval test x\${enable_${varname}} "=" xno ; then
6265 noconfigdirs="$noconfigdirs $dir"
6269 # Check for Boehm's garbage collector
6270 # Check whether --enable-objc-gc was given.
6271 if test "${enable_objc_gc+set}" = set; then :
6272 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6273 *,objc,*:*:yes:*target-boehm-gc*)
6274 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6280 # Make sure we only build Boehm's garbage collector if required.
6281 case ,${enable_languages},:${enable_objc_gc} in
6283 # Keep target-boehm-gc if requested for Objective-C.
6286 # Otherwise remove target-boehm-gc depending on target-libjava.
6287 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6288 noconfigdirs="$noconfigdirs target-boehm-gc"
6293 # Disable libitm if we're not building C++
6294 case ,${enable_languages}, in
6297 noconfigdirs="$noconfigdirs target-libitm"
6301 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6302 # $build_configdirs and $target_configdirs.
6303 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6306 for dir in . $skipdirs $noconfigdirs ; do
6307 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6308 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6309 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6310 if test -r $srcdir/$dirname/configure ; then
6311 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6314 notsupp="$notsupp $dir"
6318 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6319 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6320 if test -r $srcdir/$dirname/configure ; then
6321 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6324 notsupp="$notsupp $dir"
6328 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6329 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6330 if test -r $srcdir/$dirname/configure ; then
6331 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6334 notsupp="$notsupp $dir"
6340 # Quietly strip out all directories which aren't configurable in this tree.
6341 # This relies on all configurable subdirectories being autoconfiscated, which
6343 build_configdirs_all="$build_configdirs"
6345 for i in ${build_configdirs_all} ; do
6346 j=`echo $i | sed -e s/build-//g`
6347 if test -f ${srcdir}/$j/configure ; then
6348 build_configdirs="${build_configdirs} $i"
6352 configdirs_all="$configdirs"
6354 for i in ${configdirs_all} ; do
6355 if test -f ${srcdir}/$i/configure ; then
6356 configdirs="${configdirs} $i"
6360 target_configdirs_all="$target_configdirs"
6362 for i in ${target_configdirs_all} ; do
6363 j=`echo $i | sed -e s/target-//g`
6364 if test -f ${srcdir}/$j/configure ; then
6365 target_configdirs="${target_configdirs} $i"
6369 # Produce a warning message for the subdirs we can't configure.
6370 # This isn't especially interesting in the Cygnus tree, but in the individual
6371 # FSF releases, it's important to let people know when their machine isn't
6372 # supported by the one or two programs in a package.
6374 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6375 # If $appdirs is non-empty, at least one of those directories must still
6376 # be configured, or we error out. (E.g., if the gas release supports a
6377 # specified target in some subdirs but not the gas subdir, we shouldn't
6378 # pretend that all is well.)
6379 if test -n "$appdirs" ; then
6380 for dir in $appdirs ; do
6381 if test -r $dir/Makefile.in ; then
6382 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6386 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6392 if test -n "$appdirs" ; then
6393 echo "*** This configuration is not supported by this package." 1>&2
6397 # Okay, some application will build, or we don't care to check. Still
6398 # notify of subdirs not getting built.
6399 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6400 echo " ${notsupp}" 1>&2
6401 echo " (Any other directories should still work fine.)" 1>&2
6409 # To find our prefix, in gcc_cv_tool_prefix.
6411 # The user is always right.
6412 if test "${PATH_SEPARATOR+set}" != set; then
6413 echo "#! /bin/sh" >conf$$.sh
6414 echo "exit 0" >>conf$$.sh
6416 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6426 if test "x$exec_prefix" = xNONE; then
6427 if test "x$prefix" = xNONE; then
6428 gcc_cv_tool_prefix=$ac_default_prefix
6430 gcc_cv_tool_prefix=$prefix
6433 gcc_cv_tool_prefix=$exec_prefix
6436 # If there is no compiler in the tree, use the PATH only. In any
6437 # case, if there is no compiler in the tree nobody should use
6438 # AS_FOR_TARGET and LD_FOR_TARGET.
6439 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6440 gcc_version=`cat $srcdir/gcc/BASE-VER`
6441 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6442 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6443 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6444 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6445 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6446 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6451 if test x$build = x$target && test -n "$md_exec_prefix"; then
6452 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6460 # Check whether --with-build-sysroot was given.
6461 if test "${with_build_sysroot+set}" = set; then :
6462 withval=$with_build_sysroot; if test x"$withval" != x ; then
6463 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6466 SYSROOT_CFLAGS_FOR_TARGET=
6472 # Check whether --with-debug-prefix-map was given.
6473 if test "${with_debug_prefix_map+set}" = set; then :
6474 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6475 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6476 for debug_map in $withval; do
6477 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6481 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6486 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6487 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6488 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6489 # We want to ensure that TARGET libraries (which we know are built with
6490 # gcc) are built with "-O2 -g", so include those options when setting
6491 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6492 if test "x$CFLAGS_FOR_TARGET" = x; then
6493 CFLAGS_FOR_TARGET=$CFLAGS
6496 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6499 *" -g "* | *" -g3 "*) ;;
6500 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6505 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6506 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6507 case " $CXXFLAGS " in
6509 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6511 case " $CXXFLAGS " in
6512 *" -g "* | *" -g3 "*) ;;
6513 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6520 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6521 # the named directory are copied to $(tooldir)/sys-include.
6522 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6523 if test x${is_cross_compiler} = xno ; then
6524 echo 1>&2 '***' --with-headers is only supported when cross compiling
6527 if test x"${with_headers}" != xyes ; then
6528 x=${gcc_cv_tool_prefix}
6529 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6533 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6534 # the name directories are copied to $(tooldir)/lib. Multiple directories
6536 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6537 if test x${is_cross_compiler} = xno ; then
6538 echo 1>&2 '***' --with-libs is only supported when cross compiling
6541 if test x"${with_libs}" != xyes ; then
6542 # Copy the libraries in reverse order, so that files in the first named
6543 # library override files in subsequent libraries.
6544 x=${gcc_cv_tool_prefix}
6545 for l in ${with_libs}; do
6546 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6551 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6553 # This is done by determining whether or not the appropriate directory
6554 # is available, and by checking whether or not specific configurations
6555 # have requested that this magic not happen.
6557 # The command line options always override the explicit settings in
6558 # configure.in, and the settings in configure.in override this magic.
6560 # If the default for a toolchain is to use GNU as and ld, and you don't
6561 # want to do that, then you should use the --without-gnu-as and
6562 # --without-gnu-ld options for the configure script. Similarly, if
6563 # the default is to use the included zlib and you don't want to do that,
6564 # you should use the --with-system-zlib option for the configure script.
6566 if test x${use_gnu_as} = x &&
6567 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6569 extra_host_args="$extra_host_args --with-gnu-as"
6572 if test x${use_gnu_ld} = x &&
6573 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6575 extra_host_args="$extra_host_args --with-gnu-ld"
6578 if test x${use_included_zlib} = x &&
6579 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6582 with_system_zlib=yes
6583 extra_host_args="$extra_host_args --with-system-zlib"
6586 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6587 # can detect this case.
6589 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6591 extra_host_args="$extra_host_args --with-newlib"
6594 # Handle ${copy_dirs}
6595 set fnord ${copy_dirs}
6597 while test $# != 0 ; do
6598 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6601 echo Copying $1 to $2
6603 # Use the install script to create the directory and all required
6604 # parent directories.
6605 if test -d $2 ; then
6609 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6612 # Copy the directory, assuming we have tar.
6613 # FIXME: Should we use B in the second tar? Not all systems support it.
6614 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6616 # It is the responsibility of the user to correctly adjust all
6617 # symlinks. If somebody can figure out how to handle them correctly
6618 # here, feel free to add the code.
6625 # Determine a target-dependent exec_prefix that the installed
6626 # gcc will search in. Keep this list sorted by triplet, with
6627 # the *-*-osname triplets last.
6630 i[34567]86-pc-msdosdjgpp*)
6631 md_exec_prefix=/dev/env/DJDIR/bin
6636 md_exec_prefix=/usr/ccs/bin
6640 extra_arflags_for_target=
6641 extra_nmflags_for_target=
6642 extra_ranlibflags_for_target=
6643 target_makefile_frag=/dev/null
6646 target_makefile_frag="config/mt-spu"
6649 target_makefile_frag="config/mt-sde"
6651 mipsisa*-*-elfoabi*)
6652 target_makefile_frag="config/mt-mips-elfoabi"
6654 mips*-*-*linux* | mips*-*-gnu*)
6655 target_makefile_frag="config/mt-mips-gnu"
6657 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6658 target_makefile_frag="config/mt-gnu"
6660 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6661 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6662 # commands to handle both 32-bit and 64-bit objects. These flags are
6663 # harmless if we're using GNU nm or ar.
6664 extra_arflags_for_target=" -X32_64"
6665 extra_nmflags_for_target=" -B -X32_64"
6669 alphaieee_frag=/dev/null
6672 # This just makes sure to use the -mieee option to build target libs.
6673 # This should probably be set individually by each library.
6674 alphaieee_frag="config/mt-alphaieee"
6678 # If --enable-target-optspace always use -Os instead of -O2 to build
6679 # the target libraries, similarly if it is not specified, use -Os
6680 # on selected platforms.
6681 ospace_frag=/dev/null
6682 case "${enable_target_optspace}:${target}" in
6684 ospace_frag="config/mt-ospace"
6687 ospace_frag="config/mt-d30v"
6689 :m32r-* | :d10v-* | :fr30-*)
6690 ospace_frag="config/mt-ospace"
6695 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6699 # Some systems (e.g., one of the i386-aix systems the gas testers are
6700 # using) don't handle "\$" correctly, so don't use it here.
6701 tooldir='${exec_prefix}'/${target_noncanonical}
6702 build_tooldir=${tooldir}
6704 # Create a .gdbinit file which runs the one in srcdir
6705 # and tells GDB to look there for source files.
6707 if test -r ${srcdir}/.gdbinit ; then
6710 *) cat > ./.gdbinit <<EOF
6714 source ${srcdir}/.gdbinit
6720 # Make sure that the compiler is able to generate an executable. If it
6721 # can't, we are probably in trouble. We don't care whether we can run the
6722 # executable--we might be using a cross compiler--we only care whether it
6723 # can be created. At this point the main configure script has set CC.
6725 echo "int main () { return 0; }" > conftest.c
6726 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6727 if test $? = 0 ; then
6728 if test -s conftest || test -s conftest.exe ; then
6734 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6735 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6742 # Decide which environment variable is used to find dynamic libraries.
6744 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6745 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6746 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6747 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6750 # On systems where the dynamic library environment variable is PATH,
6751 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6752 # built executables to PATH.
6753 if test "$RPATH_ENVVAR" = PATH; then
6754 GCC_SHLIB_SUBDIR=/shlib
6759 # Record target_configdirs and the configure arguments for target and
6760 # build configuration in Makefile.
6761 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6762 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6764 # If we are building libgomp, bootstrap it.
6765 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6766 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6769 # Determine whether gdb needs tk/tcl or not.
6770 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6771 # and in that case we want gdb to be built without tk. Ugh!
6772 # In fact I believe gdb is the *only* package directly dependent on tk,
6773 # so we should be able to put the 'maybe's in unconditionally and
6774 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6775 # 100% sure that that's safe though.
6777 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6778 case "$enable_gdbtk" in
6782 GDB_TK="${gdb_tk}" ;;
6784 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6785 # distro. Eventually someone will fix this and move Insight, nee
6786 # gdbtk to a separate directory.
6787 if test -d ${srcdir}/gdb/gdbtk ; then
6794 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6795 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6797 # Strip out unwanted targets.
6799 # While at that, we remove Makefiles if we were started for recursive
6800 # configuration, so that the top-level Makefile reconfigures them,
6801 # like we used to do when configure itself was recursive.
6803 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6804 # but now we're fixing up the Makefile ourselves with the additional
6805 # commands passed to AC_CONFIG_FILES. Use separate variables
6806 # extrasub-{build,host,target} not because there is any reason to split
6807 # the substitutions up that way, but only to remain below the limit of
6808 # 99 commands in a script, for HP-UX sed.
6809 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6811 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6812 yes:yes:*\ gold\ *:*,c++,*) ;;
6813 yes:yes:*\ gold\ *:*)
6814 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6818 # Adjust the toplevel makefile according to whether bootstrap was selected.
6819 case $enable_bootstrap in
6821 bootstrap_suffix=bootstrap
6822 BUILD_CONFIG=bootstrap-debug
6825 bootstrap_suffix=no-bootstrap
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6831 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6834 # Check whether --with-build-config was given.
6835 if test "${with_build_config+set}" = set; then :
6836 withval=$with_build_config; case $with_build_config in
6837 yes) with_build_config= ;;
6838 no) with_build_config= BUILD_CONFIG= ;;
6843 if test "x${with_build_config}" != x; then
6844 BUILD_CONFIG=$with_build_config
6846 case $BUILD_CONFIG in
6848 if echo "int f (void) { return 0; }" > conftest.c &&
6849 ${CC} -c conftest.c &&
6850 mv conftest.o conftest.o.g0 &&
6851 ${CC} -c -g conftest.c &&
6852 mv conftest.o conftest.o.g &&
6853 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6858 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6863 $as_echo "$BUILD_CONFIG" >&6; }
6867 for module in ${build_configdirs} ; do
6868 if test -z "${no_recursion}" \
6869 && test -f ${build_subdir}/${module}/Makefile; then
6870 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6871 rm -f ${build_subdir}/${module}/Makefile
6873 extrasub_build="$extrasub_build
6874 /^@if build-$module\$/d
6875 /^@endif build-$module\$/d
6876 /^@if build-$module-$bootstrap_suffix\$/d
6877 /^@endif build-$module-$bootstrap_suffix\$/d"
6880 for module in ${configdirs} ; do
6881 if test -z "${no_recursion}"; then
6882 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6883 if test -f ${file}; then
6884 echo 1>&2 "*** removing ${file} to force reconfigure"
6889 extrasub_host="$extrasub_host
6891 /^@endif $module\$/d
6892 /^@if $module-$bootstrap_suffix\$/d
6893 /^@endif $module-$bootstrap_suffix\$/d"
6896 for module in ${target_configdirs} ; do
6897 if test -z "${no_recursion}" \
6898 && test -f ${target_subdir}/${module}/Makefile; then
6899 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6900 rm -f ${target_subdir}/${module}/Makefile
6903 # We only bootstrap target libraries listed in bootstrap_target_libs.
6904 case $bootstrap_target_libs in
6905 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6906 *) target_bootstrap_suffix=no-bootstrap ;;
6909 extrasub_target="$extrasub_target
6910 /^@if target-$module\$/d
6911 /^@endif target-$module\$/d
6912 /^@if target-$module-$target_bootstrap_suffix\$/d
6913 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6916 # Do the final fixup along with target modules.
6917 extrasub_target="$extrasub_target
6918 /^@if /,/^@endif /d"
6920 # Create the serialization dependencies. This uses a temporary file.
6922 # Check whether --enable-serial-configure was given.
6923 if test "${enable_serial_configure+set}" = set; then :
6924 enableval=$enable_serial_configure;
6928 case ${enable_serial_configure} in
6930 enable_serial_build_configure=yes
6931 enable_serial_host_configure=yes
6932 enable_serial_target_configure=yes
6936 # These force 'configure's to be done one at a time, to avoid problems
6937 # with contention over a shared config.cache.
6939 echo '# serdep.tmp' > serdep.tmp
6941 test "x${enable_serial_build_configure}" = xyes &&
6942 for item in ${build_configdirs} ; do
6945 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6950 test "x${enable_serial_host_configure}" = xyes &&
6951 for item in ${configdirs} ; do
6954 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6959 test "x${enable_serial_target_configure}" = xyes &&
6960 for item in ${target_configdirs} ; do
6963 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6967 serialization_dependencies=serdep.tmp
6970 # Base args. Strip norecursion, cache-file, srcdir, host, build,
6971 # target, nonopt, and variable assignments. These are the ones we
6972 # might not want to pass down to subconfigures. The exception being
6973 # --cache-file=/dev/null, which is used to turn off the use of cache
6974 # files altogether, and which should be passed on to subconfigures.
6975 # Also strip program-prefix, program-suffix, and program-transform-name,
6976 # so that we can pass down a consistent program-transform-name.
6981 eval "set -- $ac_configure_args"
6984 if test X"$skip_next" = X"yes"; then
6988 if test X"$keep_next" = X"yes"; then
6991 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6993 baseargs="$baseargs '$ac_arg'"
6994 tbaseargs="$tbaseargs '$ac_arg'"
6999 # Handle separated arguments. Based on the logic generated by
7002 *=* | --config-cache | -C | -disable-* | --disable-* \
7003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7005 | -with-* | --with-* | -without-* | --without-* | --x)
7019 --with-* | --without-*)
7020 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7024 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7027 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7036 mpc | mpfr | gmp | cloog)
7037 # If we're processing --with-$lib, --with-$lib-include or
7038 # --with-$lib-lib, for one of the libs above, and target is
7039 # different from host, don't pass the current argument to any
7040 # target library's configure.
7041 if test x$is_cross_compiler = xyes; then
7050 --cache-file=/dev/null | \
7051 -cache-file=/dev/null )
7052 # Handled here to avoid the test to skip args below.
7053 baseargs="$baseargs '$ac_arg'"
7054 tbaseargs="$tbaseargs '$ac_arg'"
7055 # Assert: $separate_arg should always be no.
7056 keep_next=$separate_arg
7072 -program-prefix* | \
7073 -program-suffix* | \
7074 -program-transform-name* )
7075 skip_next=$separate_arg
7079 # An option. Add it.
7082 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7084 baseargs="$baseargs '$ac_arg'"
7085 if test X"$skip_targ" = Xno; then
7086 tbaseargs="$tbaseargs '$ac_arg'"
7088 keep_next=$separate_arg
7091 # Either a variable assignment, or a nonopt (triplet). Don't
7092 # pass it down; let the Makefile handle this.
7097 # Remove the initial space we just introduced and, as these will be
7098 # expanded by make, quote '$'.
7099 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7101 # Add in --program-transform-name, after --program-prefix and
7102 # --program-suffix have been applied to it. Autoconf has already
7103 # doubled dollar signs and backslashes in program_transform_name; we want
7104 # the backslashes un-doubled, and then the entire thing wrapped in single
7105 # quotes, because this will be expanded first by make and then by the shell.
7106 # Also, because we want to override the logic in subdir configure scripts to
7107 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7108 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7109 ${program_transform_name}
7111 gcc_transform_name=`cat conftestsed.out`
7112 rm -f conftestsed.out
7113 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7114 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7115 if test "$silent" = yes; then
7116 baseargs="$baseargs --silent"
7117 tbaseargs="$tbaseargs --silent"
7119 baseargs="$baseargs --disable-option-checking"
7120 tbaseargs="$tbaseargs --disable-option-checking"
7122 # Record and document user additions to sub configure arguments.
7127 # For the build-side libraries, we just need to pretend we're native,
7128 # and not use the same cache file. Multilibs are neither needed nor
7130 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7132 # For host modules, accept cache file option, or specification as blank.
7133 case "${cache_file}" in
7135 cache_file_option="" ;;
7136 /* | [A-Za-z]:[\\/]* ) # absolute path
7137 cache_file_option="--cache-file=${cache_file}" ;;
7139 cache_file_option="--cache-file=../${cache_file}" ;;
7142 # Host dirs don't like to share a cache file either, horribly enough.
7143 # This seems to be due to autoconf 2.5x stupidity.
7144 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7146 target_configargs="$target_configargs ${tbaseargs}"
7148 # Passing a --with-cross-host argument lets the target libraries know
7149 # whether they are being built with a cross-compiler or being built
7150 # native. However, it would be better to use other mechanisms to make the
7151 # sorts of decisions they want to make on this basis. Please consider
7152 # this option to be deprecated. FIXME.
7153 if test x${is_cross_compiler} = xyes ; then
7154 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7157 # Default to --enable-multilib.
7158 if test x${enable_multilib} = x ; then
7159 target_configargs="--enable-multilib ${target_configargs}"
7162 # Pass --with-newlib if appropriate. Note that target_configdirs has
7163 # changed from the earlier setting of with_newlib.
7164 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7165 target_configargs="--with-newlib ${target_configargs}"
7168 # Different target subdirs use different values of certain variables
7169 # (notably CXX). Worse, multilibs use *lots* of different values.
7170 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7171 # it doesn't automatically accept command-line overrides of them.
7172 # This means it's not safe for target subdirs to share a cache file,
7173 # which is disgusting, but there you have it. Hopefully this can be
7174 # fixed in future. It's still worthwhile to use a cache file for each
7175 # directory. I think.
7177 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7178 # We need to pass --target, as newer autoconf's requires consistency
7179 # for target_alias and gcc doesn't manage it consistently.
7180 target_configargs="--cache-file=./config.cache ${target_configargs}"
7183 case " $target_configdirs " in
7185 case " $target_configargs " in
7186 *" --with-newlib "*)
7189 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7193 # If we're not building GCC, don't discard standard headers.
7194 if test -d ${srcdir}/gcc; then
7195 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7197 if test "${build}" != "${host}"; then
7198 # On Canadian crosses, CC_FOR_TARGET will have already been set
7199 # by `configure', so we won't have an opportunity to add -Bgcc/
7200 # to it. This is right: we don't want to search that directory
7201 # for binaries, but we want the header files in there, so add
7203 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7205 # Someone might think of using the pre-installed headers on
7206 # Canadian crosses, in case the installed compiler is not fully
7207 # compatible with the compiler being built. In this case, it
7208 # would be better to flag an error than risking having
7209 # incompatible object files being constructed. We can't
7210 # guarantee that an error will be flagged, but let's hope the
7211 # compiler will do it, when presented with incompatible header
7216 case "${target}-${is_cross_compiler}" in
7217 i[3456789]86-*-linux*-no)
7218 # Here host == target, so we don't need to build gcc,
7219 # so we don't want to discard standard headers.
7220 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7223 # If we're building newlib, use its generic headers last, but search
7224 # for any libc-related directories first (so make it the last -B
7226 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7228 # If we're building libgloss, find the startup file, simulator library
7229 # and linker script.
7230 case " $target_configdirs " in
7232 # Look for startup file, simulator library and maybe linker script.
7233 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7234 # Look for libnosys.a in case the target needs it.
7235 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7236 # Most targets have the linker script in the source directory.
7237 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7248 x86_64-*mingw* | *-w64-mingw*)
7249 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7250 # however, use a symlink named 'mingw' in ${prefix} .
7251 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7254 # MinGW can't be handled as Cygwin above since it does not use newlib.
7255 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'
7259 # Allow the user to override the flags for
7260 # our build compiler if desired.
7261 if test x"${build}" = x"${host}" ; then
7262 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7263 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7264 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7267 # On Canadian crosses, we'll be searching the right directories for
7268 # the previously-installed cross compiler, so don't bother to add
7269 # flags for directories within the install tree of the compiler
7270 # being built; programs in there won't even run.
7271 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7272 # Search for pre-installed headers if nothing else fits.
7273 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7276 if test "x${use_gnu_ld}" = x &&
7277 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7278 # Arrange for us to find uninstalled linker scripts.
7279 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7282 # Search for other target-specific linker scripts and such.
7285 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7289 # Makefile fragments.
7290 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7292 eval fragval=\$$frag
7293 if test $fragval != /dev/null; then
7294 eval $frag=${srcdir}/$fragval
7302 # Miscellanea: directories, flags, etc.
7311 # Build module lists & subconfigure args.
7315 # Host module lists & subconfigure args.
7320 # Target module lists & subconfigure args.
7342 # Generate default definitions for YACC, M4, LEX and other programs that run
7343 # on the build machine. These are used if the Makefile can't locate these
7344 # programs in objdir.
7345 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7347 for ac_prog in 'bison -y' byacc yacc
7349 # Extract the first word of "$ac_prog", so it can be a program name with args.
7350 set dummy $ac_prog; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if test "${ac_cv_prog_YACC+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
7356 if test -n "$YACC"; then
7357 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_prog_YACC="$ac_prog"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 YACC=$ac_cv_prog_YACC
7377 if test -n "$YACC"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7379 $as_echo "$YACC" >&6; }
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7386 test -n "$YACC" && break
7388 test -n "$YACC" || YACC="$MISSING bison -y"
7390 case " $build_configdirs " in
7391 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7394 for ac_prog in bison
7396 # Extract the first word of "$ac_prog", so it can be a program name with args.
7397 set dummy $ac_prog; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if test "${ac_cv_prog_BISON+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7403 if test -n "$BISON"; then
7404 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_prog_BISON="$ac_prog"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 BISON=$ac_cv_prog_BISON
7424 if test -n "$BISON"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7426 $as_echo "$BISON" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7433 test -n "$BISON" && break
7435 test -n "$BISON" || BISON="$MISSING bison"
7437 case " $build_configdirs " in
7438 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7441 for ac_prog in gm4 gnum4 m4
7443 # Extract the first word of "$ac_prog", so it can be a program name with args.
7444 set dummy $ac_prog; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if test "${ac_cv_prog_M4+set}" = set; then :
7448 $as_echo_n "(cached) " >&6
7450 if test -n "$M4"; then
7451 ac_cv_prog_M4="$M4" # Let the user override the test.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_prog_M4="$ac_prog"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 if test -n "$M4"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7473 $as_echo "$M4" >&6; }
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7480 test -n "$M4" && break
7482 test -n "$M4" || M4="$MISSING m4"
7484 case " $build_configdirs " in
7485 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7488 for ac_prog in flex lex
7490 # Extract the first word of "$ac_prog", so it can be a program name with args.
7491 set dummy $ac_prog; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if test "${ac_cv_prog_LEX+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
7497 if test -n "$LEX"; then
7498 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_prog_LEX="$ac_prog"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 if test -n "$LEX"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7520 $as_echo "$LEX" >&6; }
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7527 test -n "$LEX" && break
7529 test -n "$LEX" || LEX="$MISSING flex"
7531 case " $build_configdirs " in
7532 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7533 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7538 # Extract the first word of "$ac_prog", so it can be a program name with args.
7539 set dummy $ac_prog; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if test "${ac_cv_prog_FLEX+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
7545 if test -n "$FLEX"; then
7546 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_prog_FLEX="$ac_prog"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 FLEX=$ac_cv_prog_FLEX
7566 if test -n "$FLEX"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7568 $as_echo "$FLEX" >&6; }
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7575 test -n "$FLEX" && break
7577 test -n "$FLEX" || FLEX="$MISSING flex"
7579 case " $build_configdirs " in
7580 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7583 for ac_prog in makeinfo
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7590 $as_echo_n "(cached) " >&6
7592 if test -n "$MAKEINFO"; then
7593 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_prog_MAKEINFO="$ac_prog"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 MAKEINFO=$ac_cv_prog_MAKEINFO
7613 if test -n "$MAKEINFO"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7615 $as_echo "$MAKEINFO" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7622 test -n "$MAKEINFO" && break
7624 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7626 case " $build_configdirs " in
7627 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7630 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7631 # higher, else we use the "missing" dummy.
7632 if ${MAKEINFO} --version \
7633 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7636 MAKEINFO="$MISSING makeinfo"
7642 # FIXME: expect and dejagnu may become build tools?
7644 for ac_prog in expect
7646 # Extract the first word of "$ac_prog", so it can be a program name with args.
7647 set dummy $ac_prog; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
7653 if test -n "$EXPECT"; then
7654 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7663 ac_cv_prog_EXPECT="$ac_prog"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 EXPECT=$ac_cv_prog_EXPECT
7674 if test -n "$EXPECT"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7676 $as_echo "$EXPECT" >&6; }
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7683 test -n "$EXPECT" && break
7685 test -n "$EXPECT" || EXPECT="expect"
7687 case " $configdirs " in
7689 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7693 for ac_prog in runtest
7695 # Extract the first word of "$ac_prog", so it can be a program name with args.
7696 set dummy $ac_prog; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7702 if test -n "$RUNTEST"; then
7703 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712 ac_cv_prog_RUNTEST="$ac_prog"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 RUNTEST=$ac_cv_prog_RUNTEST
7723 if test -n "$RUNTEST"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7725 $as_echo "$RUNTEST" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7732 test -n "$RUNTEST" && break
7734 test -n "$RUNTEST" || RUNTEST="runtest"
7736 case " $configdirs " in
7738 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7745 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7746 ncn_target_tool_prefix=
7747 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7751 if test -n "$AR"; then
7753 elif test -n "$ac_cv_prog_AR"; then
7757 if test -n "$ac_cv_prog_AR"; then
7758 for ncn_progname in ar; do
7759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7760 set dummy ${ncn_progname}; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_prog_AR+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7766 if test -n "$AR"; then
7767 ac_cv_prog_AR="$AR" # Let the user override the test.
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_prog_AR="${ncn_progname}"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 if test -n "$AR"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7789 $as_echo "$AR" >&6; }
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7799 for ncn_progname in ar; do
7800 if test -n "$ncn_tool_prefix"; then
7801 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7802 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if test "${ac_cv_prog_AR+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7808 if test -n "$AR"; then
7809 ac_cv_prog_AR="$AR" # Let the user override the test.
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7818 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 if test -n "$AR"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7831 $as_echo "$AR" >&6; }
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7839 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7841 set dummy ${ncn_progname}; ac_word=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if test "${ac_cv_prog_AR+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7847 if test -n "$AR"; then
7848 ac_cv_prog_AR="$AR" # Let the user override the test.
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_prog_AR="${ncn_progname}"
7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 if test -n "$AR"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7870 $as_echo "$AR" >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7878 test -n "$ac_cv_prog_AR" && break
7881 if test -z "$ac_cv_prog_AR" ; then
7883 if test $build = $host ; then
7886 AR="${ncn_tool_prefix}$2"
7892 if test -n "$AS"; then
7894 elif test -n "$ac_cv_prog_AS"; then
7898 if test -n "$ac_cv_prog_AS"; then
7899 for ncn_progname in as; do
7900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7901 set dummy ${ncn_progname}; 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_AS+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7907 if test -n "$AS"; then
7908 ac_cv_prog_AS="$AS" # 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_AS="${ncn_progname}"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 if test -n "$AS"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7930 $as_echo "$AS" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7940 for ncn_progname in as; do
7941 if test -n "$ncn_tool_prefix"; then
7942 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7943 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if test "${ac_cv_prog_AS+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7949 if test -n "$AS"; then
7950 ac_cv_prog_AS="$AS" # Let the user override the test.
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7959 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 if test -n "$AS"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7972 $as_echo "$AS" >&6; }
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7980 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7982 set dummy ${ncn_progname}; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if test "${ac_cv_prog_AS+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7988 if test -n "$AS"; then
7989 ac_cv_prog_AS="$AS" # Let the user override the test.
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 ac_cv_prog_AS="${ncn_progname}"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 if test -n "$AS"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8011 $as_echo "$AS" >&6; }
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8019 test -n "$ac_cv_prog_AS" && break
8022 if test -z "$ac_cv_prog_AS" ; then
8024 if test $build = $host ; then
8027 AS="${ncn_tool_prefix}$2"
8033 if test -n "$DLLTOOL"; then
8034 ac_cv_prog_DLLTOOL=$DLLTOOL
8035 elif test -n "$ac_cv_prog_DLLTOOL"; then
8036 DLLTOOL=$ac_cv_prog_DLLTOOL
8039 if test -n "$ac_cv_prog_DLLTOOL"; then
8040 for ncn_progname in dlltool; do
8041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8042 set dummy ${ncn_progname}; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8048 if test -n "$DLLTOOL"; then
8049 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8058 ac_cv_prog_DLLTOOL="${ncn_progname}"
8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 DLLTOOL=$ac_cv_prog_DLLTOOL
8069 if test -n "$DLLTOOL"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8071 $as_echo "$DLLTOOL" >&6; }
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8081 for ncn_progname in dlltool; do
8082 if test -n "$ncn_tool_prefix"; then
8083 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8084 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8088 $as_echo_n "(cached) " >&6
8090 if test -n "$DLLTOOL"; then
8091 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8100 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 DLLTOOL=$ac_cv_prog_DLLTOOL
8111 if test -n "$DLLTOOL"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8113 $as_echo "$DLLTOOL" >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8121 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8123 set dummy ${ncn_progname}; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
8129 if test -n "$DLLTOOL"; then
8130 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8139 ac_cv_prog_DLLTOOL="${ncn_progname}"
8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 DLLTOOL=$ac_cv_prog_DLLTOOL
8150 if test -n "$DLLTOOL"; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8152 $as_echo "$DLLTOOL" >&6; }
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8160 test -n "$ac_cv_prog_DLLTOOL" && break
8163 if test -z "$ac_cv_prog_DLLTOOL" ; then
8165 if test $build = $host ; then
8168 DLLTOOL="${ncn_tool_prefix}$2"
8174 if test -n "$LD"; then
8176 elif test -n "$ac_cv_prog_LD"; then
8180 if test -n "$ac_cv_prog_LD"; then
8181 for ncn_progname in ld; do
8182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8183 set dummy ${ncn_progname}; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 $as_echo_n "checking for $ac_word... " >&6; }
8186 if test "${ac_cv_prog_LD+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8189 if test -n "$LD"; then
8190 ac_cv_prog_LD="$LD" # Let the user override the test.
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8199 ac_cv_prog_LD="${ncn_progname}"
8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 if test -n "$LD"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8212 $as_echo "$LD" >&6; }
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8222 for ncn_progname in ld; do
8223 if test -n "$ncn_tool_prefix"; then
8224 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8225 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 $as_echo_n "checking for $ac_word... " >&6; }
8228 if test "${ac_cv_prog_LD+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
8231 if test -n "$LD"; then
8232 ac_cv_prog_LD="$LD" # Let the user override the test.
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8241 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 if test -n "$LD"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8254 $as_echo "$LD" >&6; }
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8262 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8264 set dummy ${ncn_progname}; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_prog_LD+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8270 if test -n "$LD"; then
8271 ac_cv_prog_LD="$LD" # Let the user override the test.
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_prog_LD="${ncn_progname}"
8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 if test -n "$LD"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8293 $as_echo "$LD" >&6; }
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8301 test -n "$ac_cv_prog_LD" && break
8304 if test -z "$ac_cv_prog_LD" ; then
8306 if test $build = $host ; then
8309 LD="${ncn_tool_prefix}$2"
8315 if test -n "$LIPO"; then
8316 ac_cv_prog_LIPO=$LIPO
8317 elif test -n "$ac_cv_prog_LIPO"; then
8318 LIPO=$ac_cv_prog_LIPO
8321 if test -n "$ac_cv_prog_LIPO"; then
8322 for ncn_progname in lipo; do
8323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8324 set dummy ${ncn_progname}; ac_word=$2
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8326 $as_echo_n "checking for $ac_word... " >&6; }
8327 if test "${ac_cv_prog_LIPO+set}" = set; then :
8328 $as_echo_n "(cached) " >&6
8330 if test -n "$LIPO"; then
8331 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337 test -z "$as_dir" && as_dir=.
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8340 ac_cv_prog_LIPO="${ncn_progname}"
8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 LIPO=$ac_cv_prog_LIPO
8351 if test -n "$LIPO"; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8353 $as_echo "$LIPO" >&6; }
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }
8363 for ncn_progname in lipo; do
8364 if test -n "$ncn_tool_prefix"; then
8365 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8366 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 $as_echo_n "checking for $ac_word... " >&6; }
8369 if test "${ac_cv_prog_LIPO+set}" = set; then :
8370 $as_echo_n "(cached) " >&6
8372 if test -n "$LIPO"; then
8373 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 test -z "$as_dir" && as_dir=.
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8382 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 LIPO=$ac_cv_prog_LIPO
8393 if test -n "$LIPO"; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8395 $as_echo "$LIPO" >&6; }
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8403 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8405 set dummy ${ncn_progname}; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if test "${ac_cv_prog_LIPO+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8411 if test -n "$LIPO"; then
8412 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_prog_LIPO="${ncn_progname}"
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 LIPO=$ac_cv_prog_LIPO
8432 if test -n "$LIPO"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8434 $as_echo "$LIPO" >&6; }
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8442 test -n "$ac_cv_prog_LIPO" && break
8445 if test -z "$ac_cv_prog_LIPO" ; then
8447 if test $build = $host ; then
8450 LIPO="${ncn_tool_prefix}$2"
8456 if test -n "$NM"; then
8458 elif test -n "$ac_cv_prog_NM"; then
8462 if test -n "$ac_cv_prog_NM"; then
8463 for ncn_progname in nm; do
8464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8465 set dummy ${ncn_progname}; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if test "${ac_cv_prog_NM+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8471 if test -n "$NM"; then
8472 ac_cv_prog_NM="$NM" # Let the user override the test.
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478 test -z "$as_dir" && as_dir=.
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8481 ac_cv_prog_NM="${ncn_progname}"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 if test -n "$NM"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8494 $as_echo "$NM" >&6; }
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8504 for ncn_progname in nm; do
8505 if test -n "$ncn_tool_prefix"; then
8506 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8507 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 $as_echo_n "checking for $ac_word... " >&6; }
8510 if test "${ac_cv_prog_NM+set}" = set; then :
8511 $as_echo_n "(cached) " >&6
8513 if test -n "$NM"; then
8514 ac_cv_prog_NM="$NM" # Let the user override the test.
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 test -z "$as_dir" && as_dir=.
8521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8523 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 if test -n "$NM"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8536 $as_echo "$NM" >&6; }
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539 $as_echo "no" >&6; }
8544 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8546 set dummy ${ncn_progname}; ac_word=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if test "${ac_cv_prog_NM+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
8552 if test -n "$NM"; then
8553 ac_cv_prog_NM="$NM" # Let the user override the test.
8555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 test -z "$as_dir" && as_dir=.
8560 for ac_exec_ext in '' $ac_executable_extensions; do
8561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8562 ac_cv_prog_NM="${ncn_progname}"
8563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 if test -n "$NM"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8575 $as_echo "$NM" >&6; }
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8583 test -n "$ac_cv_prog_NM" && break
8586 if test -z "$ac_cv_prog_NM" ; then
8588 if test $build = $host ; then
8591 NM="${ncn_tool_prefix}$2"
8597 if test -n "$RANLIB"; then
8598 ac_cv_prog_RANLIB=$RANLIB
8599 elif test -n "$ac_cv_prog_RANLIB"; then
8600 RANLIB=$ac_cv_prog_RANLIB
8603 if test -n "$ac_cv_prog_RANLIB"; then
8604 for ncn_progname in ranlib; do
8605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8606 set dummy ${ncn_progname}; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8610 $as_echo_n "(cached) " >&6
8612 if test -n "$RANLIB"; then
8613 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8622 ac_cv_prog_RANLIB="${ncn_progname}"
8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632 RANLIB=$ac_cv_prog_RANLIB
8633 if test -n "$RANLIB"; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8635 $as_echo "$RANLIB" >&6; }
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8645 for ncn_progname in ranlib; do
8646 if test -n "$ncn_tool_prefix"; then
8647 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8648 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
8654 if test -n "$RANLIB"; then
8655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8664 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 RANLIB=$ac_cv_prog_RANLIB
8675 if test -n "$RANLIB"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8677 $as_echo "$RANLIB" >&6; }
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8685 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8687 set dummy ${ncn_progname}; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8693 if test -n "$RANLIB"; then
8694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8703 ac_cv_prog_RANLIB="${ncn_progname}"
8704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 RANLIB=$ac_cv_prog_RANLIB
8714 if test -n "$RANLIB"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8716 $as_echo "$RANLIB" >&6; }
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8724 test -n "$ac_cv_prog_RANLIB" && break
8727 if test -z "$ac_cv_prog_RANLIB" ; then
8733 if test -n "$STRIP"; then
8734 ac_cv_prog_STRIP=$STRIP
8735 elif test -n "$ac_cv_prog_STRIP"; then
8736 STRIP=$ac_cv_prog_STRIP
8739 if test -n "$ac_cv_prog_STRIP"; then
8740 for ncn_progname in strip; do
8741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8742 set dummy ${ncn_progname}; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if test "${ac_cv_prog_STRIP+set}" = set; then :
8746 $as_echo_n "(cached) " >&6
8748 if test -n "$STRIP"; then
8749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8758 ac_cv_prog_STRIP="${ncn_progname}"
8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 STRIP=$ac_cv_prog_STRIP
8769 if test -n "$STRIP"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8771 $as_echo "$STRIP" >&6; }
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8781 for ncn_progname in strip; do
8782 if test -n "$ncn_tool_prefix"; then
8783 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8784 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786 $as_echo_n "checking for $ac_word... " >&6; }
8787 if test "${ac_cv_prog_STRIP+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
8790 if test -n "$STRIP"; then
8791 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 test -z "$as_dir" && as_dir=.
8798 for ac_exec_ext in '' $ac_executable_extensions; do
8799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8800 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810 STRIP=$ac_cv_prog_STRIP
8811 if test -n "$STRIP"; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8813 $as_echo "$STRIP" >&6; }
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8821 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8823 set dummy ${ncn_progname}; ac_word=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 $as_echo_n "checking for $ac_word... " >&6; }
8826 if test "${ac_cv_prog_STRIP+set}" = set; then :
8827 $as_echo_n "(cached) " >&6
8829 if test -n "$STRIP"; then
8830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8839 ac_cv_prog_STRIP="${ncn_progname}"
8840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8849 STRIP=$ac_cv_prog_STRIP
8850 if test -n "$STRIP"; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8852 $as_echo "$STRIP" >&6; }
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8860 test -n "$ac_cv_prog_STRIP" && break
8863 if test -z "$ac_cv_prog_STRIP" ; then
8869 if test -n "$WINDRES"; then
8870 ac_cv_prog_WINDRES=$WINDRES
8871 elif test -n "$ac_cv_prog_WINDRES"; then
8872 WINDRES=$ac_cv_prog_WINDRES
8875 if test -n "$ac_cv_prog_WINDRES"; then
8876 for ncn_progname in windres; do
8877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8878 set dummy ${ncn_progname}; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8884 if test -n "$WINDRES"; then
8885 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894 ac_cv_prog_WINDRES="${ncn_progname}"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 WINDRES=$ac_cv_prog_WINDRES
8905 if test -n "$WINDRES"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8907 $as_echo "$WINDRES" >&6; }
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8917 for ncn_progname in windres; do
8918 if test -n "$ncn_tool_prefix"; then
8919 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8920 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8926 if test -n "$WINDRES"; then
8927 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8936 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8946 WINDRES=$ac_cv_prog_WINDRES
8947 if test -n "$WINDRES"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8949 $as_echo "$WINDRES" >&6; }
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8957 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8959 set dummy ${ncn_progname}; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8965 if test -n "$WINDRES"; then
8966 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8975 ac_cv_prog_WINDRES="${ncn_progname}"
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 WINDRES=$ac_cv_prog_WINDRES
8986 if test -n "$WINDRES"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8988 $as_echo "$WINDRES" >&6; }
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8996 test -n "$ac_cv_prog_WINDRES" && break
8999 if test -z "$ac_cv_prog_WINDRES" ; then
9001 if test $build = $host ; then
9004 WINDRES="${ncn_tool_prefix}$2"
9010 if test -n "$WINDMC"; then
9011 ac_cv_prog_WINDMC=$WINDMC
9012 elif test -n "$ac_cv_prog_WINDMC"; then
9013 WINDMC=$ac_cv_prog_WINDMC
9016 if test -n "$ac_cv_prog_WINDMC"; then
9017 for ncn_progname in windmc; do
9018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9019 set dummy ${ncn_progname}; ac_word=$2
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021 $as_echo_n "checking for $ac_word... " >&6; }
9022 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9025 if test -n "$WINDMC"; then
9026 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032 test -z "$as_dir" && as_dir=.
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9035 ac_cv_prog_WINDMC="${ncn_progname}"
9036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 WINDMC=$ac_cv_prog_WINDMC
9046 if test -n "$WINDMC"; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9048 $as_echo "$WINDMC" >&6; }
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051 $as_echo "no" >&6; }
9058 for ncn_progname in windmc; do
9059 if test -n "$ncn_tool_prefix"; then
9060 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9061 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9063 $as_echo_n "checking for $ac_word... " >&6; }
9064 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9065 $as_echo_n "(cached) " >&6
9067 if test -n "$WINDMC"; then
9068 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 test -z "$as_dir" && as_dir=.
9075 for ac_exec_ext in '' $ac_executable_extensions; do
9076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9077 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 WINDMC=$ac_cv_prog_WINDMC
9088 if test -n "$WINDMC"; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9090 $as_echo "$WINDMC" >&6; }
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9098 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9100 set dummy ${ncn_progname}; ac_word=$2
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9102 $as_echo_n "checking for $ac_word... " >&6; }
9103 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9104 $as_echo_n "(cached) " >&6
9106 if test -n "$WINDMC"; then
9107 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113 test -z "$as_dir" && as_dir=.
9114 for ac_exec_ext in '' $ac_executable_extensions; do
9115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9116 ac_cv_prog_WINDMC="${ncn_progname}"
9117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 WINDMC=$ac_cv_prog_WINDMC
9127 if test -n "$WINDMC"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9129 $as_echo "$WINDMC" >&6; }
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9137 test -n "$ac_cv_prog_WINDMC" && break
9140 if test -z "$ac_cv_prog_WINDMC" ; then
9142 if test $build = $host ; then
9145 WINDMC="${ncn_tool_prefix}$2"
9151 if test -n "$OBJCOPY"; then
9152 ac_cv_prog_OBJCOPY=$OBJCOPY
9153 elif test -n "$ac_cv_prog_OBJCOPY"; then
9154 OBJCOPY=$ac_cv_prog_OBJCOPY
9157 if test -n "$ac_cv_prog_OBJCOPY"; then
9158 for ncn_progname in objcopy; do
9159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9160 set dummy ${ncn_progname}; ac_word=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9166 if test -n "$OBJCOPY"; then
9167 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9176 ac_cv_prog_OBJCOPY="${ncn_progname}"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 OBJCOPY=$ac_cv_prog_OBJCOPY
9187 if test -n "$OBJCOPY"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9189 $as_echo "$OBJCOPY" >&6; }
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9199 for ncn_progname in objcopy; do
9200 if test -n "$ncn_tool_prefix"; then
9201 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9202 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9204 $as_echo_n "checking for $ac_word... " >&6; }
9205 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9206 $as_echo_n "(cached) " >&6
9208 if test -n "$OBJCOPY"; then
9209 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215 test -z "$as_dir" && as_dir=.
9216 for ac_exec_ext in '' $ac_executable_extensions; do
9217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9218 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9228 OBJCOPY=$ac_cv_prog_OBJCOPY
9229 if test -n "$OBJCOPY"; then
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9231 $as_echo "$OBJCOPY" >&6; }
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234 $as_echo "no" >&6; }
9239 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9241 set dummy ${ncn_progname}; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
9247 if test -n "$OBJCOPY"; then
9248 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257 ac_cv_prog_OBJCOPY="${ncn_progname}"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 OBJCOPY=$ac_cv_prog_OBJCOPY
9268 if test -n "$OBJCOPY"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9270 $as_echo "$OBJCOPY" >&6; }
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9278 test -n "$ac_cv_prog_OBJCOPY" && break
9281 if test -z "$ac_cv_prog_OBJCOPY" ; then
9283 if test $build = $host ; then
9286 OBJCOPY="${ncn_tool_prefix}$2"
9292 if test -n "$OBJDUMP"; then
9293 ac_cv_prog_OBJDUMP=$OBJDUMP
9294 elif test -n "$ac_cv_prog_OBJDUMP"; then
9295 OBJDUMP=$ac_cv_prog_OBJDUMP
9298 if test -n "$ac_cv_prog_OBJDUMP"; then
9299 for ncn_progname in objdump; do
9300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9301 set dummy ${ncn_progname}; ac_word=$2
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303 $as_echo_n "checking for $ac_word... " >&6; }
9304 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9305 $as_echo_n "(cached) " >&6
9307 if test -n "$OBJDUMP"; then
9308 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 test -z "$as_dir" && as_dir=.
9315 for ac_exec_ext in '' $ac_executable_extensions; do
9316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9317 ac_cv_prog_OBJDUMP="${ncn_progname}"
9318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9327 OBJDUMP=$ac_cv_prog_OBJDUMP
9328 if test -n "$OBJDUMP"; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9330 $as_echo "$OBJDUMP" >&6; }
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333 $as_echo "no" >&6; }
9340 for ncn_progname in objdump; do
9341 if test -n "$ncn_tool_prefix"; then
9342 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9343 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9345 $as_echo_n "checking for $ac_word... " >&6; }
9346 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9347 $as_echo_n "(cached) " >&6
9349 if test -n "$OBJDUMP"; then
9350 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356 test -z "$as_dir" && as_dir=.
9357 for ac_exec_ext in '' $ac_executable_extensions; do
9358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9359 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9369 OBJDUMP=$ac_cv_prog_OBJDUMP
9370 if test -n "$OBJDUMP"; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9372 $as_echo "$OBJDUMP" >&6; }
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375 $as_echo "no" >&6; }
9380 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9382 set dummy ${ncn_progname}; ac_word=$2
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 $as_echo_n "checking for $ac_word... " >&6; }
9385 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9386 $as_echo_n "(cached) " >&6
9388 if test -n "$OBJDUMP"; then
9389 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9395 test -z "$as_dir" && as_dir=.
9396 for ac_exec_ext in '' $ac_executable_extensions; do
9397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9398 ac_cv_prog_OBJDUMP="${ncn_progname}"
9399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 OBJDUMP=$ac_cv_prog_OBJDUMP
9409 if test -n "$OBJDUMP"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9411 $as_echo "$OBJDUMP" >&6; }
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9419 test -n "$ac_cv_prog_OBJDUMP" && break
9422 if test -z "$ac_cv_prog_OBJDUMP" ; then
9424 if test $build = $host ; then
9427 OBJDUMP="${ncn_tool_prefix}$2"
9433 if test -n "$READELF"; then
9434 ac_cv_prog_READELF=$READELF
9435 elif test -n "$ac_cv_prog_READELF"; then
9436 READELF=$ac_cv_prog_READELF
9439 if test -n "$ac_cv_prog_READELF"; then
9440 for ncn_progname in readelf; do
9441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9442 set dummy ${ncn_progname}; ac_word=$2
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9444 $as_echo_n "checking for $ac_word... " >&6; }
9445 if test "${ac_cv_prog_READELF+set}" = set; then :
9446 $as_echo_n "(cached) " >&6
9448 if test -n "$READELF"; then
9449 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9455 test -z "$as_dir" && as_dir=.
9456 for ac_exec_ext in '' $ac_executable_extensions; do
9457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9458 ac_cv_prog_READELF="${ncn_progname}"
9459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9468 READELF=$ac_cv_prog_READELF
9469 if test -n "$READELF"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9471 $as_echo "$READELF" >&6; }
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474 $as_echo "no" >&6; }
9481 for ncn_progname in readelf; do
9482 if test -n "$ncn_tool_prefix"; then
9483 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9484 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9486 $as_echo_n "checking for $ac_word... " >&6; }
9487 if test "${ac_cv_prog_READELF+set}" = set; then :
9488 $as_echo_n "(cached) " >&6
9490 if test -n "$READELF"; then
9491 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9497 test -z "$as_dir" && as_dir=.
9498 for ac_exec_ext in '' $ac_executable_extensions; do
9499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9500 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 READELF=$ac_cv_prog_READELF
9511 if test -n "$READELF"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9513 $as_echo "$READELF" >&6; }
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516 $as_echo "no" >&6; }
9521 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9523 set dummy ${ncn_progname}; ac_word=$2
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525 $as_echo_n "checking for $ac_word... " >&6; }
9526 if test "${ac_cv_prog_READELF+set}" = set; then :
9527 $as_echo_n "(cached) " >&6
9529 if test -n "$READELF"; then
9530 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536 test -z "$as_dir" && as_dir=.
9537 for ac_exec_ext in '' $ac_executable_extensions; do
9538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9539 ac_cv_prog_READELF="${ncn_progname}"
9540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 READELF=$ac_cv_prog_READELF
9550 if test -n "$READELF"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9552 $as_echo "$READELF" >&6; }
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9560 test -n "$ac_cv_prog_READELF" && break
9563 if test -z "$ac_cv_prog_READELF" ; then
9565 if test $build = $host ; then
9568 READELF="${ncn_tool_prefix}$2"
9579 # Check whether --with-build-time-tools was given.
9580 if test "${with_build_time_tools+set}" = set; then :
9581 withval=$with_build_time_tools; case x"$withval" in
9584 with_build_time_tools=
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9586 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9590 with_build_time_tools=
9596 if test -n "$CC_FOR_TARGET"; then
9597 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9598 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9599 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9602 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9603 for ncn_progname in cc gcc; do
9604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9605 set dummy ${ncn_progname}; ac_word=$2
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607 $as_echo_n "checking for $ac_word... " >&6; }
9608 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9609 $as_echo_n "(cached) " >&6
9611 if test -n "$CC_FOR_TARGET"; then
9612 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618 test -z "$as_dir" && as_dir=.
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9621 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9631 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9632 if test -n "$CC_FOR_TARGET"; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9634 $as_echo "$CC_FOR_TARGET" >&6; }
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 $as_echo "no" >&6; }
9644 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9645 for ncn_progname in cc gcc; do
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9647 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9648 if test -x $with_build_time_tools/${ncn_progname}; then
9649 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9651 $as_echo "yes" >&6; }
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9660 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9661 for ncn_progname in cc gcc; do
9662 if test -n "$ncn_target_tool_prefix"; then
9663 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9664 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9666 $as_echo_n "checking for $ac_word... " >&6; }
9667 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9670 if test -n "$CC_FOR_TARGET"; then
9671 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9680 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9691 if test -n "$CC_FOR_TARGET"; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9693 $as_echo "$CC_FOR_TARGET" >&6; }
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696 $as_echo "no" >&6; }
9701 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9703 set dummy ${ncn_progname}; ac_word=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9707 $as_echo_n "(cached) " >&6
9709 if test -n "$CC_FOR_TARGET"; then
9710 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716 test -z "$as_dir" && as_dir=.
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9719 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9730 if test -n "$CC_FOR_TARGET"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9732 $as_echo "$CC_FOR_TARGET" >&6; }
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9740 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9744 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9746 if test $build = $target ; then
9749 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9752 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9757 if test -n "$CXX_FOR_TARGET"; then
9758 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9759 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9760 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9763 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9764 for ncn_progname in c++ g++ cxx gxx; do
9765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9766 set dummy ${ncn_progname}; ac_word=$2
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9768 $as_echo_n "checking for $ac_word... " >&6; }
9769 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9770 $as_echo_n "(cached) " >&6
9772 if test -n "$CXX_FOR_TARGET"; then
9773 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779 test -z "$as_dir" && as_dir=.
9780 for ac_exec_ext in '' $ac_executable_extensions; do
9781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9782 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9793 if test -n "$CXX_FOR_TARGET"; then
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9795 $as_echo "$CXX_FOR_TARGET" >&6; }
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798 $as_echo "no" >&6; }
9805 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9806 for ncn_progname in c++ g++ cxx gxx; do
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9808 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9809 if test -x $with_build_time_tools/${ncn_progname}; then
9810 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9812 $as_echo "yes" >&6; }
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9816 $as_echo "no" >&6; }
9821 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9822 for ncn_progname in c++ g++ cxx gxx; do
9823 if test -n "$ncn_target_tool_prefix"; then
9824 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9825 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827 $as_echo_n "checking for $ac_word... " >&6; }
9828 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9829 $as_echo_n "(cached) " >&6
9831 if test -n "$CXX_FOR_TARGET"; then
9832 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9852 if test -n "$CXX_FOR_TARGET"; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9854 $as_echo "$CXX_FOR_TARGET" >&6; }
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9862 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9864 set dummy ${ncn_progname}; ac_word=$2
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9866 $as_echo_n "checking for $ac_word... " >&6; }
9867 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9868 $as_echo_n "(cached) " >&6
9870 if test -n "$CXX_FOR_TARGET"; then
9871 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 test -z "$as_dir" && as_dir=.
9878 for ac_exec_ext in '' $ac_executable_extensions; do
9879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9880 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9890 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9891 if test -n "$CXX_FOR_TARGET"; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9893 $as_echo "$CXX_FOR_TARGET" >&6; }
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9901 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9905 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9906 set dummy c++ g++ cxx gxx
9907 if test $build = $target ; then
9910 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9913 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9918 if test -n "$GCC_FOR_TARGET"; then
9919 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9920 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9921 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9924 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9925 for ncn_progname in gcc; do
9926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9927 set dummy ${ncn_progname}; ac_word=$2
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 $as_echo_n "checking for $ac_word... " >&6; }
9930 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9931 $as_echo_n "(cached) " >&6
9933 if test -n "$GCC_FOR_TARGET"; then
9934 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 test -z "$as_dir" && as_dir=.
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9943 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9953 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9954 if test -n "$GCC_FOR_TARGET"; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9956 $as_echo "$GCC_FOR_TARGET" >&6; }
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 $as_echo "no" >&6; }
9966 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9967 for ncn_progname in gcc; do
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9969 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9970 if test -x $with_build_time_tools/${ncn_progname}; then
9971 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9973 $as_echo "yes" >&6; }
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977 $as_echo "no" >&6; }
9982 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9983 for ncn_progname in gcc; do
9984 if test -n "$ncn_target_tool_prefix"; then
9985 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9986 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988 $as_echo_n "checking for $ac_word... " >&6; }
9989 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
9992 if test -n "$GCC_FOR_TARGET"; then
9993 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10002 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10013 if test -n "$GCC_FOR_TARGET"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10015 $as_echo "$GCC_FOR_TARGET" >&6; }
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018 $as_echo "no" >&6; }
10023 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10025 set dummy ${ncn_progname}; ac_word=$2
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027 $as_echo_n "checking for $ac_word... " >&6; }
10028 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10029 $as_echo_n "(cached) " >&6
10031 if test -n "$GCC_FOR_TARGET"; then
10032 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035 for as_dir in $PATH
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10041 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10052 if test -n "$GCC_FOR_TARGET"; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10054 $as_echo "$GCC_FOR_TARGET" >&6; }
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057 $as_echo "no" >&6; }
10062 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10066 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10067 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10069 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10074 if test -n "$GCJ_FOR_TARGET"; then
10075 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10076 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10077 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10080 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10081 for ncn_progname in gcj; do
10082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10083 set dummy ${ncn_progname}; ac_word=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10087 $as_echo_n "(cached) " >&6
10089 if test -n "$GCJ_FOR_TARGET"; then
10090 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093 for as_dir in $PATH
10096 test -z "$as_dir" && as_dir=.
10097 for ac_exec_ext in '' $ac_executable_extensions; do
10098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10099 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10110 if test -n "$GCJ_FOR_TARGET"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10112 $as_echo "$GCJ_FOR_TARGET" >&6; }
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10122 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10123 for ncn_progname in gcj; do
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10125 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10126 if test -x $with_build_time_tools/${ncn_progname}; then
10127 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10129 $as_echo "yes" >&6; }
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133 $as_echo "no" >&6; }
10138 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10139 for ncn_progname in gcj; do
10140 if test -n "$ncn_target_tool_prefix"; then
10141 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10142 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10146 $as_echo_n "(cached) " >&6
10148 if test -n "$GCJ_FOR_TARGET"; then
10149 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10158 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10168 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10169 if test -n "$GCJ_FOR_TARGET"; then
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10171 $as_echo "$GCJ_FOR_TARGET" >&6; }
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 $as_echo "no" >&6; }
10179 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10181 set dummy ${ncn_progname}; ac_word=$2
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10183 $as_echo_n "checking for $ac_word... " >&6; }
10184 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10185 $as_echo_n "(cached) " >&6
10187 if test -n "$GCJ_FOR_TARGET"; then
10188 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191 for as_dir in $PATH
10194 test -z "$as_dir" && as_dir=.
10195 for ac_exec_ext in '' $ac_executable_extensions; do
10196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10197 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10208 if test -n "$GCJ_FOR_TARGET"; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10210 $as_echo "$GCJ_FOR_TARGET" >&6; }
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10218 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10222 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10224 if test $build = $target ; then
10225 GCJ_FOR_TARGET="$2"
10227 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10230 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10235 if test -n "$GFORTRAN_FOR_TARGET"; then
10236 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10237 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10238 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10241 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10242 for ncn_progname in gfortran; do
10243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10244 set dummy ${ncn_progname}; ac_word=$2
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10246 $as_echo_n "checking for $ac_word... " >&6; }
10247 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10248 $as_echo_n "(cached) " >&6
10250 if test -n "$GFORTRAN_FOR_TARGET"; then
10251 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10254 for as_dir in $PATH
10257 test -z "$as_dir" && as_dir=.
10258 for ac_exec_ext in '' $ac_executable_extensions; do
10259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10260 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10270 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10271 if test -n "$GFORTRAN_FOR_TARGET"; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10273 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276 $as_echo "no" >&6; }
10283 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10284 for ncn_progname in gfortran; do
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10286 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10287 if test -x $with_build_time_tools/${ncn_progname}; then
10288 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10290 $as_echo "yes" >&6; }
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10294 $as_echo "no" >&6; }
10299 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10300 for ncn_progname in gfortran; do
10301 if test -n "$ncn_target_tool_prefix"; then
10302 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10303 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10309 if test -n "$GFORTRAN_FOR_TARGET"; then
10310 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10319 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10330 if test -n "$GFORTRAN_FOR_TARGET"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10332 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10340 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10342 set dummy ${ncn_progname}; ac_word=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10348 if test -n "$GFORTRAN_FOR_TARGET"; then
10349 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10355 test -z "$as_dir" && as_dir=.
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10358 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10369 if test -n "$GFORTRAN_FOR_TARGET"; then
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10371 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374 $as_echo "no" >&6; }
10379 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10383 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10385 if test $build = $target ; then
10386 GFORTRAN_FOR_TARGET="$2"
10388 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10391 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10396 if test -n "$GOC_FOR_TARGET"; then
10397 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10398 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10399 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10402 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10403 for ncn_progname in gccgo; do
10404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10405 set dummy ${ncn_progname}; ac_word=$2
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407 $as_echo_n "checking for $ac_word... " >&6; }
10408 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10409 $as_echo_n "(cached) " >&6
10411 if test -n "$GOC_FOR_TARGET"; then
10412 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in $PATH
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10421 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10432 if test -n "$GOC_FOR_TARGET"; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10434 $as_echo "$GOC_FOR_TARGET" >&6; }
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10444 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10445 for ncn_progname in gccgo; do
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10447 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10448 if test -x $with_build_time_tools/${ncn_progname}; then
10449 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10451 $as_echo "yes" >&6; }
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455 $as_echo "no" >&6; }
10460 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10461 for ncn_progname in gccgo; do
10462 if test -n "$ncn_target_tool_prefix"; then
10463 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10464 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466 $as_echo_n "checking for $ac_word... " >&6; }
10467 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10468 $as_echo_n "(cached) " >&6
10470 if test -n "$GOC_FOR_TARGET"; then
10471 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10480 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10491 if test -n "$GOC_FOR_TARGET"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10493 $as_echo "$GOC_FOR_TARGET" >&6; }
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10501 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10503 set dummy ${ncn_progname}; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10509 if test -n "$GOC_FOR_TARGET"; then
10510 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in $PATH
10516 test -z "$as_dir" && as_dir=.
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10519 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10530 if test -n "$GOC_FOR_TARGET"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10532 $as_echo "$GOC_FOR_TARGET" >&6; }
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10540 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10544 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10546 if test $build = $target ; then
10547 GOC_FOR_TARGET="$2"
10549 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10552 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10557 cat > conftest.c << \EOF
10562 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10563 have_gcc_for_target=yes
10565 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10566 have_gcc_for_target=no
10573 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10574 if test -n "$with_build_time_tools"; then
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10576 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10577 if test -x $with_build_time_tools/ar; then
10578 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10579 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10581 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10586 elif test $build != $host && test $have_gcc_for_target = yes; then
10587 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10588 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10589 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10592 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10593 # Extract the first word of "ar", so it can be a program name with args.
10594 set dummy ar; ac_word=$2
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10596 $as_echo_n "checking for $ac_word... " >&6; }
10597 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10598 $as_echo_n "(cached) " >&6
10600 case $AR_FOR_TARGET in
10602 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606 for as_dir in $gcc_cv_tool_dirs
10609 test -z "$as_dir" && as_dir=.
10610 for ac_exec_ext in '' $ac_executable_extensions; do
10611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10612 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10624 if test -n "$AR_FOR_TARGET"; then
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10626 $as_echo "$AR_FOR_TARGET" >&6; }
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10629 $as_echo "no" >&6; }
10634 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10637 if test -n "$AR_FOR_TARGET"; then
10638 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10639 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10640 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10643 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10644 for ncn_progname in ar; do
10645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10646 set dummy ${ncn_progname}; ac_word=$2
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10648 $as_echo_n "checking for $ac_word... " >&6; }
10649 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10650 $as_echo_n "(cached) " >&6
10652 if test -n "$AR_FOR_TARGET"; then
10653 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656 for as_dir in $PATH
10659 test -z "$as_dir" && as_dir=.
10660 for ac_exec_ext in '' $ac_executable_extensions; do
10661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10662 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10673 if test -n "$AR_FOR_TARGET"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10675 $as_echo "$AR_FOR_TARGET" >&6; }
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10685 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10686 for ncn_progname in ar; do
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10688 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10689 if test -x $with_build_time_tools/${ncn_progname}; then
10690 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10692 $as_echo "yes" >&6; }
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696 $as_echo "no" >&6; }
10701 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10702 for ncn_progname in ar; do
10703 if test -n "$ncn_target_tool_prefix"; then
10704 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10705 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10707 $as_echo_n "checking for $ac_word... " >&6; }
10708 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10709 $as_echo_n "(cached) " >&6
10711 if test -n "$AR_FOR_TARGET"; then
10712 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715 for as_dir in $PATH
10718 test -z "$as_dir" && as_dir=.
10719 for ac_exec_ext in '' $ac_executable_extensions; do
10720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10721 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10732 if test -n "$AR_FOR_TARGET"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10734 $as_echo "$AR_FOR_TARGET" >&6; }
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10742 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10744 set dummy ${ncn_progname}; ac_word=$2
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10746 $as_echo_n "checking for $ac_word... " >&6; }
10747 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10750 if test -n "$AR_FOR_TARGET"; then
10751 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754 for as_dir in $PATH
10757 test -z "$as_dir" && as_dir=.
10758 for ac_exec_ext in '' $ac_executable_extensions; do
10759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10760 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10771 if test -n "$AR_FOR_TARGET"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10773 $as_echo "$AR_FOR_TARGET" >&6; }
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 $as_echo "no" >&6; }
10781 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10785 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10787 if test $build = $target ; then
10790 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10793 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10797 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10803 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10804 if test -n "$with_build_time_tools"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10806 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10807 if test -x $with_build_time_tools/as; then
10808 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10809 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10811 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10816 elif test $build != $host && test $have_gcc_for_target = yes; then
10817 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10818 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10819 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10822 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10823 # Extract the first word of "as", so it can be a program name with args.
10824 set dummy as; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
10830 case $AS_FOR_TARGET in
10832 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $gcc_cv_tool_dirs
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10842 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10854 if test -n "$AS_FOR_TARGET"; then
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10856 $as_echo "$AS_FOR_TARGET" >&6; }
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; }
10864 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10867 if test -n "$AS_FOR_TARGET"; then
10868 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10869 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10870 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10873 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10874 for ncn_progname in as; do
10875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10876 set dummy ${ncn_progname}; ac_word=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878 $as_echo_n "checking for $ac_word... " >&6; }
10879 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10880 $as_echo_n "(cached) " >&6
10882 if test -n "$AS_FOR_TARGET"; then
10883 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in $PATH
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10892 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10903 if test -n "$AS_FOR_TARGET"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10905 $as_echo "$AS_FOR_TARGET" >&6; }
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10915 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10916 for ncn_progname in as; do
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10918 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10919 if test -x $with_build_time_tools/${ncn_progname}; then
10920 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10922 $as_echo "yes" >&6; }
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10931 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10932 for ncn_progname in as; do
10933 if test -n "$ncn_target_tool_prefix"; then
10934 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10935 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937 $as_echo_n "checking for $ac_word... " >&6; }
10938 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10939 $as_echo_n "(cached) " >&6
10941 if test -n "$AS_FOR_TARGET"; then
10942 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945 for as_dir in $PATH
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10951 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10962 if test -n "$AS_FOR_TARGET"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10964 $as_echo "$AS_FOR_TARGET" >&6; }
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967 $as_echo "no" >&6; }
10972 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10974 set dummy ${ncn_progname}; ac_word=$2
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976 $as_echo_n "checking for $ac_word... " >&6; }
10977 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10980 if test -n "$AS_FOR_TARGET"; then
10981 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10987 test -z "$as_dir" && as_dir=.
10988 for ac_exec_ext in '' $ac_executable_extensions; do
10989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10990 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11000 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11001 if test -n "$AS_FOR_TARGET"; then
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11003 $as_echo "$AS_FOR_TARGET" >&6; }
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11011 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11015 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11017 if test $build = $target ; then
11020 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11023 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11027 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11033 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11034 if test -n "$with_build_time_tools"; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11036 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11037 if test -x $with_build_time_tools/dlltool; then
11038 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11039 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11041 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11046 elif test $build != $host && test $have_gcc_for_target = yes; then
11047 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11048 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11049 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11052 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11053 # Extract the first word of "dlltool", so it can be a program name with args.
11054 set dummy dlltool; ac_word=$2
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11056 $as_echo_n "checking for $ac_word... " >&6; }
11057 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11058 $as_echo_n "(cached) " >&6
11060 case $DLLTOOL_FOR_TARGET in
11062 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066 for as_dir in $gcc_cv_tool_dirs
11069 test -z "$as_dir" && as_dir=.
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11072 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11083 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11084 if test -n "$DLLTOOL_FOR_TARGET"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11086 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11094 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11097 if test -n "$DLLTOOL_FOR_TARGET"; then
11098 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11099 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11100 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11103 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11104 for ncn_progname in dlltool; do
11105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11106 set dummy ${ncn_progname}; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11112 if test -n "$DLLTOOL_FOR_TARGET"; then
11113 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11133 if test -n "$DLLTOOL_FOR_TARGET"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11135 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11145 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11146 for ncn_progname in dlltool; do
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11148 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11149 if test -x $with_build_time_tools/${ncn_progname}; then
11150 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11152 $as_echo "yes" >&6; }
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11161 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11162 for ncn_progname in dlltool; do
11163 if test -n "$ncn_target_tool_prefix"; then
11164 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11165 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11171 if test -n "$DLLTOOL_FOR_TARGET"; then
11172 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11191 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11192 if test -n "$DLLTOOL_FOR_TARGET"; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11194 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11202 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11204 set dummy ${ncn_progname}; ac_word=$2
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11206 $as_echo_n "checking for $ac_word... " >&6; }
11207 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
11210 if test -n "$DLLTOOL_FOR_TARGET"; then
11211 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214 for as_dir in $PATH
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11220 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11231 if test -n "$DLLTOOL_FOR_TARGET"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11233 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 $as_echo "no" >&6; }
11241 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11245 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11247 if test $build = $target ; then
11248 DLLTOOL_FOR_TARGET="$2"
11250 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11253 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11257 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11263 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11264 if test -n "$with_build_time_tools"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11266 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11267 if test -x $with_build_time_tools/ld; then
11268 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11269 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11271 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11276 elif test $build != $host && test $have_gcc_for_target = yes; then
11277 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11278 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11279 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11282 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11283 # Extract the first word of "ld", so it can be a program name with args.
11284 set dummy ld; ac_word=$2
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11286 $as_echo_n "checking for $ac_word... " >&6; }
11287 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11288 $as_echo_n "(cached) " >&6
11290 case $LD_FOR_TARGET in
11292 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $gcc_cv_tool_dirs
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11302 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11313 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11314 if test -n "$LD_FOR_TARGET"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11316 $as_echo "$LD_FOR_TARGET" >&6; }
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11324 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11327 if test -n "$LD_FOR_TARGET"; then
11328 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11329 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11330 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11333 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11334 for ncn_progname in ld; do
11335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11336 set dummy ${ncn_progname}; ac_word=$2
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338 $as_echo_n "checking for $ac_word... " >&6; }
11339 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11342 if test -n "$LD_FOR_TARGET"; then
11343 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11352 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11362 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11363 if test -n "$LD_FOR_TARGET"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11365 $as_echo "$LD_FOR_TARGET" >&6; }
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11375 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11376 for ncn_progname in ld; do
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11378 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11379 if test -x $with_build_time_tools/${ncn_progname}; then
11380 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11382 $as_echo "yes" >&6; }
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11391 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11392 for ncn_progname in ld; do
11393 if test -n "$ncn_target_tool_prefix"; then
11394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11395 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397 $as_echo_n "checking for $ac_word... " >&6; }
11398 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11399 $as_echo_n "(cached) " >&6
11401 if test -n "$LD_FOR_TARGET"; then
11402 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11411 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11421 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11422 if test -n "$LD_FOR_TARGET"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11424 $as_echo "$LD_FOR_TARGET" >&6; }
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11432 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11434 set dummy ${ncn_progname}; ac_word=$2
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436 $as_echo_n "checking for $ac_word... " >&6; }
11437 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11438 $as_echo_n "(cached) " >&6
11440 if test -n "$LD_FOR_TARGET"; then
11441 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11450 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11460 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11461 if test -n "$LD_FOR_TARGET"; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11463 $as_echo "$LD_FOR_TARGET" >&6; }
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11471 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11475 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11477 if test $build = $target ; then
11480 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11483 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11487 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11493 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11494 if test -n "$with_build_time_tools"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11496 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11497 if test -x $with_build_time_tools/lipo; then
11498 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11499 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11501 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11506 elif test $build != $host && test $have_gcc_for_target = yes; then
11507 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11508 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11509 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11512 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11513 # Extract the first word of "lipo", so it can be a program name with args.
11514 set dummy lipo; ac_word=$2
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11518 $as_echo_n "(cached) " >&6
11520 case $LIPO_FOR_TARGET in
11522 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $gcc_cv_tool_dirs
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11543 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11544 if test -n "$LIPO_FOR_TARGET"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11546 $as_echo "$LIPO_FOR_TARGET" >&6; }
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11554 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11557 if test -n "$LIPO_FOR_TARGET"; then
11558 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11559 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11560 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11563 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11564 for ncn_progname in lipo; do
11565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11566 set dummy ${ncn_progname}; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11572 if test -n "$LIPO_FOR_TARGET"; then
11573 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11593 if test -n "$LIPO_FOR_TARGET"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11595 $as_echo "$LIPO_FOR_TARGET" >&6; }
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11605 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11606 for ncn_progname in lipo; do
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11608 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11609 if test -x $with_build_time_tools/${ncn_progname}; then
11610 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11612 $as_echo "yes" >&6; }
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11621 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11622 for ncn_progname in lipo; do
11623 if test -n "$ncn_target_tool_prefix"; then
11624 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11625 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627 $as_echo_n "checking for $ac_word... " >&6; }
11628 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
11631 if test -n "$LIPO_FOR_TARGET"; then
11632 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11641 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11652 if test -n "$LIPO_FOR_TARGET"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11654 $as_echo "$LIPO_FOR_TARGET" >&6; }
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11662 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11664 set dummy ${ncn_progname}; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11670 if test -n "$LIPO_FOR_TARGET"; then
11671 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11680 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11691 if test -n "$LIPO_FOR_TARGET"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11693 $as_echo "$LIPO_FOR_TARGET" >&6; }
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11701 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11705 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11707 if test $build = $target ; then
11708 LIPO_FOR_TARGET="$2"
11710 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11713 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11717 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11723 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11724 if test -n "$with_build_time_tools"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11726 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11727 if test -x $with_build_time_tools/nm; then
11728 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11729 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11731 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11736 elif test $build != $host && test $have_gcc_for_target = yes; then
11737 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11738 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11739 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11742 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11743 # Extract the first word of "nm", so it can be a program name with args.
11744 set dummy nm; ac_word=$2
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746 $as_echo_n "checking for $ac_word... " >&6; }
11747 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11748 $as_echo_n "(cached) " >&6
11750 case $NM_FOR_TARGET in
11752 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $gcc_cv_tool_dirs
11759 test -z "$as_dir" && as_dir=.
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11762 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11773 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11774 if test -n "$NM_FOR_TARGET"; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11776 $as_echo "$NM_FOR_TARGET" >&6; }
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11784 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11787 if test -n "$NM_FOR_TARGET"; then
11788 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11789 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11790 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11793 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11794 for ncn_progname in nm; do
11795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11796 set dummy ${ncn_progname}; ac_word=$2
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798 $as_echo_n "checking for $ac_word... " >&6; }
11799 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
11802 if test -n "$NM_FOR_TARGET"; then
11803 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11822 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11823 if test -n "$NM_FOR_TARGET"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11825 $as_echo "$NM_FOR_TARGET" >&6; }
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11835 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11836 for ncn_progname in nm; do
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11838 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11839 if test -x $with_build_time_tools/${ncn_progname}; then
11840 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11842 $as_echo "yes" >&6; }
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11851 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11852 for ncn_progname in nm; do
11853 if test -n "$ncn_target_tool_prefix"; then
11854 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11855 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
11861 if test -n "$NM_FOR_TARGET"; then
11862 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11871 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11882 if test -n "$NM_FOR_TARGET"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11884 $as_echo "$NM_FOR_TARGET" >&6; }
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11892 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11894 set dummy ${ncn_progname}; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11900 if test -n "$NM_FOR_TARGET"; then
11901 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904 for as_dir in $PATH
11907 test -z "$as_dir" && as_dir=.
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11910 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11920 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11921 if test -n "$NM_FOR_TARGET"; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11923 $as_echo "$NM_FOR_TARGET" >&6; }
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926 $as_echo "no" >&6; }
11931 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11935 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11937 if test $build = $target ; then
11940 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11943 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11947 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11953 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11954 if test -n "$with_build_time_tools"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11956 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11957 if test -x $with_build_time_tools/objdump; then
11958 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11959 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11961 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11966 elif test $build != $host && test $have_gcc_for_target = yes; then
11967 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11968 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11969 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11972 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11973 # Extract the first word of "objdump", so it can be a program name with args.
11974 set dummy objdump; ac_word=$2
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11976 $as_echo_n "checking for $ac_word... " >&6; }
11977 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
11980 case $OBJDUMP_FOR_TARGET in
11982 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986 for as_dir in $gcc_cv_tool_dirs
11989 test -z "$as_dir" && as_dir=.
11990 for ac_exec_ext in '' $ac_executable_extensions; do
11991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11992 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12004 if test -n "$OBJDUMP_FOR_TARGET"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12006 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12014 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12017 if test -n "$OBJDUMP_FOR_TARGET"; then
12018 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12019 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12020 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12023 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12024 for ncn_progname in objdump; do
12025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12026 set dummy ${ncn_progname}; ac_word=$2
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12028 $as_echo_n "checking for $ac_word... " >&6; }
12029 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12032 if test -n "$OBJDUMP_FOR_TARGET"; then
12033 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036 for as_dir in $PATH
12039 test -z "$as_dir" && as_dir=.
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12042 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12053 if test -n "$OBJDUMP_FOR_TARGET"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12055 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12065 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12066 for ncn_progname in objdump; do
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12068 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12069 if test -x $with_build_time_tools/${ncn_progname}; then
12070 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072 $as_echo "yes" >&6; }
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12081 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12082 for ncn_progname in objdump; do
12083 if test -n "$ncn_target_tool_prefix"; then
12084 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12085 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12089 $as_echo_n "(cached) " >&6
12091 if test -n "$OBJDUMP_FOR_TARGET"; then
12092 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12101 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12112 if test -n "$OBJDUMP_FOR_TARGET"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12114 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12122 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12124 set dummy ${ncn_progname}; ac_word=$2
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 $as_echo_n "checking for $ac_word... " >&6; }
12127 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12130 if test -n "$OBJDUMP_FOR_TARGET"; then
12131 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12140 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12151 if test -n "$OBJDUMP_FOR_TARGET"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12153 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156 $as_echo "no" >&6; }
12161 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12165 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12167 if test $build = $target ; then
12168 OBJDUMP_FOR_TARGET="$2"
12170 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12173 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12177 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12183 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12184 if test -n "$with_build_time_tools"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12186 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12187 if test -x $with_build_time_tools/ranlib; then
12188 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12189 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12191 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12196 elif test $build != $host && test $have_gcc_for_target = yes; then
12197 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12198 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12199 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12202 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12203 # Extract the first word of "ranlib", so it can be a program name with args.
12204 set dummy ranlib; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12210 case $RANLIB_FOR_TARGET in
12212 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $gcc_cv_tool_dirs
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12222 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12233 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12234 if test -n "$RANLIB_FOR_TARGET"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12236 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12244 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12247 if test -n "$RANLIB_FOR_TARGET"; then
12248 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12249 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12250 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12253 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12254 for ncn_progname in ranlib; do
12255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12256 set dummy ${ncn_progname}; ac_word=$2
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12258 $as_echo_n "checking for $ac_word... " >&6; }
12259 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
12262 if test -n "$RANLIB_FOR_TARGET"; then
12263 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266 for as_dir in $PATH
12269 test -z "$as_dir" && as_dir=.
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12272 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12282 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12283 if test -n "$RANLIB_FOR_TARGET"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12285 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12295 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12296 for ncn_progname in ranlib; do
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12298 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12299 if test -x $with_build_time_tools/${ncn_progname}; then
12300 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12302 $as_echo "yes" >&6; }
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12311 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12312 for ncn_progname in ranlib; do
12313 if test -n "$ncn_target_tool_prefix"; then
12314 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12315 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
12321 if test -n "$RANLIB_FOR_TARGET"; then
12322 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12331 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12342 if test -n "$RANLIB_FOR_TARGET"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12344 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12352 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12354 set dummy ${ncn_progname}; ac_word=$2
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12356 $as_echo_n "checking for $ac_word... " >&6; }
12357 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12360 if test -n "$RANLIB_FOR_TARGET"; then
12361 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364 for as_dir in $PATH
12367 test -z "$as_dir" && as_dir=.
12368 for ac_exec_ext in '' $ac_executable_extensions; do
12369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12370 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12381 if test -n "$RANLIB_FOR_TARGET"; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12383 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; }
12391 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12395 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12397 if test $build = $target ; then
12398 RANLIB_FOR_TARGET="$2"
12400 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12403 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12407 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12413 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12414 if test -n "$with_build_time_tools"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12416 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12417 if test -x $with_build_time_tools/readelf; then
12418 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12419 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12421 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424 $as_echo "no" >&6; }
12426 elif test $build != $host && test $have_gcc_for_target = yes; then
12427 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12428 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12429 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12432 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12433 # Extract the first word of "readelf", so it can be a program name with args.
12434 set dummy readelf; ac_word=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 $as_echo_n "checking for $ac_word... " >&6; }
12437 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12440 case $READELF_FOR_TARGET in
12442 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446 for as_dir in $gcc_cv_tool_dirs
12449 test -z "$as_dir" && as_dir=.
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12452 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12464 if test -n "$READELF_FOR_TARGET"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12466 $as_echo "$READELF_FOR_TARGET" >&6; }
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12474 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12477 if test -n "$READELF_FOR_TARGET"; then
12478 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12479 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12480 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12483 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12484 for ncn_progname in readelf; do
12485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12486 set dummy ${ncn_progname}; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12490 $as_echo_n "(cached) " >&6
12492 if test -n "$READELF_FOR_TARGET"; then
12493 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12502 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12513 if test -n "$READELF_FOR_TARGET"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12515 $as_echo "$READELF_FOR_TARGET" >&6; }
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12525 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12526 for ncn_progname in readelf; do
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12528 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12529 if test -x $with_build_time_tools/${ncn_progname}; then
12530 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12532 $as_echo "yes" >&6; }
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12541 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12542 for ncn_progname in readelf; do
12543 if test -n "$ncn_target_tool_prefix"; then
12544 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12545 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547 $as_echo_n "checking for $ac_word... " >&6; }
12548 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12551 if test -n "$READELF_FOR_TARGET"; then
12552 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555 for as_dir in $PATH
12558 test -z "$as_dir" && as_dir=.
12559 for ac_exec_ext in '' $ac_executable_extensions; do
12560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12561 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12572 if test -n "$READELF_FOR_TARGET"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12574 $as_echo "$READELF_FOR_TARGET" >&6; }
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12582 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12584 set dummy ${ncn_progname}; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12590 if test -n "$READELF_FOR_TARGET"; then
12591 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12611 if test -n "$READELF_FOR_TARGET"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12613 $as_echo "$READELF_FOR_TARGET" >&6; }
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12621 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12625 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12627 if test $build = $target ; then
12628 READELF_FOR_TARGET="$2"
12630 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12633 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12637 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12643 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12644 if test -n "$with_build_time_tools"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12646 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12647 if test -x $with_build_time_tools/strip; then
12648 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12649 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12651 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; }
12656 elif test $build != $host && test $have_gcc_for_target = yes; then
12657 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12658 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12659 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12662 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12663 # Extract the first word of "strip", so it can be a program name with args.
12664 set dummy strip; ac_word=$2
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12666 $as_echo_n "checking for $ac_word... " >&6; }
12667 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12668 $as_echo_n "(cached) " >&6
12670 case $STRIP_FOR_TARGET in
12672 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676 for as_dir in $gcc_cv_tool_dirs
12679 test -z "$as_dir" && as_dir=.
12680 for ac_exec_ext in '' $ac_executable_extensions; do
12681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12682 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12693 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12694 if test -n "$STRIP_FOR_TARGET"; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12696 $as_echo "$STRIP_FOR_TARGET" >&6; }
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12699 $as_echo "no" >&6; }
12704 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12707 if test -n "$STRIP_FOR_TARGET"; then
12708 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12709 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12710 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12713 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12714 for ncn_progname in strip; do
12715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12716 set dummy ${ncn_progname}; ac_word=$2
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718 $as_echo_n "checking for $ac_word... " >&6; }
12719 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12722 if test -n "$STRIP_FOR_TARGET"; then
12723 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12732 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12742 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12743 if test -n "$STRIP_FOR_TARGET"; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12745 $as_echo "$STRIP_FOR_TARGET" >&6; }
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 $as_echo "no" >&6; }
12755 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12756 for ncn_progname in strip; do
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12758 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12759 if test -x $with_build_time_tools/${ncn_progname}; then
12760 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12762 $as_echo "yes" >&6; }
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12771 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12772 for ncn_progname in strip; do
12773 if test -n "$ncn_target_tool_prefix"; then
12774 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12775 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 $as_echo_n "checking for $ac_word... " >&6; }
12778 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
12781 if test -n "$STRIP_FOR_TARGET"; then
12782 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12802 if test -n "$STRIP_FOR_TARGET"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12804 $as_echo "$STRIP_FOR_TARGET" >&6; }
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12812 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12814 set dummy ${ncn_progname}; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816 $as_echo_n "checking for $ac_word... " >&6; }
12817 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
12820 if test -n "$STRIP_FOR_TARGET"; then
12821 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824 for as_dir in $PATH
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12830 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12840 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12841 if test -n "$STRIP_FOR_TARGET"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12843 $as_echo "$STRIP_FOR_TARGET" >&6; }
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12851 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12855 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12857 if test $build = $target ; then
12858 STRIP_FOR_TARGET="$2"
12860 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12863 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12867 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12873 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12874 if test -n "$with_build_time_tools"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12876 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12877 if test -x $with_build_time_tools/windres; then
12878 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12879 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12881 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884 $as_echo "no" >&6; }
12886 elif test $build != $host && test $have_gcc_for_target = yes; then
12887 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12888 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12889 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12892 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12893 # Extract the first word of "windres", so it can be a program name with args.
12894 set dummy windres; ac_word=$2
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12896 $as_echo_n "checking for $ac_word... " >&6; }
12897 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12898 $as_echo_n "(cached) " >&6
12900 case $WINDRES_FOR_TARGET in
12902 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $gcc_cv_tool_dirs
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12912 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12923 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12924 if test -n "$WINDRES_FOR_TARGET"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12926 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12934 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12937 if test -n "$WINDRES_FOR_TARGET"; then
12938 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12939 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12940 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12943 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12944 for ncn_progname in windres; do
12945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12946 set dummy ${ncn_progname}; ac_word=$2
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948 $as_echo_n "checking for $ac_word... " >&6; }
12949 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
12952 if test -n "$WINDRES_FOR_TARGET"; then
12953 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12959 test -z "$as_dir" && as_dir=.
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12962 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12972 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12973 if test -n "$WINDRES_FOR_TARGET"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12975 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12985 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12986 for ncn_progname in windres; do
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12988 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12989 if test -x $with_build_time_tools/${ncn_progname}; then
12990 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12992 $as_echo "yes" >&6; }
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
13001 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13002 for ncn_progname in windres; do
13003 if test -n "$ncn_target_tool_prefix"; then
13004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13005 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
13011 if test -n "$WINDRES_FOR_TARGET"; then
13012 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13031 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13032 if test -n "$WINDRES_FOR_TARGET"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13034 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13042 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13044 set dummy ${ncn_progname}; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046 $as_echo_n "checking for $ac_word... " >&6; }
13047 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
13050 if test -n "$WINDRES_FOR_TARGET"; then
13051 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13057 test -z "$as_dir" && as_dir=.
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13070 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13071 if test -n "$WINDRES_FOR_TARGET"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13073 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13081 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13085 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13087 if test $build = $target ; then
13088 WINDRES_FOR_TARGET="$2"
13090 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13093 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13097 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13103 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13104 if test -n "$with_build_time_tools"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13106 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13107 if test -x $with_build_time_tools/windmc; then
13108 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13109 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13111 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13116 elif test $build != $host && test $have_gcc_for_target = yes; then
13117 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13118 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13119 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13122 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13123 # Extract the first word of "windmc", so it can be a program name with args.
13124 set dummy windmc; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13128 $as_echo_n "(cached) " >&6
13130 case $WINDMC_FOR_TARGET in
13132 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $gcc_cv_tool_dirs
13139 test -z "$as_dir" && as_dir=.
13140 for ac_exec_ext in '' $ac_executable_extensions; do
13141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13142 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13154 if test -n "$WINDMC_FOR_TARGET"; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13156 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13164 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13167 if test -n "$WINDMC_FOR_TARGET"; then
13168 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13169 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13170 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13173 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13174 for ncn_progname in windmc; do
13175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13176 set dummy ${ncn_progname}; ac_word=$2
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178 $as_echo_n "checking for $ac_word... " >&6; }
13179 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13182 if test -n "$WINDMC_FOR_TARGET"; then
13183 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13189 test -z "$as_dir" && as_dir=.
13190 for ac_exec_ext in '' $ac_executable_extensions; do
13191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13192 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13202 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13203 if test -n "$WINDMC_FOR_TARGET"; then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13205 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208 $as_echo "no" >&6; }
13215 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13216 for ncn_progname in windmc; do
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13218 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13219 if test -x $with_build_time_tools/${ncn_progname}; then
13220 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13222 $as_echo "yes" >&6; }
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13231 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13232 for ncn_progname in windmc; do
13233 if test -n "$ncn_target_tool_prefix"; then
13234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13235 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13241 if test -n "$WINDMC_FOR_TARGET"; then
13242 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13248 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13251 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13261 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13262 if test -n "$WINDMC_FOR_TARGET"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13264 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13272 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13274 set dummy ${ncn_progname}; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13280 if test -n "$WINDMC_FOR_TARGET"; then
13281 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13290 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13300 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13301 if test -n "$WINDMC_FOR_TARGET"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13303 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13311 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13315 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13317 if test $build = $target ; then
13318 WINDMC_FOR_TARGET="$2"
13320 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13323 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13327 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13331 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13334 $as_echo_n "checking where to find the target ar... " >&6; }
13335 if test "x${build}" != "x${host}" ; then
13336 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13337 # We already found the complete path
13338 ac_dir=`dirname $AR_FOR_TARGET`
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13340 $as_echo "pre-installed in $ac_dir" >&6; }
13342 # Canadian cross, just use what we found
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13344 $as_echo "pre-installed" >&6; }
13348 case " ${configdirs} " in
13353 if test $ok = yes; then
13354 # An in-tree tool is available and we can use it
13355 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13357 $as_echo "just compiled" >&6; }
13358 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13359 # We already found the complete path
13360 ac_dir=`dirname $AR_FOR_TARGET`
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13362 $as_echo "pre-installed in $ac_dir" >&6; }
13363 elif test "x$target" = "x$host"; then
13364 # We can use an host tool
13365 AR_FOR_TARGET='$(AR)'
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13367 $as_echo "host tool" >&6; }
13369 # We need a cross tool
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13371 $as_echo "pre-installed" >&6; }
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13376 $as_echo_n "checking where to find the target as... " >&6; }
13377 if test "x${build}" != "x${host}" ; then
13378 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13379 # We already found the complete path
13380 ac_dir=`dirname $AS_FOR_TARGET`
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13382 $as_echo "pre-installed in $ac_dir" >&6; }
13384 # Canadian cross, just use what we found
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13386 $as_echo "pre-installed" >&6; }
13390 case " ${configdirs} " in
13395 if test $ok = yes; then
13396 # An in-tree tool is available and we can use it
13397 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13399 $as_echo "just compiled" >&6; }
13400 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13401 # We already found the complete path
13402 ac_dir=`dirname $AS_FOR_TARGET`
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13404 $as_echo "pre-installed in $ac_dir" >&6; }
13405 elif test "x$target" = "x$host"; then
13406 # We can use an host tool
13407 AS_FOR_TARGET='$(AS)'
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13409 $as_echo "host tool" >&6; }
13411 # We need a cross tool
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13413 $as_echo "pre-installed" >&6; }
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13418 $as_echo_n "checking where to find the target cc... " >&6; }
13419 if test "x${build}" != "x${host}" ; then
13420 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13421 # We already found the complete path
13422 ac_dir=`dirname $CC_FOR_TARGET`
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13424 $as_echo "pre-installed in $ac_dir" >&6; }
13426 # Canadian cross, just use what we found
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13428 $as_echo "pre-installed" >&6; }
13432 case " ${configdirs} " in
13437 if test $ok = yes; then
13438 # An in-tree tool is available and we can use it
13439 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13441 $as_echo "just compiled" >&6; }
13442 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13443 # We already found the complete path
13444 ac_dir=`dirname $CC_FOR_TARGET`
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13446 $as_echo "pre-installed in $ac_dir" >&6; }
13447 elif test "x$target" = "x$host"; then
13448 # We can use an host tool
13449 CC_FOR_TARGET='$(CC)'
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13451 $as_echo "host tool" >&6; }
13453 # We need a cross tool
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13455 $as_echo "pre-installed" >&6; }
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13460 $as_echo_n "checking where to find the target c++... " >&6; }
13461 if test "x${build}" != "x${host}" ; then
13462 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13463 # We already found the complete path
13464 ac_dir=`dirname $CXX_FOR_TARGET`
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13466 $as_echo "pre-installed in $ac_dir" >&6; }
13468 # Canadian cross, just use what we found
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13470 $as_echo "pre-installed" >&6; }
13474 case " ${configdirs} " in
13478 case ,${enable_languages}, in
13482 if test $ok = yes; then
13483 # An in-tree tool is available and we can use it
13484 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13486 $as_echo "just compiled" >&6; }
13487 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13488 # We already found the complete path
13489 ac_dir=`dirname $CXX_FOR_TARGET`
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13491 $as_echo "pre-installed in $ac_dir" >&6; }
13492 elif test "x$target" = "x$host"; then
13493 # We can use an host tool
13494 CXX_FOR_TARGET='$(CXX)'
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13496 $as_echo "host tool" >&6; }
13498 # We need a cross tool
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13500 $as_echo "pre-installed" >&6; }
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13505 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13506 if test "x${build}" != "x${host}" ; then
13507 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13508 # We already found the complete path
13509 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13511 $as_echo "pre-installed in $ac_dir" >&6; }
13513 # Canadian cross, just use what we found
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13515 $as_echo "pre-installed" >&6; }
13519 case " ${configdirs} " in
13523 case ,${enable_languages}, in
13527 if test $ok = yes; then
13528 # An in-tree tool is available and we can use it
13529 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'
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13531 $as_echo "just compiled" >&6; }
13532 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13533 # We already found the complete path
13534 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13536 $as_echo "pre-installed in $ac_dir" >&6; }
13537 elif test "x$target" = "x$host"; then
13538 # We can use an host tool
13539 RAW_CXX_FOR_TARGET='$(CXX)'
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13541 $as_echo "host tool" >&6; }
13543 # We need a cross tool
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13545 $as_echo "pre-installed" >&6; }
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13550 $as_echo_n "checking where to find the target dlltool... " >&6; }
13551 if test "x${build}" != "x${host}" ; then
13552 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13553 # We already found the complete path
13554 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13556 $as_echo "pre-installed in $ac_dir" >&6; }
13558 # Canadian cross, just use what we found
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13560 $as_echo "pre-installed" >&6; }
13564 case " ${configdirs} " in
13569 if test $ok = yes; then
13570 # An in-tree tool is available and we can use it
13571 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13573 $as_echo "just compiled" >&6; }
13574 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13575 # We already found the complete path
13576 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13578 $as_echo "pre-installed in $ac_dir" >&6; }
13579 elif test "x$target" = "x$host"; then
13580 # We can use an host tool
13581 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13583 $as_echo "host tool" >&6; }
13585 # We need a cross tool
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13587 $as_echo "pre-installed" >&6; }
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13592 $as_echo_n "checking where to find the target gcc... " >&6; }
13593 if test "x${build}" != "x${host}" ; then
13594 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13595 # We already found the complete path
13596 ac_dir=`dirname $GCC_FOR_TARGET`
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13598 $as_echo "pre-installed in $ac_dir" >&6; }
13600 # Canadian cross, just use what we found
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13602 $as_echo "pre-installed" >&6; }
13606 case " ${configdirs} " in
13611 if test $ok = yes; then
13612 # An in-tree tool is available and we can use it
13613 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13615 $as_echo "just compiled" >&6; }
13616 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13617 # We already found the complete path
13618 ac_dir=`dirname $GCC_FOR_TARGET`
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13620 $as_echo "pre-installed in $ac_dir" >&6; }
13621 elif test "x$target" = "x$host"; then
13622 # We can use an host tool
13623 GCC_FOR_TARGET='$()'
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13625 $as_echo "host tool" >&6; }
13627 # We need a cross tool
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13629 $as_echo "pre-installed" >&6; }
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13634 $as_echo_n "checking where to find the target gcj... " >&6; }
13635 if test "x${build}" != "x${host}" ; then
13636 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13637 # We already found the complete path
13638 ac_dir=`dirname $GCJ_FOR_TARGET`
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13640 $as_echo "pre-installed in $ac_dir" >&6; }
13642 # Canadian cross, just use what we found
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13644 $as_echo "pre-installed" >&6; }
13648 case " ${configdirs} " in
13652 case ,${enable_languages}, in
13656 if test $ok = yes; then
13657 # An in-tree tool is available and we can use it
13658 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13660 $as_echo "just compiled" >&6; }
13661 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13662 # We already found the complete path
13663 ac_dir=`dirname $GCJ_FOR_TARGET`
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13665 $as_echo "pre-installed in $ac_dir" >&6; }
13666 elif test "x$target" = "x$host"; then
13667 # We can use an host tool
13668 GCJ_FOR_TARGET='$(GCJ)'
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13670 $as_echo "host tool" >&6; }
13672 # We need a cross tool
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13674 $as_echo "pre-installed" >&6; }
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13679 $as_echo_n "checking where to find the target gfortran... " >&6; }
13680 if test "x${build}" != "x${host}" ; then
13681 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13682 # We already found the complete path
13683 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13685 $as_echo "pre-installed in $ac_dir" >&6; }
13687 # Canadian cross, just use what we found
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13689 $as_echo "pre-installed" >&6; }
13693 case " ${configdirs} " in
13697 case ,${enable_languages}, in
13701 if test $ok = yes; then
13702 # An in-tree tool is available and we can use it
13703 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13705 $as_echo "just compiled" >&6; }
13706 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13707 # We already found the complete path
13708 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13710 $as_echo "pre-installed in $ac_dir" >&6; }
13711 elif test "x$target" = "x$host"; then
13712 # We can use an host tool
13713 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13715 $as_echo "host tool" >&6; }
13717 # We need a cross tool
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13719 $as_echo "pre-installed" >&6; }
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13724 $as_echo_n "checking where to find the target gccgo... " >&6; }
13725 if test "x${build}" != "x${host}" ; then
13726 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13727 # We already found the complete path
13728 ac_dir=`dirname $GOC_FOR_TARGET`
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13730 $as_echo "pre-installed in $ac_dir" >&6; }
13732 # Canadian cross, just use what we found
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13734 $as_echo "pre-installed" >&6; }
13738 case " ${configdirs} " in
13742 case ,${enable_languages}, in
13746 if test $ok = yes; then
13747 # An in-tree tool is available and we can use it
13748 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13750 $as_echo "just compiled" >&6; }
13751 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13752 # We already found the complete path
13753 ac_dir=`dirname $GOC_FOR_TARGET`
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13755 $as_echo "pre-installed in $ac_dir" >&6; }
13756 elif test "x$target" = "x$host"; then
13757 # We can use an host tool
13758 GOC_FOR_TARGET='$(GOC)'
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13760 $as_echo "host tool" >&6; }
13762 # We need a cross tool
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13764 $as_echo "pre-installed" >&6; }
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13769 $as_echo_n "checking where to find the target ld... " >&6; }
13770 if test "x${build}" != "x${host}" ; then
13771 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13772 # We already found the complete path
13773 ac_dir=`dirname $LD_FOR_TARGET`
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13775 $as_echo "pre-installed in $ac_dir" >&6; }
13777 # Canadian cross, just use what we found
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13779 $as_echo "pre-installed" >&6; }
13783 case " ${configdirs} " in
13788 if test $ok = yes; then
13789 # An in-tree tool is available and we can use it
13790 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13792 $as_echo "just compiled" >&6; }
13793 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13794 # We already found the complete path
13795 ac_dir=`dirname $LD_FOR_TARGET`
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13797 $as_echo "pre-installed in $ac_dir" >&6; }
13798 elif test "x$target" = "x$host"; then
13799 # We can use an host tool
13800 LD_FOR_TARGET='$(LD)'
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13802 $as_echo "host tool" >&6; }
13804 # We need a cross tool
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13806 $as_echo "pre-installed" >&6; }
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13811 $as_echo_n "checking where to find the target lipo... " >&6; }
13812 if test "x${build}" != "x${host}" ; then
13813 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13814 # We already found the complete path
13815 ac_dir=`dirname $LIPO_FOR_TARGET`
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13817 $as_echo "pre-installed in $ac_dir" >&6; }
13819 # Canadian cross, just use what we found
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13821 $as_echo "pre-installed" >&6; }
13824 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13825 # We already found the complete path
13826 ac_dir=`dirname $LIPO_FOR_TARGET`
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13828 $as_echo "pre-installed in $ac_dir" >&6; }
13829 elif test "x$target" = "x$host"; then
13830 # We can use an host tool
13831 LIPO_FOR_TARGET='$(LIPO)'
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13833 $as_echo "host tool" >&6; }
13835 # We need a cross tool
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13837 $as_echo "pre-installed" >&6; }
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13842 $as_echo_n "checking where to find the target nm... " >&6; }
13843 if test "x${build}" != "x${host}" ; then
13844 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13845 # We already found the complete path
13846 ac_dir=`dirname $NM_FOR_TARGET`
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13848 $as_echo "pre-installed in $ac_dir" >&6; }
13850 # Canadian cross, just use what we found
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13852 $as_echo "pre-installed" >&6; }
13856 case " ${configdirs} " in
13861 if test $ok = yes; then
13862 # An in-tree tool is available and we can use it
13863 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13865 $as_echo "just compiled" >&6; }
13866 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13867 # We already found the complete path
13868 ac_dir=`dirname $NM_FOR_TARGET`
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13870 $as_echo "pre-installed in $ac_dir" >&6; }
13871 elif test "x$target" = "x$host"; then
13872 # We can use an host tool
13873 NM_FOR_TARGET='$(NM)'
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13875 $as_echo "host tool" >&6; }
13877 # We need a cross tool
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13879 $as_echo "pre-installed" >&6; }
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13884 $as_echo_n "checking where to find the target objdump... " >&6; }
13885 if test "x${build}" != "x${host}" ; then
13886 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13887 # We already found the complete path
13888 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13890 $as_echo "pre-installed in $ac_dir" >&6; }
13892 # Canadian cross, just use what we found
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13894 $as_echo "pre-installed" >&6; }
13898 case " ${configdirs} " in
13903 if test $ok = yes; then
13904 # An in-tree tool is available and we can use it
13905 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13907 $as_echo "just compiled" >&6; }
13908 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13909 # We already found the complete path
13910 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13912 $as_echo "pre-installed in $ac_dir" >&6; }
13913 elif test "x$target" = "x$host"; then
13914 # We can use an host tool
13915 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13917 $as_echo "host tool" >&6; }
13919 # We need a cross tool
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13921 $as_echo "pre-installed" >&6; }
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13926 $as_echo_n "checking where to find the target ranlib... " >&6; }
13927 if test "x${build}" != "x${host}" ; then
13928 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13929 # We already found the complete path
13930 ac_dir=`dirname $RANLIB_FOR_TARGET`
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13932 $as_echo "pre-installed in $ac_dir" >&6; }
13934 # Canadian cross, just use what we found
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13936 $as_echo "pre-installed" >&6; }
13940 case " ${configdirs} " in
13945 if test $ok = yes; then
13946 # An in-tree tool is available and we can use it
13947 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13949 $as_echo "just compiled" >&6; }
13950 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13951 # We already found the complete path
13952 ac_dir=`dirname $RANLIB_FOR_TARGET`
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13954 $as_echo "pre-installed in $ac_dir" >&6; }
13955 elif test "x$target" = "x$host"; then
13956 # We can use an host tool
13957 RANLIB_FOR_TARGET='$(RANLIB)'
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13959 $as_echo "host tool" >&6; }
13961 # We need a cross tool
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13963 $as_echo "pre-installed" >&6; }
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13968 $as_echo_n "checking where to find the target readelf... " >&6; }
13969 if test "x${build}" != "x${host}" ; then
13970 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13971 # We already found the complete path
13972 ac_dir=`dirname $READELF_FOR_TARGET`
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13974 $as_echo "pre-installed in $ac_dir" >&6; }
13976 # Canadian cross, just use what we found
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13978 $as_echo "pre-installed" >&6; }
13982 case " ${configdirs} " in
13987 if test $ok = yes; then
13988 # An in-tree tool is available and we can use it
13989 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13991 $as_echo "just compiled" >&6; }
13992 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13993 # We already found the complete path
13994 ac_dir=`dirname $READELF_FOR_TARGET`
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13996 $as_echo "pre-installed in $ac_dir" >&6; }
13997 elif test "x$target" = "x$host"; then
13998 # We can use an host tool
13999 READELF_FOR_TARGET='$(READELF)'
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14001 $as_echo "host tool" >&6; }
14003 # We need a cross tool
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14005 $as_echo "pre-installed" >&6; }
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14010 $as_echo_n "checking where to find the target strip... " >&6; }
14011 if test "x${build}" != "x${host}" ; then
14012 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14013 # We already found the complete path
14014 ac_dir=`dirname $STRIP_FOR_TARGET`
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14016 $as_echo "pre-installed in $ac_dir" >&6; }
14018 # Canadian cross, just use what we found
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14020 $as_echo "pre-installed" >&6; }
14024 case " ${configdirs} " in
14029 if test $ok = yes; then
14030 # An in-tree tool is available and we can use it
14031 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14033 $as_echo "just compiled" >&6; }
14034 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14035 # We already found the complete path
14036 ac_dir=`dirname $STRIP_FOR_TARGET`
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14038 $as_echo "pre-installed in $ac_dir" >&6; }
14039 elif test "x$target" = "x$host"; then
14040 # We can use an host tool
14041 STRIP_FOR_TARGET='$(STRIP)'
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14043 $as_echo "host tool" >&6; }
14045 # We need a cross tool
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14047 $as_echo "pre-installed" >&6; }
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14052 $as_echo_n "checking where to find the target windres... " >&6; }
14053 if test "x${build}" != "x${host}" ; then
14054 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14055 # We already found the complete path
14056 ac_dir=`dirname $WINDRES_FOR_TARGET`
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14058 $as_echo "pre-installed in $ac_dir" >&6; }
14060 # Canadian cross, just use what we found
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14062 $as_echo "pre-installed" >&6; }
14066 case " ${configdirs} " in
14071 if test $ok = yes; then
14072 # An in-tree tool is available and we can use it
14073 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14075 $as_echo "just compiled" >&6; }
14076 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14077 # We already found the complete path
14078 ac_dir=`dirname $WINDRES_FOR_TARGET`
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14080 $as_echo "pre-installed in $ac_dir" >&6; }
14081 elif test "x$target" = "x$host"; then
14082 # We can use an host tool
14083 WINDRES_FOR_TARGET='$(WINDRES)'
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14085 $as_echo "host tool" >&6; }
14087 # We need a cross tool
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14089 $as_echo "pre-installed" >&6; }
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14094 $as_echo_n "checking where to find the target windmc... " >&6; }
14095 if test "x${build}" != "x${host}" ; then
14096 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14097 # We already found the complete path
14098 ac_dir=`dirname $WINDMC_FOR_TARGET`
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14100 $as_echo "pre-installed in $ac_dir" >&6; }
14102 # Canadian cross, just use what we found
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14104 $as_echo "pre-installed" >&6; }
14108 case " ${configdirs} " in
14113 if test $ok = yes; then
14114 # An in-tree tool is available and we can use it
14115 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14117 $as_echo "just compiled" >&6; }
14118 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14119 # We already found the complete path
14120 ac_dir=`dirname $WINDMC_FOR_TARGET`
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14122 $as_echo "pre-installed in $ac_dir" >&6; }
14123 elif test "x$target" = "x$host"; then
14124 # We can use an host tool
14125 WINDMC_FOR_TARGET='$(WINDMC)'
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14127 $as_echo "host tool" >&6; }
14129 # We need a cross tool
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14131 $as_echo "pre-installed" >&6; }
14139 # Certain tools may need extra flags.
14140 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14141 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14142 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14144 # When building target libraries, except in a Canadian cross, we use
14145 # the same toolchain as the compiler we just built.
14146 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14147 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14148 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14149 if test $host = $build; then
14150 case " $configdirs " in
14152 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14153 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14154 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14164 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14165 # Check whether --enable-maintainer-mode was given.
14166 if test "${enable_maintainer_mode+set}" = set; then :
14167 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14169 USE_MAINTAINER_MODE=no
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14173 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14176 if test "$USE_MAINTAINER_MODE" = yes; then
14177 MAINTAINER_MODE_TRUE=
14178 MAINTAINER_MODE_FALSE='#'
14180 MAINTAINER_MODE_TRUE='#'
14181 MAINTAINER_MODE_FALSE=
14183 MAINT=$MAINTAINER_MODE_TRUE
14185 # ---------------------
14186 # GCC bootstrap support
14187 # ---------------------
14189 # Stage specific cflags for build.
14194 yes) stage1_cflags="-g -Wa,-J" ;;
14195 *) stage1_cflags="-g -J" ;;
14201 # Enable --enable-checking in stage1 of the compiler.
14202 # Check whether --enable-stage1-checking was given.
14203 if test "${enable_stage1_checking+set}" = set; then :
14204 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14206 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14207 stage1_checking=--enable-checking=yes,types
14209 stage1_checking=--enable-checking=$enable_checking,types
14215 # Enable -Werror in bootstrap stage2 and later.
14216 # Check whether --enable-werror was given.
14217 if test "${enable_werror+set}" = set; then :
14218 enableval=$enable_werror;
14220 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14227 case ${enable_werror} in
14228 yes) stage2_werror_flag="--enable-werror-always" ;;
14229 *) stage2_werror_flag="" ;;
14233 # Specify what files to not compare during bootstrap.
14235 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14237 hppa*64*-*-hpux*) ;;
14238 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14239 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14243 ac_config_files="$ac_config_files Makefile"
14245 cat >confcache <<\_ACEOF
14246 # This file is a shell script that caches the results of configure
14247 # tests run on this system so they can be shared between configure
14248 # scripts and configure runs, see configure's option --config-cache.
14249 # It is not useful on other systems. If it contains results you don't
14250 # want to keep, you may remove or edit it.
14252 # config.status only pays attention to the cache file if you give it
14253 # the --recheck option to rerun configure.
14255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14257 # following values.
14261 # The following way of writing the cache mishandles newlines in values,
14262 # but we know of no workaround that is simple, portable, and efficient.
14263 # So, we kill variables containing newlines.
14264 # Ultrix sh set writes to stderr and can't be redirected directly,
14265 # and sets the high bit in the cache file unless we assign to the vars.
14267 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14268 eval ac_val=\$$ac_var
14272 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14273 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14276 _ | IFS | as_nl) ;; #(
14277 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14278 *) { eval $ac_var=; unset $ac_var;} ;;
14284 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14285 *${as_nl}ac_space=\ *)
14286 # `set' does not quote correctly, so add quotes: double-quote
14287 # substitution turns \\\\ into \\, and sed turns \\ into \.
14290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14293 # `set' quotes correctly as required by POSIX, so do not add quotes.
14294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14303 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14305 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14307 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14308 if test -w "$cache_file"; then
14309 test "x$cache_file" != "x/dev/null" &&
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14311 $as_echo "$as_me: updating cache $cache_file" >&6;}
14312 cat confcache >$cache_file
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14315 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14320 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14321 # Let make expand exec_prefix.
14322 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14324 # Transform confdefs.h into DEFS.
14325 # Protect against shell expansion while executing Makefile rules.
14326 # Protect against Makefile macro expansion.
14328 # If the first sed substitution is executed (which looks for macros that
14329 # take arguments), then branch to the quote section. Otherwise,
14330 # look for a macro that doesn't take arguments.
14340 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14342 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14346 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14359 DEFS=`sed -n "$ac_script" confdefs.h`
14364 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14365 # 1. Remove the extension, and $U if already installed.
14366 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14367 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14368 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14369 # will be set to the directory where LIBOBJS objects are built.
14370 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14371 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14373 LIBOBJS=$ac_libobjs
14375 LTLIBOBJS=$ac_ltlibobjs
14379 : ${CONFIG_STATUS=./config.status}
14381 ac_clean_files_save=$ac_clean_files
14382 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14384 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14386 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14388 # Generated by $as_me.
14389 # Run this file to recreate the current configuration.
14390 # Compiler output produced by configure, useful for debugging
14391 # configure, is in config.log if it exists.
14394 ac_cs_recheck=false
14397 SHELL=\${CONFIG_SHELL-$SHELL}
14400 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14401 ## -------------------- ##
14402 ## M4sh Initialization. ##
14403 ## -------------------- ##
14405 # Be more Bourne compatible
14406 DUALCASE=1; export DUALCASE # for MKS sh
14407 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14410 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14411 # is contrary to our usage. Disable this feature.
14412 alias -g '${1+"$@"}'='"$@"'
14413 setopt NO_GLOB_SUBST
14415 case `(set -o) 2>/dev/null` in #(
14427 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14428 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14429 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14430 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14431 # Prefer a ksh shell builtin over an external printf program on Solaris,
14432 # but without wasting forks for bash or zsh.
14433 if test -z "$BASH_VERSION$ZSH_VERSION" \
14434 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14435 as_echo='print -r --'
14436 as_echo_n='print -rn --'
14437 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14438 as_echo='printf %s\n'
14439 as_echo_n='printf %s'
14441 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14442 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14443 as_echo_n='/usr/ucb/echo -n'
14445 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14446 as_echo_n_body='eval
14450 expr "X$arg" : "X\\(.*\\)$as_nl";
14451 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14453 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14455 export as_echo_n_body
14456 as_echo_n='sh -c $as_echo_n_body as_echo'
14458 export as_echo_body
14459 as_echo='sh -c $as_echo_body as_echo'
14462 # The user is always right.
14463 if test "${PATH_SEPARATOR+set}" != set; then
14465 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14466 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14473 # We need space, tab and new line, in precisely that order. Quoting is
14474 # there to prevent editors from complaining about space-tab.
14475 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14476 # splitting by setting IFS to empty value.)
14479 # Find who we are. Look in the path if we contain no directory separator.
14481 *[\\/]* ) as_myself=$0 ;;
14482 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483 for as_dir in $PATH
14486 test -z "$as_dir" && as_dir=.
14487 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14493 # We did not find ourselves, most probably we were run as `sh COMMAND'
14494 # in which case we are not to be found in the path.
14495 if test "x$as_myself" = x; then
14498 if test ! -f "$as_myself"; then
14499 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14503 # Unset variables that we do not need and which cause bugs (e.g. in
14504 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14505 # suppresses any "Segmentation fault" message there. '((' could
14506 # trigger a bug in pdksh 5.2.14.
14507 for as_var in BASH_ENV ENV MAIL MAILPATH
14508 do eval test x\${$as_var+set} = xset \
14509 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14525 # as_fn_error ERROR [LINENO LOG_FD]
14526 # ---------------------------------
14527 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14528 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14529 # script with status $?, using 1 if that was 0.
14532 as_status=$?; test $as_status -eq 0 && as_status=1
14534 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14535 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14537 $as_echo "$as_me: error: $1" >&2
14538 as_fn_exit $as_status
14542 # as_fn_set_status STATUS
14543 # -----------------------
14544 # Set $? to STATUS, without forking.
14545 as_fn_set_status ()
14548 } # as_fn_set_status
14550 # as_fn_exit STATUS
14551 # -----------------
14552 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14556 as_fn_set_status $1
14562 # Portably unset VAR.
14565 { eval $1=; unset $1;}
14567 as_unset=as_fn_unset
14568 # as_fn_append VAR VALUE
14569 # ----------------------
14570 # Append the text in VALUE to the end of the definition contained in VAR. Take
14571 # advantage of any shell optimizations that allow amortized linear growth over
14572 # repeated appends, instead of the typical quadratic growth present in naive
14574 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14575 eval 'as_fn_append ()
14586 # as_fn_arith ARG...
14587 # ------------------
14588 # Perform arithmetic evaluation on the ARGs, and store the result in the
14589 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14590 # must be portable across $(()) and expr.
14591 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14592 eval 'as_fn_arith ()
14599 as_val=`expr "$@" || test $? -eq 1`
14604 if expr a : '\(a\)' >/dev/null 2>&1 &&
14605 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14611 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14612 as_basename=basename
14617 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14623 as_me=`$as_basename -- "$0" ||
14624 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14625 X"$0" : 'X\(//\)$' \| \
14626 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14628 sed '/^.*\/\([^/][^/]*\)\/*$/{
14642 # Avoid depending upon Character Ranges.
14643 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14644 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14645 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14646 as_cr_digits='0123456789'
14647 as_cr_alnum=$as_cr_Letters$as_cr_digits
14649 ECHO_C= ECHO_N= ECHO_T=
14650 case `echo -n x` in #(((((
14652 case `echo 'xy\c'` in
14653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14655 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14662 rm -f conf$$ conf$$.exe conf$$.file
14663 if test -d conf$$.dir; then
14664 rm -f conf$$.dir/conf$$.file
14667 mkdir conf$$.dir 2>/dev/null
14669 if (echo >conf$$.file) 2>/dev/null; then
14670 if ln -s conf$$.file conf$$ 2>/dev/null; then
14672 # ... but there are two gotchas:
14673 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14674 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14675 # In both cases, we have to default to `cp -p'.
14676 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14678 elif ln conf$$.file conf$$ 2>/dev/null; then
14686 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14687 rmdir conf$$.dir 2>/dev/null
14692 # Create "$as_dir" as a directory, including parents if necessary.
14697 -*) as_dir=./$as_dir;;
14699 test -d "$as_dir" || eval $as_mkdir_p || {
14703 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14704 *) as_qdir=$as_dir;;
14706 as_dirs="'$as_qdir' $as_dirs"
14707 as_dir=`$as_dirname -- "$as_dir" ||
14708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14709 X"$as_dir" : 'X\(//\)[^/]' \| \
14710 X"$as_dir" : 'X\(//\)$' \| \
14711 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14712 $as_echo X"$as_dir" |
14713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14717 /^X\(\/\/\)[^/].*/{
14730 test -d "$as_dir" && break
14732 test -z "$as_dirs" || eval "mkdir $as_dirs"
14733 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14737 if mkdir -p . 2>/dev/null; then
14738 as_mkdir_p='mkdir -p "$as_dir"'
14740 test -d ./-p && rmdir ./-p
14744 if test -x / >/dev/null 2>&1; then
14745 as_test_x='test -x'
14747 if ls -dL / >/dev/null 2>&1; then
14754 if test -d "$1"; then
14760 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14761 ???[sx]*):;;*)false;;esac;fi
14765 as_executable_p=$as_test_x
14767 # Sed expression to map a string onto a valid CPP name.
14768 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14770 # Sed expression to map a string onto a valid variable name.
14771 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14775 ## ----------------------------------- ##
14776 ## Main body of $CONFIG_STATUS script. ##
14777 ## ----------------------------------- ##
14779 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14782 # Save the log message, to keep $0 and so on meaningful, and to
14783 # report actual input values of CONFIG_FILES etc. instead of their
14784 # values after options handling.
14786 This file was extended by $as_me, which was
14787 generated by GNU Autoconf 2.64. Invocation command line was
14789 CONFIG_FILES = $CONFIG_FILES
14790 CONFIG_HEADERS = $CONFIG_HEADERS
14791 CONFIG_LINKS = $CONFIG_LINKS
14792 CONFIG_COMMANDS = $CONFIG_COMMANDS
14795 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14800 case $ac_config_files in *"
14801 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14807 # Files that config.status was made for.
14808 config_files="$ac_config_files"
14812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14814 \`$as_me' instantiates files and other configuration actions
14815 from templates according to the current configuration. Unless the files
14816 and actions are specified as TAGs, all are instantiated by default.
14818 Usage: $0 [OPTION]... [TAG]...
14820 -h, --help print this help, then exit
14821 -V, --version print version number and configuration settings, then exit
14822 -q, --quiet, --silent
14823 do not print progress messages
14824 -d, --debug don't remove temporary files
14825 --recheck update $as_me by reconfiguring in the same conditions
14826 --file=FILE[:TEMPLATE]
14827 instantiate the configuration file FILE
14829 Configuration files:
14832 Report bugs to the package provider."
14835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14838 configured by $0, generated by GNU Autoconf 2.64,
14839 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14841 Copyright (C) 2009 Free Software Foundation, Inc.
14842 This config.status script is free software; the Free Software Foundation
14843 gives unlimited permission to copy, distribute and modify it."
14849 test -n "\$AWK" || AWK=awk
14852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14853 # The default lists apply if the user does not specify any file.
14859 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14860 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14871 # Handling of the options.
14872 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14874 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14875 $as_echo "$ac_cs_version"; exit ;;
14876 --debug | --debu | --deb | --de | --d | -d )
14878 --file | --fil | --fi | --f )
14881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14883 as_fn_append CONFIG_FILES " '$ac_optarg'"
14884 ac_need_defaults=false;;
14885 --he | --h | --help | --hel | -h )
14886 $as_echo "$ac_cs_usage"; exit ;;
14887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14888 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14891 # This is an error.
14892 -*) as_fn_error "unrecognized option: \`$1'
14893 Try \`$0 --help' for more information." ;;
14895 *) as_fn_append ac_config_targets " $1"
14896 ac_need_defaults=false ;;
14902 ac_configure_extra_args=
14904 if $ac_cs_silent; then
14906 ac_configure_extra_args="$ac_configure_extra_args --silent"
14910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14911 if \$ac_cs_recheck; then
14912 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14914 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14915 CONFIG_SHELL='$SHELL'
14916 export CONFIG_SHELL
14921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14926 ## Running $as_me. ##
14932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14936 extrasub_build="$extrasub_build"
14937 extrasub_host="$extrasub_host"
14938 extrasub_target="$extrasub_target"
14942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14944 # Handling of arguments.
14945 for ac_config_target in $ac_config_targets
14947 case $ac_config_target in
14948 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14950 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14955 # If the user did not use the arguments to specify the items to instantiate,
14956 # then the envvar interface is used. Set only those that are not.
14957 # We use the long form for the default assignment because of an extremely
14958 # bizarre bug on SunOS 4.1.3.
14959 if $ac_need_defaults; then
14960 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14963 # Have a temporary directory for convenience. Make it in the build tree
14964 # simply because there is no reason against having it here, and in addition,
14965 # creating and moving files from /tmp can sometimes cause problems.
14966 # Hook for its removal unless debugging.
14967 # Note that there is a small window in which the directory will not be cleaned:
14968 # after its creation but before its name has been assigned to `$tmp'.
14972 trap 'exit_status=$?
14973 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14975 trap 'as_fn_exit 1' 1 2 13 15
14977 # Create a (secure) tmp directory for tmp files.
14980 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14981 test -n "$tmp" && test -d "$tmp"
14984 tmp=./conf$$-$RANDOM
14985 (umask 077 && mkdir "$tmp")
14986 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14988 # Set up the scripts for CONFIG_FILES section.
14989 # No need to generate them if there are no CONFIG_FILES.
14990 # This happens for instance with `./config.status config.h'.
14991 if test -n "$CONFIG_FILES"; then
14993 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14994 ac_cs_awk_getline=:
14995 ac_cs_awk_pipe_init=
14996 ac_cs_awk_read_file='
14997 while ((getline aline < (F[key])) > 0)
15000 ac_cs_awk_pipe_fini=
15002 ac_cs_awk_getline=false
15003 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15004 ac_cs_awk_read_file='
15006 print "cat " F[key] " &&"
15007 '$ac_cs_awk_pipe_init
15008 # The final `:' finishes the AND list.
15009 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15011 ac_cr=`echo X | tr X '\015'`
15012 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15013 # But we know of no other shell where ac_cr would be empty at this
15014 # point, so we can use a bashism as a fallback.
15015 if test "x$ac_cr" = x; then
15016 eval ac_cr=\$\'\\r\'
15018 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15019 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15022 ac_cs_awk_cr=$ac_cr
15025 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15028 # Create commands to substitute file output variables.
15030 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15031 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15032 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15035 } >conf$$files.sh &&
15036 . ./conf$$files.sh ||
15037 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15038 rm -f conf$$files.sh
15041 echo "cat >conf$$subs.awk <<_ACEOF" &&
15042 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15044 } >conf$$subs.sh ||
15045 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15046 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15048 for ac_last_try in false false false false false :; do
15049 . ./conf$$subs.sh ||
15050 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15052 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15053 if test $ac_delim_n = $ac_delim_num; then
15055 elif $ac_last_try; then
15056 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15058 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15061 rm -f conf$$subs.sh
15063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15064 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15068 s/^/S["/; s/!.*/"]=/
15078 s/\(.\{148\}\).*/\1/
15080 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15085 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15092 s/\(.\{148\}\).*/\1/
15094 s/["\\]/\\&/g; s/^/"/; s/$/"/
15098 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15103 ' <conf$$subs.awk | sed '
15108 ' >>$CONFIG_STATUS || ac_write_fail=1
15109 rm -f conf$$subs.awk
15110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15112 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15113 for (key in S) S_is_set[key] = 1
15115 \$ac_cs_awk_pipe_init
15119 nfields = split(line, field, "@")
15121 len = length(field[1])
15122 for (i = 2; i < nfields; i++) {
15124 keylen = length(key)
15125 if (S_is_set[key]) {
15127 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15128 len += length(value) + length(field[++i])
15133 if (nfields == 3 && !substed) {
15135 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15136 \$ac_cs_awk_read_file
15142 \$ac_cs_awk_pipe_fini
15145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15146 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15147 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15150 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15151 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15154 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15155 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15156 # trailing colons and then remove the whole line if VPATH becomes empty
15157 # (actually we leave an empty line to preserve line numbers).
15158 if test "x$srcdir" = x.; then
15159 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15160 s/:*\$(srcdir):*/:/
15161 s/:*\${srcdir}:*/:/
15163 s/^\([^=]*=[ ]*\):*/\1/
15169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15170 fi # test -n "$CONFIG_FILES"
15173 eval set X " :F $CONFIG_FILES "
15178 :[FHLC]) ac_mode=$ac_tag; continue;;
15180 case $ac_mode$ac_tag in
15182 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15183 :[FH]-) ac_tag=-:-;;
15184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15201 -) ac_f="$tmp/stdin";;
15202 *) # Look for the file first in the build tree, then in the source tree
15203 # (if the path is not absolute). The absolute path cannot be DOS-style,
15204 # because $ac_f cannot contain `:'.
15208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15210 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15213 as_fn_append ac_file_inputs " '$ac_f'"
15216 # Let's still pretend it is `configure' which instantiates (i.e., don't
15217 # use $as_me), people would be surprised to read:
15218 # /* config.h. Generated by config.status. */
15219 configure_input='Generated from '`
15220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15222 if test x"$ac_file" != x-; then
15223 configure_input="$ac_file. $configure_input"
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15225 $as_echo "$as_me: creating $ac_file" >&6;}
15227 # Neutralize special characters interpreted by sed in replacement strings.
15228 case $configure_input in #(
15229 *\&* | *\|* | *\\* )
15230 ac_sed_conf_input=`$as_echo "$configure_input" |
15231 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15232 *) ac_sed_conf_input=$configure_input;;
15236 *:-:* | *:-) cat >"$tmp/stdin" \
15237 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15242 ac_dir=`$as_dirname -- "$ac_file" ||
15243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15244 X"$ac_file" : 'X\(//\)[^/]' \| \
15245 X"$ac_file" : 'X\(//\)$' \| \
15246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15247 $as_echo X"$ac_file" |
15248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15252 /^X\(\/\/\)[^/].*/{
15265 as_dir="$ac_dir"; as_fn_mkdir_p
15269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15272 # A ".." for each directory in $ac_dir_suffix.
15273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15274 case $ac_top_builddir_sub in
15275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15279 ac_abs_top_builddir=$ac_pwd
15280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15281 # for backward compatibility:
15282 ac_top_builddir=$ac_top_build_prefix
15285 .) # We are building in place.
15287 ac_top_srcdir=$ac_top_builddir_sub
15288 ac_abs_top_srcdir=$ac_pwd ;;
15289 [\\/]* | ?:[\\/]* ) # Absolute name.
15290 ac_srcdir=$srcdir$ac_dir_suffix;
15291 ac_top_srcdir=$srcdir
15292 ac_abs_top_srcdir=$srcdir ;;
15293 *) # Relative name.
15294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15295 ac_top_srcdir=$ac_top_build_prefix$srcdir
15296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15314 # If the template does not know about datarootdir, expand it.
15315 # FIXME: This hack should be removed a few years after 2.60.
15316 ac_datarootdir_hack=; ac_datarootdir_seen=
15327 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15328 *datarootdir*) ac_datarootdir_seen=yes;;
15329 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15331 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15334 ac_datarootdir_hack='
15335 s&@datadir@&$datadir&g
15336 s&@docdir@&$docdir&g
15337 s&@infodir@&$infodir&g
15338 s&@localedir@&$localedir&g
15339 s&@mandir@&$mandir&g
15340 s&\\\${datarootdir}&$datarootdir&g' ;;
15344 # Neutralize VPATH when `$srcdir' = `.'.
15345 # Shell code in configure.ac might set extrasub.
15346 # FIXME: do we really want to maintain this feature?
15347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15348 ac_sed_extra="$ac_vpsub
15351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15353 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15354 s|@configure_input@|$ac_sed_conf_input|;t t
15355 s&@top_builddir@&$ac_top_builddir_sub&;t t
15356 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15357 s&@srcdir@&$ac_srcdir&;t t
15358 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15359 s&@top_srcdir@&$ac_top_srcdir&;t t
15360 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15361 s&@builddir@&$ac_builddir&;t t
15362 s&@abs_builddir@&$ac_abs_builddir&;t t
15363 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15364 s&@INSTALL@&$ac_INSTALL&;t t
15365 $ac_datarootdir_hack
15367 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15368 if $ac_cs_awk_getline; then
15369 $AWK -f "$tmp/subs.awk"
15371 $AWK -f "$tmp/subs.awk" | $SHELL
15373 || as_fn_error "could not create $ac_file" "$LINENO" 5
15375 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15376 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15377 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15379 which seems to be undefined. Please make sure it is defined." >&5
15380 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15381 which seems to be undefined. Please make sure it is defined." >&2;}
15385 -) cat "$tmp/out" && rm -f "$tmp/out";;
15386 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15388 || as_fn_error "could not create $ac_file" "$LINENO" 5
15396 case $ac_file$ac_mode in
15397 "Makefile":F) sed "$extrasub_build" Makefile |
15398 sed "$extrasub_host" |
15399 sed "$extrasub_target" > mf$$
15400 mv -f mf$$ Makefile ;;
15408 ac_clean_files=$ac_clean_files_save
15410 test $ac_write_fail = 0 ||
15411 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15414 # configure is writing to config.log, and then calls config.status.
15415 # config.status does its own redirection, appending to config.log.
15416 # Unfortunately, on DOS this fails, as config.log is still kept open
15417 # by configure, so config.status won't be able to write to it; its
15418 # output is simply discarded. So we exec the FD to /dev/null,
15419 # effectively closing config.log, so it can be properly (re)opened and
15420 # appended to by config.status. When coming back to configure, we
15421 # need to make the FD available again.
15422 if test "$no_create" != yes; then
15424 ac_config_status_args=
15425 test "$silent" = yes &&
15426 ac_config_status_args="$ac_config_status_args --quiet"
15428 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15430 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15431 # would make configure fail if this is the last instruction.
15432 $ac_cs_success || as_fn_exit $?
15434 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15436 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}