2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="move-if-change"
586 enable_option_checking
=no
587 ac_subst_vars
='LTLIBOBJS
594 MAINTAINER_MODE_FALSE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
686 DEBUG_PREFIX_CFLAGS_FOR_TARGET
687 SYSROOT_CFLAGS_FOR_TARGET
689 extra_host_zlib_configure_flags
690 extra_host_libiberty_configure_flags
697 extra_linker_plugin_flags
698 extra_linker_plugin_configure_flags
705 extra_isl_gmp_configure_flags
706 extra_mpc_mpfr_configure_flags
707 extra_mpc_gmp_configure_flags
708 extra_mpfr_configure_flags
757 TOPLEVEL_CONFIGURE_ARGUMENTS
785 program_transform_name
796 ac_subst_files
='serialization_dependencies
802 enable_option_checking
806 enable_as_accelerator_for
807 enable_offload_targets
808 enable_offload_defaulted
812 enable_compressed_debug_sections
813 enable_default_compressed_debug_sections_algorithm
816 enable_libquadmath_support
833 with_static_standard_libraries
840 enable_isl_version_check
842 enable_linker_plugin_configure_flags
843 enable_linker_plugin_flags
846 enable_stage1_languages
849 with_target_bdw_gc_include
850 with_target_bdw_gc_lib
851 with_gcc_major_version_only
853 with_debug_prefix_map
856 enable_serial_configure
857 with_build_time_tools
858 enable_maintainer_mode
859 enable_stage1_checking
862 ac_precious_vars
='build_alias
915 # Initialize some variables set by options.
917 ac_init_version
=false
918 ac_unrecognized_opts
=
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
929 program_transform_name
=s
,x
,x
,
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir
='${exec_prefix}/bin'
944 sbindir
='${exec_prefix}/sbin'
945 libexecdir
='${exec_prefix}/libexec'
946 datarootdir
='${prefix}/share'
947 datadir
='${datarootdir}'
948 sysconfdir
='${prefix}/etc'
949 sharedstatedir
='${prefix}/com'
950 localstatedir
='${prefix}/var'
951 includedir
='${prefix}/include'
952 oldincludedir
='/usr/include'
953 docdir
='${datarootdir}/doc/${PACKAGE}'
954 infodir
='${datarootdir}/info'
959 libdir
='${exec_prefix}/lib'
960 localedir
='${datarootdir}/locale'
961 mandir
='${datarootdir}/man'
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\
$ac_option
975 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980 # Accept the important Cygnus configure options, so we can diagnose typos.
982 case $ac_dashdash$ac_option in
986 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
988 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
991 -build |
--build |
--buil |
--bui |
--bu)
992 ac_prev
=build_alias
;;
993 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
994 build_alias
=$ac_optarg ;;
996 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
997 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
998 ac_prev
=cache_file
;;
999 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1000 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1001 cache_file
=$ac_optarg ;;
1003 --config-cache |
-C)
1004 cache_file
=config.cache
;;
1006 -datadir |
--datadir |
--datadi |
--datad)
1008 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1009 datadir
=$ac_optarg ;;
1011 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1012 |
--dataroo |
--dataro |
--datar)
1013 ac_prev
=datarootdir
;;
1014 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1015 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1016 datarootdir
=$ac_optarg ;;
1018 -disable-* |
--disable-*)
1019 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1022 as_fn_error $?
"invalid feature name: $ac_useropt"
1023 ac_useropt_orig
=$ac_useropt
1024 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_
$ac_useropt"
1029 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030 ac_unrecognized_sep
=', ';;
1032 eval enable_
$ac_useropt=no
;;
1034 -docdir |
--docdir |
--docdi |
--doc |
--do)
1036 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1037 docdir
=$ac_optarg ;;
1039 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1041 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1042 dvidir
=$ac_optarg ;;
1044 -enable-* |
--enable-*)
1045 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1048 as_fn_error $?
"invalid feature name: $ac_useropt"
1049 ac_useropt_orig
=$ac_useropt
1050 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_
$ac_useropt"
1055 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep
=', ';;
1058 eval enable_
$ac_useropt=\
$ac_optarg ;;
1060 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1061 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1062 |
--exec |
--exe |
--ex)
1063 ac_prev
=exec_prefix
;;
1064 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1065 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1066 |
--exec=* |
--exe=* |
--ex=*)
1067 exec_prefix
=$ac_optarg ;;
1069 -gas |
--gas |
--ga |
--g)
1070 # Obsolete; use --with-gas.
1073 -help |
--help |
--hel |
--he |
-h)
1074 ac_init_help
=long
;;
1075 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1076 ac_init_help
=recursive
;;
1077 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1078 ac_init_help
=short
;;
1080 -host |
--host |
--hos |
--ho)
1081 ac_prev
=host_alias
;;
1082 -host=* |
--host=* |
--hos=* |
--ho=*)
1083 host_alias
=$ac_optarg ;;
1085 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1087 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1089 htmldir
=$ac_optarg ;;
1091 -includedir |
--includedir |
--includedi |
--included |
--include \
1092 |
--includ |
--inclu |
--incl |
--inc)
1093 ac_prev
=includedir
;;
1094 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1095 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1096 includedir
=$ac_optarg ;;
1098 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1100 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1101 infodir
=$ac_optarg ;;
1103 -libdir |
--libdir |
--libdi |
--libd)
1105 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1106 libdir
=$ac_optarg ;;
1108 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1109 |
--libexe |
--libex |
--libe)
1110 ac_prev
=libexecdir
;;
1111 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1112 |
--libexe=* |
--libex=* |
--libe=*)
1113 libexecdir
=$ac_optarg ;;
1115 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1116 ac_prev
=localedir
;;
1117 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1118 localedir
=$ac_optarg ;;
1120 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1121 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1122 ac_prev
=localstatedir
;;
1123 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1124 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1125 localstatedir
=$ac_optarg ;;
1127 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1129 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1130 mandir
=$ac_optarg ;;
1132 -nfp |
--nfp |
--nf)
1133 # Obsolete; use --without-fp.
1136 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1137 |
--no-cr |
--no-c |
-n)
1140 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1141 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1144 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1145 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1146 |
--oldin |
--oldi |
--old |
--ol |
--o)
1147 ac_prev
=oldincludedir
;;
1148 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1149 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1150 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1151 oldincludedir
=$ac_optarg ;;
1153 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1155 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1156 prefix
=$ac_optarg ;;
1158 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1159 |
--program-pre |
--program-pr |
--program-p)
1160 ac_prev
=program_prefix
;;
1161 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1162 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1163 program_prefix
=$ac_optarg ;;
1165 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1166 |
--program-suf |
--program-su |
--program-s)
1167 ac_prev
=program_suffix
;;
1168 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1169 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1170 program_suffix
=$ac_optarg ;;
1172 -program-transform-name |
--program-transform-name \
1173 |
--program-transform-nam |
--program-transform-na \
1174 |
--program-transform-n |
--program-transform- \
1175 |
--program-transform |
--program-transfor \
1176 |
--program-transfo |
--program-transf \
1177 |
--program-trans |
--program-tran \
1178 |
--progr-tra |
--program-tr |
--program-t)
1179 ac_prev
=program_transform_name
;;
1180 -program-transform-name=* |
--program-transform-name=* \
1181 |
--program-transform-nam=* |
--program-transform-na=* \
1182 |
--program-transform-n=* |
--program-transform-=* \
1183 |
--program-transform=* |
--program-transfor=* \
1184 |
--program-transfo=* |
--program-transf=* \
1185 |
--program-trans=* |
--program-tran=* \
1186 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1187 program_transform_name
=$ac_optarg ;;
1189 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1191 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1192 pdfdir
=$ac_optarg ;;
1194 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1196 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1199 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1200 |
-silent |
--silent |
--silen |
--sile |
--sil)
1203 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1205 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1207 sbindir
=$ac_optarg ;;
1209 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1210 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1211 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1213 ac_prev
=sharedstatedir
;;
1214 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1215 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1216 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1218 sharedstatedir
=$ac_optarg ;;
1220 -site |
--site |
--sit)
1222 -site=* |
--site=* |
--sit=*)
1225 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1227 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1228 srcdir
=$ac_optarg ;;
1230 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1231 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1232 ac_prev
=sysconfdir
;;
1233 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1234 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1235 sysconfdir
=$ac_optarg ;;
1237 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1238 ac_prev
=target_alias
;;
1239 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1240 target_alias
=$ac_optarg ;;
1242 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1245 -version |
--version |
--versio |
--versi |
--vers |
-V)
1246 ac_init_version
=: ;;
1249 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1252 as_fn_error $?
"invalid package name: $ac_useropt"
1253 ac_useropt_orig
=$ac_useropt
1254 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1259 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260 ac_unrecognized_sep
=', ';;
1262 eval with_
$ac_useropt=\
$ac_optarg ;;
1264 -without-* |
--without-*)
1265 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1268 as_fn_error $?
"invalid package name: $ac_useropt"
1269 ac_useropt_orig
=$ac_useropt
1270 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1275 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276 ac_unrecognized_sep
=', ';;
1278 eval with_
$ac_useropt=no
;;
1281 # Obsolete; use --with-x.
1284 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1285 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1286 ac_prev
=x_includes
;;
1287 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1288 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1289 x_includes
=$ac_optarg ;;
1291 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1292 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1293 ac_prev
=x_libraries
;;
1294 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1295 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1296 x_libraries
=$ac_optarg ;;
1298 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1299 Try \`$0 --help' for more information"
1303 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 case $ac_envvar in #(
1306 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1307 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1309 eval $ac_envvar=\
$ac_optarg
1310 export $ac_envvar ;;
1313 # FIXME: should be removed in autoconf 3.0.
1314 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1316 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323 if test -n "$ac_prev"; then
1324 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1325 as_fn_error $?
"missing argument to $ac_option"
1328 if test -n "$ac_unrecognized_opts"; then
1329 case $enable_option_checking in
1331 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1332 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336 # Check all directory arguments for consistency.
1337 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1342 eval ac_val
=\$
$ac_var
1343 # Remove trailing slashes.
1346 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347 eval $ac_var=\
$ac_val;;
1349 # Be sure to have absolute directory names.
1351 [\\/$
]* | ?
:[\\/]* ) continue;;
1352 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1354 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1362 target
=$target_alias
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x
; then
1366 if test "x$build_alias" = x
; then
1367 cross_compiling
=maybe
1368 elif test "x$build_alias" != "x$host_alias"; then
1374 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1376 test "$silent" = yes && exec 6>/dev
/null
1379 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di
=`ls -di .` &&
1381 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1382 as_fn_error $?
"working directory cannot be determined"
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 as_fn_error $?
"pwd does not report name of working directory"
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389 ac_srcdir_defaulted
=yes
1390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir
=`$as_dirname -- "$as_myself" ||
1392 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393 X"$as_myself" : 'X\(//\)[^/]' \| \
1394 X"$as_myself" : 'X\(//\)$' \| \
1395 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396 $as_echo X"$as_myself" |
1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1419 ac_srcdir_defaulted
=no
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1423 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1425 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1437 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 as_fn_error $?
"path to source, $srcdir, contains spaces"
1444 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1446 for ac_var
in $ac_precious_vars; do
1447 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1449 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1460 \`configure' configures this package to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking ...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1518 --program-prefix=PREFIX prepend PREFIX to installed program names
1519 --program-suffix=SUFFIX append SUFFIX to installed program names
1520 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1523 --build=BUILD configure
for building on BUILD
[guessed
]
1524 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1525 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1529 if test -n "$ac_init_help"; then
1534 --disable-option-checking ignore unrecognized
--enable/--with options
1535 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1536 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1537 --enable-as-accelerator-for=ARG
1538 build as offload target compiler. Specify offload
1540 --enable-offload-targets=LIST
1541 enable offloading to devices from comma-separated
1542 LIST of TARGET
[=DIR
]. Use optional path to
find
1543 offload target compiler during the build
1544 --enable-offload-defaulted
1545 If enabled
, configured but not installed offload compilers and
1546 libgomp plugins are silently ignored. Useful
for distribution
1547 compilers where those are
in separate optional packages.
1549 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1550 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1551 --enable-gprofng[=ARG
] build gprofng
[ARG
={yes,no
}]
1552 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1553 Enable compressed debug sections
for gas
, gold or ld
1555 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1556 Default compression algorithm
for
1557 --enable-compressed-debug-sections.
1558 --enable-year2038 enable support
for timestamps past the year
2038
1559 --disable-libquadmath do not build libquadmath directory
1560 --disable-libquadmath-support
1561 disable libquadmath support
for Fortran
1562 --enable-libada build libada directory
1563 --enable-libgm2 build libgm2 directory
1564 --enable-libssp build libssp directory
1565 --disable-libstdcxx do not build libstdc
++-v3 directory
1566 --enable-bootstrap enable bootstrapping
[yes if native build
]
1567 --enable-pgo-build[=lto
]
1568 enable the PGO build
1569 --disable-isl-version-check
1570 disable check
for isl version
1571 --enable-lto enable link
time optimization support
1572 --enable-linker-plugin-configure-flags=FLAGS
1573 additional flags
for configuring linker plugins
1575 --enable-linker-plugin-flags=FLAGS
1576 additional flags
for configuring and building linker
1578 --enable-host-pie build position independent
host executables
1579 --enable-host-shared build
host code as shared libraries
1580 --enable-stage1-languages[=all
]
1581 choose additional languages to build during stage1.
1582 Mostly useful
for compiler development
1583 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1585 --enable-vtable-verify Enable vtable verification feature
1586 --enable-serial-[{host,target,build}-]configure
1587 force sequential configuration of sub-packages for
1588 the host, target or build machine, or all
1590 --enable-maintainer-mode
1591 enable make rules and dependencies not useful (and
1592 sometimes confusing) to the casual installer
1593 --enable-stage1-checking[=all]
1594 choose additional checking for stage1 of the
1596 --enable-werror enable -Werror in bootstrap stage2 and later
1599 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1600 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1601 --with-build-libsubdir=DIR Directory where to find libraries for build system
1602 --with-system-zlib use installed libz
1603 --with-zstd Support zstd compressed debug sections
1605 --with-mpc=PATH specify prefix directory for installed MPC package.
1606 Equivalent to --with-mpc-include=PATH/include plus
1607 --with-mpc-lib=PATH/lib
1608 --with-mpc-include=PATH specify directory for installed MPC include files
1609 --with-mpc-lib=PATH specify directory for the installed MPC library
1610 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1611 Equivalent to --with-mpfr-include=PATH/include plus
1612 --with-mpfr-lib=PATH/lib
1613 --with-mpfr-include=PATH
1614 specify directory for installed MPFR include files
1615 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1616 --with-gmp=PATH specify prefix directory for the installed GMP
1617 package. Equivalent to
1618 --with-gmp-include=PATH/include plus
1619 --with-gmp-lib=PATH/lib
1620 --with-gmp-include=PATH specify directory for installed GMP include files
1621 --with-gmp-lib=PATH specify directory for the installed GMP library
1622 --with-stage1-libs=LIBS libraries for stage1
1623 --with-static-standard-libraries
1624 use -static-libstdc++ and -static-libgcc
1626 --with-stage1-ldflags=FLAGS
1627 linker flags for stage1
1628 --with-boot-libs=LIBS libraries for stage2 and later
1629 --with-boot-ldflags=FLAGS
1630 linker flags for stage2 and later
1631 --with-isl=PATH Specify prefix directory for the installed isl
1632 package. Equivalent to
1633 --with-isl-include=PATH/include plus
1634 --with-isl-lib=PATH/lib
1635 --with-isl-include=PATH Specify directory for installed isl include files
1636 --with-isl-lib=PATH Specify the directory for the installed isl library
1637 --with-target-bdw-gc=PATHLIST
1638 specify prefix directory for installed bdw-gc
1639 package. Equivalent to
1640 --with-target-bdw-gc-include=PATH/include plus
1641 --with-target-bdw-gc-lib=PATH/lib
1642 --with-target-bdw-gc-include=PATHLIST
1643 specify directories for installed bdw-gc include
1645 --with-target-bdw-gc-lib=PATHLIST
1646 specify directories for installed bdw-gc library
1647 --with-gcc-major-version-only
1648 use only GCC major number in filesystem paths
1649 --with-build-sysroot=SYSROOT
1650 use sysroot as the system root during the build
1651 --with-debug-prefix-map='A
=B C
=D ...
'
1652 map A to B, C to D ... in debug information
1653 --with-build-config='NAME NAME2...
'
1654 use config/NAME.mk build configuration
1655 --with-build-time-tools=PATH
1656 use given path to find target tools during the build
1658 Some influential environment variables:
1659 CC C compiler command
1660 CFLAGS C compiler flags
1661 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1662 nonstandard directory <lib dir>
1663 LIBS libraries to pass to the linker, e.g. -l<library>
1664 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1665 you have headers in a nonstandard directory <include dir>
1666 CXX C++ compiler command
1667 CXXFLAGS C++ compiler flags
1669 additional configure arguments for build directories
1671 additional configure arguments for host directories
1673 additional configure arguments for target directories
1676 DLLTOOL DLLTOOL for the host
1677 DSYMUTIL DSYMUTIL for the host
1679 LIPO LIPO for the host
1681 RANLIB RANLIB for the host
1682 STRIP STRIP for the host
1683 WINDRES WINDRES for the host
1684 WINDMC WINDMC for the host
1685 OBJCOPY OBJCOPY for the host
1686 OBJDUMP OBJDUMP for the host
1687 OTOOL OTOOL for the host
1688 READELF READELF for the host
1696 GFORTRAN for the target
1708 DLLTOOL for the target
1710 DSYMUTIL for the target
1718 OBJCOPY for the target
1720 OBJDUMP for the target
1722 OTOOL for the target
1724 RANLIB for the target
1726 READELF for the target
1728 STRIP for the target
1730 WINDRES for the target
1732 WINDMC for the target
1734 Use these variables to override the choices made by `configure' or to
help
1735 it to
find libraries and programs with nonstandard names
/locations.
1737 Report bugs to the package provider.
1742 if test "$ac_init_help" = "recursive"; then
1743 # If there are subdirs, report their specific --help.
1744 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1745 test -d "$ac_dir" ||
1746 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1751 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1753 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1754 # A ".." for each directory in $ac_dir_suffix.
1755 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1756 case $ac_top_builddir_sub in
1757 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1758 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1761 ac_abs_top_builddir
=$ac_pwd
1762 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1763 # for backward compatibility:
1764 ac_top_builddir
=$ac_top_build_prefix
1767 .
) # We are building in place.
1769 ac_top_srcdir
=$ac_top_builddir_sub
1770 ac_abs_top_srcdir
=$ac_pwd ;;
1771 [\\/]* | ?
:[\\/]* ) # Absolute name.
1772 ac_srcdir
=$srcdir$ac_dir_suffix;
1773 ac_top_srcdir
=$srcdir
1774 ac_abs_top_srcdir
=$srcdir ;;
1776 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1777 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1778 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1780 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1782 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1783 # Check for guested configure.
1784 if test -f "$ac_srcdir/configure.gnu"; then
1786 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1787 elif test -f "$ac_srcdir/configure"; then
1789 $SHELL "$ac_srcdir/configure" --help=recursive
1791 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1793 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1797 test -n "$ac_init_help" && exit $ac_status
1798 if $ac_init_version; then
1801 generated by GNU Autoconf
2.69
1803 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1804 This configure
script is free software
; the Free Software Foundation
1805 gives unlimited permission to copy
, distribute and modify it.
1810 ## ------------------------ ##
1811 ## Autoconf initialization. ##
1812 ## ------------------------ ##
1814 # ac_fn_c_try_compile LINENO
1815 # --------------------------
1816 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_compile
()
1819 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1820 rm -f conftest.
$ac_objext
1821 if { { ac_try
="$ac_compile"
1823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_compile") 2>conftest.err
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest.$ac_objext; then :
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1850 } # ac_fn_c_try_compile
1852 # ac_fn_cxx_try_compile LINENO
1853 # ----------------------------
1854 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_cxx_try_compile ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 rm -f conftest.$ac_objext
1859 if { { ac_try="$ac_compile"
1861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1862 *) ac_try_echo
=$ac_try;;
1864 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_compile") 2>conftest.err
1868 if test -s conftest.err
; then
1869 grep -v '^ *+' conftest.err
>conftest.er1
1870 cat conftest.er1
>&5
1871 mv -f conftest.er1 conftest.err
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && {
1875 test -z "$ac_cxx_werror_flag" ||
1876 test ! -s conftest.err
1877 } && test -s conftest.
$ac_objext; then :
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.
$ac_ext >&5
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status
$ac_retval
1888 } # ac_fn_cxx_try_compile
1890 # ac_fn_cxx_try_link LINENO
1891 # -------------------------
1892 # Try to link conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_cxx_try_link
()
1895 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1896 rm -f conftest.
$ac_objext conftest
$ac_exeext
1897 if { { ac_try
="$ac_link"
1899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_link") 2>conftest.err
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest$ac_exeext && {
1916 test "$cross_compiling" = yes ||
1917 test -x conftest$ac_exeext
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1926 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928 # interfere with the next link command; also delete a directory that is
1929 # left behind by Apple's compiler. We do this before executing the actions.
1930 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
1934 } # ac_fn_cxx_try_link
1936 # ac_fn_c_try_link LINENO
1937 # -----------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded.
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 rm -f conftest.$ac_objext conftest$ac_exeext
1943 if { { ac_try="$ac_link"
1945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1946 *) ac_try_echo
=$ac_try;;
1948 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>conftest.err
1952 if test -s conftest.err
; then
1953 grep -v '^ *+' conftest.err
>conftest.er1
1954 cat conftest.er1
>&5
1955 mv -f conftest.er1 conftest.err
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && {
1959 test -z "$ac_c_werror_flag" ||
1960 test ! -s conftest.err
1961 } && test -s conftest
$ac_exeext && {
1962 test "$cross_compiling" = yes ||
1963 test -x conftest
$ac_exeext
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.
$ac_ext >&5
1972 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1973 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1974 # interfere with the next link command; also delete a directory that is
1975 # left behind by Apple's compiler. We do this before executing the actions.
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status
$ac_retval
1980 } # ac_fn_c_try_link
1981 cat >config.log
<<_ACEOF
1982 This file contains any messages produced by compilers while
1983 running configure, to aid debugging if configure makes a mistake.
1985 It was created by $as_me, which was
1986 generated by GNU Autoconf 2.69. Invocation command line was
1998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2010 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir
=.
2022 $as_echo "PATH: $as_dir"
2038 # Keep a trace of the command line.
2039 # Strip out --no-create and --no-recursion so they do not pile up.
2040 # Strip out --silent because we don't want to record it for future runs.
2041 # Also quote any args containing shell meta-characters.
2042 # Make two passes to allow for proper duplicate-argument suppression.
2046 ac_must_keep_next
=false
2052 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2053 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2054 |
-silent |
--silent |
--silen |
--sile |
--sil)
2057 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2060 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2062 as_fn_append ac_configure_args1
" '$ac_arg'"
2063 if test $ac_must_keep_next = true
; then
2064 ac_must_keep_next
=false
# Got value, back to normal.
2067 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2068 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2069 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2070 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2071 case "$ac_configure_args0 " in
2072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2075 -* ) ac_must_keep_next
=true
;;
2078 as_fn_append ac_configure_args
" '$ac_arg'"
2083 { ac_configure_args0
=; unset ac_configure_args0
;}
2084 { ac_configure_args1
=; unset ac_configure_args1
;}
2086 # When interrupted or exit'd, cleanup temporary files, and complete
2087 # config.log. We remove comments because anyway the quotes in there
2088 # would cause problems or look ugly.
2089 # WARNING: Use '\'' to represent an apostrophe within the trap.
2090 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2091 trap 'exit_status=$?
2092 # Save into config.log some information that might help in debugging.
2096 $as_echo "## ---------------- ##
2097 ## Cache variables. ##
2098 ## ---------------- ##"
2100 # The following way of writing the cache mishandles newlines in values,
2102 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2103 eval ac_val=\$$ac_var
2107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2108 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2111 _ | IFS | as_nl) ;; #(
2112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2113 *) { eval $ac_var=; unset $ac_var;} ;;
2118 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2119 *${as_nl}ac_space=\ *)
2121 "s/'\''/'\''\\\\'\'''\''/g;
2122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2132 $as_echo "## ----------------- ##
2133 ## Output variables. ##
2134 ## ----------------- ##"
2136 for ac_var in $ac_subst_vars
2138 eval ac_val=\$$ac_var
2140 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 $as_echo "$ac_var='\''$ac_val'\''"
2146 if test -n "$ac_subst_files"; then
2147 $as_echo "## ------------------- ##
2148 ## File substitutions. ##
2149 ## ------------------- ##"
2151 for ac_var
in $ac_subst_files
2153 eval ac_val
=\$
$ac_var
2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 $as_echo "$ac_var='\''$ac_val'\''"
2162 if test -s confdefs.h; then
2163 $as_echo "## ----------- ##
2170 test "$ac_signal" != 0 &&
2171 $as_echo "$as_me: caught signal $ac_signal"
2172 $as_echo "$as_me: exit $exit_status"
2174 rm -f core *.core core.conftest.* &&
2175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2178 for ac_signal
in 1 2 13 15; do
2179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2184 rm -f -r conftest
* confdefs.h
2186 $as_echo "/* confdefs.h */" > confdefs.h
2188 # Predefined preprocessor variables.
2190 cat >>confdefs.h
<<_ACEOF
2191 #define PACKAGE_NAME "$PACKAGE_NAME"
2194 cat >>confdefs.h
<<_ACEOF
2195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2198 cat >>confdefs.h
<<_ACEOF
2199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2202 cat >>confdefs.h
<<_ACEOF
2203 #define PACKAGE_STRING "$PACKAGE_STRING"
2206 cat >>confdefs.h
<<_ACEOF
2207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2210 cat >>confdefs.h
<<_ACEOF
2211 #define PACKAGE_URL "$PACKAGE_URL"
2215 # Let the site file select an alternate cache file if it wants to.
2216 # Prefer an explicitly selected file to automatically selected ones.
2219 if test -n "$CONFIG_SITE"; then
2220 # We do not want a PATH search for config.site.
2221 case $CONFIG_SITE in #((
2222 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2223 */*) ac_site_file1
=$CONFIG_SITE;;
2224 *) ac_site_file1
=.
/$CONFIG_SITE;;
2226 elif test "x$prefix" != xNONE
; then
2227 ac_site_file1
=$prefix/share
/config.site
2228 ac_site_file2
=$prefix/etc
/config.site
2230 ac_site_file1
=$ac_default_prefix/share
/config.site
2231 ac_site_file2
=$ac_default_prefix/etc
/config.site
2233 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2235 test "x$ac_site_file" = xNONE
&& continue
2236 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2238 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2239 sed 's/^/| /' "$ac_site_file" >&5
2241 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 as_fn_error $?
"failed to load site script $ac_site_file
2244 See \`config.log' for more details" "$LINENO" 5; }
2248 if test -r "$cache_file"; then
2249 # Some versions of bash will fail to source /dev/null (special files
2250 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2251 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2253 $as_echo "$as_me: loading cache $cache_file" >&6;}
2255 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2256 *) .
"./$cache_file";;
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2261 $as_echo "$as_me: creating cache $cache_file" >&6;}
2265 # Check that the precious variables saved in the cache have kept the same
2267 ac_cache_corrupted
=false
2268 for ac_var
in $ac_precious_vars; do
2269 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2270 eval ac_new_set
=\
$ac_env_${ac_var}_set
2271 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2272 eval ac_new_val
=\
$ac_env_${ac_var}_value
2273 case $ac_old_set,$ac_new_set in
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2276 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2277 ac_cache_corrupted
=: ;;
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2280 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2281 ac_cache_corrupted
=: ;;
2284 if test "x$ac_old_val" != "x$ac_new_val"; then
2285 # differences in whitespace do not lead to failure.
2286 ac_old_val_w
=`echo x $ac_old_val`
2287 ac_new_val_w
=`echo x $ac_new_val`
2288 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2290 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2291 ac_cache_corrupted
=:
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2294 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2295 eval $ac_var=\
$ac_old_val
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2298 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2300 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2303 # Pass precious variables to config.status.
2304 if test "$ac_new_set" = set; then
2306 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2307 *) ac_arg
=$ac_var=$ac_new_val ;;
2309 case " $ac_configure_args " in
2310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2311 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2315 if $ac_cache_corrupted; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2319 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2320 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2322 ## -------------------- ##
2323 ## Main body of script. ##
2324 ## -------------------- ##
2327 ac_cpp
='$CPP $CPPFLAGS'
2328 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2329 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2330 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2340 # if PWD already has a value, it is probably wrong.
2341 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2343 # Export original configure arguments for use by sub-configures.
2344 # Quote arguments with shell meta charatcers.
2345 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2346 set -- "$progname" "$@"
2350 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2351 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2352 # if the argument is of the form -foo=baz, quote the baz part only
2353 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2356 # Add the quoted argument to the list.
2357 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2359 if test "$silent" = yes; then
2360 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2362 # Remove the initial space we just introduced and, as these will be
2363 # expanded by make, quote '$'.
2364 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2367 # Find the build, host, and target systems.
2369 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2370 if test -f "$ac_dir/install-sh"; then
2372 ac_install_sh
="$ac_aux_dir/install-sh -c"
2374 elif test -f "$ac_dir/install.sh"; then
2376 ac_install_sh
="$ac_aux_dir/install.sh -c"
2378 elif test -f "$ac_dir/shtool"; then
2380 ac_install_sh
="$ac_aux_dir/shtool install -c"
2384 if test -z "$ac_aux_dir"; then
2385 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2388 # These three variables are undocumented and unsupported,
2389 # and are intended to be withdrawn in a future Autoconf release.
2390 # They can cause serious problems if a builder's source tree is in a directory
2391 # whose full name contains unusual characters.
2392 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2393 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2394 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2397 # Make sure we can run config.sub.
2398 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2399 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2402 $as_echo_n "checking build system type... " >&6; }
2403 if ${ac_cv_build+:} false
; then :
2404 $as_echo_n "(cached) " >&6
2406 ac_build_alias
=$build_alias
2407 test "x$ac_build_alias" = x
&&
2408 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2409 test "x$ac_build_alias" = x
&&
2410 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2411 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2412 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2416 $as_echo "$ac_cv_build" >&6; }
2417 case $ac_cv_build in
2419 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2422 ac_save_IFS
=$IFS; IFS
='-'
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2432 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2435 case ${build_alias} in
2436 "") build_noncanonical
=${build} ;;
2437 *) build_noncanonical
=${build_alias} ;;
2442 case ${host_alias} in
2443 "") host_noncanonical
=${build_noncanonical} ;;
2444 *) host_noncanonical
=${host_alias} ;;
2449 case ${target_alias} in
2450 "") target_noncanonical
=${host_noncanonical} ;;
2451 *) target_noncanonical
=${target_alias} ;;
2457 test "$host_noncanonical" = "$target_noncanonical" &&
2458 test "$program_prefix$program_suffix$program_transform_name" = \
2460 program_transform_name
=s
,y
,y
,
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2463 $as_echo_n "checking host system type... " >&6; }
2464 if ${ac_cv_host+:} false
; then :
2465 $as_echo_n "(cached) " >&6
2467 if test "x$host_alias" = x
; then
2468 ac_cv_host
=$ac_cv_build
2470 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2471 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2476 $as_echo "$ac_cv_host" >&6; }
2479 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2482 ac_save_IFS
=$IFS; IFS
='-'
2488 # Remember, the first character of IFS is used to create $*,
2489 # except with old shells:
2492 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2496 $as_echo_n "checking target system type... " >&6; }
2497 if ${ac_cv_target+:} false
; then :
2498 $as_echo_n "(cached) " >&6
2500 if test "x$target_alias" = x
; then
2501 ac_cv_target
=$ac_cv_host
2503 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2504 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2509 $as_echo "$ac_cv_target" >&6; }
2510 case $ac_cv_target in
2512 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2514 target
=$ac_cv_target
2515 ac_save_IFS
=$IFS; IFS
='-'
2521 # Remember, the first character of IFS is used to create $*,
2522 # except with old shells:
2525 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2528 # The aliases save the names the user supplied, while $host etc.
2529 # will get canonicalized.
2530 test -n "$target_alias" &&
2531 test "$program_prefix$program_suffix$program_transform_name" = \
2533 program_prefix
=${target_alias}-
2535 test "$program_prefix" != NONE
&&
2536 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2537 # Use a double $ so make ignores it.
2538 test "$program_suffix" != NONE
&&
2539 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2540 # Double any \ or $.
2541 # By default was `s,x,x', remove it if useless.
2542 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2543 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2547 # Get 'install' or 'install-sh' and its variants.
2548 # Find a good install program. We prefer a C program (faster),
2549 # so one script is as good as another. But avoid the broken or
2550 # incompatible versions:
2551 # SysV /etc/install, /usr/sbin/install
2552 # SunOS /usr/etc/install
2553 # IRIX /sbin/install
2555 # AmigaOS /C/install, which installs bootblocks on floppy discs
2556 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2557 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2558 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2559 # OS/2's system install, which has a completely different semantic
2560 # ./install, which can be erroneously created by make from ./install.sh.
2561 # Reject install programs that cannot install multiple files.
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2563 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2564 if test -z "$INSTALL"; then
2565 if ${ac_cv_path_install+:} false
; then :
2566 $as_echo_n "(cached) " >&6
2568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir
=.
2573 # Account for people who put trailing slashes in PATH elements.
2574 case $as_dir/ in #((
2575 .
/ | .
// |
/[cC
]/* | \
2576 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2577 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2580 # OSF1 and SCO ODT 3.0 have their own names for install.
2581 # Don't use installbsd from OSF since it installs stuff as root
2583 for ac_prog
in ginstall scoinst
install; do
2584 for ac_exec_ext
in '' $ac_executable_extensions; do
2585 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2586 if test $ac_prog = install &&
2587 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2588 # AIX install. It has an incompatible calling convention.
2590 elif test $ac_prog = install &&
2591 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2592 # program-specific install script used by HP pwplus--don't use.
2595 rm -rf conftest.one conftest.two conftest.dir
2596 echo one
> conftest.one
2597 echo two
> conftest.two
2599 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2600 test -s conftest.one
&& test -s conftest.two
&&
2601 test -s conftest.dir
/conftest.one
&&
2602 test -s conftest.dir
/conftest.two
2604 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2617 rm -rf conftest.one conftest.two conftest.dir
2620 if test "${ac_cv_path_install+set}" = set; then
2621 INSTALL
=$ac_cv_path_install
2623 # As a last resort, use the slow shell script. Don't cache a
2624 # value for INSTALL within a source directory, because that will
2625 # break other packages using the cache if that directory is
2626 # removed, or if the value is a relative name.
2627 INSTALL
=$ac_install_sh
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2631 $as_echo "$INSTALL" >&6; }
2633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2634 # It thinks the first close brace ends the variable substitution.
2635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2637 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2639 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2642 $as_echo_n "checking whether ln works... " >&6; }
2643 if ${acx_cv_prog_LN+:} false
; then :
2644 $as_echo_n "(cached) " >&6
2646 rm -f conftestdata_t
2647 echo >conftestdata_f
2648 if ln conftestdata_f conftestdata_t
2>/dev
/null
2654 rm -f conftestdata_f conftestdata_t
2657 if test $acx_cv_prog_LN = no
; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2660 $as_echo "no, using $LN" >&6; }
2662 LN
="$acx_cv_prog_LN"
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2664 $as_echo "yes" >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2668 $as_echo_n "checking whether ln -s works... " >&6; }
2670 if test "$LN_S" = "ln -s"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2672 $as_echo "yes" >&6; }
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2675 $as_echo "no, using $LN_S" >&6; }
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2679 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2680 if ${ac_cv_path_SED+:} false
; then :
2681 $as_echo_n "(cached) " >&6
2683 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2684 for ac_i
in 1 2 3 4 5 6 7; do
2685 ac_script
="$ac_script$as_nl$ac_script"
2687 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2688 { ac_script
=; unset ac_script
;}
2689 if test -z "$SED"; then
2690 ac_path_SED_found
=false
2691 # Loop through the user's path and test for each of PROGNAME-LIST
2692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir
=.
2697 for ac_prog
in sed gsed
; do
2698 for ac_exec_ext
in '' $ac_executable_extensions; do
2699 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2700 as_fn_executable_p
"$ac_path_SED" ||
continue
2701 # Check for GNU ac_path_SED and select it if it is found.
2702 # Check for GNU $ac_path_SED
2703 case `"$ac_path_SED" --version 2>&1` in
2705 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2708 $as_echo_n 0123456789 >"conftest.in"
2711 cat "conftest.in" "conftest.in" >"conftest.tmp"
2712 mv "conftest.tmp" "conftest.in"
2713 cp "conftest.in" "conftest.nl"
2714 $as_echo '' >> "conftest.nl"
2715 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2716 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2717 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2718 if test $ac_count -gt ${ac_path_SED_max-0}; then
2719 # Best one so far, save it but keep looking for a better one
2720 ac_cv_path_SED
="$ac_path_SED"
2721 ac_path_SED_max
=$ac_count
2723 # 10*(2^10) chars as input seems more than enough
2724 test $ac_count -gt 10 && break
2726 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2729 $ac_path_SED_found && break 3
2734 if test -z "$ac_cv_path_SED"; then
2735 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2743 $as_echo "$ac_cv_path_SED" >&6; }
2744 SED
="$ac_cv_path_SED"
2747 for ac_prog
in gawk mawk nawk
awk
2749 # Extract the first word of "$ac_prog", so it can be a program name with args.
2750 set dummy
$ac_prog; ac_word
=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if ${ac_cv_prog_AWK+:} false
; then :
2754 $as_echo_n "(cached) " >&6
2756 if test -n "$AWK"; then
2757 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir
=.
2764 for ac_exec_ext
in '' $ac_executable_extensions; do
2765 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_AWK
="$ac_prog"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 if test -n "$AWK"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2779 $as_echo "$AWK" >&6; }
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2786 test -n "$AWK" && break
2790 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2792 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2794 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2795 INSTALL
="${srcpwd}/install-sh -c"
2798 # Set srcdir to "." if that's what it is.
2799 # This is important for multilib support.
2801 if test "${pwd}" = "${srcpwd}" ; then
2809 ### To add a new directory to the tree, first choose whether it is a target
2810 ### or a host dependent tool. Then put it into the appropriate list
2811 ### (library or tools, host or target), doing a dependency sort.
2813 # Subdirs will be configured in the order listed in build_configdirs,
2814 # configdirs, or target_configdirs; see the serialization section below.
2816 # Dependency sorting is only needed when *configuration* must be done in
2817 # a particular order. In all cases a dependency should be specified in
2818 # the Makefile, whether or not it's implicitly specified here.
2820 # Double entries in build_configdirs, configdirs, or target_configdirs may
2821 # cause circular dependencies and break everything horribly.
2823 # these library is used by various programs built for the build
2826 build_libs
="build-libiberty build-libcpp"
2828 # these tools are built for the build environment
2829 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2831 # these libraries are used by various programs built for the host environment
2833 host_libs
="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2835 # these tools are built for the host environment
2836 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2837 # know that we are building the simulator.
2838 # binutils, gas and ld appear in that order because it makes sense to run
2839 # "make check" in that particular order.
2840 # If --enable-gold is used, "gold" may replace "ld".
2841 host_tools
="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
2843 # these libraries are built for the target environment, and are built after
2844 # the host libraries and the host tools (which may be a cross compiler)
2845 # Note that libiberty is not a target library.
2846 target_libraries
="target-libgcc \
2847 target-libbacktrace \
2853 target-libstdc++-v3 \
2854 target-libsanitizer \
2857 target-libquadmath \
2858 target-libgfortran \
2868 # these tools are built using the target libraries, and are intended to
2869 # run only in the target environment
2871 # note: any program that *uses* libraries that are in the "target_libraries"
2872 # list belongs in this list.
2874 target_tools
="target-rda"
2876 ################################################################################
2878 ## All tools belong in one of the four categories, and are assigned above
2879 ## We assign ${configdirs} this way to remove all embedded newlines. This
2880 ## is important because configure will choke if they ever get through.
2881 ## ${configdirs} is directories we build using the host tools.
2882 ## ${target_configdirs} is directories we build using the target tools.
2883 configdirs
=`echo ${host_libs} ${host_tools}`
2884 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2885 build_configdirs
=`echo ${build_libs} ${build_tools}`
2889 ################################################################################
2891 srcname
="gnu development package"
2893 # This gets set non-empty for some net releases of packages.
2896 # Define is_cross_compiler to save on calls to 'test'.
2898 if test x
"${host}" = x
"${target}" ; then
2899 is_cross_compiler
=no
2901 is_cross_compiler
=yes
2904 # Find the build and target subdir names.
2906 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2907 # have matching libraries, they should use host libraries: Makefile.tpl
2908 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2909 # However, they still use the build modules, because the corresponding
2910 # host modules (e.g. bison) are only built for the host when bootstrap
2912 # - build_subdir is where we find build modules, and never changes.
2913 # - build_libsubdir is where we find build libraries, and can be overridden.
2915 # Prefix 'build-' so this never conflicts with target_subdir.
2916 build_subdir
="build-${build_noncanonical}"
2918 # Check whether --with-build-libsubdir was given.
2919 if test "${with_build_libsubdir+set}" = set; then :
2920 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2922 build_libsubdir
="$build_subdir"
2925 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2926 if ( test $srcdir = .
&& test -d gcc
) \
2927 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2928 host_subdir
="host-${host_noncanonical}"
2933 target_subdir
=${target_noncanonical}
2935 # Be sure to cover against remnants of an in-tree build.
2936 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2937 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2938 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2941 # Skipdirs are removed silently.
2943 # Noconfigdirs are removed loudly.
2947 # Make sure we don't let GNU ld be added if we didn't want it.
2948 if test x
$with_gnu_ld = xno
; then
2950 noconfigdirs
="$noconfigdirs ld gold"
2954 # Make sure we don't let GNU as be added if we didn't want it.
2955 if test x
$with_gnu_as = xno
; then
2957 noconfigdirs
="$noconfigdirs gas"
2962 # Check whether --with-system-zlib was given.
2963 if test "${with_system_zlib+set}" = set; then :
2964 withval
=$with_system_zlib;
2967 # Make sure we don't let ZLIB be added if we didn't want it.
2968 if test x
$with_system_zlib = xyes
; then
2969 use_included_zlib
=no
2970 noconfigdirs
="$noconfigdirs zlib"
2973 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2975 if test x
$with_system_readline = xyes
; then
2976 noconfigdirs
="$noconfigdirs readline"
2980 # Check whether --with-zstd was given.
2981 if test "${with_zstd+set}" = set; then :
2986 # some tools are so dependent upon X11 that if we're not building with X,
2987 # it's not even worth trying to configure, much less build, that tool.
2990 yes |
"") ;; # the default value for this tree is that X11 is available
2992 skipdirs
="${skipdirs} tk itcl libgui"
2993 # We won't be able to build gdbtk without X.
2996 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2999 # Some are only suitable for cross toolchains.
3000 # Remove these if host=target.
3001 cross_only
="target-libgloss target-newlib target-opcodes"
3003 case $is_cross_compiler in
3004 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
3007 # If both --with-headers and --with-libs are specified, default to
3009 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
3010 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
3011 if test x
"${with_newlib}" = x
; then
3016 # Recognize --with-newlib/--without-newlib.
3017 case ${with_newlib} in
3018 no
) skipdirs
="${skipdirs} target-newlib" ;;
3019 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3022 # Check whether --enable-as-accelerator-for was given.
3023 if test "${enable_as_accelerator_for+set}" = set; then :
3024 enableval
=$enable_as_accelerator_for;
3028 # Check whether --enable-offload-targets was given.
3029 if test "${enable_offload_targets+set}" = set; then :
3030 enableval
=$enable_offload_targets;
3031 if test x
"$enable_offload_targets" = x
; then
3032 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3036 enable_offload_targets
=
3040 # Check whether --enable-offload-defaulted was given.
3041 if test "${enable_offload_defaulted+set}" = set; then :
3042 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3044 enable_offload_defaulted
=
3048 # Handle --enable-gold, --enable-ld.
3049 # --disable-gold [--enable-ld]
3050 # Build only ld. Default option.
3051 # --enable-gold [--enable-ld]
3052 # Build both gold and ld. Install gold as "ld.gold", install ld
3053 # as "ld.bfd" and "ld".
3054 # --enable-gold=default [--enable-ld]
3055 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3056 # install ld as "ld.bfd".
3057 # --enable-gold[=default] --disable-ld
3058 # Build only gold, which is then installed as both "ld.gold" and "ld".
3059 # --enable-gold --enable-ld=default
3060 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3062 # In other words, ld is default
3063 # --enable-gold=default --enable-ld=default
3067 # Check whether --enable-gold was given.
3068 if test "${enable_gold+set}" = set; then :
3069 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3074 case "${ENABLE_GOLD}" in
3076 # Check for ELF target.
3079 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3080 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3081 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3082 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl* |
*-*-haiku*)
3084 *-*-linux*aout
* |
*-*-linux*oldld
*)
3092 if test "$is_elf" = "yes"; then
3093 # Check for target supported by gold.
3095 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3096 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3097 configdirs
="$configdirs gold"
3098 if test x
${ENABLE_GOLD} = xdefault
; then
3109 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3113 # Check whether --enable-ld was given.
3114 if test "${enable_ld+set}" = set; then :
3115 enableval
=$enable_ld; ENABLE_LD
=$enableval
3121 case "${ENABLE_LD}" in
3123 if test x
${default_ld} != x
; then
3124 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3130 if test x
${ENABLE_GOLD} != xyes
; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3132 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3134 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3137 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3141 # Check whether --enable-gprofng was given.
3142 if test "${enable_gprofng+set}" = set; then :
3143 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3148 if test "$enable_gprofng" = "yes"; then
3150 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux*)
3151 configdirs
="$configdirs gprofng"
3158 # Decide the default method for compressing debug sections.
3159 # Provide a configure time option to override our default.
3160 # Check whether --enable-compressed_debug_sections was given.
3161 if test "${enable_compressed_debug_sections+set}" = set; then :
3162 enableval
=$enable_compressed_debug_sections;
3163 if test x
"$enable_compressed_debug_sections" = xyes
; then
3164 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3168 enable_compressed_debug_sections
=
3172 # Select default compression algorithm.
3173 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3174 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3175 enableval
=$enable_default_compressed_debug_sections_algorithm;
3177 default_compressed_debug_sections_algorithm
=
3181 # Configure extra directories which are host specific
3185 configdirs
="$configdirs libtermcap" ;;
3188 # A target can indicate whether a language isn't supported for some reason.
3189 # Only spaces may be used in this macro; not newlines or tabs.
3190 unsupported_languages
=
3192 # Remove more programs from consideration, based on the host or
3193 # target this usually means that a port of the program doesn't
3197 i
[3456789]86-*-msdosdjgpp*)
3198 noconfigdirs
="$noconfigdirs tcl tk itcl"
3202 # Default to --disable-year2038 until we can handle differences between
3203 # projects that use gnulib (which understands year 2038) and projects that
3204 # do not (like BFD).
3205 # Check whether --enable-year2038 was given.
3206 if test "${enable_year2038+set}" = set; then :
3207 enableval
=$enable_year2038; ENABLE_YEAR2038
=$enableval
3213 if test "${ENABLE_YEAR2038}" = "no" ; then
3217 # Check whether --enable-libquadmath was given.
3218 if test "${enable_libquadmath+set}" = set; then :
3219 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3221 ENABLE_LIBQUADMATH
=yes
3224 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3225 noconfigdirs
="$noconfigdirs target-libquadmath"
3229 # Check whether --enable-libquadmath-support was given.
3230 if test "${enable_libquadmath_support+set}" = set; then :
3231 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3233 ENABLE_LIBQUADMATH_SUPPORT
=yes
3236 enable_libquadmath_support
=
3237 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3238 enable_libquadmath_support
=no
3242 # Check whether --enable-libada was given.
3243 if test "${enable_libada+set}" = set; then :
3244 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3249 if test "${ENABLE_LIBADA}" != "yes" ; then
3250 noconfigdirs
="$noconfigdirs gnattools"
3253 # Check whether --enable-libgm2 was given.
3254 if test "${enable_libgm2+set}" = set; then :
3255 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3260 if test "${ENABLE_LIBGM2}" != "yes" ; then
3261 noconfigdirs
="$noconfigdirs gm2tools"
3264 # Check whether --enable-libssp was given.
3265 if test "${enable_libssp+set}" = set; then :
3266 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3272 # Check whether --enable-libstdcxx was given.
3273 if test "${enable_libstdcxx+set}" = set; then :
3274 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3276 ENABLE_LIBSTDCXX
=default
3279 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3280 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3283 # Enable libgomp by default on hosted POSIX systems, and a few others.
3284 if test x
$enable_libgomp = x
; then
3286 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3288 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3290 *-*-solaris2* |
*-*-hpux11*)
3292 *-*-darwin* |
*-*-aix*)
3294 nvptx
*-*-* | amdgcn
*-*-*)
3297 noconfigdirs
="$noconfigdirs target-libgomp"
3302 # Disable libatomic on unsupported systems.
3303 if test -d ${srcdir}/libatomic
; then
3304 if test x
$enable_libatomic = x
; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3306 $as_echo_n "checking for libatomic support... " >&6; }
3307 if (srcdir
=${srcdir}/libatomic
; \
3308 .
${srcdir}/configure.tgt
; \
3309 test -n "$UNSUPPORTED")
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 noconfigdirs
="$noconfigdirs target-libatomic"
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3321 # Disable libitm on unsupported systems.
3322 if test -d ${srcdir}/libitm
; then
3323 if test x
$enable_libitm = x
; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3325 $as_echo_n "checking for libitm support... " >&6; }
3326 if (srcdir
=${srcdir}/libitm
; \
3327 .
${srcdir}/configure.tgt
; \
3328 test -n "$UNSUPPORTED")
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 noconfigdirs
="$noconfigdirs target-libitm"
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3340 # Disable libsanitizer on unsupported systems.
3341 if test -d ${srcdir}/libsanitizer
; then
3342 if test x
$enable_libsanitizer = x
; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3344 $as_echo_n "checking for libsanitizer support... " >&6; }
3345 if (srcdir
=${srcdir}/libsanitizer
; \
3346 .
${srcdir}/configure.tgt
; \
3347 test -n "$UNSUPPORTED")
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 noconfigdirs
="$noconfigdirs target-libsanitizer"
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354 $as_echo "yes" >&6; }
3359 # Disable libvtv on unsupported systems.
3360 if test -d ${srcdir}/libvtv
; then
3361 if test x
$enable_libvtv = x
; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3363 $as_echo_n "checking for libvtv support... " >&6; }
3364 if (srcdir
=${srcdir}/libvtv
; \
3365 .
${srcdir}/configure.tgt
; \
3366 test "$VTV_SUPPORTED" != "yes")
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 noconfigdirs
="$noconfigdirs target-libvtv"
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373 $as_echo "yes" >&6; }
3378 # Disable libquadmath for some systems.
3381 noconfigdirs
="$noconfigdirs target-libquadmath"
3383 # libquadmath is unused on AIX and libquadmath build process use of
3384 # LD_LIBRARY_PATH can break AIX bootstrap.
3385 powerpc-
*-aix* | rs6000-
*-aix*)
3386 noconfigdirs
="$noconfigdirs target-libquadmath"
3390 # Disable libssp for some systems.
3393 # No hosted I/O support.
3394 noconfigdirs
="$noconfigdirs target-libssp"
3397 noconfigdirs
="$noconfigdirs target-libssp"
3399 powerpc-
*-aix* | rs6000-
*-aix*)
3400 noconfigdirs
="$noconfigdirs target-libssp"
3403 # No hosted I/O support.
3404 noconfigdirs
="$noconfigdirs target-libssp"
3407 # libssp uses a misaligned load to trigger a fault, but the RL78
3408 # doesn't fault for those - instead, it gives a build-time error
3409 # for explicit misaligned loads.
3410 noconfigdirs
="$noconfigdirs target-libssp"
3413 # No hosted I/O support.
3414 noconfigdirs
="$noconfigdirs target-libssp"
3418 # Disable libstdc++-v3 for some systems.
3419 # Allow user to override this if they pass --enable-libstdcxx
3420 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3423 # VxWorks uses the Dinkumware C++ library.
3424 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3427 # Not ported/fails to build when using newlib.
3428 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3431 # the C++ libraries don't build on top of CE's C libraries
3432 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3435 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3438 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3441 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3446 # Disable C++ on systems where it is known to not work.
3447 # For testing, you can override this with --enable-languages=c++.
3448 case ,${enable_languages}, in
3454 unsupported_languages
="$unsupported_languages c++"
3460 # Disable Objc on systems where it is known to not work.
3461 # For testing, you can override this with --enable-languages=objc.
3462 case ,${enable_languages}, in
3468 unsupported_languages
="$unsupported_languages objc"
3474 # Disable D on systems where it is known to not work.
3475 # For testing, you can override this with --enable-languages=d.
3476 case ,${enable_languages}, in
3482 unsupported_languages
="$unsupported_languages d"
3488 # Disable libphobos on unsupported systems.
3489 # For testing, you can override this with --enable-libphobos.
3490 if test -d ${srcdir}/libphobos
; then
3491 if test x
$enable_libphobos = x
; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3493 $as_echo_n "checking for libphobos support... " >&6; }
3494 if (srcdir
=${srcdir}/libphobos
; \
3495 .
${srcdir}/configure.tgt
; \
3496 test "$LIBPHOBOS_SUPPORTED" != "yes")
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3500 noconfigdirs
="$noconfigdirs target-libphobos"
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3503 $as_echo "yes" >&6; }
3508 # Disable Fortran for some systems.
3511 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3512 unsupported_languages
="$unsupported_languages fortran"
3515 unsupported_languages
="$unsupported_languages fortran"
3519 # Disable libffi for some systems.
3523 i
[3456789]86-*-darwin*)
3525 x86_64-
*-darwin[912]*)
3528 noconfigdirs
="$noconfigdirs target-libffi"
3531 noconfigdirs
="$noconfigdirs target-libffi"
3534 noconfigdirs
="$noconfigdirs target-libffi"
3537 noconfigdirs
="$noconfigdirs target-libffi"
3540 noconfigdirs
="$noconfigdirs target-libffi"
3543 noconfigdirs
="$noconfigdirs target-libffi"
3546 noconfigdirs
="$noconfigdirs target-libffi"
3548 aarch64
*-*-freebsd*)
3549 noconfigdirs
="$noconfigdirs target-libffi"
3552 noconfigdirs
="$noconfigdirs target-libffi"
3555 noconfigdirs
="$noconfigdirs target-libffi"
3558 noconfigdirs
="$noconfigdirs target-libffi"
3561 noconfigdirs
="$noconfigdirs target-libffi"
3564 noconfigdirs
="$noconfigdirs target-libffi"
3566 cris-
*-* | crisv32-
*-*)
3570 *) # See PR46792 regarding target-libffi.
3571 noconfigdirs
="$noconfigdirs target-libffi";;
3575 noconfigdirs
="$noconfigdirs target-libffi"
3580 noconfigdirs
="$noconfigdirs target-libffi"
3583 noconfigdirs
="$noconfigdirs target-libffi"
3585 i
[3456789]86-w64-mingw*)
3586 noconfigdirs
="$noconfigdirs target-libffi"
3588 i
[3456789]86-*-mingw*)
3589 noconfigdirs
="$noconfigdirs target-libffi"
3592 noconfigdirs
="$noconfigdirs target-libffi"
3595 noconfigdirs
="$noconfigdirs target-libffi"
3602 noconfigdirs
="$noconfigdirs target-libffi"
3605 noconfigdirs
="$noconfigdirs target-libffi"
3609 # Disable the go frontend on systems where it is known to not work. Please keep
3610 # this in sync with contrib/config-list.mk.
3612 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3613 unsupported_languages
="$unsupported_languages go"
3617 # Only allow gdbserver on some systems.
3618 if test -d ${srcdir}/gdbserver
; then
3619 if test x
$enable_gdbserver = x
; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3621 $as_echo_n "checking for gdbserver support... " >&6; }
3622 if (srcdir
=${srcdir}/gdbserver
; \
3623 .
${srcdir}/configure.srv
; \
3624 test -n "$UNSUPPORTED")
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 noconfigdirs
="$noconfigdirs gdbserver"
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3631 $as_echo "yes" >&6; }
3636 # Disable libgo for some systems where it is known to not work.
3637 # For testing, you can easily override this with --enable-libgo.
3638 if test x
$enable_libgo = x
; then
3642 noconfigdirs
="$noconfigdirs target-libgo"
3644 *-*-cygwin* |
*-*-mingw*)
3645 noconfigdirs
="$noconfigdirs target-libgo"
3648 noconfigdirs
="$noconfigdirs target-libgo"
3653 # Default libgloss CPU subdirectory.
3654 libgloss_dir
="$target_cpu"
3657 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3661 libgloss_dir
=aarch64
3666 cris-
*-* | crisv32-
*-*)
3676 libgloss_dir
=loongarch
3678 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3679 libgloss_dir
=m68hc11
3681 m68
*-*-* | fido-
*-*)
3698 # Disable newlib and libgloss for various target OSes.
3701 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3703 i
[3456789]86-*-linux*)
3704 # This section makes it possible to build newlib natively on linux.
3705 # If we are using a cross compiler then don't configure newlib.
3706 if test x
${is_cross_compiler} != xno
; then
3707 noconfigdirs
="$noconfigdirs target-newlib"
3709 noconfigdirs
="$noconfigdirs target-libgloss"
3710 # If we are not using a cross compiler, do configure newlib.
3711 # Note however, that newlib will only be configured in this situation
3712 # if the --with-newlib option has been given, because otherwise
3713 # 'target-newlib' will appear in skipdirs.
3715 i
[3456789]86-*-rdos*)
3716 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3718 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3719 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3722 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3725 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3728 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3731 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3734 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3737 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3740 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3742 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3743 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3746 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3749 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3752 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3755 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3758 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3761 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3764 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3772 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3773 noconfigdirs
="$noconfigdirs sim target-rda"
3778 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3779 noconfigdirs
="$noconfigdirs sim target-rda"
3782 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3783 noconfigdirs
="$noconfigdirs sim target-rda"
3785 i
[3456789]86-*-darwin*)
3786 noconfigdirs
="$noconfigdirs ld gprof"
3787 noconfigdirs
="$noconfigdirs sim target-rda"
3789 x86_64-
*-darwin[912]*)
3790 noconfigdirs
="$noconfigdirs ld gas gprof"
3791 noconfigdirs
="$noconfigdirs sim target-rda"
3794 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3795 noconfigdirs
="$noconfigdirs sim target-rda"
3800 if test "x$with_gmp" = x \
3801 && ! test -d ${srcdir}/gmp \
3802 && test -f /usr
/local
/include
/gmp.h
; then
3807 # Remove unsupported stuff on all kaOS configurations.
3808 noconfigdirs
="$noconfigdirs target-libgloss"
3815 noconfigdirs
="$noconfigdirs target-libgloss"
3818 noconfigdirs
="$noconfigdirs target-libgloss"
3820 # The tpf target doesn't support gdb yet.
3822 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3825 noconfigdirs
="$noconfigdirs target-rda"
3830 # ld works, but does not support shared libraries.
3831 # gas doesn't generate exception information.
3832 noconfigdirs
="$noconfigdirs gas ld"
3835 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3838 # newlib is not 64 bit ready
3839 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3842 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3844 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3845 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3848 noconfigdirs
="$noconfigdirs sim"
3851 noconfigdirs
="$noconfigdirs target-libgloss"
3854 noconfigdirs
="$noconfigdirs ld target-libgloss"
3857 if test x
${with_avrlibc} != xno
; then
3858 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3861 c4x-
*-* | tic4x-
*-*)
3862 noconfigdirs
="$noconfigdirs target-libgloss"
3865 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3868 noconfigdirs
="$noconfigdirs target-libgloss"
3871 noconfigdirs
="$noconfigdirs gdb"
3874 noconfigdirs
="$noconfigdirs gdb"
3877 noconfigdirs
="$noconfigdirs target-rda gprof"
3880 noconfigdirs
="$noconfigdirs"
3883 noconfigdirs
="$noconfigdirs target-libgloss"
3886 noconfigdirs
="$noconfigdirs target-libgloss"
3888 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3891 noconfigdirs
="$noconfigdirs gdb"
3894 noconfigdirs
="$noconfigdirs gdb ld"
3902 hppa
*-*-openbsd* | \
3908 noconfigdirs
="$noconfigdirs ld"
3911 noconfigdirs
="$noconfigdirs gdb"
3914 # No gdb support yet.
3915 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3918 # No ld support yet.
3919 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3922 # No ld support yet.
3923 noconfigdirs
="$noconfigdirs libgui itcl ld"
3925 i
[3456789]86-w64-mingw*)
3927 i
[3456789]86-*-mingw*)
3928 target_configdirs
="$target_configdirs target-winsup"
3931 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3932 noconfigdirs
="$noconfigdirs target-libgloss"
3933 # always build newlib if winsup directory is present.
3934 if test -d "$srcdir/winsup/cygwin"; then
3935 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3936 elif test -d "$srcdir/newlib"; then
3937 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3941 noconfigdirs
="$noconfigdirs target-libgloss"
3943 i
[3456789]86-*-sco3.2v5
*)
3944 # The linker does not yet know about weak symbols in COFF,
3945 # and is not configured to handle mixed ELF and COFF.
3946 noconfigdirs
="$noconfigdirs ld target-libgloss"
3948 i
[3456789]86-*-sco*)
3949 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3951 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3952 noconfigdirs
="$noconfigdirs target-libgloss"
3954 i
[3456789]86-*-sysv4*)
3955 noconfigdirs
="$noconfigdirs target-libgloss"
3957 i
[3456789]86-*-beos*)
3958 noconfigdirs
="$noconfigdirs gdb"
3960 i
[3456789]86-*-rdos*)
3961 noconfigdirs
="$noconfigdirs gdb"
3964 noconfigdirs
="$noconfigdirs gdb"
3967 noconfigdirs
="$noconfigdirs sim"
3970 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3971 noconfigdirs
="$noconfigdirs $target_libraries"
3974 noconfigdirs
="$noconfigdirs gdb gprof"
3977 # copied from rs6000-*-* entry
3978 noconfigdirs
="$noconfigdirs gprof"
3980 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3981 target_configdirs
="$target_configdirs target-winsup"
3982 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3983 # always build newlib.
3984 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3986 # This is temporary until we can link against shared libraries
3987 powerpcle-
*-solaris*)
3988 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3991 noconfigdirs
="$noconfigdirs gdb"
3994 noconfigdirs
="$noconfigdirs gprof"
3997 noconfigdirs
="$noconfigdirs gprof"
4000 noconfigdirs
="$noconfigdirs gprof"
4003 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
4006 noconfigdirs
="$noconfigdirs gprof"
4008 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4009 if test x
$with_newlib = xyes
; then
4010 noconfigdirs
="$noconfigdirs gprof"
4014 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4017 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4020 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4024 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4025 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4026 noconfigdirs
="$noconfigdirs ld gas gprof"
4029 noconfigdirs
="$noconfigdirs gprof"
4032 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4039 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4043 if test x
${is_cross_compiler} = xno
; then
4048 noconfigdirs
="$noconfigdirs sim"
4050 tilepro
*-*-* | tilegx
*-*-*)
4051 noconfigdirs
="$noconfigdirs sim"
4054 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4057 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4060 noconfigdirs
="$noconfigdirs ld"
4062 loongarch
*-*-linux*)
4065 noconfigdirs
="$noconfigdirs gprof"
4069 # If we aren't building newlib, then don't build libgloss, since libgloss
4070 # depends upon some newlib header files.
4071 case "${noconfigdirs}" in
4072 *target-libgloss
*) ;;
4073 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4076 # Work in distributions that contain no compiler tools, like Autoconf.
4077 host_makefile_frag
=/dev
/null
4078 if test -d ${srcdir}/config
; then
4080 i
[3456789]86-*-msdosdjgpp*)
4081 host_makefile_frag
="config/mh-djgpp"
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4086 $as_echo_n "checking to see if cat works as expected... " >&6; }
4087 echo a
>cygwin-cat-check
4088 if test `cat cygwin-cat-check` = a
; then
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4091 $as_echo "yes" >&6; }
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4096 as_fn_error $?
"The cat command does not ignore carriage return characters.
4097 Please either mount the build directory in binary mode or run the following
4098 commands before running any configure script:
4104 host_makefile_frag
="config/mh-cygwin"
4107 host_makefile_frag
="config/mh-mingw"
4110 host_makefile_frag
="config/mh-alpha-linux"
4113 host_makefile_frag
="config/mh-pa"
4116 host_makefile_frag
="config/mh-pa"
4118 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4119 host_makefile_frag
="config/mh-darwin"
4122 host_makefile_frag
="config/mh-ppc-aix"
4125 host_makefile_frag
="config/mh-ppc-aix"
4130 if test "${build}" != "${host}" ; then
4131 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4132 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4133 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4134 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4135 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4136 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4137 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4138 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4139 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4140 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4141 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4142 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4143 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4144 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4145 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4147 AR_FOR_BUILD
="\$(AR)"
4148 AS_FOR_BUILD
="\$(AS)"
4149 CC_FOR_BUILD
="\$(CC)"
4150 CXX_FOR_BUILD
="\$(CXX)"
4151 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4152 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4153 GOC_FOR_BUILD
="\$(GOC)"
4154 GDC_FOR_BUILD
="\$(GDC)"
4155 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4156 LD_FOR_BUILD
="\$(LD)"
4157 NM_FOR_BUILD
="\$(NM)"
4158 RANLIB_FOR_BUILD
="\$(RANLIB)"
4159 WINDRES_FOR_BUILD
="\$(WINDRES)"
4160 WINDMC_FOR_BUILD
="\$(WINDMC)"
4164 ac_cpp
='$CPP $CPPFLAGS'
4165 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4168 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4170 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if ${ac_cv_prog_CC+:} false
; then :
4174 $as_echo_n "(cached) " >&6
4176 if test -n "$CC"; then
4177 ac_cv_prog_CC
="$CC" # Let the user override the test.
4179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir
=.
4184 for ac_exec_ext
in '' $ac_executable_extensions; do
4185 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4186 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 if test -n "$CC"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4199 $as_echo "$CC" >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4207 if test -z "$ac_cv_prog_CC"; then
4209 # Extract the first word of "gcc", so it can be a program name with args.
4210 set dummy gcc
; ac_word
=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4214 $as_echo_n "(cached) " >&6
4216 if test -n "$ac_ct_CC"; then
4217 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4223 test -z "$as_dir" && as_dir
=.
4224 for ac_exec_ext
in '' $ac_executable_extensions; do
4225 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_ac_ct_CC
="gcc"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4237 if test -n "$ac_ct_CC"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4239 $as_echo "$ac_ct_CC" >&6; }
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4245 if test "x$ac_ct_CC" = x
; then
4248 case $cross_compiling:$ac_tool_warned in
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252 ac_tool_warned
=yes ;;
4260 if test -z "$CC"; then
4261 if test -n "$ac_tool_prefix"; then
4262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4263 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_CC+:} false
; then :
4267 $as_echo_n "(cached) " >&6
4269 if test -n "$CC"; then
4270 ac_cv_prog_CC
="$CC" # Let the user override the test.
4272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir
=.
4277 for ac_exec_ext
in '' $ac_executable_extensions; do
4278 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 if test -n "$CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292 $as_echo "$CC" >&6; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4301 if test -z "$CC"; then
4302 # Extract the first word of "cc", so it can be a program name with args.
4303 set dummy cc
; ac_word
=$2
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if ${ac_cv_prog_CC+:} false
; then :
4307 $as_echo_n "(cached) " >&6
4309 if test -n "$CC"; then
4310 ac_cv_prog_CC
="$CC" # Let the user override the test.
4313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir
=.
4318 for ac_exec_ext
in '' $ac_executable_extensions; do
4319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4320 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4321 ac_prog_rejected
=yes
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 if test $ac_prog_rejected = yes; then
4333 # We found a bogon in the path, so make sure we never use it.
4334 set dummy
$ac_cv_prog_CC
4336 if test $# != 0; then
4337 # We chose a different compiler from the bogus one.
4338 # However, it has the same basename, so the bogon will be chosen
4339 # first if we set CC to just the basename; use the full file name.
4341 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4347 if test -n "$CC"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349 $as_echo "$CC" >&6; }
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4357 if test -z "$CC"; then
4358 if test -n "$ac_tool_prefix"; then
4359 for ac_prog
in cl.exe
4361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4362 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_prog_CC+:} false
; then :
4366 $as_echo_n "(cached) " >&6
4368 if test -n "$CC"; then
4369 ac_cv_prog_CC
="$CC" # Let the user override the test.
4371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4375 test -z "$as_dir" && as_dir
=.
4376 for ac_exec_ext
in '' $ac_executable_extensions; do
4377 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4378 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 if test -n "$CC"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4391 $as_echo "$CC" >&6; }
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4398 test -n "$CC" && break
4401 if test -z "$CC"; then
4403 for ac_prog
in cl.exe
4405 # Extract the first word of "$ac_prog", so it can be a program name with args.
4406 set dummy
$ac_prog; ac_word
=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4410 $as_echo_n "(cached) " >&6
4412 if test -n "$ac_ct_CC"; then
4413 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4419 test -z "$as_dir" && as_dir
=.
4420 for ac_exec_ext
in '' $ac_executable_extensions; do
4421 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4422 ac_cv_prog_ac_ct_CC
="$ac_prog"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4433 if test -n "$ac_ct_CC"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4435 $as_echo "$ac_ct_CC" >&6; }
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4442 test -n "$ac_ct_CC" && break
4445 if test "x$ac_ct_CC" = x
; then
4448 case $cross_compiling:$ac_tool_warned in
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452 ac_tool_warned
=yes ;;
4461 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4463 as_fn_error $?
"no acceptable C compiler found in \$PATH
4464 See \`config.log' for more details" "$LINENO" 5; }
4466 # Provide some information about the compiler.
4467 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4470 for ac_option
in --version -v -V -qversion; do
4471 { { ac_try
="$ac_compiler $ac_option >&5"
4473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477 $as_echo "$ac_try_echo"; } >&5
4478 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4480 if test -s conftest.err; then
4482 ... rest of stderr output deleted ...
4483 10q' conftest.err >conftest.er1
4484 cat conftest.er1 >&5
4486 rm -f conftest.er1 conftest.err
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4502 ac_clean_files_save=$ac_clean_files
4503 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4504 # Try to create an executable without -o first, disregard a.out.
4505 # It will help us diagnose broken compilers, and finding out an intuition
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4508 $as_echo_n "checking whether the C compiler works... " >&6; }
4509 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4511 # The possible output files:
4512 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4515 for ac_file in $ac_files
4518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4519 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4524 if { { ac_try="$ac_link_default"
4526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4527 *) ac_try_echo
=$ac_try;;
4529 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_link_default") 2>&5
4533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534 test $ac_status = 0; }; then :
4535 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4536 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4537 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4538 # so that the user can short-circuit this test for compilers unknown to
4540 for ac_file
in $ac_files ''
4542 test -f "$ac_file" ||
continue
4544 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4547 # We found the default executable, but exeext='' is most
4551 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4553 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4555 # We set ac_cv_exeext here because the later test for it is not
4556 # safe: cross compilers may not add the suffix if given an `-o'
4557 # argument, so we may need to know it at that point already.
4558 # Even if this section looks crufty: it has the advantage of
4565 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4570 if test -z "$ac_file"; then :
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4573 $as_echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.
$ac_ext >&5
4576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error
77 "C compiler cannot create executables
4579 See \`config.log' for more details" "$LINENO" 5; }
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4582 $as_echo "yes" >&6; }
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4585 $as_echo_n "checking for C compiler default output file name... " >&6; }
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4587 $as_echo "$ac_file" >&6; }
4588 ac_exeext
=$ac_cv_exeext
4590 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4591 ac_clean_files
=$ac_clean_files_save
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4593 $as_echo_n "checking for suffix of executables... " >&6; }
4594 if { { ac_try
="$ac_link"
4596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4600 $as_echo "$ac_try_echo"; } >&5
4601 (eval "$ac_link") 2>&5
4603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4604 test $ac_status = 0; }; then :
4605 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4606 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4607 # work properly (i.e., refer to `conftest.exe'), while it won't with
4609 for ac_file
in conftest.exe conftest conftest.
*; do
4610 test -f "$ac_file" ||
continue
4612 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4613 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4621 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4622 See \`config.log' for more details" "$LINENO" 5; }
4624 rm -f conftest conftest
$ac_cv_exeext
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4626 $as_echo "$ac_cv_exeext" >&6; }
4628 rm -f conftest.
$ac_ext
4629 EXEEXT
=$ac_cv_exeext
4631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4637 FILE *f = fopen ("conftest.out", "w");
4638 return ferror (f) || fclose (f) != 0;
4644 ac_clean_files
="$ac_clean_files conftest.out"
4645 # Check that the compiler produces executables we can run. If not, either
4646 # the compiler is broken, or we cross compile.
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4648 $as_echo_n "checking whether we are cross compiling... " >&6; }
4649 if test "$cross_compiling" != yes; then
4650 { { ac_try
="$ac_link"
4652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4656 $as_echo "$ac_try_echo"; } >&5
4657 (eval "$ac_link") 2>&5
4659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4660 test $ac_status = 0; }
4661 if { ac_try='./conftest$ac_cv_exeext'
4662 { { case "(($ac_try" in
4663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4664 *) ac_try_echo
=$ac_try;;
4666 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4667 $as_echo "$ac_try_echo"; } >&5
4668 (eval "$ac_try") 2>&5
4670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671 test $ac_status = 0; }; }; then
4674 if test "$cross_compiling" = maybe
; then
4677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4679 as_fn_error $?
"cannot run C compiled programs.
4680 If you meant to cross compile, use \`--host'.
4681 See \`config.log' for more details" "$LINENO" 5; }
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4686 $as_echo "$cross_compiling" >&6; }
4688 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4689 ac_clean_files
=$ac_clean_files_save
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4691 $as_echo_n "checking for suffix of object files... " >&6; }
4692 if ${ac_cv_objext+:} false
; then :
4693 $as_echo_n "(cached) " >&6
4695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4706 rm -f conftest.o conftest.obj
4707 if { { ac_try
="$ac_compile"
4709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4713 $as_echo "$ac_try_echo"; } >&5
4714 (eval "$ac_compile") 2>&5
4716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717 test $ac_status = 0; }; then :
4718 for ac_file in conftest.o conftest.obj conftest.*; do
4719 test -f "$ac_file" || continue;
4721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4727 $as_echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4732 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4733 See \
`config.log' for more details" "$LINENO" 5; }
4735 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4738 $as_echo "$ac_cv_objext" >&6; }
4739 OBJEXT=$ac_cv_objext
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4742 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4743 if ${ac_cv_c_compiler_gnu+:} false; then :
4744 $as_echo_n "(cached) " >&6
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4760 if ac_fn_c_try_compile "$LINENO"; then :
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4770 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4771 if test $ac_compiler_gnu = yes; then
4776 ac_test_CFLAGS=${CFLAGS+set}
4777 ac_save_CFLAGS=$CFLAGS
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4779 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4780 if ${ac_cv_prog_cc_g+:} false; then :
4781 $as_echo_n "(cached) " >&6
4783 ac_save_c_werror_flag=$ac_c_werror_flag
4784 ac_c_werror_flag=yes
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4798 if ac_fn_c_try_compile "$LINENO"; then :
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4813 if ac_fn_c_try_compile "$LINENO"; then :
4816 ac_c_werror_flag=$ac_save_c_werror_flag
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4829 if ac_fn_c_try_compile "$LINENO"; then :
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 ac_c_werror_flag=$ac_save_c_werror_flag
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4840 $as_echo "$ac_cv_prog_cc_g" >&6; }
4841 if test "$ac_test_CFLAGS" = set; then
4842 CFLAGS=$ac_save_CFLAGS
4843 elif test $ac_cv_prog_cc_g = yes; then
4844 if test "$GCC" = yes; then
4850 if test "$GCC" = yes; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4857 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4858 if ${ac_cv_prog_cc_c89+:} false; then :
4859 $as_echo_n "(cached) " >&6
4861 ac_cv_prog_cc_c89=no
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4869 struct buf { int x; };
4870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4871 static char *e (p, i)
4877 static char *f (char * (*g) (char **, int), char **p, ...)
4882 s = g (p, va_arg (v,int));
4887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4888 function prototypes and stuff, but not '\xHH' hex character constants.
4889 These don't provoke an error unfortunately, instead are silently treated
4890 as 'x'. The following induces an error, until -std is added to get
4891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4892 array size at least. It's necessary to write '\x00'==0 to get something
4893 that's true only with -std. */
4894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4896 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4897 inside strings and character constants. */
4899 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4901 int test (int i, double x);
4902 struct s1 {int (*f) (int a);};
4903 struct s2 {int (*f) (double a);};
4904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4910 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4915 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4918 CC="$ac_save_CC $ac_arg"
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920 ac_cv_prog_cc_c89=$ac_arg
4922 rm -f core conftest.err conftest.$ac_objext
4923 test "x$ac_cv_prog_cc_c89" != "xno" && break
4925 rm -f conftest.$ac_ext
4930 case "x$ac_cv_prog_cc_c89" in
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4933 $as_echo "none needed" >&6; } ;;
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4936 $as_echo "unsupported" >&6; } ;;
4938 CC="$CC $ac_cv_prog_cc_c89"
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4942 if test "x$ac_cv_prog_cc_c89" != xno; then :
4947 ac_cpp='$CPP $CPPFLAGS'
4948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4953 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4954 if ${ac_cv_prog_cc_c99+:} false; then :
4955 $as_echo_n "(cached) " >&6
4957 ac_cv_prog_cc_c99=no
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4962 #include <stdbool.h>
4967 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4968 #define debug(...) fprintf (stderr, __VA_ARGS__)
4969 #define showlist(...) puts (#__VA_ARGS__)
4970 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4972 test_varargs_macros (void)
4977 debug ("X = %d\n", x);
4978 showlist (The first, second, and third items.);
4979 report (x>y, "x is %d but y is %d", x, y);
4982 // Check long long types.
4983 #define BIG64 18446744073709551615ull
4984 #define BIG32 4294967295ul
4985 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4987 your preprocessor is broken;
4991 your preprocessor is broken;
4993 static long long int bignum = -9223372036854775807LL;
4994 static unsigned long long int ubignum = BIG64;
4996 struct incomplete_array
5004 const wchar_t *name;
5008 typedef const char *ccp;
5011 test_restrict (ccp restrict text)
5013 // See if C++-style comments work.
5014 // Iterate through items via the restricted pointer.
5015 // Also check for declarations in for loops.
5016 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5021 // Check varargs and va_copy.
5023 test_varargs (const char *format, ...)
5026 va_start (args, format);
5028 va_copy (args_copy, args);
5039 str = va_arg (args_copy, const char *);
5042 number = va_arg (args_copy, int);
5045 fnumber = va_arg (args_copy, double);
5060 _Bool success = false;
5063 if (test_restrict ("String literal") == 0)
5065 char *restrict newvar = "Another string";
5068 test_varargs ("s, d' f .", "string", 65, 34.234);
5069 test_varargs_macros ();
5071 // Check flexible array members.
5072 struct incomplete_array *ia =
5073 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5075 for (int i = 0; i < ia->datasize; ++i)
5076 ia->data[i] = i * 1.234;
5078 // Check named initializers.
5079 struct named_init ni = {
5081 .name = L"Test wide string",
5082 .average = 543.34343,
5087 int dynamic_array[ni.number];
5088 dynamic_array[ni.number - 1] = 543;
5090 // work around unused variable warnings
5091 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5092 || dynamic_array[ni.number - 1] != 543);
5098 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5100 CC="$ac_save_CC $ac_arg"
5101 if ac_fn_c_try_compile "$LINENO"; then :
5102 ac_cv_prog_cc_c99=$ac_arg
5104 rm -f core conftest.err conftest.$ac_objext
5105 test "x$ac_cv_prog_cc_c99" != "xno" && break
5107 rm -f conftest.$ac_ext
5112 case "x$ac_cv_prog_cc_c99" in
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5115 $as_echo "none needed" >&6; } ;;
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5118 $as_echo "unsupported" >&6; } ;;
5120 CC="$CC $ac_cv_prog_cc_c99"
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5122 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5124 if test "x$ac_cv_prog_cc_c99" != xno; then :
5130 ac_cpp='$CXXCPP $CPPFLAGS'
5131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5134 if test -z "$CXX"; then
5135 if test -n "$CCC"; then
5138 if test -n "$ac_tool_prefix"; then
5139 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if ${ac_cv_prog_CXX+:} false; then :
5146 $as_echo_n "(cached) " >&6
5148 if test -n "$CXX"; then
5149 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 if test -n "$CXX"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5171 $as_echo "$CXX" >&6; }
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5178 test -n "$CXX" && break
5181 if test -z "$CXX"; then
5183 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5185 # Extract the first word of "$ac_prog", so it can be a program name with args.
5186 set dummy $ac_prog; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5190 $as_echo_n "(cached) " >&6
5192 if test -n "$ac_ct_CXX"; then
5193 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_CXX="$ac_prog"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5213 if test -n "$ac_ct_CXX"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5215 $as_echo "$ac_ct_CXX" >&6; }
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5222 test -n "$ac_ct_CXX" && break
5225 if test "x$ac_ct_CXX" = x; then
5228 case $cross_compiling:$ac_tool_warned in
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232 ac_tool_warned=yes ;;
5240 # Provide some information about the compiler.
5241 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5244 for ac_option in --version -v -V -qversion; do
5245 { { ac_try="$ac_compiler $ac_option >&5"
5247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5248 *) ac_try_echo
=$ac_try;;
5250 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5251 $as_echo "$ac_try_echo"; } >&5
5252 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5254 if test -s conftest.err
; then
5256 ... rest of stderr output deleted ...
5257 10q' conftest.err
>conftest.er1
5258 cat conftest.er1
>&5
5260 rm -f conftest.er1 conftest.err
5261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5262 test $ac_status = 0; }
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5266 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5267 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5268 $as_echo_n "(cached) " >&6
5270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5284 if ac_fn_cxx_try_compile
"$LINENO"; then :
5289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5290 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5294 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5295 if test $ac_compiler_gnu = yes; then
5300 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5301 ac_save_CXXFLAGS
=$CXXFLAGS
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5303 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5304 if ${ac_cv_prog_cxx_g+:} false
; then :
5305 $as_echo_n "(cached) " >&6
5307 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5308 ac_cxx_werror_flag
=yes
5311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5322 if ac_fn_cxx_try_compile
"$LINENO"; then :
5323 ac_cv_prog_cxx_g
=yes
5326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5337 if ac_fn_cxx_try_compile
"$LINENO"; then :
5340 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5353 if ac_fn_cxx_try_compile
"$LINENO"; then :
5354 ac_cv_prog_cxx_g
=yes
5356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5361 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5364 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5365 if test "$ac_test_CXXFLAGS" = set; then
5366 CXXFLAGS
=$ac_save_CXXFLAGS
5367 elif test $ac_cv_prog_cxx_g = yes; then
5368 if test "$GXX" = yes; then
5374 if test "$GXX" = yes; then
5381 ac_cpp
='$CPP $CPPFLAGS'
5382 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5387 # We must set the default linker to the linker used by gcc for the correct
5388 # operation of libtool. If LD is not defined and we are using gcc, try to
5389 # set the LD default to the ld used by gcc.
5390 if test -z "$LD"; then
5391 if test "$GCC" = yes; then
5394 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5396 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5398 case $gcc_prog_ld in
5399 # Accept absolute paths.
5400 [\\/]* |
[A-Za-z
]:[\\/]*)
5401 LD
="$gcc_prog_ld" ;;
5406 # Check whether -static-libstdc++ -static-libgcc is supported.
5408 if test "$GCC" = yes; then
5409 saved_LDFLAGS
="$LDFLAGS"
5411 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5413 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5415 ac_cpp
='$CXXCPP $CPPFLAGS'
5416 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5424 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5425 #error -static-libstdc++ not implemented
5429 if ac_fn_cxx_try_link
"$LINENO"; then :
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5431 $as_echo "yes" >&6; }; have_static_libs
=yes
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5436 rm -f core conftest.err conftest.
$ac_objext \
5437 conftest
$ac_exeext conftest.
$ac_ext
5439 ac_cpp
='$CPP $CPPFLAGS'
5440 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5445 LDFLAGS
="$saved_LDFLAGS"
5451 if test -n "$ac_tool_prefix"; then
5452 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5453 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_GNATBIND+:} false
; then :
5457 $as_echo_n "(cached) " >&6
5459 if test -n "$GNATBIND"; then
5460 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir
=.
5467 for ac_exec_ext
in '' $ac_executable_extensions; do
5468 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 GNATBIND
=$ac_cv_prog_GNATBIND
5480 if test -n "$GNATBIND"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5482 $as_echo "$GNATBIND" >&6; }
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5490 if test -z "$ac_cv_prog_GNATBIND"; then
5491 ac_ct_GNATBIND
=$GNATBIND
5492 # Extract the first word of "gnatbind", so it can be a program name with args.
5493 set dummy gnatbind
; ac_word
=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5497 $as_echo_n "(cached) " >&6
5499 if test -n "$ac_ct_GNATBIND"; then
5500 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir
=.
5507 for ac_exec_ext
in '' $ac_executable_extensions; do
5508 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5520 if test -n "$ac_ct_GNATBIND"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5522 $as_echo "$ac_ct_GNATBIND" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5528 if test "x$ac_ct_GNATBIND" = x
; then
5531 case $cross_compiling:$ac_tool_warned in
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5535 ac_tool_warned
=yes ;;
5537 GNATBIND
=$ac_ct_GNATBIND
5540 GNATBIND
="$ac_cv_prog_GNATBIND"
5543 if test -n "$ac_tool_prefix"; then
5544 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5545 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5549 $as_echo_n "(cached) " >&6
5551 if test -n "$GNATMAKE"; then
5552 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5558 test -z "$as_dir" && as_dir
=.
5559 for ac_exec_ext
in '' $ac_executable_extensions; do
5560 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 GNATMAKE
=$ac_cv_prog_GNATMAKE
5572 if test -n "$GNATMAKE"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5574 $as_echo "$GNATMAKE" >&6; }
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5582 if test -z "$ac_cv_prog_GNATMAKE"; then
5583 ac_ct_GNATMAKE
=$GNATMAKE
5584 # Extract the first word of "gnatmake", so it can be a program name with args.
5585 set dummy gnatmake
; ac_word
=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5589 $as_echo_n "(cached) " >&6
5591 if test -n "$ac_ct_GNATMAKE"; then
5592 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5598 test -z "$as_dir" && as_dir
=.
5599 for ac_exec_ext
in '' $ac_executable_extensions; do
5600 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5612 if test -n "$ac_ct_GNATMAKE"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5614 $as_echo "$ac_ct_GNATMAKE" >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5620 if test "x$ac_ct_GNATMAKE" = x
; then
5623 case $cross_compiling:$ac_tool_warned in
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627 ac_tool_warned
=yes ;;
5629 GNATMAKE
=$ac_ct_GNATMAKE
5632 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5636 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5637 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5638 $as_echo_n "(cached) " >&6
5640 cat >conftest.adb
<<EOF
5641 pragma Warnings (Off);
5643 pragma Warnings (On);
5644 use type System.CRTL.int64;
5645 procedure conftest is begin null; end conftest;
5647 acx_cv_cc_gcc_supports_ada
=no
5648 # There is a bug in old released versions of GCC which causes the
5649 # driver to exit successfully when the appropriate language module
5650 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5651 # Therefore we must check for the error message as well as an
5652 # unsuccessful exit.
5653 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5654 # given a .adb file, but produce no object file. So we must check
5655 # if an object file was really produced to guard against this.
5656 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5657 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5658 acx_cv_cc_gcc_supports_ada
=yes
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5663 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5665 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5673 if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5675 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_GDC+:} false
; then :
5679 $as_echo_n "(cached) " >&6
5681 if test -n "$GDC"; then
5682 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5688 test -z "$as_dir" && as_dir
=.
5689 for ac_exec_ext
in '' $ac_executable_extensions; do
5690 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 if test -n "$GDC"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5704 $as_echo "$GDC" >&6; }
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5712 if test -z "$ac_cv_prog_GDC"; then
5714 # Extract the first word of "gdc", so it can be a program name with args.
5715 set dummy gdc
; ac_word
=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5719 $as_echo_n "(cached) " >&6
5721 if test -n "$ac_ct_GDC"; then
5722 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5728 test -z "$as_dir" && as_dir
=.
5729 for ac_exec_ext
in '' $ac_executable_extensions; do
5730 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_ac_ct_GDC
="gdc"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5742 if test -n "$ac_ct_GDC"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5744 $as_echo "$ac_ct_GDC" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5750 if test "x$ac_ct_GDC" = x
; then
5753 case $cross_compiling:$ac_tool_warned in
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5757 ac_tool_warned
=yes ;;
5762 GDC
="$ac_cv_prog_GDC"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5766 $as_echo_n "checking whether the D compiler works... " >&6; }
5767 if ${acx_cv_d_compiler_works+:} false
; then :
5768 $as_echo_n "(cached) " >&6
5770 cat >conftest.d
<<EOF
5771 module conftest; int main() { return 0; }
5773 acx_cv_d_compiler_works
=no
5774 if test "x$GDC" != xno
; then
5775 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5776 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5777 acx_cv_d_compiler_works
=yes
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5783 $as_echo "$acx_cv_d_compiler_works" >&6; }
5784 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5790 for ac_prog
in cargo
5792 # Extract the first word of "$ac_prog", so it can be a program name with args.
5793 set dummy
$ac_prog; ac_word
=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_CARGO+:} false
; then :
5797 $as_echo_n "(cached) " >&6
5799 if test -n "$CARGO"; then
5800 ac_cv_prog_CARGO
="$CARGO" # Let the user override the test.
5802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir
=.
5807 for ac_exec_ext
in '' $ac_executable_extensions; do
5808 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_CARGO
="$ac_prog"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 CARGO
=$ac_cv_prog_CARGO
5820 if test -n "$CARGO"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5822 $as_echo "$CARGO" >&6; }
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5829 test -n "$CARGO" && break
5831 test -n "$CARGO" || CARGO
="no"
5833 if test "x$CARGO" != xno
; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5839 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5840 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5841 $as_echo_n "(cached) " >&6
5845 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5846 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5847 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5850 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5853 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5854 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5857 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5864 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5865 do_compare
="$gcc_cv_prog_cmp_skip"
5869 # Check whether --enable-bootstrap was given.
5870 if test "${enable_bootstrap+set}" = set; then :
5871 enableval
=$enable_bootstrap;
5873 enable_bootstrap
=default
5877 # Issue errors and warnings for invalid/strange bootstrap combinations.
5878 if test -r $srcdir/gcc
/configure
; then
5884 case "$have_compiler:$host:$target:$enable_bootstrap" in
5887 # Default behavior. Enable bootstrap if we have a compiler
5888 # and we are in a native configuration.
5889 yes:$build:$build:default
)
5890 enable_bootstrap
=yes ;;
5893 enable_bootstrap
=no
;;
5895 # We have a compiler and we are in a native configuration, bootstrap is ok
5896 yes:$build:$build:yes)
5899 # Other configurations, but we have a compiler. Assume the user knows
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5903 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5906 # No compiler: if they passed --enable-bootstrap explicitly, fail
5908 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5910 # Fail if wrong command line
5912 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5916 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5917 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5918 # require C++11 (or higher).
5919 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5920 CXX
="$CXX -std=c++11"
5921 elif test "$have_compiler" = yes; then
5922 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5924 ac_cpp
='$CXXCPP $CPPFLAGS'
5925 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5926 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5927 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5931 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5932 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5933 $as_echo_n "(cached) " >&6
5935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5939 // If the compiler admits that it is not ready for C++11, why torture it?
5940 // Hopefully, this will speed up the test.
5944 #error "This is not a C++ compiler"
5946 #elif __cplusplus < 201103L
5948 #error "This is not a C++11 compiler"
5955 namespace test_static_assert
5958 template <typename T>
5961 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5966 namespace test_final_override
5975 struct Derived : public Base
5977 virtual ~Derived() override {}
5978 virtual void f() override {}
5983 namespace test_double_right_angle_brackets
5986 template < typename T >
5989 typedef check<void> single_type;
5990 typedef check<check<void>> double_type;
5991 typedef check<check<check<void>>> triple_type;
5992 typedef check<check<check<check<void>>>> quadruple_type;
5996 namespace test_decltype
6009 namespace test_type_deduction
6012 template < typename T1, typename T2 >
6015 static const bool value = false;
6018 template < typename T >
6019 struct is_same<T, T>
6021 static const bool value = true;
6024 template < typename T1, typename T2 >
6026 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6032 test(const int c, volatile int v)
6034 static_assert(is_same<int, decltype(0)>::value == true, "");
6035 static_assert(is_same<int, decltype(c)>::value == false, "");
6036 static_assert(is_same<int, decltype(v)>::value == false, "");
6039 auto sumi = ac + av + 'x';
6040 auto sumf = ac + av + 1.0;
6041 static_assert(is_same<int, decltype(ac)>::value == true, "");
6042 static_assert(is_same<int, decltype(av)>::value == true, "");
6043 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6044 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6045 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6046 return (sumf > 0.0) ? sumi : add(c, v);
6051 namespace test_noexcept
6054 int f() { return 0; }
6055 int g() noexcept { return 0; }
6057 static_assert(noexcept(f()) == false, "");
6058 static_assert(noexcept(g()) == true, "");
6062 namespace test_constexpr
6065 template < typename CharT >
6066 unsigned long constexpr
6067 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6069 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6072 template < typename CharT >
6073 unsigned long constexpr
6074 strlen_c(const CharT *const s) noexcept
6076 return strlen_c_r(s, 0UL);
6079 static_assert(strlen_c("") == 0UL, "");
6080 static_assert(strlen_c("1") == 1UL, "");
6081 static_assert(strlen_c("example") == 7UL, "");
6082 static_assert(strlen_c("another\0example") == 7UL, "");
6086 namespace test_rvalue_references
6092 static constexpr int value = N;
6095 answer<1> f(int&) { return answer<1>(); }
6096 answer<2> f(const int&) { return answer<2>(); }
6097 answer<3> f(int&&) { return answer<3>(); }
6104 static_assert(decltype(f(i))::value == 1, "");
6105 static_assert(decltype(f(c))::value == 2, "");
6106 static_assert(decltype(f(0))::value == 3, "");
6111 namespace test_uniform_initialization
6116 static const int zero {};
6117 static const int one {1};
6120 static_assert(test::zero == 0, "");
6121 static_assert(test::one == 1, "");
6125 namespace test_lambdas
6131 auto lambda1 = [](){};
6132 auto lambda2 = lambda1;
6140 auto a = [](int i, int j){ return i + j; }(1, 2);
6141 auto b = []() -> int { return '0'; }();
6142 auto c = [=](){ return a + b; }();
6143 auto d = [&](){ return c; }();
6144 auto e = [a, &b](int x) mutable {
6145 const auto identity = [](int y){ return y; };
6146 for (auto i = 0; i < a; ++i)
6148 return x + identity(a + b);
6150 return a + b + c + d + e;
6156 const auto nullary = [](){ return 0; };
6157 const auto unary = [](int x){ return x; };
6158 using nullary_t = decltype(nullary);
6159 using unary_t = decltype(unary);
6160 const auto higher1st = [](nullary_t f){ return f(); };
6161 const auto higher2nd = [unary](nullary_t f1){
6162 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6164 return higher1st(nullary) + higher2nd(nullary)(unary);
6169 namespace test_variadic_templates
6175 template <int N0, int... N1toN>
6176 struct sum<N0, N1toN...>
6178 static constexpr auto value = N0 + sum<N1toN...>::value;
6184 static constexpr auto value = 0;
6187 static_assert(sum<>::value == 0, "");
6188 static_assert(sum<1>::value == 1, "");
6189 static_assert(sum<23>::value == 23, "");
6190 static_assert(sum<1, 2>::value == 3, "");
6191 static_assert(sum<5, 5, 11>::value == 21, "");
6192 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6196 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6197 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6199 namespace test_template_alias_sfinae
6204 template<typename T>
6205 using member = typename T::member_type;
6207 template<typename T>
6210 template<typename T>
6211 void func(member<T>*) {}
6215 void test() { func<foo>(0); }
6219 } // namespace cxx11
6221 #endif // __cplusplus >= 201103L
6226 if ac_fn_cxx_try_compile
"$LINENO"; then :
6227 ax_cv_cxx_compile_cxx11
=yes
6229 ax_cv_cxx_compile_cxx11
=no
6231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6234 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6235 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6239 if test x
$ac_success = xno
; then
6240 for alternative
in ${ax_cxx_compile_alternatives}; do
6241 switch
="-std=gnu++${alternative}"
6242 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6244 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6245 if eval \
${$cachevar+:} false
; then :
6246 $as_echo_n "(cached) " >&6
6250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6254 // If the compiler admits that it is not ready for C++11, why torture it?
6255 // Hopefully, this will speed up the test.
6259 #error "This is not a C++ compiler"
6261 #elif __cplusplus < 201103L
6263 #error "This is not a C++11 compiler"
6270 namespace test_static_assert
6273 template <typename T>
6276 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6281 namespace test_final_override
6290 struct Derived : public Base
6292 virtual ~Derived() override {}
6293 virtual void f() override {}
6298 namespace test_double_right_angle_brackets
6301 template < typename T >
6304 typedef check<void> single_type;
6305 typedef check<check<void>> double_type;
6306 typedef check<check<check<void>>> triple_type;
6307 typedef check<check<check<check<void>>>> quadruple_type;
6311 namespace test_decltype
6324 namespace test_type_deduction
6327 template < typename T1, typename T2 >
6330 static const bool value = false;
6333 template < typename T >
6334 struct is_same<T, T>
6336 static const bool value = true;
6339 template < typename T1, typename T2 >
6341 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6347 test(const int c, volatile int v)
6349 static_assert(is_same<int, decltype(0)>::value == true, "");
6350 static_assert(is_same<int, decltype(c)>::value == false, "");
6351 static_assert(is_same<int, decltype(v)>::value == false, "");
6354 auto sumi = ac + av + 'x';
6355 auto sumf = ac + av + 1.0;
6356 static_assert(is_same<int, decltype(ac)>::value == true, "");
6357 static_assert(is_same<int, decltype(av)>::value == true, "");
6358 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6359 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6360 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6361 return (sumf > 0.0) ? sumi : add(c, v);
6366 namespace test_noexcept
6369 int f() { return 0; }
6370 int g() noexcept { return 0; }
6372 static_assert(noexcept(f()) == false, "");
6373 static_assert(noexcept(g()) == true, "");
6377 namespace test_constexpr
6380 template < typename CharT >
6381 unsigned long constexpr
6382 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6384 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6387 template < typename CharT >
6388 unsigned long constexpr
6389 strlen_c(const CharT *const s) noexcept
6391 return strlen_c_r(s, 0UL);
6394 static_assert(strlen_c("") == 0UL, "");
6395 static_assert(strlen_c("1") == 1UL, "");
6396 static_assert(strlen_c("example") == 7UL, "");
6397 static_assert(strlen_c("another\0example") == 7UL, "");
6401 namespace test_rvalue_references
6407 static constexpr int value = N;
6410 answer<1> f(int&) { return answer<1>(); }
6411 answer<2> f(const int&) { return answer<2>(); }
6412 answer<3> f(int&&) { return answer<3>(); }
6419 static_assert(decltype(f(i))::value == 1, "");
6420 static_assert(decltype(f(c))::value == 2, "");
6421 static_assert(decltype(f(0))::value == 3, "");
6426 namespace test_uniform_initialization
6431 static const int zero {};
6432 static const int one {1};
6435 static_assert(test::zero == 0, "");
6436 static_assert(test::one == 1, "");
6440 namespace test_lambdas
6446 auto lambda1 = [](){};
6447 auto lambda2 = lambda1;
6455 auto a = [](int i, int j){ return i + j; }(1, 2);
6456 auto b = []() -> int { return '0'; }();
6457 auto c = [=](){ return a + b; }();
6458 auto d = [&](){ return c; }();
6459 auto e = [a, &b](int x) mutable {
6460 const auto identity = [](int y){ return y; };
6461 for (auto i = 0; i < a; ++i)
6463 return x + identity(a + b);
6465 return a + b + c + d + e;
6471 const auto nullary = [](){ return 0; };
6472 const auto unary = [](int x){ return x; };
6473 using nullary_t = decltype(nullary);
6474 using unary_t = decltype(unary);
6475 const auto higher1st = [](nullary_t f){ return f(); };
6476 const auto higher2nd = [unary](nullary_t f1){
6477 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6479 return higher1st(nullary) + higher2nd(nullary)(unary);
6484 namespace test_variadic_templates
6490 template <int N0, int... N1toN>
6491 struct sum<N0, N1toN...>
6493 static constexpr auto value = N0 + sum<N1toN...>::value;
6499 static constexpr auto value = 0;
6502 static_assert(sum<>::value == 0, "");
6503 static_assert(sum<1>::value == 1, "");
6504 static_assert(sum<23>::value == 23, "");
6505 static_assert(sum<1, 2>::value == 3, "");
6506 static_assert(sum<5, 5, 11>::value == 21, "");
6507 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6511 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6512 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6514 namespace test_template_alias_sfinae
6519 template<typename T>
6520 using member = typename T::member_type;
6522 template<typename T>
6525 template<typename T>
6526 void func(member<T>*) {}
6530 void test() { func<foo>(0); }
6534 } // namespace cxx11
6536 #endif // __cplusplus >= 201103L
6541 if ac_fn_cxx_try_compile
"$LINENO"; then :
6546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6549 eval ac_res
=\$
$cachevar
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6551 $as_echo "$ac_res" >&6; }
6552 if eval test x\$
$cachevar = xyes
; then
6554 if test -n "$CXXCPP" ; then
6555 CXXCPP
="$CXXCPP $switch"
6563 if test x
$ac_success = xno
; then
6564 for alternative
in ${ax_cxx_compile_alternatives}; do
6565 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6566 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6568 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6569 if eval \${$cachevar+:} false; then :
6570 $as_echo_n "(cached
) " >&6
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6578 // If the compiler admits that it is not ready for C++11, why torture it?
6579 // Hopefully, this will speed up the test.
6583 #error "This is not a C
++ compiler
"
6585 #elif __cplusplus < 201103L
6587 #error "This is not a C
++11 compiler
"
6594 namespace test_static_assert
6597 template <typename T>
6600 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6605 namespace test_final_override
6614 struct Derived : public Base
6616 virtual ~Derived() override {}
6617 virtual void f() override {}
6622 namespace test_double_right_angle_brackets
6625 template < typename T >
6628 typedef check<void> single_type;
6629 typedef check<check<void>> double_type;
6630 typedef check<check<check<void>>> triple_type;
6631 typedef check<check<check<check<void>>>> quadruple_type;
6635 namespace test_decltype
6648 namespace test_type_deduction
6651 template < typename T1, typename T2 >
6654 static const bool value = false;
6657 template < typename T >
6658 struct is_same<T, T>
6660 static const bool value = true;
6663 template < typename T1, typename T2 >
6665 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6671 test(const int c, volatile int v)
6673 static_assert(is_same<int, decltype(0)>::value == true, "");
6674 static_assert(is_same<int, decltype(c)>::value == false, "");
6675 static_assert(is_same<int, decltype(v)>::value == false, "");
6678 auto sumi = ac + av + 'x';
6679 auto sumf = ac + av + 1.0;
6680 static_assert(is_same<int, decltype(ac)>::value == true, "");
6681 static_assert(is_same<int, decltype(av)>::value == true, "");
6682 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6683 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6684 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6685 return (sumf > 0.0) ? sumi : add(c, v);
6690 namespace test_noexcept
6693 int f() { return 0; }
6694 int g() noexcept { return 0; }
6696 static_assert(noexcept(f()) == false, "");
6697 static_assert(noexcept(g()) == true, "");
6701 namespace test_constexpr
6704 template < typename CharT >
6705 unsigned long constexpr
6706 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6708 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6711 template < typename CharT >
6712 unsigned long constexpr
6713 strlen_c(const CharT *const s) noexcept
6715 return strlen_c_r(s, 0UL);
6718 static_assert(strlen_c("") == 0UL, "");
6719 static_assert(strlen_c("1") == 1UL, "");
6720 static_assert(strlen_c("example
") == 7UL, "");
6721 static_assert(strlen_c("another\
0example
") == 7UL, "");
6725 namespace test_rvalue_references
6731 static constexpr int value = N;
6734 answer<1> f(int&) { return answer<1>(); }
6735 answer<2> f(const int&) { return answer<2>(); }
6736 answer<3> f(int&&) { return answer<3>(); }
6743 static_assert(decltype(f(i))::value == 1, "");
6744 static_assert(decltype(f(c))::value == 2, "");
6745 static_assert(decltype(f(0))::value == 3, "");
6750 namespace test_uniform_initialization
6755 static const int zero {};
6756 static const int one {1};
6759 static_assert(test::zero == 0, "");
6760 static_assert(test::one == 1, "");
6764 namespace test_lambdas
6770 auto lambda1 = [](){};
6771 auto lambda2 = lambda1;
6779 auto a = [](int i, int j){ return i + j; }(1, 2);
6780 auto b = []() -> int { return '0'; }();
6781 auto c = [=](){ return a + b; }();
6782 auto d = [&](){ return c; }();
6783 auto e = [a, &b](int x) mutable {
6784 const auto identity = [](int y){ return y; };
6785 for (auto i = 0; i < a; ++i)
6787 return x + identity(a + b);
6789 return a + b + c + d + e;
6795 const auto nullary = [](){ return 0; };
6796 const auto unary = [](int x){ return x; };
6797 using nullary_t = decltype(nullary);
6798 using unary_t = decltype(unary);
6799 const auto higher1st = [](nullary_t f){ return f(); };
6800 const auto higher2nd = [unary](nullary_t f1){
6801 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6803 return higher1st(nullary) + higher2nd(nullary)(unary);
6808 namespace test_variadic_templates
6814 template <int N0, int... N1toN>
6815 struct sum<N0, N1toN...>
6817 static constexpr auto value = N0 + sum<N1toN...>::value;
6823 static constexpr auto value = 0;
6826 static_assert(sum<>::value == 0, "");
6827 static_assert(sum<1>::value == 1, "");
6828 static_assert(sum<23>::value == 23, "");
6829 static_assert(sum<1, 2>::value == 3, "");
6830 static_assert(sum<5, 5, 11>::value == 21, "");
6831 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6835 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6836 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6838 namespace test_template_alias_sfinae
6843 template<typename T>
6844 using member = typename T::member_type;
6846 template<typename T>
6849 template<typename T>
6850 void func(member<T>*) {}
6854 void test() { func<foo>(0); }
6858 } // namespace cxx11
6860 #endif // __cplusplus >= 201103L
6865 if ac_fn_cxx_try_compile "$LINENO"; then :
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 eval ac_res=\$$cachevar
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6875 $as_echo "$ac_res" >&6; }
6876 if eval test x\$$cachevar = xyes; then
6878 if test -n "$CXXCPP" ; then
6879 CXXCPP="$CXXCPP $switch"
6885 if test x$ac_success = xyes; then
6892 ac_cpp='$CPP $CPPFLAGS'
6893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6897 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6898 if test x$ac_success = xno; then
6899 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6902 if test x$ac_success = xno; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6905 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6909 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6915 if test "${build}" != "${host}"; then
6916 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6918 ac_cpp
='$CXXCPP $CPPFLAGS'
6919 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6920 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6921 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6923 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6924 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6925 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6926 CXX
="$CXX_FOR_BUILD"
6927 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6928 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6930 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6931 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6932 $as_echo_n "(cached) " >&6
6934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6938 // If the compiler admits that it is not ready for C++11, why torture it?
6939 // Hopefully, this will speed up the test.
6943 #error "This is not a C++ compiler"
6945 #elif __cplusplus < 201103L
6947 #error "This is not a C++11 compiler"
6954 namespace test_static_assert
6957 template <typename T>
6960 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6965 namespace test_final_override
6974 struct Derived : public Base
6976 virtual ~Derived() override {}
6977 virtual void f() override {}
6982 namespace test_double_right_angle_brackets
6985 template < typename T >
6988 typedef check<void> single_type;
6989 typedef check<check<void>> double_type;
6990 typedef check<check<check<void>>> triple_type;
6991 typedef check<check<check<check<void>>>> quadruple_type;
6995 namespace test_decltype
7008 namespace test_type_deduction
7011 template < typename T1, typename T2 >
7014 static const bool value = false;
7017 template < typename T >
7018 struct is_same<T, T>
7020 static const bool value = true;
7023 template < typename T1, typename T2 >
7025 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7031 test(const int c, volatile int v)
7033 static_assert(is_same<int, decltype(0)>::value == true, "");
7034 static_assert(is_same<int, decltype(c)>::value == false, "");
7035 static_assert(is_same<int, decltype(v)>::value == false, "");
7038 auto sumi = ac + av + 'x';
7039 auto sumf = ac + av + 1.0;
7040 static_assert(is_same<int, decltype(ac)>::value == true, "");
7041 static_assert(is_same<int, decltype(av)>::value == true, "");
7042 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7043 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7044 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7045 return (sumf > 0.0) ? sumi : add(c, v);
7050 namespace test_noexcept
7053 int f() { return 0; }
7054 int g() noexcept { return 0; }
7056 static_assert(noexcept(f()) == false, "");
7057 static_assert(noexcept(g()) == true, "");
7061 namespace test_constexpr
7064 template < typename CharT >
7065 unsigned long constexpr
7066 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7068 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7071 template < typename CharT >
7072 unsigned long constexpr
7073 strlen_c(const CharT *const s) noexcept
7075 return strlen_c_r(s, 0UL);
7078 static_assert(strlen_c("") == 0UL, "");
7079 static_assert(strlen_c("1") == 1UL, "");
7080 static_assert(strlen_c("example") == 7UL, "");
7081 static_assert(strlen_c("another\0example") == 7UL, "");
7085 namespace test_rvalue_references
7091 static constexpr int value = N;
7094 answer<1> f(int&) { return answer<1>(); }
7095 answer<2> f(const int&) { return answer<2>(); }
7096 answer<3> f(int&&) { return answer<3>(); }
7103 static_assert(decltype(f(i))::value == 1, "");
7104 static_assert(decltype(f(c))::value == 2, "");
7105 static_assert(decltype(f(0))::value == 3, "");
7110 namespace test_uniform_initialization
7115 static const int zero {};
7116 static const int one {1};
7119 static_assert(test::zero == 0, "");
7120 static_assert(test::one == 1, "");
7124 namespace test_lambdas
7130 auto lambda1 = [](){};
7131 auto lambda2 = lambda1;
7139 auto a = [](int i, int j){ return i + j; }(1, 2);
7140 auto b = []() -> int { return '0'; }();
7141 auto c = [=](){ return a + b; }();
7142 auto d = [&](){ return c; }();
7143 auto e = [a, &b](int x) mutable {
7144 const auto identity = [](int y){ return y; };
7145 for (auto i = 0; i < a; ++i)
7147 return x + identity(a + b);
7149 return a + b + c + d + e;
7155 const auto nullary = [](){ return 0; };
7156 const auto unary = [](int x){ return x; };
7157 using nullary_t = decltype(nullary);
7158 using unary_t = decltype(unary);
7159 const auto higher1st = [](nullary_t f){ return f(); };
7160 const auto higher2nd = [unary](nullary_t f1){
7161 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7163 return higher1st(nullary) + higher2nd(nullary)(unary);
7168 namespace test_variadic_templates
7174 template <int N0, int... N1toN>
7175 struct sum<N0, N1toN...>
7177 static constexpr auto value = N0 + sum<N1toN...>::value;
7183 static constexpr auto value = 0;
7186 static_assert(sum<>::value == 0, "");
7187 static_assert(sum<1>::value == 1, "");
7188 static_assert(sum<23>::value == 23, "");
7189 static_assert(sum<1, 2>::value == 3, "");
7190 static_assert(sum<5, 5, 11>::value == 21, "");
7191 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7195 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7196 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7198 namespace test_template_alias_sfinae
7203 template<typename T>
7204 using member = typename T::member_type;
7206 template<typename T>
7209 template<typename T>
7210 void func(member<T>*) {}
7214 void test() { func<foo>(0); }
7218 } // namespace cxx11
7220 #endif // __cplusplus >= 201103L
7225 if ac_fn_cxx_try_compile
"$LINENO"; then :
7226 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7228 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7233 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7234 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7238 if test x
$ac_success = xno
; then
7239 for alternative
in ${ax_cxx_compile_alternatives}; do
7240 switch
="-std=gnu++${alternative}"
7241 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7243 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7244 if eval \
${$cachevar+:} false
; then :
7245 $as_echo_n "(cached) " >&6
7249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7253 // If the compiler admits that it is not ready for C++11, why torture it?
7254 // Hopefully, this will speed up the test.
7258 #error "This is not a C++ compiler"
7260 #elif __cplusplus < 201103L
7262 #error "This is not a C++11 compiler"
7269 namespace test_static_assert
7272 template <typename T>
7275 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7280 namespace test_final_override
7289 struct Derived : public Base
7291 virtual ~Derived() override {}
7292 virtual void f() override {}
7297 namespace test_double_right_angle_brackets
7300 template < typename T >
7303 typedef check<void> single_type;
7304 typedef check<check<void>> double_type;
7305 typedef check<check<check<void>>> triple_type;
7306 typedef check<check<check<check<void>>>> quadruple_type;
7310 namespace test_decltype
7323 namespace test_type_deduction
7326 template < typename T1, typename T2 >
7329 static const bool value = false;
7332 template < typename T >
7333 struct is_same<T, T>
7335 static const bool value = true;
7338 template < typename T1, typename T2 >
7340 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7346 test(const int c, volatile int v)
7348 static_assert(is_same<int, decltype(0)>::value == true, "");
7349 static_assert(is_same<int, decltype(c)>::value == false, "");
7350 static_assert(is_same<int, decltype(v)>::value == false, "");
7353 auto sumi = ac + av + 'x';
7354 auto sumf = ac + av + 1.0;
7355 static_assert(is_same<int, decltype(ac)>::value == true, "");
7356 static_assert(is_same<int, decltype(av)>::value == true, "");
7357 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7358 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7359 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7360 return (sumf > 0.0) ? sumi : add(c, v);
7365 namespace test_noexcept
7368 int f() { return 0; }
7369 int g() noexcept { return 0; }
7371 static_assert(noexcept(f()) == false, "");
7372 static_assert(noexcept(g()) == true, "");
7376 namespace test_constexpr
7379 template < typename CharT >
7380 unsigned long constexpr
7381 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7383 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7386 template < typename CharT >
7387 unsigned long constexpr
7388 strlen_c(const CharT *const s) noexcept
7390 return strlen_c_r(s, 0UL);
7393 static_assert(strlen_c("") == 0UL, "");
7394 static_assert(strlen_c("1") == 1UL, "");
7395 static_assert(strlen_c("example") == 7UL, "");
7396 static_assert(strlen_c("another\0example") == 7UL, "");
7400 namespace test_rvalue_references
7406 static constexpr int value = N;
7409 answer<1> f(int&) { return answer<1>(); }
7410 answer<2> f(const int&) { return answer<2>(); }
7411 answer<3> f(int&&) { return answer<3>(); }
7418 static_assert(decltype(f(i))::value == 1, "");
7419 static_assert(decltype(f(c))::value == 2, "");
7420 static_assert(decltype(f(0))::value == 3, "");
7425 namespace test_uniform_initialization
7430 static const int zero {};
7431 static const int one {1};
7434 static_assert(test::zero == 0, "");
7435 static_assert(test::one == 1, "");
7439 namespace test_lambdas
7445 auto lambda1 = [](){};
7446 auto lambda2 = lambda1;
7454 auto a = [](int i, int j){ return i + j; }(1, 2);
7455 auto b = []() -> int { return '0'; }();
7456 auto c = [=](){ return a + b; }();
7457 auto d = [&](){ return c; }();
7458 auto e = [a, &b](int x) mutable {
7459 const auto identity = [](int y){ return y; };
7460 for (auto i = 0; i < a; ++i)
7462 return x + identity(a + b);
7464 return a + b + c + d + e;
7470 const auto nullary = [](){ return 0; };
7471 const auto unary = [](int x){ return x; };
7472 using nullary_t = decltype(nullary);
7473 using unary_t = decltype(unary);
7474 const auto higher1st = [](nullary_t f){ return f(); };
7475 const auto higher2nd = [unary](nullary_t f1){
7476 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7478 return higher1st(nullary) + higher2nd(nullary)(unary);
7483 namespace test_variadic_templates
7489 template <int N0, int... N1toN>
7490 struct sum<N0, N1toN...>
7492 static constexpr auto value = N0 + sum<N1toN...>::value;
7498 static constexpr auto value = 0;
7501 static_assert(sum<>::value == 0, "");
7502 static_assert(sum<1>::value == 1, "");
7503 static_assert(sum<23>::value == 23, "");
7504 static_assert(sum<1, 2>::value == 3, "");
7505 static_assert(sum<5, 5, 11>::value == 21, "");
7506 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7510 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7511 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7513 namespace test_template_alias_sfinae
7518 template<typename T>
7519 using member = typename T::member_type;
7521 template<typename T>
7524 template<typename T>
7525 void func(member<T>*) {}
7529 void test() { func<foo>(0); }
7533 } // namespace cxx11
7535 #endif // __cplusplus >= 201103L
7540 if ac_fn_cxx_try_compile
"$LINENO"; then :
7545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7548 eval ac_res
=\$
$cachevar
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7550 $as_echo "$ac_res" >&6; }
7551 if eval test x\$
$cachevar = xyes
; then
7553 if test -n "$CXXCPP" ; then
7554 CXXCPP
="$CXXCPP $switch"
7562 if test x
$ac_success = xno
; then
7563 for alternative
in ${ax_cxx_compile_alternatives}; do
7564 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7565 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7567 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7568 if eval \${$cachevar+:} false; then :
7569 $as_echo_n "(cached
) " >&6
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7577 // If the compiler admits that it is not ready for C++11, why torture it?
7578 // Hopefully, this will speed up the test.
7582 #error "This is not a C
++ compiler
"
7584 #elif __cplusplus < 201103L
7586 #error "This is not a C
++11 compiler
"
7593 namespace test_static_assert
7596 template <typename T>
7599 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7604 namespace test_final_override
7613 struct Derived : public Base
7615 virtual ~Derived() override {}
7616 virtual void f() override {}
7621 namespace test_double_right_angle_brackets
7624 template < typename T >
7627 typedef check<void> single_type;
7628 typedef check<check<void>> double_type;
7629 typedef check<check<check<void>>> triple_type;
7630 typedef check<check<check<check<void>>>> quadruple_type;
7634 namespace test_decltype
7647 namespace test_type_deduction
7650 template < typename T1, typename T2 >
7653 static const bool value = false;
7656 template < typename T >
7657 struct is_same<T, T>
7659 static const bool value = true;
7662 template < typename T1, typename T2 >
7664 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7670 test(const int c, volatile int v)
7672 static_assert(is_same<int, decltype(0)>::value == true, "");
7673 static_assert(is_same<int, decltype(c)>::value == false, "");
7674 static_assert(is_same<int, decltype(v)>::value == false, "");
7677 auto sumi = ac + av + 'x';
7678 auto sumf = ac + av + 1.0;
7679 static_assert(is_same<int, decltype(ac)>::value == true, "");
7680 static_assert(is_same<int, decltype(av)>::value == true, "");
7681 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7682 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7683 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7684 return (sumf > 0.0) ? sumi : add(c, v);
7689 namespace test_noexcept
7692 int f() { return 0; }
7693 int g() noexcept { return 0; }
7695 static_assert(noexcept(f()) == false, "");
7696 static_assert(noexcept(g()) == true, "");
7700 namespace test_constexpr
7703 template < typename CharT >
7704 unsigned long constexpr
7705 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7707 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7710 template < typename CharT >
7711 unsigned long constexpr
7712 strlen_c(const CharT *const s) noexcept
7714 return strlen_c_r(s, 0UL);
7717 static_assert(strlen_c("") == 0UL, "");
7718 static_assert(strlen_c("1") == 1UL, "");
7719 static_assert(strlen_c("example
") == 7UL, "");
7720 static_assert(strlen_c("another\
0example
") == 7UL, "");
7724 namespace test_rvalue_references
7730 static constexpr int value = N;
7733 answer<1> f(int&) { return answer<1>(); }
7734 answer<2> f(const int&) { return answer<2>(); }
7735 answer<3> f(int&&) { return answer<3>(); }
7742 static_assert(decltype(f(i))::value == 1, "");
7743 static_assert(decltype(f(c))::value == 2, "");
7744 static_assert(decltype(f(0))::value == 3, "");
7749 namespace test_uniform_initialization
7754 static const int zero {};
7755 static const int one {1};
7758 static_assert(test::zero == 0, "");
7759 static_assert(test::one == 1, "");
7763 namespace test_lambdas
7769 auto lambda1 = [](){};
7770 auto lambda2 = lambda1;
7778 auto a = [](int i, int j){ return i + j; }(1, 2);
7779 auto b = []() -> int { return '0'; }();
7780 auto c = [=](){ return a + b; }();
7781 auto d = [&](){ return c; }();
7782 auto e = [a, &b](int x) mutable {
7783 const auto identity = [](int y){ return y; };
7784 for (auto i = 0; i < a; ++i)
7786 return x + identity(a + b);
7788 return a + b + c + d + e;
7794 const auto nullary = [](){ return 0; };
7795 const auto unary = [](int x){ return x; };
7796 using nullary_t = decltype(nullary);
7797 using unary_t = decltype(unary);
7798 const auto higher1st = [](nullary_t f){ return f(); };
7799 const auto higher2nd = [unary](nullary_t f1){
7800 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7802 return higher1st(nullary) + higher2nd(nullary)(unary);
7807 namespace test_variadic_templates
7813 template <int N0, int... N1toN>
7814 struct sum<N0, N1toN...>
7816 static constexpr auto value = N0 + sum<N1toN...>::value;
7822 static constexpr auto value = 0;
7825 static_assert(sum<>::value == 0, "");
7826 static_assert(sum<1>::value == 1, "");
7827 static_assert(sum<23>::value == 23, "");
7828 static_assert(sum<1, 2>::value == 3, "");
7829 static_assert(sum<5, 5, 11>::value == 21, "");
7830 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7834 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7835 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7837 namespace test_template_alias_sfinae
7842 template<typename T>
7843 using member = typename T::member_type;
7845 template<typename T>
7848 template<typename T>
7849 void func(member<T>*) {}
7853 void test() { func<foo>(0); }
7857 } // namespace cxx11
7859 #endif // __cplusplus >= 201103L
7864 if ac_fn_cxx_try_compile "$LINENO"; then :
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 eval ac_res=\$$cachevar
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7874 $as_echo "$ac_res" >&6; }
7875 if eval test x\$$cachevar = xyes; then
7877 if test -n "$CXXCPP" ; then
7878 CXXCPP="$CXXCPP $switch"
7884 if test x$ac_success = xyes; then
7889 CXX_FOR_BUILD="$CXX"
7890 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7891 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7892 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7893 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7894 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7901 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7902 if test x$ac_success = xno; then
7903 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7906 if test x$ac_success = xno; then
7907 HAVE_CXX11_FOR_BUILD=0
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7909 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7911 HAVE_CXX11_FOR_BUILD=1
7913 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7921 # Check whether --enable-pgo-build was given.
7922 if test "${enable_pgo_build+set}" = set; then :
7923 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7929 # Issue errors and warnings for invalid/strange PGO build combinations.
7930 case "$have_compiler:$host:$target:$enable_pgo_build" in
7933 # Allow the PGO build only if we aren't building a compiler and
7934 # we are in a native configuration.
7935 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7937 # Disallow the PGO bootstrap if we are building a compiler.
7938 yes:*:*:yes |
yes:*:*:lto
)
7939 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7942 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7946 if test "$enable_pgo_build" != "no"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7948 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7949 old_CFLAGS
="$CFLAGS"
7950 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7951 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7957 if ac_fn_c_try_compile
"$LINENO"; then :
7960 PGO_BUILD_GEN_CFLAGS
=
7962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7963 CFLAGS
="$old_CFLAGS"
7964 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7966 $as_echo "yes" >&6; }
7967 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7974 if test "$enable_pgo_build" = "lto"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7976 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7977 old_CFLAGS
="$CFLAGS"
7978 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7979 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7984 if ac_fn_c_try_compile
"$LINENO"; then :
7987 PGO_BUILD_LTO_CFLAGS
=
7989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7990 CFLAGS
="$old_CFLAGS"
7991 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7993 $as_echo "yes" >&6; }
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7998 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8006 # Used for setting $lt_cv_objdir
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8008 $as_echo_n "checking for objdir... " >&6; }
8009 if ${lt_cv_objdir+:} false
; then :
8010 $as_echo_n "(cached) " >&6
8012 rm -f .libs
2>/dev
/null
8013 mkdir .libs
2>/dev
/null
8014 if test -d .libs
; then
8017 # MS-DOS does not allow filenames that begin with a dot.
8020 rmdir .libs
2>/dev
/null
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8023 $as_echo "$lt_cv_objdir" >&6; }
8024 objdir
=$lt_cv_objdir
8030 cat >>confdefs.h
<<_ACEOF
8031 #define LT_OBJDIR "$lt_cv_objdir/"
8036 # Check for GMP, MPFR and MPC
8039 if test -d ${srcdir}/gcc
; then
8043 if test -d ${srcdir}/gdb
; then
8044 if test "x$enable_gdb" != xno
; then
8049 gmplibs
="-lmpfr -lgmp"
8050 if test x
"$require_mpc" = "xyes" ; then
8051 gmplibs
="-lmpc $gmplibs"
8056 # Specify a location for mpc
8057 # check for this first so it ends up on the link line before mpfr.
8059 # Check whether --with-mpc was given.
8060 if test "${with_mpc+set}" = set; then :
8065 # Check whether --with-mpc-include was given.
8066 if test "${with_mpc_include+set}" = set; then :
8067 withval
=$with_mpc_include;
8071 # Check whether --with-mpc-lib was given.
8072 if test "${with_mpc_lib+set}" = set; then :
8073 withval
=$with_mpc_lib;
8077 if test "x$with_mpc" != x
; then
8078 gmplibs
="-L$with_mpc/lib $gmplibs"
8079 gmpinc
="-I$with_mpc/include $gmpinc"
8081 if test "x$with_mpc_include" != x
; then
8082 gmpinc
="-I$with_mpc_include $gmpinc"
8084 if test "x$with_mpc_lib" != x
; then
8085 gmplibs
="-L$with_mpc_lib $gmplibs"
8087 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
8088 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8089 gmpinc
='-I$$s/mpc/src '"$gmpinc"
8090 # Do not test the mpc version. Assume that it is sufficient, since
8091 # it is in the source tree, and the library has not been built yet
8092 # but it would be included on the link line in the version check below
8093 # hence making the test fail.
8097 # Specify a location for mpfr
8098 # check for this first so it ends up on the link line before gmp.
8100 # Check whether --with-mpfr was given.
8101 if test "${with_mpfr+set}" = set; then :
8106 # Check whether --with-mpfr-include was given.
8107 if test "${with_mpfr_include+set}" = set; then :
8108 withval
=$with_mpfr_include;
8112 # Check whether --with-mpfr-lib was given.
8113 if test "${with_mpfr_lib+set}" = set; then :
8114 withval
=$with_mpfr_lib;
8118 if test "x$with_mpfr" != x
; then
8119 gmplibs
="-L$with_mpfr/lib $gmplibs"
8120 gmpinc
="-I$with_mpfr/include $gmpinc"
8122 if test "x$with_mpfr_include" != x
; then
8123 gmpinc
="-I$with_mpfr_include $gmpinc"
8125 if test "x$with_mpfr_lib" != x
; then
8126 gmplibs
="-L$with_mpfr_lib $gmplibs"
8128 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8129 # MPFR v3.1.0 moved the sources into a src sub-directory.
8130 if ! test -d ${srcdir}/mpfr
/src
; then
8131 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8133 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8134 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8135 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8136 # Do not test the mpfr version. Assume that it is sufficient, since
8137 # it is in the source tree, and the library has not been built yet
8138 # but it would be included on the link line in the version check below
8139 # hence making the test fail.
8143 # Specify a location for gmp
8145 # Check whether --with-gmp was given.
8146 if test "${with_gmp+set}" = set; then :
8151 # Check whether --with-gmp-include was given.
8152 if test "${with_gmp_include+set}" = set; then :
8153 withval
=$with_gmp_include;
8157 # Check whether --with-gmp-lib was given.
8158 if test "${with_gmp_lib+set}" = set; then :
8159 withval
=$with_gmp_lib;
8164 if test "x$with_gmp" != x
; then
8165 gmplibs
="-L$with_gmp/lib $gmplibs"
8166 gmpinc
="-I$with_gmp/include $gmpinc"
8168 if test "x$with_gmp_include" != x
; then
8169 gmpinc
="-I$with_gmp_include $gmpinc"
8171 if test "x$with_gmp_lib" != x
; then
8172 gmplibs
="-L$with_gmp_lib $gmplibs"
8174 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8175 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8176 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8177 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8178 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8179 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8180 # Do not test the gmp version. Assume that it is sufficient, since
8181 # it is in the source tree, and the library has not been built yet
8182 # but it would be included on the link line in the version check below
8183 # hence making the test fail.
8187 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8189 saved_CFLAGS
="$CFLAGS"
8190 CFLAGS
="$CFLAGS $gmpinc"
8191 # Check for the recommended and required versions of GMP.
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8193 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8201 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8202 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8203 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8211 if ac_fn_c_try_compile
"$LINENO"; then :
8212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8219 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8220 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8221 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8229 if ac_fn_c_try_compile
"$LINENO"; then :
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8231 $as_echo "yes" >&6; }
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8234 $as_echo "buggy but acceptable" >&6; }
8236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }; have_gmp
=no
8241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8243 # If we have GMP, check the MPFR version.
8244 if test x
"$have_gmp" = xyes
; then
8245 # Check for the recommended and required versions of MPFR.
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8247 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8256 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8264 if ac_fn_c_try_compile
"$LINENO"; then :
8265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8273 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8281 if ac_fn_c_try_compile
"$LINENO"; then :
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8283 $as_echo "yes" >&6; }
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8286 $as_echo "buggy but acceptable" >&6; }
8288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }; have_gmp
=no
8293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8296 # Check for the MPC header version.
8297 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8298 # Check for the recommended and required versions of MPC.
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8300 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8308 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8316 if ac_fn_c_try_compile
"$LINENO"; then :
8317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8324 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8332 if ac_fn_c_try_compile
"$LINENO"; then :
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8334 $as_echo "yes" >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8337 $as_echo "buggy but acceptable" >&6; }
8339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }; have_gmp
=no
8344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8347 # Now check the MPFR library.
8348 if test x
"$have_gmp" = xyes
; then
8350 LIBS
="$LIBS $gmplibs"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8352 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8365 mpfr_atan2 (n, n, x, MPFR_RNDN);
8366 mpfr_erfc (n, x, MPFR_RNDN);
8367 mpfr_subnormalize (x, t, MPFR_RNDN);
8375 if ac_fn_c_try_link
"$LINENO"; then :
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8377 $as_echo "yes" >&6; }
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }; have_gmp
=no
8382 rm -f core conftest.err conftest.
$ac_objext \
8383 conftest
$ac_exeext conftest.
$ac_ext
8387 # Now check the MPC library
8388 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8390 LIBS
="$LIBS $gmplibs"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8392 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8402 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8403 mpc_cosh (c, c, MPC_RNDNN);
8404 mpc_pow (c, c, c, MPC_RNDNN);
8405 mpc_acosh (c, c, MPC_RNDNN);
8412 if ac_fn_c_try_link
"$LINENO"; then :
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8414 $as_echo "yes" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }; have_gmp
=no
8419 rm -f core conftest.err conftest.
$ac_objext \
8420 conftest
$ac_exeext conftest.
$ac_ext
8424 CFLAGS
="$saved_CFLAGS"
8426 # The library versions listed in the error message below should match
8427 # the HARD-minimums enforced above.
8428 if test x
$have_gmp != xyes
; then
8429 if test -d ${srcdir}/gcc
; then
8430 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8431 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8432 their locations. Source code for these libraries can be found at
8433 their respective hosting sites as well as at
8434 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8435 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8436 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8437 make sure that you have installed both the libraries and the header
8438 files. They may be located in separate packages." "$LINENO" 5
8440 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8441 Try the --with-gmp and/or --with-mpfr options to specify
8442 their locations. If you obtained GMP and/or MPFR from a vendor
8443 distribution package, make sure that you have installed both the libraries
8444 and the header files. They may be located in separate packages." "$LINENO" 5
8449 # Flags needed for both GMP, MPFR and/or MPC.
8457 # Libraries to use for stage1 or when not bootstrapping.
8459 # Check whether --with-stage1-libs was given.
8460 if test "${with_stage1_libs+set}" = set; then :
8461 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8464 stage1_libs
=$withval
8472 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8473 # default is yes if gcc is being built; no otherwise. The reason for
8474 # this default is that gdb is sometimes linked against GNU Source
8475 # Highlight, which is a shared library that uses C++ exceptions. In
8476 # this case, -static-libstdc++ will cause crashes.
8478 # Check whether --with-static-standard-libraries was given.
8479 if test "${with_static_standard_libraries+set}" = set; then :
8480 withval
=$with_static_standard_libraries;
8482 with_static_standard_libraries
=auto
8485 if test "$with_static_standard_libraries" = auto
; then
8486 with_static_standard_libraries
=$have_compiler
8489 # Linker flags to use for stage1 or when not bootstrapping.
8491 # Check whether --with-stage1-ldflags was given.
8492 if test "${with_stage1_ldflags+set}" = set; then :
8493 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8496 stage1_ldflags
=$withval
8500 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8501 # if supported. But if the user explicitly specified the libraries to use,
8502 # trust that they are doing what they want.
8503 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8504 -a "$have_static_libs" = yes; then
8505 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8511 # Libraries to use for stage2 and later builds.
8513 # Check whether --with-boot-libs was given.
8514 if test "${with_boot_libs+set}" = set; then :
8515 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8518 poststage1_libs
=$withval
8526 # Linker flags to use for stage2 and later builds.
8528 # Check whether --with-boot-ldflags was given.
8529 if test "${with_boot_ldflags+set}" = set; then :
8530 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8533 poststage1_ldflags
=$withval
8537 # In stages 2 and 3, default to linking libstdc++ and libgcc
8538 # statically. But if the user explicitly specified the libraries to
8539 # use, trust that they are doing what they want.
8540 if test "$poststage1_libs" = ""; then
8541 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8546 *-darwin2* |
*-darwin1[56789]*)
8547 # For these versions, we default to using embedded rpaths.
8548 if test "x$enable_darwin_at_rpath" != "xno"; then
8549 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
8553 # For these versions, we only use embedded rpaths on demand.
8554 if test "x$enable_darwin_at_rpath" = "xyes"; then
8555 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
8561 # GCC GRAPHITE dependency isl.
8562 # Basic setup is inlined here, actual checks are in config/isl.m4
8565 # Check whether --with-isl was given.
8566 if test "${with_isl+set}" = set; then :
8571 # Treat --without-isl as a request to disable
8572 # GRAPHITE support and skip all following checks.
8573 if test "x$with_isl" != "xno"; then
8577 # Check whether --with-isl-include was given.
8578 if test "${with_isl_include+set}" = set; then :
8579 withval
=$with_isl_include;
8583 # Check whether --with-isl-lib was given.
8584 if test "${with_isl_lib+set}" = set; then :
8585 withval
=$with_isl_lib;
8589 # Check whether --enable-isl-version-check was given.
8590 if test "${enable_isl_version_check+set}" = set; then :
8591 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8593 ENABLE_ISL_CHECK
=yes
8597 # Initialize isllibs and islinc.
8606 isllibs
="-L$with_isl/lib"
8607 islinc
="-I$with_isl/include"
8610 if test "x${with_isl_include}" != x
; then
8611 islinc
="-I$with_isl_include"
8613 if test "x${with_isl_lib}" != x
; then
8614 isllibs
="-L$with_isl_lib"
8616 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8617 && test -d ${srcdir}/isl
; then
8618 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8619 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8622 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8625 isllibs
="${isllibs} -lisl"
8629 if test "${ENABLE_ISL_CHECK}" = yes ; then
8630 _isl_saved_CFLAGS
=$CFLAGS
8631 _isl_saved_LDFLAGS
=$LDFLAGS
8632 _isl_saved_LIBS
=$LIBS
8634 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8635 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8636 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8639 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 #include <isl/schedule.h>
8646 isl_options_set_schedule_serialize_sccs (NULL, 0);
8651 if ac_fn_c_try_link
"$LINENO"; then :
8656 rm -f core conftest.err conftest.
$ac_objext \
8657 conftest
$ac_exeext conftest.
$ac_ext
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8659 $as_echo "$gcc_cv_isl" >&6; }
8661 if test "${gcc_cv_isl}" = no
; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8663 $as_echo "required isl version is 0.15 or later" >&6; }
8666 CFLAGS
=$_isl_saved_CFLAGS
8667 LDFLAGS
=$_isl_saved_LDFLAGS
8668 LIBS
=$_isl_saved_LIBS
8676 if test "x${with_isl}" = xno
; then
8677 graphite_requested
=no
8678 elif test "x${with_isl}" != x \
8679 ||
test "x${with_isl_include}" != x \
8680 ||
test "x${with_isl_lib}" != x
; then
8681 graphite_requested
=yes
8683 graphite_requested
=no
8688 if test "${gcc_cv_isl}" = no
; then
8693 if test "${graphite_requested}" = yes \
8694 && test "x${isllibs}" = x \
8695 && test "x${islinc}" = x
; then
8697 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8703 # If the isl check failed, disable builds of in-tree variant of isl
8704 if test "x$with_isl" = xno ||
8705 test "x$gcc_cv_isl" = xno
; then
8706 noconfigdirs
="$noconfigdirs isl"
8713 # Check for LTO support.
8714 # Check whether --enable-lto was given.
8715 if test "${enable_lto+set}" = set; then :
8716 enableval
=$enable_lto; enable_lto
=$enableval
8718 enable_lto
=yes; default_enable_lto
=yes
8727 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8728 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8729 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8738 if test $target_elf = yes; then :
8739 # ELF platforms build the lto-plugin always.
8740 build_lto_plugin
=yes
8743 if test x
"$default_enable_lto" = x
"yes" ; then
8745 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8746 # On other non-ELF platforms, LTO has yet to be validated.
8750 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8751 # It would also be nice to check the binutils support, but we don't
8752 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8753 # warn during gcc/ subconfigure; unless you're bootstrapping with
8754 # -flto it won't be needed until after installation anyway.
8756 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8757 *) if test x
"$enable_lto" = x
"yes"; then
8758 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8763 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8764 # Build it unless LTO was explicitly disabled.
8766 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8773 # Check whether --enable-linker-plugin-configure-flags was given.
8774 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8775 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8777 extra_linker_plugin_configure_flags
=
8781 # Check whether --enable-linker-plugin-flags was given.
8782 if test "${enable_linker_plugin_flags+set}" = set; then :
8783 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8785 extra_linker_plugin_flags
=
8790 # Handle --enable-host-pie
8791 # If host PIE executables are the default (or must be forced on) for some host,
8792 # we must pass that configuration to the gcc directory.
8794 # Check whether --enable-host-pie was given.
8795 if test "${enable_host_pie+set}" = set; then :
8796 enableval
=$enable_host_pie; host_pie
=$enableval
8799 if test x
$host_pie != xyes
; then
8800 # for Darwin20+ this is required.
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8802 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8804 gcc_host_pie
=--enable-host-pie
8811 # Default to PIE (mandatory for aarch64).
8813 gcc_host_pie
=--enable-host-pie
8823 # Enable --enable-host-shared.
8824 # Checked early to determine whether jit is an 'all' language
8825 # Check whether --enable-host-shared was given.
8826 if test "${enable_host_shared+set}" = set; then :
8827 enableval
=$enable_host_shared; host_shared
=$enableval
8829 x86_64-
*-darwin* | aarch64-
*-darwin*)
8830 if test x
$host_shared != xyes
; then
8831 # PIC is the default, and actually cannot be switched off.
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8833 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8837 if test x
$host_pie = xyes
-a x
$host_shared != xyes
; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8839 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8846 # 64B x86_64 and Aarch64 Darwin default to PIC.
8847 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8848 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8849 *-*-darwin*) host_shared
=$host_pie ;;
8857 if test x
$host_shared = xyes
; then
8860 # Since host shared is the default for 64b Darwin, and also enabled for
8861 # host_pie, ensure that we present the PIE flag when host_pie is active.
8862 if test x
$host_pie = xyes
; then
8870 elif test x
$host_pie = xyes
; then
8878 # If we are building PIC/PIE host executables, and we are building dependent
8879 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8882 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8883 host_libs_picflag
='--with-pic'
8887 # By default, C and C++ are the only stage 1 languages.
8888 stage1_languages
=,c
,
8890 # Target libraries that we bootstrap.
8891 bootstrap_target_libs
=,target-libgcc
,
8893 # Figure out what language subdirectories are present.
8894 # Look if the user specified --enable-languages="..."; if not, use
8895 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8897 # NB: embedded tabs in this IF block -- do not untabify
8898 if test -d ${srcdir}/gcc
; then
8899 if test x
"${enable_languages+set}" != xset
; then
8900 if test x
"${LANGUAGES+set}" = xset
; then
8901 enable_languages
="${LANGUAGES}"
8902 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8904 enable_languages
=default
8907 if test x
"${enable_languages}" = x ||
8908 test x
"${enable_languages}" = xyes
;
8910 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8914 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8916 # 'f95' is the old name for the 'fortran' language. We issue a warning
8917 # and make the substitution.
8918 case ,${enable_languages}, in
8920 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8921 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8925 # If bootstrapping, C++ must be enabled.
8926 case ",$enable_languages,:$enable_bootstrap" in
8929 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8930 enable_languages
="${enable_languages},c++"
8932 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8937 # First scan to see if an enabled language requires some other language.
8938 # We assume that a given config-lang.in will list all the language
8939 # front ends it requires, even if some are required indirectly.
8940 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8941 case ${lang_frag} in
8943 # The odd quoting in the next line works around
8944 # an apparent bug in bash 1.12 on linux.
8945 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8947 # From the config-lang.in, get $language, $lang_requires, and
8948 # $lang_requires_boot_languages.
8951 lang_requires_boot_languages
=
8952 # set srcdir during sourcing lang_frag to the gcc dir.
8953 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8954 # polutes this shell
8955 saved_srcdir
=${srcdir}
8956 srcdir
=${srcdir}/gcc .
${lang_frag}
8957 srcdir
=${saved_srcdir}
8958 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8959 case ,${enable_languages}, in
8964 echo " \`$other' language required by \`$language'; enabling" 1>&2
8965 enable_languages
="${enable_languages},${other}"
8969 for other
in ${lang_requires_boot_languages} ; do
8970 if test "$other" != "c"; then
8971 case ,${enable_stage1_languages}, in
8976 case ,${enable_languages}, in
8978 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8979 enable_stage1_languages
="$enable_stage1_languages,${other}"
8990 new_enable_languages
=,c
,
8992 # If LTO is enabled, add the LTO front end.
8993 if test "$enable_lto" = "yes" ; then
8994 case ,${enable_languages}, in
8996 *) enable_languages
="${enable_languages},lto" ;;
8998 if test "${build_lto_plugin}" = "yes" ; then
8999 configdirs
="$configdirs lto-plugin"
9003 # If we're building an offloading compiler, add the LTO front end.
9004 if test x
"$enable_as_accelerator_for" != x
; then
9005 case ,${enable_languages}, in
9007 *) enable_languages
="${enable_languages},lto" ;;
9011 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9012 potential_languages
=,c
,
9014 enabled_target_libs
=
9015 disabled_target_libs
=
9017 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
9018 case ${lang_frag} in
9020 # The odd quoting in the next line works around
9021 # an apparent bug in bash 1.12 on linux.
9022 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
9024 # From the config-lang.in, get $language, $target_libs,
9025 # $lang_dirs, $boot_language, and $build_by_default
9031 build_by_default
=yes
9032 # set srcdir during sourcing. See above about save & restore
9033 saved_srcdir
=${srcdir}
9034 srcdir
=${srcdir}/gcc .
${lang_frag}
9035 srcdir
=${saved_srcdir}
9036 if test x
${language} = x
; then
9037 echo "${lang_frag} doesn't set \$language." 1>&2
9041 if test "$language" = "c++"; then
9046 # C is always enabled, so no need to add it again
9047 if test "$language" != "c"; then
9048 case ,${enable_languages}, in
9050 # Language was explicitly selected; include it
9054 # All languages are enabled
9058 # 'default' was selected, select it if it is a default language
9059 add_this_lang
=${build_by_default}
9064 # Disable languages that need other directories if these aren't available.
9065 for i
in $subdir_requires; do
9066 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9067 case ${add_this_lang} in
9069 # Specifically requested language; tell them.
9070 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9074 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9075 add_this_lang
=unsupported
9079 add_this_lang
=unsupported
9084 # Disable Ada if no preexisting GNAT is available.
9085 case ${add_this_lang}:${language}:${have_gnat} in
9087 # Specifically requested language; tell them.
9088 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9092 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9093 add_this_lang
=unsupported
9097 add_this_lang
=unsupported
9101 # Disable D if no preexisting GDC is available.
9102 case ${add_this_lang}:${language}:${have_gdc} in
9104 # Specifically requested language; tell them.
9105 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9109 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9110 add_this_lang
=unsupported
9114 add_this_lang
=unsupported
9118 # Disable jit if -enable-host-shared not specified
9119 # but not if building for Mingw. All code in Windows
9120 # is position independent code (PIC).
9124 case ${add_this_lang}:${language}:${host_shared} in
9126 # PR jit/64780: explicitly specify --enable-host-shared
9128 Enabling language \"jit\" requires --enable-host-shared.
9130 --enable-host-shared typically slows the rest of the compiler down by
9131 a few %, so you must explicitly enable it.
9133 If you want to build both the jit and the regular compiler, it is often
9134 best to do this via two separate configure/builds, in separate
9135 directories, to avoid imposing the performance cost of
9136 --enable-host-shared on the regular compiler." "$LINENO" 5
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9140 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9141 add_this_lang
=unsupported
9145 add_this_lang
=unsupported
9151 # Pre-conditions to consider whether cargo being supported.
9152 if test x
"$have_cargo" = xyes \
9153 && test x
"$build" != x
"$host"; then
9154 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
9155 # "'cargo' should build for the host system" is resolved:
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
9157 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
9160 # Assume that cargo-produced object files are compatible with what
9161 # we're going to build here.
9164 # Disable Rust if cargo is unavailable.
9165 case ${add_this_lang}:${language}:${have_cargo} in
9167 # Specifically requested language; tell them.
9168 as_fn_error $?
"cargo is required to build $language" "$LINENO" 5
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
9172 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
9173 add_this_lang
=unsupported
9177 add_this_lang
=unsupported
9182 # Disable a language that is unsupported by the target.
9183 case "${add_this_lang}: $unsupported_languages " in
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9188 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9189 add_this_lang
=unsupported
9193 case $add_this_lang in
9195 # Remove language-dependent dirs.
9196 disabled_target_libs
="$disabled_target_libs $target_libs"
9197 noconfigdirs
="$noconfigdirs $lang_dirs"
9200 # Remove language-dependent dirs; still show language as supported.
9201 disabled_target_libs
="$disabled_target_libs $target_libs"
9202 noconfigdirs
="$noconfigdirs $lang_dirs"
9203 potential_languages
="${potential_languages}${language},"
9206 new_enable_languages
="${new_enable_languages}${language},"
9207 potential_languages
="${potential_languages}${language},"
9208 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9209 enabled_target_libs
="$enabled_target_libs $target_libs"
9210 case "${boot_language}:,$enable_stage1_languages," in
9211 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9212 # Add to (comma-separated) list of stage 1 languages.
9213 case ",$stage1_languages," in
9214 *,$language,* |
,yes, |
,all
,) ;;
9215 *) stage1_languages
="${stage1_languages}${language}," ;;
9217 # We need to bootstrap any supporting libraries.
9218 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9227 # Add target libraries which are only needed for disabled languages
9229 if test -n "$disabled_target_libs"; then
9230 for dir
in $disabled_target_libs; do
9231 case " $enabled_target_libs " in
9233 *) noconfigdirs
="$noconfigdirs $dir" ;;
9238 # Check whether --enable-stage1-languages was given.
9239 if test "${enable_stage1_languages+set}" = set; then :
9240 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9242 # Set it to something that will have no effect in the loop below
9243 enable_stage1_languages
=c
;;
9245 enable_stage1_languages
=`echo $new_enable_languages | \
9246 sed -e "s/^,//" -e "s/,$//" ` ;;
9248 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9249 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9252 # Add "good" languages from enable_stage1_languages to stage1_languages,
9253 # while "bad" languages go in missing_languages. Leave no duplicates.
9254 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9255 case $potential_languages in
9257 case $stage1_languages in
9259 *) stage1_languages
="$stage1_languages$i," ;;
9262 case $missing_languages in
9264 *) missing_languages
="$missing_languages$i," ;;
9271 # Remove leading/trailing commas that were added for simplicity
9272 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9273 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9274 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9275 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9277 if test "x$missing_languages" != x
; then
9279 The following requested languages could not be built: ${missing_languages}
9280 Supported languages are: ${potential_languages}" "$LINENO" 5
9282 if test "x$new_enable_languages" != "x$enable_languages"; then
9283 echo The following languages will be built
: ${new_enable_languages}
9284 enable_languages
="$new_enable_languages"
9288 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9291 # Handle --disable-<component> generically.
9292 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9293 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9294 varname
=`echo $dirname | sed -e s/+/_/g`
9295 if eval test x\
${enable_${varname}} "=" xno
; then
9296 noconfigdirs
="$noconfigdirs $dir"
9300 # Check for Boehm's garbage collector
9301 # Check whether --enable-objc-gc was given.
9302 if test "${enable_objc_gc+set}" = set; then :
9303 enableval
=$enable_objc_gc;
9307 # Check whether --with-target-bdw-gc was given.
9308 if test "${with_target_bdw_gc+set}" = set; then :
9309 withval
=$with_target_bdw_gc;
9313 # Check whether --with-target-bdw-gc-include was given.
9314 if test "${with_target_bdw_gc_include+set}" = set; then :
9315 withval
=$with_target_bdw_gc_include;
9319 # Check whether --with-target-bdw-gc-lib was given.
9320 if test "${with_target_bdw_gc_lib+set}" = set; then :
9321 withval
=$with_target_bdw_gc_lib;
9325 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9327 $as_echo_n "checking for bdw garbage collector... " >&6; }
9328 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9330 $as_echo "using bdw-gc in default locations" >&6; }
9332 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9333 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9334 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9335 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9338 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9343 # Disable libitm, libsanitizer, libvtv if we're not building C++
9344 case ,${enable_languages}, in
9346 # Disable libitm, libsanitizer if we're not building libstdc++
9347 case "${noconfigdirs}" in
9348 *target-libstdc
++-v3*)
9349 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9355 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9359 case ,${enable_languages}, in
9361 case " ${noconfigdirs} " in
9362 *\ target-libstdc
++-v3\
*)
9363 # Disable target libgrust if we're not building target libstdc++.
9364 noconfigdirs
="$noconfigdirs target-libgrust"
9370 # If gcc/ is not in the source tree then we'll not be building a
9371 # target compiler, assume in that case we don't want to build any
9372 # target libraries or tools.
9374 # This was added primarily for the benefit for binutils-gdb who reuse
9375 # this configure script, but don't always have target tools available.
9376 if test ! -d ${srcdir}/gcc
; then
9377 skipdirs
="${skipdirs} ${target_configdirs}"
9380 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9381 # $build_configdirs and $target_configdirs.
9382 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9385 for dir
in .
$skipdirs $noconfigdirs ; do
9386 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9387 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9388 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9389 if test -r $srcdir/$dirname/configure
; then
9390 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9393 notsupp
="$notsupp $dir"
9397 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9398 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9399 if test -r $srcdir/$dirname/configure
; then
9400 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9403 notsupp
="$notsupp $dir"
9407 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9408 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9409 if test -r $srcdir/$dirname/configure
; then
9410 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9413 notsupp
="$notsupp $dir"
9419 # Quietly strip out all directories which aren't configurable in this tree.
9420 # This relies on all configurable subdirectories being autoconfiscated, which
9422 build_configdirs_all
="$build_configdirs"
9424 for i
in ${build_configdirs_all} ; do
9425 j
=`echo $i | sed -e s/build-//g`
9426 if test -f ${srcdir}/$j/configure
; then
9427 build_configdirs
="${build_configdirs} $i"
9431 configdirs_all
="$configdirs"
9433 for i
in ${configdirs_all} ; do
9434 if test -f ${srcdir}/$i/configure
; then
9435 configdirs
="${configdirs} $i"
9439 target_configdirs_all
="$target_configdirs"
9441 for i
in ${target_configdirs_all} ; do
9442 j
=`echo $i | sed -e s/target-//g`
9443 if test -f ${srcdir}/$j/configure
; then
9444 target_configdirs
="${target_configdirs} $i"
9448 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9449 # so we have to add it after the preceding checks.
9450 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9452 case " $configdirs " in
9454 # If we can build libiberty, we can also build libiberty-linker-plugin.
9455 configdirs
="$configdirs libiberty-linker-plugin"
9456 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9457 --with-libiberty=../libiberty-linker-plugin";;
9459 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9463 # Sometimes we have special requirements for the host libiberty.
9464 extra_host_libiberty_configure_flags
=
9465 case " $configdirs " in
9466 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9467 # When these are to be built as shared libraries, the same applies to
9469 extra_host_libiberty_configure_flags
=--enable-shared
9474 # Sometimes we have special requirements for the host zlib.
9475 extra_host_zlib_configure_flags
=
9476 case " $configdirs " in
9478 # When bfd is to be built as a shared library, the same applies to
9480 if test "$enable_shared" = "yes"; then
9481 extra_host_zlib_configure_flags
=--enable-host-shared
9487 # Produce a warning message for the subdirs we can't configure.
9488 # This isn't especially interesting in the Cygnus tree, but in the individual
9489 # FSF releases, it's important to let people know when their machine isn't
9490 # supported by the one or two programs in a package.
9492 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9493 # If $appdirs is non-empty, at least one of those directories must still
9494 # be configured, or we error out. (E.g., if the gas release supports a
9495 # specified target in some subdirs but not the gas subdir, we shouldn't
9496 # pretend that all is well.)
9497 if test -n "$appdirs" ; then
9498 for dir
in $appdirs ; do
9499 if test -r $dir/Makefile.
in ; then
9500 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9504 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9510 if test -n "$appdirs" ; then
9511 echo "*** This configuration is not supported by this package." 1>&2
9515 # Okay, some application will build, or we don't care to check. Still
9516 # notify of subdirs not getting built.
9517 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9518 echo " ${notsupp}" 1>&2
9519 echo " (Any other directories should still work fine.)" 1>&2
9527 # To find our prefix, in gcc_cv_tool_prefix.
9529 # The user is always right.
9530 if test "${PATH_SEPARATOR+set}" != set; then
9531 echo "#! /bin/sh" >conf$$.sh
9532 echo "exit 0" >>conf$$.sh
9534 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9543 get_gcc_base_ver
="cat"
9545 # Check whether --with-gcc-major-version-only was given.
9546 if test "${with_gcc_major_version_only+set}" = set; then :
9547 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9548 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9558 if test "x$exec_prefix" = xNONE
; then
9559 if test "x$prefix" = xNONE
; then
9560 gcc_cv_tool_prefix
=$ac_default_prefix
9562 gcc_cv_tool_prefix
=$prefix
9565 gcc_cv_tool_prefix
=$exec_prefix
9568 # If there is no compiler in the tree, use the PATH only. In any
9569 # case, if there is no compiler in the tree nobody should use
9570 # AS_FOR_TARGET and LD_FOR_TARGET.
9571 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9572 if test x
$with_gcc_major_version_only = xyes
; then
9573 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9575 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9577 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9578 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9579 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9580 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9581 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9582 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9587 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9588 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9596 # Check whether --with-build-sysroot was given.
9597 if test "${with_build_sysroot+set}" = set; then :
9598 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9599 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9602 SYSROOT_CFLAGS_FOR_TARGET
=
9608 # Check whether --with-debug-prefix-map was given.
9609 if test "${with_debug_prefix_map+set}" = set; then :
9610 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9611 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9612 for debug_map
in $withval; do
9613 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9617 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9622 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9623 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9624 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9625 # We want to ensure that TARGET libraries (which we know are built with
9626 # gcc) are built with "-O2 -g", so include those options when setting
9627 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9628 if test "x$CFLAGS_FOR_TARGET" = x
; then
9629 if test "x${is_cross_compiler}" = xyes
; then
9630 CFLAGS_FOR_TARGET
="-g -O2"
9632 CFLAGS_FOR_TARGET
=$CFLAGS
9635 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9638 *" -g "* |
*" -g3 "*) ;;
9639 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9645 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9646 if test "x${is_cross_compiler}" = xyes
; then
9647 CXXFLAGS_FOR_TARGET
="-g -O2"
9649 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9650 case " $CXXFLAGS " in
9652 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9654 case " $CXXFLAGS " in
9655 *" -g "* |
*" -g3 "*) ;;
9656 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9664 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9665 # the named directory are copied to $(tooldir)/sys-include.
9666 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9667 if test x
${is_cross_compiler} = xno
; then
9668 echo 1>&2 '***' --with-headers is only supported when cross compiling
9671 if test x
"${with_headers}" != xyes
; then
9672 x
=${gcc_cv_tool_prefix}
9673 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9677 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9678 # the name directories are copied to $(tooldir)/lib. Multiple directories
9680 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9681 if test x
${is_cross_compiler} = xno
; then
9682 echo 1>&2 '***' --with-libs is only supported when cross compiling
9685 if test x
"${with_libs}" != xyes
; then
9686 # Copy the libraries in reverse order, so that files in the first named
9687 # library override files in subsequent libraries.
9688 x
=${gcc_cv_tool_prefix}
9689 for l
in ${with_libs}; do
9690 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9695 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9697 # This is done by determining whether or not the appropriate directory
9698 # is available, and by checking whether or not specific configurations
9699 # have requested that this magic not happen.
9701 # The command line options always override the explicit settings in
9702 # configure.ac, and the settings in configure.ac override this magic.
9704 # If the default for a toolchain is to use GNU as and ld, and you don't
9705 # want to do that, then you should use the --without-gnu-as and
9706 # --without-gnu-ld options for the configure script. Similarly, if
9707 # the default is to use the included zlib and you don't want to do that,
9708 # you should use the --with-system-zlib option for the configure script.
9710 if test x
${use_gnu_as} = x
&&
9711 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9713 extra_host_args
="$extra_host_args --with-gnu-as"
9716 if test x
${use_gnu_ld} = x
&&
9717 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9719 extra_host_args
="$extra_host_args --with-gnu-ld"
9722 if test x
${use_included_zlib} = x
&&
9723 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9726 with_system_zlib
=yes
9727 extra_host_args
="$extra_host_args --with-system-zlib"
9730 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9731 # can detect this case.
9733 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9735 extra_host_args
="$extra_host_args --with-newlib"
9738 # Handle ${copy_dirs}
9739 set fnord
${copy_dirs}
9741 while test $# != 0 ; do
9742 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9745 echo Copying
$1 to
$2
9747 # Use the install script to create the directory and all required
9748 # parent directories.
9749 if test -d $2 ; then
9753 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9756 # Copy the directory, assuming we have tar.
9757 # FIXME: Should we use B in the second tar? Not all systems support it.
9758 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9760 # It is the responsibility of the user to correctly adjust all
9761 # symlinks. If somebody can figure out how to handle them correctly
9762 # here, feel free to add the code.
9769 # Determine a target-dependent exec_prefix that the installed
9770 # gcc will search in. Keep this list sorted by triplet, with
9771 # the *-*-osname triplets last.
9774 i
[34567]86-pc-msdosdjgpp*)
9775 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9780 md_exec_prefix
=/usr
/ccs
/bin
9784 extra_arflags_for_target
=
9785 extra_nmflags_for_target
=
9786 extra_ranlibflags_for_target
=
9787 target_makefile_frag
=/dev
/null
9790 target_makefile_frag
="config/mt-spu"
9792 loongarch
*-*linux
* | loongarch
*-*gnu
*)
9793 target_makefile_frag
="config/mt-loongarch-gnu"
9796 target_makefile_frag
="config/mt-loongarch-elf"
9798 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9799 target_makefile_frag
="config/mt-sde"
9801 mipsisa
*-*-elfoabi*)
9802 target_makefile_frag
="config/mt-mips-elfoabi"
9804 mips
*-*-*linux
* | mips
*-*-gnu*)
9805 target_makefile_frag
="config/mt-mips-gnu"
9808 target_makefile_frag
="config/mt-nios2-elf"
9811 target_makefile_frag
="config/mt-android"
9813 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9814 target_makefile_frag
="config/mt-gnu"
9816 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9817 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9818 # commands to handle both 32-bit and 64-bit objects. These flags are
9819 # harmless if we're using GNU nm or ar.
9820 extra_arflags_for_target
=" -X32_64"
9821 extra_nmflags_for_target
=" -B -X32_64"
9825 alphaieee_frag
=/dev
/null
9828 # This just makes sure to use the -mieee option to build target libs.
9829 # This should probably be set individually by each library.
9830 alphaieee_frag
="config/mt-alphaieee"
9834 # If --enable-target-optspace always use -Os instead of -O2 to build
9835 # the target libraries, similarly if it is not specified, use -Os
9836 # on selected platforms.
9837 ospace_frag
=/dev
/null
9838 case "${enable_target_optspace}:${target}" in
9840 ospace_frag
="config/mt-ospace"
9843 ospace_frag
="config/mt-d30v"
9845 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9846 ospace_frag
="config/mt-ospace"
9851 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9855 # Some systems (e.g., one of the i386-aix systems the gas testers are
9856 # using) don't handle "\$" correctly, so don't use it here.
9857 tooldir
='${exec_prefix}'/${target_noncanonical}
9858 build_tooldir
=${tooldir}
9860 # Create a .gdbinit file which runs the one in srcdir
9861 # and tells GDB to look there for source files.
9863 if test -r ${srcdir}/.gdbinit
; then
9866 *) cat > .
/.gdbinit
<<EOF
9870 source ${srcdir}/.gdbinit
9876 # Make sure that the compiler is able to generate an executable. If it
9877 # can't, we are probably in trouble. We don't care whether we can run the
9878 # executable--we might be using a cross compiler--we only care whether it
9879 # can be created. At this point the main configure script has set CC.
9881 echo "int main () { return 0; }" > conftest.c
9882 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9883 if test $?
= 0 ; then
9884 if test -s conftest ||
test -s conftest.exe
; then
9890 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9891 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9898 # Decide which environment variable is used to find dynamic libraries.
9900 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9901 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9902 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9903 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9906 # On systems where the dynamic library environment variable is PATH,
9907 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9908 # built executables to PATH.
9909 if test "$RPATH_ENVVAR" = PATH
; then
9910 GCC_SHLIB_SUBDIR
=/shlib
9915 # Adjust the toplevel makefile according to whether bootstrap was selected.
9916 case $enable_bootstrap in
9918 bootstrap_suffix
=bootstrap
9919 BUILD_CONFIG
=bootstrap-debug
9922 bootstrap_suffix
=no-bootstrap
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9928 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9931 # Check whether --with-build-config was given.
9932 if test "${with_build_config+set}" = set; then :
9933 withval
=$with_build_config; case $with_build_config in
9934 yes) with_build_config
= ;;
9935 no
) with_build_config
= BUILD_CONFIG
= ;;
9940 if test "x${with_build_config}" != x
; then
9941 BUILD_CONFIG
=$with_build_config
9943 case $BUILD_CONFIG in
9945 if echo "int f (void) { return 0; }" > conftest.c
&&
9946 ${CC} -c conftest.c
&&
9947 mv conftest.o conftest.o.g0
&&
9948 ${CC} -c -g conftest.c
&&
9949 mv conftest.o conftest.o.g
&&
9950 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9955 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9960 $as_echo "$BUILD_CONFIG" >&6; }
9963 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9965 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9966 # Check whether --enable-vtable-verify was given.
9967 if test "${enable_vtable_verify+set}" = set; then :
9968 enableval
=$enable_vtable_verify; case "$enableval" in
9969 yes) enable_vtable_verify
=yes ;;
9970 no
) enable_vtable_verify
=no
;;
9971 *) enable_vtable_verify
=no
;;
9974 enable_vtable_verify
=no
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9978 $as_echo "$enable_vtable_verify" >&6; }
9980 # Record target_configdirs and the configure arguments for target and
9981 # build configuration in Makefile.
9982 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9983 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9984 bootstrap_fixincludes
=no
9986 # If we are building libgomp, bootstrap it.
9987 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9988 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9991 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9992 # or bootstrap-ubsan, bootstrap it.
9993 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9994 case "$BUILD_CONFIG" in
9995 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9996 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9997 bootstrap_fixincludes
=yes
10002 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
10003 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
10004 test "$enable_vtable_verify" != no
; then
10005 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
10008 # If we are building libatomic and the list of enabled languages includes the
10009 # D frontend, bootstrap it.
10010 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
10011 case ,${enable_languages}, in
10013 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
10018 # Determine whether gdb needs tk/tcl or not.
10019 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
10020 # and in that case we want gdb to be built without tk. Ugh!
10021 # In fact I believe gdb is the *only* package directly dependent on tk,
10022 # so we should be able to put the 'maybe's in unconditionally and
10023 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
10024 # 100% sure that that's safe though.
10026 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
10027 case "$enable_gdbtk" in
10031 GDB_TK
="${gdb_tk}" ;;
10033 # Only add the dependency on gdbtk when GDBtk is part of the gdb
10034 # distro. Eventually someone will fix this and move Insight, nee
10035 # gdbtk to a separate directory.
10036 if test -d ${srcdir}/gdb
/gdbtk
; then
10043 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
10044 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
10046 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
10047 # else does, only include them if one of these is built. The Makefile
10048 # provides the ordering, so it's enough here to add to the list.
10049 case " ${configdirs} " in
10051 configdirs
="${configdirs} gnulib gdbsupport"
10054 configdirs
="${configdirs} gnulib gdbsupport"
10057 configdirs
="${configdirs} gnulib"
10061 # Strip out unwanted targets.
10063 # While at that, we remove Makefiles if we were started for recursive
10064 # configuration, so that the top-level Makefile reconfigures them,
10065 # like we used to do when configure itself was recursive.
10067 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
10068 # but now we're fixing up the Makefile ourselves with the additional
10069 # commands passed to AC_CONFIG_FILES. Use separate variables
10070 # extrasub-{build,host,target} not because there is any reason to split
10071 # the substitutions up that way, but only to remain below the limit of
10072 # 99 commands in a script, for HP-UX sed.
10074 # Do not nest @if/@endif or @unless/@endunless pairs, because
10075 # configure will not warn you at all.
10077 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
10078 yes:yes:*\ gold\
*:*,c
++,*) ;;
10079 yes:yes:*\ gold\
*:*)
10080 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
10085 for module
in ${build_configdirs} ; do
10086 if test -z "${no_recursion}" \
10087 && test -f ${build_subdir}/${module}/Makefile
; then
10088 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
10089 rm -f ${build_subdir}/${module}/Makefile
10091 extrasub_build
="$extrasub_build
10092 /^@if build-$module\$/d
10093 /^@endif build-$module\$/d
10094 /^@unless build-$module\$/,/^@endunless build-$module\$/d
10095 /^@if build-$module-$bootstrap_suffix\$/d
10096 /^@endif build-$module-$bootstrap_suffix\$/d
10097 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
10100 for module
in ${configdirs} ; do
10101 if test -z "${no_recursion}"; then
10102 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
10103 if test -f ${file}; then
10104 echo 1>&2 "*** removing ${file} to force reconfigure"
10109 case ${module},${bootstrap_fixincludes} in
10110 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
10111 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
10113 extrasub_host
="$extrasub_host
10115 /^@endif $module\$/d
10116 /^@unless $module\$/,/^@endunless $module\$/d
10117 /^@if $module-$host_bootstrap_suffix\$/d
10118 /^@endif $module-$host_bootstrap_suffix\$/d
10119 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
10122 for module
in ${target_configdirs} ; do
10123 if test -z "${no_recursion}" \
10124 && test -f ${target_subdir}/${module}/Makefile
; then
10125 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
10126 rm -f ${target_subdir}/${module}/Makefile
10129 # We only bootstrap target libraries listed in bootstrap_target_libs.
10130 case $bootstrap_target_libs in
10131 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
10132 *) target_bootstrap_suffix
=no-bootstrap
;;
10135 extrasub_target
="$extrasub_target
10136 /^@if target-$module\$/d
10137 /^@endif target-$module\$/d
10138 /^@unless target-$module\$/,/^@endunless target-$module\$/d
10139 /^@if target-$module-$target_bootstrap_suffix\$/d
10140 /^@endif target-$module-$target_bootstrap_suffix\$/d
10141 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
10144 # Do the final fixup along with target modules.
10145 extrasub_target
="$extrasub_target
10146 /^@if /,/^@endif /d
10150 if test "$enable_pgo_build" != "no"; then
10151 extrasub_build
="$extrasub_build
10152 /^@if pgo-build\$/d
10153 /^@endif pgo-build\$/d"
10156 # Create the serialization dependencies. This uses a temporary file.
10158 # Check whether --enable-serial-configure was given.
10159 if test "${enable_serial_configure+set}" = set; then :
10160 enableval
=$enable_serial_configure;
10164 case ${enable_serial_configure} in
10166 enable_serial_build_configure
=yes
10167 enable_serial_host_configure
=yes
10168 enable_serial_target_configure
=yes
10172 # These force 'configure's to be done one at a time, to avoid problems
10173 # with contention over a shared config.cache.
10175 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
10176 echo '# serdep.tmp' > serdep.tmp
10179 test "x${enable_serial_build_configure}" = xyes
&&
10180 for item
in ${build_configdirs} ; do
10183 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
10188 test "x${enable_serial_host_configure}" = xyes
&&
10189 for item
in ${configdirs} ; do
10192 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
10197 test "x${enable_serial_target_configure}" = xyes
&&
10198 for item
in ${target_configdirs} ; do
10201 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
10205 serialization_dependencies
=serdep.tmp
10208 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10209 # target, nonopt, and variable assignments. These are the ones we
10210 # might not want to pass down to subconfigures. The exception being
10211 # --cache-file=/dev/null, which is used to turn off the use of cache
10212 # files altogether, and which should be passed on to subconfigures.
10213 # Also strip program-prefix, program-suffix, and program-transform-name,
10214 # so that we can pass down a consistent program-transform-name.
10220 eval "set -- $ac_configure_args"
10223 if test X
"$skip_next" = X
"yes"; then
10227 if test X
"$keep_next" = X
"yes"; then
10230 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10232 hbaseargs
="$hbaseargs '$ac_arg'"
10233 bbaseargs
="$bbaseargs '$ac_arg'"
10234 tbaseargs
="$tbaseargs '$ac_arg'"
10239 # Handle separated arguments. Based on the logic generated by
10242 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10243 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10244 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10245 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10260 --with-* |
--without-*)
10261 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10265 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10268 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10271 lib
=`echo "$libopt" | sed 's,[-_]prefix$,,'`
10274 lib
=`echo "$libopt" | sed 's,[-_]type$,,'`
10283 mpc | mpfr | gmp | isl
)
10284 # If we're processing --with-$lib, --with-$lib-include or
10285 # --with-$lib-lib, for one of the libs above, and target is
10286 # different from host, don't pass the current argument to any
10287 # target library's configure.
10288 if test x
$is_cross_compiler = xyes
; then
10292 libintl | libiconv
)
10293 # We don't want libintl (and co.) in anything but the host arguments.
10302 --cache-file=/dev
/null | \
10303 -cache-file=/dev
/null
)
10304 # Handled here to avoid the test to skip args below.
10305 hbaseargs
="$hbaseargs '$ac_arg'"
10306 bbaseargs
="$bbaseargs '$ac_arg'"
10307 tbaseargs
="$tbaseargs '$ac_arg'"
10308 # Assert: $separate_arg should always be no.
10309 keep_next
=$separate_arg
10325 -program-prefix* | \
10326 -program-suffix* | \
10327 -program-transform-name* )
10328 skip_next
=$separate_arg
10332 # An option. Add it.
10335 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10337 hbaseargs
="$hbaseargs '$ac_arg'"
10338 if test X
"$skip_barg" = Xno
; then
10339 bbaseargs
="$bbaseargs '$ac_arg'"
10341 if test X
"$skip_targ" = Xno
; then
10342 tbaseargs
="$tbaseargs '$ac_arg'"
10344 keep_next
=$separate_arg
10347 # Either a variable assignment, or a nonopt (triplet). Don't
10348 # pass it down; let the Makefile handle this.
10353 # Remove the initial space we just introduced and, as these will be
10354 # expanded by make, quote '$'.
10355 hbaseargs
=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10356 bbaseargs
=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10358 # Add in --program-transform-name, after --program-prefix and
10359 # --program-suffix have been applied to it. Autoconf has already
10360 # doubled dollar signs and backslashes in program_transform_name; we want
10361 # the backslashes un-doubled, and then the entire thing wrapped in single
10362 # quotes, because this will be expanded first by make and then by the shell.
10363 # Also, because we want to override the logic in subdir configure scripts to
10364 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10365 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10366 ${program_transform_name}
10368 gcc_transform_name
=`cat conftestsed.out`
10369 rm -f conftestsed.out
10370 hbaseargs
="$hbaseargs --program-transform-name='${gcc_transform_name}'"
10371 bbaseargs
="$bbaseargs --program-transform-name='${gcc_transform_name}'"
10372 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10373 if test "$silent" = yes; then
10374 bbaseargs
="$bbaseargs --silent"
10375 hbaseargs
="$hbaseargs --silent"
10376 tbaseargs
="$tbaseargs --silent"
10379 bbaseargs
="$bbaseargs --disable-option-checking"
10380 hbaseargs
="$hbaseargs --disable-option-checking"
10381 tbaseargs
="$tbaseargs --disable-option-checking"
10383 if test "$enable_year2038" = no
; then
10384 baseargs
="$baseargs --disable-year2038"
10385 tbaseargs
="$tbaseargs --disable-year2038"
10388 # Record and document user additions to sub configure arguments.
10393 # For the build-side libraries, we just need to pretend we're native,
10394 # and not use the same cache file. Multilibs are neither needed nor
10395 # desired. We can't even use the same cache file for all build-side
10396 # libraries, as they're compiled differently; some with C, some with
10397 # C++ or with different feature-enabling options.
10398 build_configargs
="$build_configargs --cache-file=./config.cache ${bbaseargs}"
10400 # For host modules, accept cache file option, or specification as blank.
10401 case "${cache_file}" in
10403 cache_file_option
="" ;;
10404 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10405 cache_file_option
="--cache-file=${cache_file}" ;;
10407 cache_file_option
="--cache-file=../${cache_file}" ;;
10410 # Host dirs don't like to share a cache file either, horribly enough.
10411 # This seems to be due to autoconf 2.5x stupidity.
10412 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
10414 target_configargs
="$target_configargs ${tbaseargs}"
10416 # Passing a --with-cross-host argument lets the target libraries know
10417 # whether they are being built with a cross-compiler or being built
10418 # native. However, it would be better to use other mechanisms to make the
10419 # sorts of decisions they want to make on this basis. Please consider
10420 # this option to be deprecated. FIXME.
10421 if test x
${is_cross_compiler} = xyes
; then
10422 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10425 # Special user-friendly check for native x86_64-linux build, if
10426 # multilib is not explicitly enabled.
10427 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10428 x86_64-
*linux
*:yes:$build:$build:)
10429 # Make sure we have a development environment that handles 32-bit
10431 echo "int main () { return 0; }" > conftest.c
10432 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10433 if test $?
= 0 ; then
10434 if test -s conftest ||
test -s conftest.exe
; then
10439 if test x
${dev64} != xyes
; then
10440 as_fn_error $?
"I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
10445 # Default to --enable-multilib.
10446 if test x
${enable_multilib} = x
; then
10447 target_configargs
="--enable-multilib ${target_configargs}"
10450 # Pass --with-newlib if appropriate. Note that target_configdirs has
10451 # changed from the earlier setting of with_newlib.
10452 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10453 target_configargs
="--with-newlib ${target_configargs}"
10456 # Different target subdirs use different values of certain variables
10457 # (notably CXX). Worse, multilibs use *lots* of different values.
10458 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10459 # it doesn't automatically accept command-line overrides of them.
10460 # This means it's not safe for target subdirs to share a cache file,
10461 # which is disgusting, but there you have it. Hopefully this can be
10462 # fixed in future. It's still worthwhile to use a cache file for each
10463 # directory. I think.
10465 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10466 # We need to pass --target, as newer autoconf's requires consistency
10467 # for target_alias and gcc doesn't manage it consistently.
10468 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10471 case " $target_configdirs " in
10473 case " $target_configargs " in
10474 *" --with-newlib "*)
10477 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10481 # If we're not building GCC, don't discard standard headers.
10482 if test -d ${srcdir}/gcc
; then
10483 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10485 if test "${build}" != "${host}"; then
10486 # On Canadian crosses, CC_FOR_TARGET will have already been set
10487 # by `configure', so we won't have an opportunity to add -Bgcc/
10488 # to it. This is right: we don't want to search that directory
10489 # for binaries, but we want the header files in there, so add
10491 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10493 # Someone might think of using the pre-installed headers on
10494 # Canadian crosses, in case the installed compiler is not fully
10495 # compatible with the compiler being built. In this case, it
10496 # would be better to flag an error than risking having
10497 # incompatible object files being constructed. We can't
10498 # guarantee that an error will be flagged, but let's hope the
10499 # compiler will do it, when presented with incompatible header
10504 case "${target}-${is_cross_compiler}" in
10505 i
[3456789]86-*-linux*-no)
10506 # Here host == target, so we don't need to build gcc,
10507 # so we don't want to discard standard headers.
10508 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10511 # If we're building newlib, use its generic headers last, but search
10512 # for any libc-related directories first (so make it the last -B
10514 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10516 # If we're building libgloss, find the startup file, simulator library
10517 # and linker script.
10518 case " $target_configdirs " in
10520 # Look for startup file, simulator library and maybe linker script.
10521 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10522 # Look for libnosys.a in case the target needs it.
10523 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10524 # Most targets have the linker script in the source directory.
10525 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10536 x86_64-
*mingw
* |
*-w64-mingw*)
10537 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10538 # however, use a symlink named 'mingw' in ${prefix} .
10539 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10542 # MinGW can't be handled as Cygwin above since it does not use newlib.
10543 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'
10547 # Allow the user to override the flags for
10548 # our build compiler if desired.
10549 if test x
"${build}" = x
"${host}" ; then
10550 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10551 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10552 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10553 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10556 # On Canadian crosses, we'll be searching the right directories for
10557 # the previously-installed cross compiler, so don't bother to add
10558 # flags for directories within the install tree of the compiler
10559 # being built; programs in there won't even run.
10560 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10561 # Search for pre-installed headers if nothing else fits.
10562 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10565 if test "x
${use_gnu_ld}" = x &&
10566 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10567 # Arrange for us to find uninstalled linker scripts.
10568 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10571 # Search for other target-specific linker scripts and such.
10572 case "${target}" in
10574 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10576 # The VxWorks support for shared libraries is getting in
10577 # incrementally. Make sure it doesn't get activated implicitly:
10579 if test "${enable_shared-unset}" = unset ; then
10581 # So the build of libraries knows ...
10582 target_configargs="${target_configargs} --disable-shared"
10584 host_configargs="${host_configargs} --disable-shared"
10589 # Makefile fragments.
10590 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10592 eval fragval=\$$frag
10593 if test $fragval != /dev/null; then
10594 eval $frag=${srcdir}/$fragval
10602 # Miscellanea: directories, flags, etc.
10611 # Build module lists & subconfigure args.
10615 # Host module lists & subconfigure args.
10620 # Target module lists & subconfigure args.
10645 # Generate default definitions for YACC, M4, LEX and other programs that run
10646 # on the build machine. These are used if the Makefile can't locate these
10647 # programs in objdir.
10648 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10650 for ac_prog in 'bison -y' byacc yacc
10652 # Extract the first word of "$ac_prog", so it can be a program name with args.
10653 set dummy $ac_prog; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10655 $as_echo_n "checking
for $ac_word...
" >&6; }
10656 if ${ac_cv_prog_YACC+:} false; then :
10657 $as_echo_n "(cached
) " >&6
10659 if test -n "$YACC"; then
10660 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669 ac_cv_prog_YACC="$ac_prog"
10670 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10679 YACC=$ac_cv_prog_YACC
10680 if test -n "$YACC"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10682 $as_echo "$YACC" >&6; }
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10685 $as_echo "no
" >&6; }
10689 test -n "$YACC" && break
10691 test -n "$YACC" || YACC="$MISSING bison
-y"
10693 case " $build_configdirs " in
10694 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10697 for ac_prog in bison
10699 # Extract the first word of "$ac_prog", so it can be a program name with args.
10700 set dummy $ac_prog; ac_word=$2
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10702 $as_echo_n "checking
for $ac_word...
" >&6; }
10703 if ${ac_cv_prog_BISON+:} false; then :
10704 $as_echo_n "(cached
) " >&6
10706 if test -n "$BISON"; then
10707 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710 for as_dir in $PATH
10713 test -z "$as_dir" && as_dir=.
10714 for ac_exec_ext in '' $ac_executable_extensions; do
10715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10716 ac_cv_prog_BISON="$ac_prog"
10717 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10726 BISON=$ac_cv_prog_BISON
10727 if test -n "$BISON"; then
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10729 $as_echo "$BISON" >&6; }
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10732 $as_echo "no
" >&6; }
10736 test -n "$BISON" && break
10738 test -n "$BISON" || BISON="$MISSING bison
"
10740 case " $build_configdirs " in
10741 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10744 for ac_prog in gm4 gnum4 m4
10746 # Extract the first word of "$ac_prog", so it can be a program name with args.
10747 set dummy $ac_prog; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10749 $as_echo_n "checking
for $ac_word...
" >&6; }
10750 if ${ac_cv_prog_M4+:} false; then :
10751 $as_echo_n "(cached
) " >&6
10753 if test -n "$M4"; then
10754 ac_cv_prog_M4="$M4" # Let the user override the test.
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_prog_M4="$ac_prog"
10764 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10774 if test -n "$M4"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10776 $as_echo "$M4" >&6; }
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10779 $as_echo "no
" >&6; }
10783 test -n "$M4" && break
10785 test -n "$M4" || M4="$MISSING m4"
10787 case " $build_configdirs " in
10788 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10791 for ac_prog in flex lex
10793 # Extract the first word of "$ac_prog", so it can be a program name with args.
10794 set dummy $ac_prog; ac_word=$2
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10796 $as_echo_n "checking
for $ac_word...
" >&6; }
10797 if ${ac_cv_prog_LEX+:} false; then :
10798 $as_echo_n "(cached
) " >&6
10800 if test -n "$LEX"; then
10801 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804 for as_dir in $PATH
10807 test -z "$as_dir" && as_dir=.
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10810 ac_cv_prog_LEX="$ac_prog"
10811 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10820 LEX=$ac_cv_prog_LEX
10821 if test -n "$LEX"; then
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10823 $as_echo "$LEX" >&6; }
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10826 $as_echo "no
" >&6; }
10830 test -n "$LEX" && break
10832 test -n "$LEX" || LEX="$MISSING flex
"
10834 case " $build_configdirs " in
10835 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10836 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10839 for ac_prog in flex
10841 # Extract the first word of "$ac_prog", so it can be a program name with args.
10842 set dummy $ac_prog; ac_word=$2
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10844 $as_echo_n "checking
for $ac_word...
" >&6; }
10845 if ${ac_cv_prog_FLEX+:} false; then :
10846 $as_echo_n "(cached
) " >&6
10848 if test -n "$FLEX"; then
10849 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $PATH
10855 test -z "$as_dir" && as_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do
10857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10858 ac_cv_prog_FLEX="$ac_prog"
10859 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10868 FLEX=$ac_cv_prog_FLEX
10869 if test -n "$FLEX"; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10871 $as_echo "$FLEX" >&6; }
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10874 $as_echo "no
" >&6; }
10878 test -n "$FLEX" && break
10880 test -n "$FLEX" || FLEX="$MISSING flex
"
10882 case " $build_configdirs " in
10883 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10886 for ac_prog in makeinfo
10888 # Extract the first word of "$ac_prog", so it can be a program name with args.
10889 set dummy $ac_prog; ac_word=$2
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10891 $as_echo_n "checking
for $ac_word...
" >&6; }
10892 if ${ac_cv_prog_MAKEINFO+:} false; then :
10893 $as_echo_n "(cached
) " >&6
10895 if test -n "$MAKEINFO"; then
10896 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899 for as_dir in $PATH
10902 test -z "$as_dir" && as_dir=.
10903 for ac_exec_ext in '' $ac_executable_extensions; do
10904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10905 ac_cv_prog_MAKEINFO="$ac_prog"
10906 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10915 MAKEINFO=$ac_cv_prog_MAKEINFO
10916 if test -n "$MAKEINFO"; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10918 $as_echo "$MAKEINFO" >&6; }
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10921 $as_echo "no
" >&6; }
10925 test -n "$MAKEINFO" && break
10927 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10929 case " $build_configdirs " in
10930 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10933 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10934 # higher, else we use the "missing
" dummy.
10935 if ${MAKEINFO} --version \
10936 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10939 MAKEINFO="$MISSING makeinfo
"
10945 # FIXME: expect and dejagnu may become build tools?
10947 for ac_prog in expect
10949 # Extract the first word of "$ac_prog", so it can be a program name with args.
10950 set dummy $ac_prog; ac_word=$2
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10952 $as_echo_n "checking
for $ac_word...
" >&6; }
10953 if ${ac_cv_prog_EXPECT+:} false; then :
10954 $as_echo_n "(cached
) " >&6
10956 if test -n "$EXPECT"; then
10957 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960 for as_dir in $PATH
10963 test -z "$as_dir" && as_dir=.
10964 for ac_exec_ext in '' $ac_executable_extensions; do
10965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10966 ac_cv_prog_EXPECT="$ac_prog"
10967 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10976 EXPECT=$ac_cv_prog_EXPECT
10977 if test -n "$EXPECT"; then
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10979 $as_echo "$EXPECT" >&6; }
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10982 $as_echo "no
" >&6; }
10986 test -n "$EXPECT" && break
10988 test -n "$EXPECT" || EXPECT="expect
"
10990 case " $configdirs " in
10992 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10996 for ac_prog in runtest
10998 # Extract the first word of "$ac_prog", so it can be a program name with args.
10999 set dummy $ac_prog; ac_word=$2
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11001 $as_echo_n "checking
for $ac_word...
" >&6; }
11002 if ${ac_cv_prog_RUNTEST+:} false; then :
11003 $as_echo_n "(cached
) " >&6
11005 if test -n "$RUNTEST"; then
11006 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
11008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009 for as_dir in $PATH
11012 test -z "$as_dir" && as_dir=.
11013 for ac_exec_ext in '' $ac_executable_extensions; do
11014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11015 ac_cv_prog_RUNTEST="$ac_prog"
11016 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11025 RUNTEST=$ac_cv_prog_RUNTEST
11026 if test -n "$RUNTEST"; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
11028 $as_echo "$RUNTEST" >&6; }
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11031 $as_echo "no
" >&6; }
11035 test -n "$RUNTEST" && break
11037 test -n "$RUNTEST" || RUNTEST="runtest
"
11039 case " $configdirs " in
11041 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
11048 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
11049 ncn_target_tool_prefix=
11050 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
11054 if test -n "$AR"; then
11056 elif test -n "$ac_cv_prog_AR"; then
11060 if test -n "$ac_cv_prog_AR"; then
11061 for ncn_progname in ar; do
11062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11063 set dummy ${ncn_progname}; ac_word=$2
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11065 $as_echo_n "checking
for $ac_word...
" >&6; }
11066 if ${ac_cv_prog_AR+:} false; then :
11067 $as_echo_n "(cached
) " >&6
11069 if test -n "$AR"; then
11070 ac_cv_prog_AR="$AR" # Let the user override the test.
11072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073 for as_dir in $PATH
11076 test -z "$as_dir" && as_dir=.
11077 for ac_exec_ext in '' $ac_executable_extensions; do
11078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11079 ac_cv_prog_AR="${ncn_progname}"
11080 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11090 if test -n "$AR"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11092 $as_echo "$AR" >&6; }
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11095 $as_echo "no
" >&6; }
11102 for ncn_progname in ar; do
11103 if test -n "$ncn_tool_prefix"; then
11104 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11105 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11107 $as_echo_n "checking
for $ac_word...
" >&6; }
11108 if ${ac_cv_prog_AR+:} false; then :
11109 $as_echo_n "(cached
) " >&6
11111 if test -n "$AR"; then
11112 ac_cv_prog_AR="$AR" # Let the user override the test.
11114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115 for as_dir in $PATH
11118 test -z "$as_dir" && as_dir=.
11119 for ac_exec_ext in '' $ac_executable_extensions; do
11120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11121 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
11122 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11132 if test -n "$AR"; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11134 $as_echo "$AR" >&6; }
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11137 $as_echo "no
" >&6; }
11142 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11144 set dummy ${ncn_progname}; ac_word=$2
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11146 $as_echo_n "checking
for $ac_word...
" >&6; }
11147 if ${ac_cv_prog_AR+:} false; then :
11148 $as_echo_n "(cached
) " >&6
11150 if test -n "$AR"; then
11151 ac_cv_prog_AR="$AR" # Let the user override the test.
11153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154 for as_dir in $PATH
11157 test -z "$as_dir" && as_dir=.
11158 for ac_exec_ext in '' $ac_executable_extensions; do
11159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11160 ac_cv_prog_AR="${ncn_progname}"
11161 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11171 if test -n "$AR"; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11173 $as_echo "$AR" >&6; }
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11176 $as_echo "no
" >&6; }
11181 test -n "$ac_cv_prog_AR" && break
11184 if test -z "$ac_cv_prog_AR" ; then
11186 if test $build = $host ; then
11189 AR="${ncn_tool_prefix}$2"
11195 if test -n "$AS"; then
11197 elif test -n "$ac_cv_prog_AS"; then
11201 if test -n "$ac_cv_prog_AS"; then
11202 for ncn_progname in as; do
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 ${ac_cv_prog_AS+:} false; then :
11208 $as_echo_n "(cached
) " >&6
11210 if test -n "$AS"; then
11211 ac_cv_prog_AS="$AS" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11220 ac_cv_prog_AS="${ncn_progname}"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11231 if test -n "$AS"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11233 $as_echo "$AS" >&6; }
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11236 $as_echo "no
" >&6; }
11243 for ncn_progname in as; do
11244 if test -n "$ncn_tool_prefix"; then
11245 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11246 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11248 $as_echo_n "checking
for $ac_word...
" >&6; }
11249 if ${ac_cv_prog_AS+:} false; then :
11250 $as_echo_n "(cached
) " >&6
11252 if test -n "$AS"; then
11253 ac_cv_prog_AS="$AS" # Let the user override the test.
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11273 if test -n "$AS"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11275 $as_echo "$AS" >&6; }
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11278 $as_echo "no
" >&6; }
11283 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11285 set dummy ${ncn_progname}; ac_word=$2
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11287 $as_echo_n "checking
for $ac_word...
" >&6; }
11288 if ${ac_cv_prog_AS+:} false; then :
11289 $as_echo_n "(cached
) " >&6
11291 if test -n "$AS"; then
11292 ac_cv_prog_AS="$AS" # Let the user override the test.
11294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295 for as_dir in $PATH
11298 test -z "$as_dir" && as_dir=.
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11301 ac_cv_prog_AS="${ncn_progname}"
11302 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11312 if test -n "$AS"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11314 $as_echo "$AS" >&6; }
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11317 $as_echo "no
" >&6; }
11322 test -n "$ac_cv_prog_AS" && break
11325 if test -z "$ac_cv_prog_AS" ; then
11327 if test $build = $host ; then
11330 AS="${ncn_tool_prefix}$2"
11336 if test -n "$DLLTOOL"; then
11337 ac_cv_prog_DLLTOOL=$DLLTOOL
11338 elif test -n "$ac_cv_prog_DLLTOOL"; then
11339 DLLTOOL=$ac_cv_prog_DLLTOOL
11342 if test -n "$ac_cv_prog_DLLTOOL"; then
11343 for ncn_progname in dlltool; do
11344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11345 set dummy ${ncn_progname}; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11347 $as_echo_n "checking
for $ac_word...
" >&6; }
11348 if ${ac_cv_prog_DLLTOOL+:} false; then :
11349 $as_echo_n "(cached
) " >&6
11351 if test -n "$DLLTOOL"; then
11352 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361 ac_cv_prog_DLLTOOL="${ncn_progname}"
11362 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11371 DLLTOOL=$ac_cv_prog_DLLTOOL
11372 if test -n "$DLLTOOL"; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11374 $as_echo "$DLLTOOL" >&6; }
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11377 $as_echo "no
" >&6; }
11384 for ncn_progname in dlltool; do
11385 if test -n "$ncn_tool_prefix"; then
11386 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11387 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11389 $as_echo_n "checking
for $ac_word...
" >&6; }
11390 if ${ac_cv_prog_DLLTOOL+:} false; then :
11391 $as_echo_n "(cached
) " >&6
11393 if test -n "$DLLTOOL"; then
11394 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397 for as_dir in $PATH
11400 test -z "$as_dir" && as_dir=.
11401 for ac_exec_ext in '' $ac_executable_extensions; do
11402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11403 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11404 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11413 DLLTOOL=$ac_cv_prog_DLLTOOL
11414 if test -n "$DLLTOOL"; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11416 $as_echo "$DLLTOOL" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11419 $as_echo "no
" >&6; }
11424 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11426 set dummy ${ncn_progname}; ac_word=$2
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11428 $as_echo_n "checking
for $ac_word...
" >&6; }
11429 if ${ac_cv_prog_DLLTOOL+:} false; then :
11430 $as_echo_n "(cached
) " >&6
11432 if test -n "$DLLTOOL"; then
11433 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11442 ac_cv_prog_DLLTOOL="${ncn_progname}"
11443 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11452 DLLTOOL=$ac_cv_prog_DLLTOOL
11453 if test -n "$DLLTOOL"; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11455 $as_echo "$DLLTOOL" >&6; }
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11458 $as_echo "no
" >&6; }
11463 test -n "$ac_cv_prog_DLLTOOL" && break
11466 if test -z "$ac_cv_prog_DLLTOOL" ; then
11468 if test $build = $host ; then
11471 DLLTOOL="${ncn_tool_prefix}$2"
11477 if test -n "$DSYMUTIL"; then
11478 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11479 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11480 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11483 if test -n "$ac_cv_prog_DSYMUTIL"; then
11484 for ncn_progname in dsymutil; do
11485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11486 set dummy ${ncn_progname}; ac_word=$2
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11488 $as_echo_n "checking
for $ac_word...
" >&6; }
11489 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11490 $as_echo_n "(cached
) " >&6
11492 if test -n "$DSYMUTIL"; then
11493 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11502 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11503 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11512 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11513 if test -n "$DSYMUTIL"; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11515 $as_echo "$DSYMUTIL" >&6; }
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11518 $as_echo "no
" >&6; }
11525 for ncn_progname in dsymutil; do
11526 if test -n "$ncn_tool_prefix"; then
11527 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11528 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11530 $as_echo_n "checking
for $ac_word...
" >&6; }
11531 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11532 $as_echo_n "(cached
) " >&6
11534 if test -n "$DSYMUTIL"; then
11535 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11538 for as_dir in $PATH
11541 test -z "$as_dir" && as_dir=.
11542 for ac_exec_ext in '' $ac_executable_extensions; do
11543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11544 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11545 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11554 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11555 if test -n "$DSYMUTIL"; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11557 $as_echo "$DSYMUTIL" >&6; }
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11560 $as_echo "no
" >&6; }
11565 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11567 set dummy ${ncn_progname}; ac_word=$2
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11569 $as_echo_n "checking
for $ac_word...
" >&6; }
11570 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11571 $as_echo_n "(cached
) " >&6
11573 if test -n "$DSYMUTIL"; then
11574 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11580 test -z "$as_dir" && as_dir=.
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11584 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11593 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11594 if test -n "$DSYMUTIL"; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11596 $as_echo "$DSYMUTIL" >&6; }
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11599 $as_echo "no
" >&6; }
11604 test -n "$ac_cv_prog_DSYMUTIL" && break
11607 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11609 if test $build = $host ; then
11612 DSYMUTIL="${ncn_tool_prefix}$2"
11618 if test -n "$LD"; then
11620 elif test -n "$ac_cv_prog_LD"; then
11624 if test -n "$ac_cv_prog_LD"; then
11625 for ncn_progname in ld; do
11626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11627 set dummy ${ncn_progname}; ac_word=$2
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11629 $as_echo_n "checking
for $ac_word...
" >&6; }
11630 if ${ac_cv_prog_LD+:} false; then :
11631 $as_echo_n "(cached
) " >&6
11633 if test -n "$LD"; then
11634 ac_cv_prog_LD="$LD" # Let the user override the test.
11636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637 for as_dir in $PATH
11640 test -z "$as_dir" && as_dir=.
11641 for ac_exec_ext in '' $ac_executable_extensions; do
11642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11643 ac_cv_prog_LD="${ncn_progname}"
11644 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11654 if test -n "$LD"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11656 $as_echo "$LD" >&6; }
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11659 $as_echo "no
" >&6; }
11666 for ncn_progname in ld; do
11667 if test -n "$ncn_tool_prefix"; then
11668 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11669 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11671 $as_echo_n "checking
for $ac_word...
" >&6; }
11672 if ${ac_cv_prog_LD+:} false; then :
11673 $as_echo_n "(cached
) " >&6
11675 if test -n "$LD"; then
11676 ac_cv_prog_LD="$LD" # Let the user override the test.
11678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679 for as_dir in $PATH
11682 test -z "$as_dir" && as_dir=.
11683 for ac_exec_ext in '' $ac_executable_extensions; do
11684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11685 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11686 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11696 if test -n "$LD"; then
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11698 $as_echo "$LD" >&6; }
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11701 $as_echo "no
" >&6; }
11706 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11708 set dummy ${ncn_progname}; ac_word=$2
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11710 $as_echo_n "checking
for $ac_word...
" >&6; }
11711 if ${ac_cv_prog_LD+:} false; then :
11712 $as_echo_n "(cached
) " >&6
11714 if test -n "$LD"; then
11715 ac_cv_prog_LD="$LD" # Let the user override the test.
11717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718 for as_dir in $PATH
11721 test -z "$as_dir" && as_dir=.
11722 for ac_exec_ext in '' $ac_executable_extensions; do
11723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11724 ac_cv_prog_LD="${ncn_progname}"
11725 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11735 if test -n "$LD"; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11737 $as_echo "$LD" >&6; }
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11740 $as_echo "no
" >&6; }
11745 test -n "$ac_cv_prog_LD" && break
11748 if test -z "$ac_cv_prog_LD" ; then
11750 if test $build = $host ; then
11753 LD="${ncn_tool_prefix}$2"
11759 if test -n "$LIPO"; then
11760 ac_cv_prog_LIPO=$LIPO
11761 elif test -n "$ac_cv_prog_LIPO"; then
11762 LIPO=$ac_cv_prog_LIPO
11765 if test -n "$ac_cv_prog_LIPO"; then
11766 for ncn_progname in lipo; do
11767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11768 set dummy ${ncn_progname}; ac_word=$2
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11770 $as_echo_n "checking
for $ac_word...
" >&6; }
11771 if ${ac_cv_prog_LIPO+:} false; then :
11772 $as_echo_n "(cached
) " >&6
11774 if test -n "$LIPO"; then
11775 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11784 ac_cv_prog_LIPO="${ncn_progname}"
11785 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11794 LIPO=$ac_cv_prog_LIPO
11795 if test -n "$LIPO"; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11797 $as_echo "$LIPO" >&6; }
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11800 $as_echo "no
" >&6; }
11807 for ncn_progname in lipo; do
11808 if test -n "$ncn_tool_prefix"; then
11809 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11810 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11812 $as_echo_n "checking
for $ac_word...
" >&6; }
11813 if ${ac_cv_prog_LIPO+:} false; then :
11814 $as_echo_n "(cached
) " >&6
11816 if test -n "$LIPO"; then
11817 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11826 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11836 LIPO=$ac_cv_prog_LIPO
11837 if test -n "$LIPO"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11839 $as_echo "$LIPO" >&6; }
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11842 $as_echo "no
" >&6; }
11847 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11849 set dummy ${ncn_progname}; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11851 $as_echo_n "checking
for $ac_word...
" >&6; }
11852 if ${ac_cv_prog_LIPO+:} false; then :
11853 $as_echo_n "(cached
) " >&6
11855 if test -n "$LIPO"; then
11856 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11865 ac_cv_prog_LIPO="${ncn_progname}"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11875 LIPO=$ac_cv_prog_LIPO
11876 if test -n "$LIPO"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11878 $as_echo "$LIPO" >&6; }
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11881 $as_echo "no
" >&6; }
11886 test -n "$ac_cv_prog_LIPO" && break
11889 if test -z "$ac_cv_prog_LIPO" ; then
11891 if test $build = $host ; then
11894 LIPO="${ncn_tool_prefix}$2"
11900 if test -n "$NM"; then
11902 elif test -n "$ac_cv_prog_NM"; then
11906 if test -n "$ac_cv_prog_NM"; then
11907 for ncn_progname in nm; do
11908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11909 set dummy ${ncn_progname}; ac_word=$2
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11911 $as_echo_n "checking
for $ac_word...
" >&6; }
11912 if ${ac_cv_prog_NM+:} false; then :
11913 $as_echo_n "(cached
) " >&6
11915 if test -n "$NM"; then
11916 ac_cv_prog_NM="$NM" # Let the user override the test.
11918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919 for as_dir in $PATH
11922 test -z "$as_dir" && as_dir=.
11923 for ac_exec_ext in '' $ac_executable_extensions; do
11924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11925 ac_cv_prog_NM="${ncn_progname}"
11926 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11936 if test -n "$NM"; then
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11938 $as_echo "$NM" >&6; }
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11941 $as_echo "no
" >&6; }
11948 for ncn_progname in nm; do
11949 if test -n "$ncn_tool_prefix"; then
11950 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11951 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11953 $as_echo_n "checking
for $ac_word...
" >&6; }
11954 if ${ac_cv_prog_NM+:} false; then :
11955 $as_echo_n "(cached
) " >&6
11957 if test -n "$NM"; then
11958 ac_cv_prog_NM="$NM" # Let the user override the test.
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11978 if test -n "$NM"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11980 $as_echo "$NM" >&6; }
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11983 $as_echo "no
" >&6; }
11988 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11990 set dummy ${ncn_progname}; ac_word=$2
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11992 $as_echo_n "checking
for $ac_word...
" >&6; }
11993 if ${ac_cv_prog_NM+:} false; then :
11994 $as_echo_n "(cached
) " >&6
11996 if test -n "$NM"; then
11997 ac_cv_prog_NM="$NM" # Let the user override the test.
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006 ac_cv_prog_NM="${ncn_progname}"
12007 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12017 if test -n "$NM"; then
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12019 $as_echo "$NM" >&6; }
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12022 $as_echo "no
" >&6; }
12027 test -n "$ac_cv_prog_NM" && break
12030 if test -z "$ac_cv_prog_NM" ; then
12032 if test $build = $host ; then
12035 NM="${ncn_tool_prefix}$2"
12041 if test -n "$RANLIB"; then
12042 ac_cv_prog_RANLIB=$RANLIB
12043 elif test -n "$ac_cv_prog_RANLIB"; then
12044 RANLIB=$ac_cv_prog_RANLIB
12047 if test -n "$ac_cv_prog_RANLIB"; then
12048 for ncn_progname in ranlib; do
12049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12050 set dummy ${ncn_progname}; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12052 $as_echo_n "checking
for $ac_word...
" >&6; }
12053 if ${ac_cv_prog_RANLIB+:} false; then :
12054 $as_echo_n "(cached
) " >&6
12056 if test -n "$RANLIB"; then
12057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12066 ac_cv_prog_RANLIB="${ncn_progname}"
12067 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12076 RANLIB=$ac_cv_prog_RANLIB
12077 if test -n "$RANLIB"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12079 $as_echo "$RANLIB" >&6; }
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12082 $as_echo "no
" >&6; }
12089 for ncn_progname in ranlib; do
12090 if test -n "$ncn_tool_prefix"; then
12091 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12092 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12094 $as_echo_n "checking
for $ac_word...
" >&6; }
12095 if ${ac_cv_prog_RANLIB+:} false; then :
12096 $as_echo_n "(cached
) " >&6
12098 if test -n "$RANLIB"; then
12099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
12109 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12118 RANLIB=$ac_cv_prog_RANLIB
12119 if test -n "$RANLIB"; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12121 $as_echo "$RANLIB" >&6; }
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12124 $as_echo "no
" >&6; }
12129 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
12130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12131 set dummy ${ncn_progname}; ac_word=$2
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12133 $as_echo_n "checking
for $ac_word...
" >&6; }
12134 if ${ac_cv_prog_RANLIB+:} false; then :
12135 $as_echo_n "(cached
) " >&6
12137 if test -n "$RANLIB"; then
12138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141 for as_dir in $PATH
12144 test -z "$as_dir" && as_dir=.
12145 for ac_exec_ext in '' $ac_executable_extensions; do
12146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12147 ac_cv_prog_RANLIB="${ncn_progname}"
12148 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12157 RANLIB=$ac_cv_prog_RANLIB
12158 if test -n "$RANLIB"; then
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12160 $as_echo "$RANLIB" >&6; }
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12163 $as_echo "no
" >&6; }
12168 test -n "$ac_cv_prog_RANLIB" && break
12171 if test -z "$ac_cv_prog_RANLIB" ; then
12177 if test -n "$STRIP"; then
12178 ac_cv_prog_STRIP=$STRIP
12179 elif test -n "$ac_cv_prog_STRIP"; then
12180 STRIP=$ac_cv_prog_STRIP
12183 if test -n "$ac_cv_prog_STRIP"; then
12184 for ncn_progname in strip; do
12185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12186 set dummy ${ncn_progname}; ac_word=$2
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12188 $as_echo_n "checking
for $ac_word...
" >&6; }
12189 if ${ac_cv_prog_STRIP+:} false; then :
12190 $as_echo_n "(cached
) " >&6
12192 if test -n "$STRIP"; then
12193 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202 ac_cv_prog_STRIP="${ncn_progname}"
12203 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12212 STRIP=$ac_cv_prog_STRIP
12213 if test -n "$STRIP"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12215 $as_echo "$STRIP" >&6; }
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12218 $as_echo "no
" >&6; }
12225 for ncn_progname in strip; do
12226 if test -n "$ncn_tool_prefix"; then
12227 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12228 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12230 $as_echo_n "checking
for $ac_word...
" >&6; }
12231 if ${ac_cv_prog_STRIP+:} false; then :
12232 $as_echo_n "(cached
) " >&6
12234 if test -n "$STRIP"; then
12235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in $PATH
12241 test -z "$as_dir" && as_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12244 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12245 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12254 STRIP=$ac_cv_prog_STRIP
12255 if test -n "$STRIP"; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12257 $as_echo "$STRIP" >&6; }
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12260 $as_echo "no
" >&6; }
12265 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12267 set dummy ${ncn_progname}; ac_word=$2
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12269 $as_echo_n "checking
for $ac_word...
" >&6; }
12270 if ${ac_cv_prog_STRIP+:} false; then :
12271 $as_echo_n "(cached
) " >&6
12273 if test -n "$STRIP"; then
12274 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277 for as_dir in $PATH
12280 test -z "$as_dir" && as_dir=.
12281 for ac_exec_ext in '' $ac_executable_extensions; do
12282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12283 ac_cv_prog_STRIP="${ncn_progname}"
12284 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12293 STRIP=$ac_cv_prog_STRIP
12294 if test -n "$STRIP"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12296 $as_echo "$STRIP" >&6; }
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12299 $as_echo "no
" >&6; }
12304 test -n "$ac_cv_prog_STRIP" && break
12307 if test -z "$ac_cv_prog_STRIP" ; then
12313 if test -n "$WINDRES"; then
12314 ac_cv_prog_WINDRES=$WINDRES
12315 elif test -n "$ac_cv_prog_WINDRES"; then
12316 WINDRES=$ac_cv_prog_WINDRES
12319 if test -n "$ac_cv_prog_WINDRES"; then
12320 for ncn_progname in windres; do
12321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12322 set dummy ${ncn_progname}; ac_word=$2
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12324 $as_echo_n "checking
for $ac_word...
" >&6; }
12325 if ${ac_cv_prog_WINDRES+:} false; then :
12326 $as_echo_n "(cached
) " >&6
12328 if test -n "$WINDRES"; then
12329 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332 for as_dir in $PATH
12335 test -z "$as_dir" && as_dir=.
12336 for ac_exec_ext in '' $ac_executable_extensions; do
12337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12338 ac_cv_prog_WINDRES="${ncn_progname}"
12339 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12348 WINDRES=$ac_cv_prog_WINDRES
12349 if test -n "$WINDRES"; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12351 $as_echo "$WINDRES" >&6; }
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12354 $as_echo "no
" >&6; }
12361 for ncn_progname in windres; do
12362 if test -n "$ncn_tool_prefix"; then
12363 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12364 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12366 $as_echo_n "checking
for $ac_word...
" >&6; }
12367 if ${ac_cv_prog_WINDRES+:} false; then :
12368 $as_echo_n "(cached
) " >&6
12370 if test -n "$WINDRES"; then
12371 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12380 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12390 WINDRES=$ac_cv_prog_WINDRES
12391 if test -n "$WINDRES"; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12393 $as_echo "$WINDRES" >&6; }
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12396 $as_echo "no
" >&6; }
12401 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12403 set dummy ${ncn_progname}; ac_word=$2
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12405 $as_echo_n "checking
for $ac_word...
" >&6; }
12406 if ${ac_cv_prog_WINDRES+:} false; then :
12407 $as_echo_n "(cached
) " >&6
12409 if test -n "$WINDRES"; then
12410 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12419 ac_cv_prog_WINDRES="${ncn_progname}"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12429 WINDRES=$ac_cv_prog_WINDRES
12430 if test -n "$WINDRES"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12432 $as_echo "$WINDRES" >&6; }
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12435 $as_echo "no
" >&6; }
12440 test -n "$ac_cv_prog_WINDRES" && break
12443 if test -z "$ac_cv_prog_WINDRES" ; then
12445 if test $build = $host ; then
12448 WINDRES="${ncn_tool_prefix}$2"
12454 if test -n "$WINDMC"; then
12455 ac_cv_prog_WINDMC=$WINDMC
12456 elif test -n "$ac_cv_prog_WINDMC"; then
12457 WINDMC=$ac_cv_prog_WINDMC
12460 if test -n "$ac_cv_prog_WINDMC"; then
12461 for ncn_progname in windmc; do
12462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12463 set dummy ${ncn_progname}; ac_word=$2
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12465 $as_echo_n "checking
for $ac_word...
" >&6; }
12466 if ${ac_cv_prog_WINDMC+:} false; then :
12467 $as_echo_n "(cached
) " >&6
12469 if test -n "$WINDMC"; then
12470 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473 for as_dir in $PATH
12476 test -z "$as_dir" && as_dir=.
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12479 ac_cv_prog_WINDMC="${ncn_progname}"
12480 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12489 WINDMC=$ac_cv_prog_WINDMC
12490 if test -n "$WINDMC"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12492 $as_echo "$WINDMC" >&6; }
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12495 $as_echo "no
" >&6; }
12502 for ncn_progname in windmc; do
12503 if test -n "$ncn_tool_prefix"; then
12504 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12505 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12507 $as_echo_n "checking
for $ac_word...
" >&6; }
12508 if ${ac_cv_prog_WINDMC+:} false; then :
12509 $as_echo_n "(cached
) " >&6
12511 if test -n "$WINDMC"; then
12512 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $PATH
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12521 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12531 WINDMC=$ac_cv_prog_WINDMC
12532 if test -n "$WINDMC"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12534 $as_echo "$WINDMC" >&6; }
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12537 $as_echo "no
" >&6; }
12542 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12544 set dummy ${ncn_progname}; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12546 $as_echo_n "checking
for $ac_word...
" >&6; }
12547 if ${ac_cv_prog_WINDMC+:} false; then :
12548 $as_echo_n "(cached
) " >&6
12550 if test -n "$WINDMC"; then
12551 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554 for as_dir in $PATH
12557 test -z "$as_dir" && as_dir=.
12558 for ac_exec_ext in '' $ac_executable_extensions; do
12559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12560 ac_cv_prog_WINDMC="${ncn_progname}"
12561 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12570 WINDMC=$ac_cv_prog_WINDMC
12571 if test -n "$WINDMC"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12573 $as_echo "$WINDMC" >&6; }
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12576 $as_echo "no
" >&6; }
12581 test -n "$ac_cv_prog_WINDMC" && break
12584 if test -z "$ac_cv_prog_WINDMC" ; then
12586 if test $build = $host ; then
12589 WINDMC="${ncn_tool_prefix}$2"
12595 if test -n "$OBJCOPY"; then
12596 ac_cv_prog_OBJCOPY=$OBJCOPY
12597 elif test -n "$ac_cv_prog_OBJCOPY"; then
12598 OBJCOPY=$ac_cv_prog_OBJCOPY
12601 if test -n "$ac_cv_prog_OBJCOPY"; then
12602 for ncn_progname in objcopy; do
12603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12604 set dummy ${ncn_progname}; ac_word=$2
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12606 $as_echo_n "checking
for $ac_word...
" >&6; }
12607 if ${ac_cv_prog_OBJCOPY+:} false; then :
12608 $as_echo_n "(cached
) " >&6
12610 if test -n "$OBJCOPY"; then
12611 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614 for as_dir in $PATH
12617 test -z "$as_dir" && as_dir=.
12618 for ac_exec_ext in '' $ac_executable_extensions; do
12619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12620 ac_cv_prog_OBJCOPY="${ncn_progname}"
12621 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12630 OBJCOPY=$ac_cv_prog_OBJCOPY
12631 if test -n "$OBJCOPY"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12633 $as_echo "$OBJCOPY" >&6; }
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12636 $as_echo "no
" >&6; }
12643 for ncn_progname in objcopy; do
12644 if test -n "$ncn_tool_prefix"; then
12645 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12646 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12648 $as_echo_n "checking
for $ac_word...
" >&6; }
12649 if ${ac_cv_prog_OBJCOPY+:} false; then :
12650 $as_echo_n "(cached
) " >&6
12652 if test -n "$OBJCOPY"; then
12653 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12672 OBJCOPY=$ac_cv_prog_OBJCOPY
12673 if test -n "$OBJCOPY"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12675 $as_echo "$OBJCOPY" >&6; }
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12678 $as_echo "no
" >&6; }
12683 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12685 set dummy ${ncn_progname}; ac_word=$2
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12687 $as_echo_n "checking
for $ac_word...
" >&6; }
12688 if ${ac_cv_prog_OBJCOPY+:} false; then :
12689 $as_echo_n "(cached
) " >&6
12691 if test -n "$OBJCOPY"; then
12692 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701 ac_cv_prog_OBJCOPY="${ncn_progname}"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12711 OBJCOPY=$ac_cv_prog_OBJCOPY
12712 if test -n "$OBJCOPY"; then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12714 $as_echo "$OBJCOPY" >&6; }
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12717 $as_echo "no
" >&6; }
12722 test -n "$ac_cv_prog_OBJCOPY" && break
12725 if test -z "$ac_cv_prog_OBJCOPY" ; then
12727 if test $build = $host ; then
12730 OBJCOPY="${ncn_tool_prefix}$2"
12736 if test -n "$OBJDUMP"; then
12737 ac_cv_prog_OBJDUMP=$OBJDUMP
12738 elif test -n "$ac_cv_prog_OBJDUMP"; then
12739 OBJDUMP=$ac_cv_prog_OBJDUMP
12742 if test -n "$ac_cv_prog_OBJDUMP"; then
12743 for ncn_progname in objdump; do
12744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12745 set dummy ${ncn_progname}; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12747 $as_echo_n "checking
for $ac_word...
" >&6; }
12748 if ${ac_cv_prog_OBJDUMP+:} false; then :
12749 $as_echo_n "(cached
) " >&6
12751 if test -n "$OBJDUMP"; then
12752 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12761 ac_cv_prog_OBJDUMP="${ncn_progname}"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12771 OBJDUMP=$ac_cv_prog_OBJDUMP
12772 if test -n "$OBJDUMP"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12774 $as_echo "$OBJDUMP" >&6; }
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12777 $as_echo "no
" >&6; }
12784 for ncn_progname in objdump; do
12785 if test -n "$ncn_tool_prefix"; then
12786 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12787 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12789 $as_echo_n "checking
for $ac_word...
" >&6; }
12790 if ${ac_cv_prog_OBJDUMP+:} false; then :
12791 $as_echo_n "(cached
) " >&6
12793 if test -n "$OBJDUMP"; then
12794 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12797 for as_dir in $PATH
12800 test -z "$as_dir" && as_dir=.
12801 for ac_exec_ext in '' $ac_executable_extensions; do
12802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12803 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12804 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12813 OBJDUMP=$ac_cv_prog_OBJDUMP
12814 if test -n "$OBJDUMP"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12816 $as_echo "$OBJDUMP" >&6; }
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12819 $as_echo "no
" >&6; }
12824 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12826 set dummy ${ncn_progname}; ac_word=$2
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12828 $as_echo_n "checking
for $ac_word...
" >&6; }
12829 if ${ac_cv_prog_OBJDUMP+:} false; then :
12830 $as_echo_n "(cached
) " >&6
12832 if test -n "$OBJDUMP"; then
12833 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12842 ac_cv_prog_OBJDUMP="${ncn_progname}"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12852 OBJDUMP=$ac_cv_prog_OBJDUMP
12853 if test -n "$OBJDUMP"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12855 $as_echo "$OBJDUMP" >&6; }
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12858 $as_echo "no
" >&6; }
12863 test -n "$ac_cv_prog_OBJDUMP" && break
12866 if test -z "$ac_cv_prog_OBJDUMP" ; then
12868 if test $build = $host ; then
12871 OBJDUMP="${ncn_tool_prefix}$2"
12877 if test -n "$OTOOL"; then
12878 ac_cv_prog_OTOOL=$OTOOL
12879 elif test -n "$ac_cv_prog_OTOOL"; then
12880 OTOOL=$ac_cv_prog_OTOOL
12883 if test -n "$ac_cv_prog_OTOOL"; then
12884 for ncn_progname in otool; do
12885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12886 set dummy ${ncn_progname}; ac_word=$2
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12888 $as_echo_n "checking
for $ac_word...
" >&6; }
12889 if ${ac_cv_prog_OTOOL+:} false; then :
12890 $as_echo_n "(cached
) " >&6
12892 if test -n "$OTOOL"; then
12893 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12899 test -z "$as_dir" && as_dir=.
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12902 ac_cv_prog_OTOOL="${ncn_progname}"
12903 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12912 OTOOL=$ac_cv_prog_OTOOL
12913 if test -n "$OTOOL"; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12915 $as_echo "$OTOOL" >&6; }
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12918 $as_echo "no
" >&6; }
12925 for ncn_progname in otool; do
12926 if test -n "$ncn_tool_prefix"; then
12927 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12928 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12930 $as_echo_n "checking
for $ac_word...
" >&6; }
12931 if ${ac_cv_prog_OTOOL+:} false; then :
12932 $as_echo_n "(cached
) " >&6
12934 if test -n "$OTOOL"; then
12935 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12938 for as_dir in $PATH
12941 test -z "$as_dir" && as_dir=.
12942 for ac_exec_ext in '' $ac_executable_extensions; do
12943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12944 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12945 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12954 OTOOL=$ac_cv_prog_OTOOL
12955 if test -n "$OTOOL"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12957 $as_echo "$OTOOL" >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12960 $as_echo "no
" >&6; }
12965 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12967 set dummy ${ncn_progname}; ac_word=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12969 $as_echo_n "checking
for $ac_word...
" >&6; }
12970 if ${ac_cv_prog_OTOOL+:} false; then :
12971 $as_echo_n "(cached
) " >&6
12973 if test -n "$OTOOL"; then
12974 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977 for as_dir in $PATH
12980 test -z "$as_dir" && as_dir=.
12981 for ac_exec_ext in '' $ac_executable_extensions; do
12982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12983 ac_cv_prog_OTOOL="${ncn_progname}"
12984 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12993 OTOOL=$ac_cv_prog_OTOOL
12994 if test -n "$OTOOL"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12996 $as_echo "$OTOOL" >&6; }
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12999 $as_echo "no
" >&6; }
13004 test -n "$ac_cv_prog_OTOOL" && break
13007 if test -z "$ac_cv_prog_OTOOL" ; then
13009 if test $build = $host ; then
13012 OTOOL="${ncn_tool_prefix}$2"
13018 if test -n "$READELF"; then
13019 ac_cv_prog_READELF=$READELF
13020 elif test -n "$ac_cv_prog_READELF"; then
13021 READELF=$ac_cv_prog_READELF
13024 if test -n "$ac_cv_prog_READELF"; then
13025 for ncn_progname in readelf; do
13026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13027 set dummy ${ncn_progname}; ac_word=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13029 $as_echo_n "checking
for $ac_word...
" >&6; }
13030 if ${ac_cv_prog_READELF+:} false; then :
13031 $as_echo_n "(cached
) " >&6
13033 if test -n "$READELF"; then
13034 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13043 ac_cv_prog_READELF="${ncn_progname}"
13044 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13053 READELF=$ac_cv_prog_READELF
13054 if test -n "$READELF"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
13056 $as_echo "$READELF" >&6; }
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13059 $as_echo "no
" >&6; }
13066 for ncn_progname in readelf; do
13067 if test -n "$ncn_tool_prefix"; then
13068 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13069 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13071 $as_echo_n "checking
for $ac_word...
" >&6; }
13072 if ${ac_cv_prog_READELF+:} false; then :
13073 $as_echo_n "(cached
) " >&6
13075 if test -n "$READELF"; then
13076 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13082 test -z "$as_dir" && as_dir=.
13083 for ac_exec_ext in '' $ac_executable_extensions; do
13084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13085 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
13086 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13095 READELF=$ac_cv_prog_READELF
13096 if test -n "$READELF"; then
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
13098 $as_echo "$READELF" >&6; }
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13101 $as_echo "no
" >&6; }
13106 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
13107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13108 set dummy ${ncn_progname}; ac_word=$2
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13110 $as_echo_n "checking
for $ac_word...
" >&6; }
13111 if ${ac_cv_prog_READELF+:} false; then :
13112 $as_echo_n "(cached
) " >&6
13114 if test -n "$READELF"; then
13115 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13118 for as_dir in $PATH
13121 test -z "$as_dir" && as_dir=.
13122 for ac_exec_ext in '' $ac_executable_extensions; do
13123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13124 ac_cv_prog_READELF="${ncn_progname}"
13125 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13134 READELF=$ac_cv_prog_READELF
13135 if test -n "$READELF"; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
13137 $as_echo "$READELF" >&6; }
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13140 $as_echo "no
" >&6; }
13145 test -n "$ac_cv_prog_READELF" && break
13148 if test -z "$ac_cv_prog_READELF" ; then
13150 if test $build = $host ; then
13153 READELF="${ncn_tool_prefix}$2"
13163 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
13167 $as_echo_n "checking
for -plugin option...
" >&6; }
13169 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
13171 for plugin in $plugin_names; do
13172 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13173 if test x$plugin_so = x$plugin; then
13174 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13176 if test x$plugin_so != x$plugin; then
13177 plugin_option="--plugin $plugin_so"
13181 if test -n "$ac_tool_prefix"; then
13182 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13183 set dummy ${ac_tool_prefix}ar; ac_word=$2
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13185 $as_echo_n "checking
for $ac_word...
" >&6; }
13186 if ${ac_cv_prog_AR+:} false; then :
13187 $as_echo_n "(cached
) " >&6
13189 if test -n "$AR"; then
13190 ac_cv_prog_AR="$AR" # Let the user override the test.
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13199 ac_cv_prog_AR="${ac_tool_prefix}ar"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13210 if test -n "$AR"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13212 $as_echo "$AR" >&6; }
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13215 $as_echo "no
" >&6; }
13220 if test -z "$ac_cv_prog_AR"; then
13222 # Extract the first word of "ar", so it can be a program name with args.
13223 set dummy ar; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13225 $as_echo_n "checking
for $ac_word...
" >&6; }
13226 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13227 $as_echo_n "(cached
) " >&6
13229 if test -n "$ac_ct_AR"; then
13230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13239 ac_cv_prog_ac_ct_AR="ar"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13250 if test -n "$ac_ct_AR"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13252 $as_echo "$ac_ct_AR" >&6; }
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13255 $as_echo "no
" >&6; }
13258 if test "x
$ac_ct_AR" = x; then
13261 case $cross_compiling:$ac_tool_warned in
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13264 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13265 ac_tool_warned=yes ;;
13270 AR="$ac_cv_prog_AR"
13273 if test "${AR}" = "" ; then
13274 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
13277 ${AR} $plugin_option rc conftest.a conftest.c
13278 if test "$?
" != 0; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
13280 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
13284 if test -n "$plugin_option"; then
13285 PLUGIN_OPTION="$plugin_option"
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
13287 $as_echo "$plugin_option" >&6; }
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13290 $as_echo "no
" >&6; }
13294 RANLIB_PLUGIN_OPTION=
13295 if test -n "$PLUGIN_OPTION"; then
13296 if $AR --help 2>&1 | grep -q "\
--plugin"; then
13297 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13299 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
13300 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13308 # Check whether --with-build-time-tools was given.
13309 if test "${with_build_time_tools+set}" = set; then :
13310 withval=$with_build_time_tools; case x"$withval" in
13313 with_build_time_tools=
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
13315 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
13319 with_build_time_tools=
13325 if test -n "$CC_FOR_TARGET"; then
13326 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13327 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13328 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13331 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13332 for ncn_progname in cc gcc; do
13333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13334 set dummy ${ncn_progname}; ac_word=$2
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13336 $as_echo_n "checking
for $ac_word...
" >&6; }
13337 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13338 $as_echo_n "(cached
) " >&6
13340 if test -n "$CC_FOR_TARGET"; then
13341 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344 for as_dir in $PATH
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13350 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13351 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13360 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13361 if test -n "$CC_FOR_TARGET"; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13363 $as_echo "$CC_FOR_TARGET" >&6; }
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13366 $as_echo "no
" >&6; }
13373 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13374 for ncn_progname in cc gcc; do
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13376 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13377 if test -x $with_build_time_tools/${ncn_progname}; then
13378 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13380 $as_echo "yes" >&6; }
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13384 $as_echo "no
" >&6; }
13389 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13390 for ncn_progname in cc gcc; do
13391 if test -n "$ncn_target_tool_prefix"; then
13392 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13393 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13395 $as_echo_n "checking
for $ac_word...
" >&6; }
13396 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13397 $as_echo_n "(cached
) " >&6
13399 if test -n "$CC_FOR_TARGET"; then
13400 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13403 for as_dir in $PATH
13406 test -z "$as_dir" && as_dir=.
13407 for ac_exec_ext in '' $ac_executable_extensions; do
13408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13409 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13410 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13419 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13420 if test -n "$CC_FOR_TARGET"; then
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13422 $as_echo "$CC_FOR_TARGET" >&6; }
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13425 $as_echo "no
" >&6; }
13430 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13432 set dummy ${ncn_progname}; ac_word=$2
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13434 $as_echo_n "checking
for $ac_word...
" >&6; }
13435 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13436 $as_echo_n "(cached
) " >&6
13438 if test -n "$CC_FOR_TARGET"; then
13439 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
13447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13448 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13458 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13459 if test -n "$CC_FOR_TARGET"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13461 $as_echo "$CC_FOR_TARGET" >&6; }
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13464 $as_echo "no
" >&6; }
13469 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13473 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13475 if test $build = $target ; then
13478 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13481 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13486 if test -n "$CXX_FOR_TARGET"; then
13487 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13488 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13489 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13492 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13493 for ncn_progname in c++ g++ cxx gxx; do
13494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13495 set dummy ${ncn_progname}; ac_word=$2
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13497 $as_echo_n "checking
for $ac_word...
" >&6; }
13498 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13499 $as_echo_n "(cached
) " >&6
13501 if test -n "$CXX_FOR_TARGET"; then
13502 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505 for as_dir in $PATH
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13511 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13521 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13522 if test -n "$CXX_FOR_TARGET"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13524 $as_echo "$CXX_FOR_TARGET" >&6; }
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13527 $as_echo "no
" >&6; }
13534 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13535 for ncn_progname in c++ g++ cxx gxx; do
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13537 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13538 if test -x $with_build_time_tools/${ncn_progname}; then
13539 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13541 $as_echo "yes" >&6; }
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13545 $as_echo "no
" >&6; }
13550 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13551 for ncn_progname in c++ g++ cxx gxx; do
13552 if test -n "$ncn_target_tool_prefix"; then
13553 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13554 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13556 $as_echo_n "checking
for $ac_word...
" >&6; }
13557 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13558 $as_echo_n "(cached
) " >&6
13560 if test -n "$CXX_FOR_TARGET"; then
13561 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13564 for as_dir in $PATH
13567 test -z "$as_dir" && as_dir=.
13568 for ac_exec_ext in '' $ac_executable_extensions; do
13569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13570 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13571 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13580 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13581 if test -n "$CXX_FOR_TARGET"; then
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13583 $as_echo "$CXX_FOR_TARGET" >&6; }
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13586 $as_echo "no
" >&6; }
13591 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13593 set dummy ${ncn_progname}; ac_word=$2
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13595 $as_echo_n "checking
for $ac_word...
" >&6; }
13596 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13597 $as_echo_n "(cached
) " >&6
13599 if test -n "$CXX_FOR_TARGET"; then
13600 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603 for as_dir in $PATH
13606 test -z "$as_dir" && as_dir=.
13607 for ac_exec_ext in '' $ac_executable_extensions; do
13608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13609 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13610 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13619 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13620 if test -n "$CXX_FOR_TARGET"; then
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13622 $as_echo "$CXX_FOR_TARGET" >&6; }
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13625 $as_echo "no
" >&6; }
13630 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13634 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13635 set dummy c++ g++ cxx gxx
13636 if test $build = $target ; then
13637 CXX_FOR_TARGET="$2"
13639 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13642 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13647 if test -n "$GCC_FOR_TARGET"; then
13648 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13649 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13650 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13653 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13654 for ncn_progname in gcc; do
13655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13656 set dummy ${ncn_progname}; ac_word=$2
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13658 $as_echo_n "checking
for $ac_word...
" >&6; }
13659 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13660 $as_echo_n "(cached
) " >&6
13662 if test -n "$GCC_FOR_TARGET"; then
13663 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13666 for as_dir in $PATH
13669 test -z "$as_dir" && as_dir=.
13670 for ac_exec_ext in '' $ac_executable_extensions; do
13671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13672 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13673 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13682 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13683 if test -n "$GCC_FOR_TARGET"; then
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13685 $as_echo "$GCC_FOR_TARGET" >&6; }
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13688 $as_echo "no
" >&6; }
13695 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13696 for ncn_progname in gcc; do
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13698 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13699 if test -x $with_build_time_tools/${ncn_progname}; then
13700 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13702 $as_echo "yes" >&6; }
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13706 $as_echo "no
" >&6; }
13711 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13712 for ncn_progname in gcc; do
13713 if test -n "$ncn_target_tool_prefix"; then
13714 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13715 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13717 $as_echo_n "checking
for $ac_word...
" >&6; }
13718 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13719 $as_echo_n "(cached
) " >&6
13721 if test -n "$GCC_FOR_TARGET"; then
13722 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13725 for as_dir in $PATH
13728 test -z "$as_dir" && as_dir=.
13729 for ac_exec_ext in '' $ac_executable_extensions; do
13730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13731 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13732 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13741 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13742 if test -n "$GCC_FOR_TARGET"; then
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13744 $as_echo "$GCC_FOR_TARGET" >&6; }
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13747 $as_echo "no
" >&6; }
13752 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13754 set dummy ${ncn_progname}; ac_word=$2
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13756 $as_echo_n "checking
for $ac_word...
" >&6; }
13757 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13758 $as_echo_n "(cached
) " >&6
13760 if test -n "$GCC_FOR_TARGET"; then
13761 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764 for as_dir in $PATH
13767 test -z "$as_dir" && as_dir=.
13768 for ac_exec_ext in '' $ac_executable_extensions; do
13769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13770 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13771 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13780 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13781 if test -n "$GCC_FOR_TARGET"; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13783 $as_echo "$GCC_FOR_TARGET" >&6; }
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13786 $as_echo "no
" >&6; }
13791 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13795 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13796 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13798 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13803 if test -n "$GFORTRAN_FOR_TARGET"; then
13804 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13805 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13806 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13809 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13810 for ncn_progname in gfortran; do
13811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13812 set dummy ${ncn_progname}; ac_word=$2
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13814 $as_echo_n "checking
for $ac_word...
" >&6; }
13815 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13816 $as_echo_n "(cached
) " >&6
13818 if test -n "$GFORTRAN_FOR_TARGET"; then
13819 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13822 for as_dir in $PATH
13825 test -z "$as_dir" && as_dir=.
13826 for ac_exec_ext in '' $ac_executable_extensions; do
13827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13828 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13829 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13838 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13839 if test -n "$GFORTRAN_FOR_TARGET"; then
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13841 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13844 $as_echo "no
" >&6; }
13851 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13852 for ncn_progname in gfortran; do
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13854 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13855 if test -x $with_build_time_tools/${ncn_progname}; then
13856 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13858 $as_echo "yes" >&6; }
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13862 $as_echo "no
" >&6; }
13867 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13868 for ncn_progname in gfortran; do
13869 if test -n "$ncn_target_tool_prefix"; then
13870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13871 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13873 $as_echo_n "checking
for $ac_word...
" >&6; }
13874 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13875 $as_echo_n "(cached
) " >&6
13877 if test -n "$GFORTRAN_FOR_TARGET"; then
13878 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881 for as_dir in $PATH
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13887 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13888 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13897 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13898 if test -n "$GFORTRAN_FOR_TARGET"; then
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13900 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13903 $as_echo "no
" >&6; }
13908 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13910 set dummy ${ncn_progname}; ac_word=$2
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13912 $as_echo_n "checking
for $ac_word...
" >&6; }
13913 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13914 $as_echo_n "(cached
) " >&6
13916 if test -n "$GFORTRAN_FOR_TARGET"; then
13917 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH
13923 test -z "$as_dir" && as_dir=.
13924 for ac_exec_ext in '' $ac_executable_extensions; do
13925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13926 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13927 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13936 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13937 if test -n "$GFORTRAN_FOR_TARGET"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13939 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13942 $as_echo "no
" >&6; }
13947 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13951 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13953 if test $build = $target ; then
13954 GFORTRAN_FOR_TARGET="$2"
13956 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13959 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13964 if test -n "$GOC_FOR_TARGET"; then
13965 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13966 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13967 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13970 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13971 for ncn_progname in gccgo; do
13972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13973 set dummy ${ncn_progname}; ac_word=$2
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13975 $as_echo_n "checking
for $ac_word...
" >&6; }
13976 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13977 $as_echo_n "(cached
) " >&6
13979 if test -n "$GOC_FOR_TARGET"; then
13980 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13983 for as_dir in $PATH
13986 test -z "$as_dir" && as_dir=.
13987 for ac_exec_ext in '' $ac_executable_extensions; do
13988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13989 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13990 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13999 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14000 if test -n "$GOC_FOR_TARGET"; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
14002 $as_echo "$GOC_FOR_TARGET" >&6; }
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14005 $as_echo "no
" >&6; }
14012 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14013 for ncn_progname in gccgo; do
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14015 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14016 if test -x $with_build_time_tools/${ncn_progname}; then
14017 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14019 $as_echo "yes" >&6; }
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14023 $as_echo "no
" >&6; }
14028 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
14029 for ncn_progname in gccgo; do
14030 if test -n "$ncn_target_tool_prefix"; then
14031 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14032 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14034 $as_echo_n "checking
for $ac_word...
" >&6; }
14035 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14036 $as_echo_n "(cached
) " >&6
14038 if test -n "$GOC_FOR_TARGET"; then
14039 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14042 for as_dir in $PATH
14045 test -z "$as_dir" && as_dir=.
14046 for ac_exec_ext in '' $ac_executable_extensions; do
14047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14048 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14049 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14058 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14059 if test -n "$GOC_FOR_TARGET"; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
14061 $as_echo "$GOC_FOR_TARGET" >&6; }
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14064 $as_echo "no
" >&6; }
14069 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
14070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14071 set dummy ${ncn_progname}; ac_word=$2
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14073 $as_echo_n "checking
for $ac_word...
" >&6; }
14074 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14075 $as_echo_n "(cached
) " >&6
14077 if test -n "$GOC_FOR_TARGET"; then
14078 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14081 for as_dir in $PATH
14084 test -z "$as_dir" && as_dir=.
14085 for ac_exec_ext in '' $ac_executable_extensions; do
14086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14087 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14088 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14097 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14098 if test -n "$GOC_FOR_TARGET"; then
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
14100 $as_echo "$GOC_FOR_TARGET" >&6; }
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14103 $as_echo "no
" >&6; }
14108 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
14112 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
14114 if test $build = $target ; then
14115 GOC_FOR_TARGET="$2"
14117 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14120 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
14125 if test -n "$GDC_FOR_TARGET"; then
14126 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
14127 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14128 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14131 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14132 for ncn_progname in gdc; do
14133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14134 set dummy ${ncn_progname}; ac_word=$2
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14136 $as_echo_n "checking
for $ac_word...
" >&6; }
14137 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14138 $as_echo_n "(cached
) " >&6
14140 if test -n "$GDC_FOR_TARGET"; then
14141 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14147 test -z "$as_dir" && as_dir=.
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14150 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14151 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14160 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14161 if test -n "$GDC_FOR_TARGET"; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14163 $as_echo "$GDC_FOR_TARGET" >&6; }
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14166 $as_echo "no
" >&6; }
14173 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14174 for ncn_progname in gdc; do
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14176 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14177 if test -x $with_build_time_tools/${ncn_progname}; then
14178 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14180 $as_echo "yes" >&6; }
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14184 $as_echo "no
" >&6; }
14189 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14190 for ncn_progname in gdc; do
14191 if test -n "$ncn_target_tool_prefix"; then
14192 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14193 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14195 $as_echo_n "checking
for $ac_word...
" >&6; }
14196 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14197 $as_echo_n "(cached
) " >&6
14199 if test -n "$GDC_FOR_TARGET"; then
14200 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14203 for as_dir in $PATH
14206 test -z "$as_dir" && as_dir=.
14207 for ac_exec_ext in '' $ac_executable_extensions; do
14208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14209 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14210 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14219 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14220 if test -n "$GDC_FOR_TARGET"; then
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14222 $as_echo "$GDC_FOR_TARGET" >&6; }
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14225 $as_echo "no
" >&6; }
14230 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14232 set dummy ${ncn_progname}; ac_word=$2
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14234 $as_echo_n "checking
for $ac_word...
" >&6; }
14235 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14236 $as_echo_n "(cached
) " >&6
14238 if test -n "$GDC_FOR_TARGET"; then
14239 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14242 for as_dir in $PATH
14245 test -z "$as_dir" && as_dir=.
14246 for ac_exec_ext in '' $ac_executable_extensions; do
14247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14248 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14249 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14258 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14259 if test -n "$GDC_FOR_TARGET"; then
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14261 $as_echo "$GDC_FOR_TARGET" >&6; }
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14264 $as_echo "no
" >&6; }
14269 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14273 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14275 if test $build = $target ; then
14276 GDC_FOR_TARGET="$2"
14278 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14281 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14286 if test -n "$GM2_FOR_TARGET"; then
14287 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14288 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14289 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14292 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14293 for ncn_progname in gm2; do
14294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14295 set dummy ${ncn_progname}; ac_word=$2
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14297 $as_echo_n "checking
for $ac_word...
" >&6; }
14298 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14299 $as_echo_n "(cached
) " >&6
14301 if test -n "$GM2_FOR_TARGET"; then
14302 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14305 for as_dir in $PATH
14308 test -z "$as_dir" && as_dir=.
14309 for ac_exec_ext in '' $ac_executable_extensions; do
14310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14311 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14312 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14321 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14322 if test -n "$GM2_FOR_TARGET"; then
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14324 $as_echo "$GM2_FOR_TARGET" >&6; }
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14327 $as_echo "no
" >&6; }
14334 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14335 for ncn_progname in gm2; do
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14337 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14338 if test -x $with_build_time_tools/${ncn_progname}; then
14339 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14341 $as_echo "yes" >&6; }
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14345 $as_echo "no
" >&6; }
14350 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14351 for ncn_progname in gm2; do
14352 if test -n "$ncn_target_tool_prefix"; then
14353 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14354 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14356 $as_echo_n "checking
for $ac_word...
" >&6; }
14357 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14358 $as_echo_n "(cached
) " >&6
14360 if test -n "$GM2_FOR_TARGET"; then
14361 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364 for as_dir in $PATH
14367 test -z "$as_dir" && as_dir=.
14368 for ac_exec_ext in '' $ac_executable_extensions; do
14369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14370 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14371 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14380 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14381 if test -n "$GM2_FOR_TARGET"; then
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14383 $as_echo "$GM2_FOR_TARGET" >&6; }
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14386 $as_echo "no
" >&6; }
14391 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14393 set dummy ${ncn_progname}; ac_word=$2
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14395 $as_echo_n "checking
for $ac_word...
" >&6; }
14396 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14397 $as_echo_n "(cached
) " >&6
14399 if test -n "$GM2_FOR_TARGET"; then
14400 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14403 for as_dir in $PATH
14406 test -z "$as_dir" && as_dir=.
14407 for ac_exec_ext in '' $ac_executable_extensions; do
14408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14409 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14410 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14419 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14420 if test -n "$GM2_FOR_TARGET"; then
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14422 $as_echo "$GM2_FOR_TARGET" >&6; }
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14425 $as_echo "no
" >&6; }
14430 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14434 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14436 if test $build = $target ; then
14437 GM2_FOR_TARGET="$2"
14439 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14442 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14447 cat > conftest.c << \EOF
14452 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14453 have_gcc_for_target=yes
14455 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14456 have_gcc_for_target=no
14463 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14464 if test -n "$with_build_time_tools"; then
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14466 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14467 if test -x $with_build_time_tools/ar; then
14468 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14469 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14471 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14474 $as_echo "no
" >&6; }
14476 elif test $build != $host && test $have_gcc_for_target = yes; then
14477 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14478 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14479 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14482 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14483 # Extract the first word of "ar", so it can be a program name with args.
14484 set dummy ar; ac_word=$2
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14486 $as_echo_n "checking
for $ac_word...
" >&6; }
14487 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14488 $as_echo_n "(cached
) " >&6
14490 case $AR_FOR_TARGET in
14492 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14496 for as_dir in $gcc_cv_tool_dirs
14499 test -z "$as_dir" && as_dir=.
14500 for ac_exec_ext in '' $ac_executable_extensions; do
14501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14502 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14503 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14513 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14514 if test -n "$AR_FOR_TARGET"; then
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14516 $as_echo "$AR_FOR_TARGET" >&6; }
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14519 $as_echo "no
" >&6; }
14524 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14527 if test -n "$AR_FOR_TARGET"; then
14528 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14529 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14530 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14533 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14534 for ncn_progname in ar; do
14535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14536 set dummy ${ncn_progname}; ac_word=$2
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14538 $as_echo_n "checking
for $ac_word...
" >&6; }
14539 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14540 $as_echo_n "(cached
) " >&6
14542 if test -n "$AR_FOR_TARGET"; then
14543 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14546 for as_dir in $PATH
14549 test -z "$as_dir" && as_dir=.
14550 for ac_exec_ext in '' $ac_executable_extensions; do
14551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14552 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14553 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14562 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14563 if test -n "$AR_FOR_TARGET"; then
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14565 $as_echo "$AR_FOR_TARGET" >&6; }
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14568 $as_echo "no
" >&6; }
14575 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14576 for ncn_progname in ar; do
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14578 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14579 if test -x $with_build_time_tools/${ncn_progname}; then
14580 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14582 $as_echo "yes" >&6; }
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14586 $as_echo "no
" >&6; }
14591 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14592 for ncn_progname in ar; do
14593 if test -n "$ncn_target_tool_prefix"; then
14594 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14595 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14597 $as_echo_n "checking
for $ac_word...
" >&6; }
14598 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14599 $as_echo_n "(cached
) " >&6
14601 if test -n "$AR_FOR_TARGET"; then
14602 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14605 for as_dir in $PATH
14608 test -z "$as_dir" && as_dir=.
14609 for ac_exec_ext in '' $ac_executable_extensions; do
14610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14611 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14612 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14621 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14622 if test -n "$AR_FOR_TARGET"; then
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14624 $as_echo "$AR_FOR_TARGET" >&6; }
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14627 $as_echo "no
" >&6; }
14632 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14634 set dummy ${ncn_progname}; ac_word=$2
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14636 $as_echo_n "checking
for $ac_word...
" >&6; }
14637 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14638 $as_echo_n "(cached
) " >&6
14640 if test -n "$AR_FOR_TARGET"; then
14641 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14644 for as_dir in $PATH
14647 test -z "$as_dir" && as_dir=.
14648 for ac_exec_ext in '' $ac_executable_extensions; do
14649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14650 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14651 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14660 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14661 if test -n "$AR_FOR_TARGET"; then
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14663 $as_echo "$AR_FOR_TARGET" >&6; }
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14666 $as_echo "no
" >&6; }
14671 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14675 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14677 if test $build = $target ; then
14680 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14683 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14687 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14693 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14694 if test -n "$with_build_time_tools"; then
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14696 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14697 if test -x $with_build_time_tools/as; then
14698 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14699 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14701 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14704 $as_echo "no
" >&6; }
14706 elif test $build != $host && test $have_gcc_for_target = yes; then
14707 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14708 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14709 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14712 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14713 # Extract the first word of "as
", so it can be a program name with args.
14714 set dummy as; ac_word=$2
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14716 $as_echo_n "checking
for $ac_word...
" >&6; }
14717 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14718 $as_echo_n "(cached
) " >&6
14720 case $AS_FOR_TARGET in
14722 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14726 for as_dir in $gcc_cv_tool_dirs
14729 test -z "$as_dir" && as_dir=.
14730 for ac_exec_ext in '' $ac_executable_extensions; do
14731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14732 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14733 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14743 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14744 if test -n "$AS_FOR_TARGET"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14746 $as_echo "$AS_FOR_TARGET" >&6; }
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14749 $as_echo "no
" >&6; }
14754 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14757 if test -n "$AS_FOR_TARGET"; then
14758 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14759 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14760 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14763 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14764 for ncn_progname in as; do
14765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14766 set dummy ${ncn_progname}; ac_word=$2
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14768 $as_echo_n "checking
for $ac_word...
" >&6; }
14769 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14770 $as_echo_n "(cached
) " >&6
14772 if test -n "$AS_FOR_TARGET"; then
14773 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14776 for as_dir in $PATH
14779 test -z "$as_dir" && as_dir=.
14780 for ac_exec_ext in '' $ac_executable_extensions; do
14781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14782 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14783 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14792 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14793 if test -n "$AS_FOR_TARGET"; then
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14795 $as_echo "$AS_FOR_TARGET" >&6; }
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14798 $as_echo "no
" >&6; }
14805 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14806 for ncn_progname in as; do
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14808 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14809 if test -x $with_build_time_tools/${ncn_progname}; then
14810 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14812 $as_echo "yes" >&6; }
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14816 $as_echo "no
" >&6; }
14821 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14822 for ncn_progname in as; do
14823 if test -n "$ncn_target_tool_prefix"; then
14824 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14825 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14827 $as_echo_n "checking
for $ac_word...
" >&6; }
14828 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14829 $as_echo_n "(cached
) " >&6
14831 if test -n "$AS_FOR_TARGET"; then
14832 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14835 for as_dir in $PATH
14838 test -z "$as_dir" && as_dir=.
14839 for ac_exec_ext in '' $ac_executable_extensions; do
14840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14841 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14842 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14851 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14852 if test -n "$AS_FOR_TARGET"; then
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14854 $as_echo "$AS_FOR_TARGET" >&6; }
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14857 $as_echo "no
" >&6; }
14862 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14864 set dummy ${ncn_progname}; ac_word=$2
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14866 $as_echo_n "checking
for $ac_word...
" >&6; }
14867 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14868 $as_echo_n "(cached
) " >&6
14870 if test -n "$AS_FOR_TARGET"; then
14871 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14874 for as_dir in $PATH
14877 test -z "$as_dir" && as_dir=.
14878 for ac_exec_ext in '' $ac_executable_extensions; do
14879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14880 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14890 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14891 if test -n "$AS_FOR_TARGET"; then
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14893 $as_echo "$AS_FOR_TARGET" >&6; }
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14896 $as_echo "no
" >&6; }
14901 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14905 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14907 if test $build = $target ; then
14910 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14913 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14917 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14923 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14924 if test -n "$with_build_time_tools"; then
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14926 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14927 if test -x $with_build_time_tools/dlltool; then
14928 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14929 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14931 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14934 $as_echo "no
" >&6; }
14936 elif test $build != $host && test $have_gcc_for_target = yes; then
14937 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14938 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14939 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14942 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14943 # Extract the first word of "dlltool
", so it can be a program name with args.
14944 set dummy dlltool; ac_word=$2
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14946 $as_echo_n "checking
for $ac_word...
" >&6; }
14947 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14948 $as_echo_n "(cached
) " >&6
14950 case $DLLTOOL_FOR_TARGET in
14952 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956 for as_dir in $gcc_cv_tool_dirs
14959 test -z "$as_dir" && as_dir=.
14960 for ac_exec_ext in '' $ac_executable_extensions; do
14961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14962 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14963 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14973 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14974 if test -n "$DLLTOOL_FOR_TARGET"; then
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14976 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14979 $as_echo "no
" >&6; }
14984 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14987 if test -n "$DLLTOOL_FOR_TARGET"; then
14988 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14989 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14990 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14993 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14994 for ncn_progname in dlltool; do
14995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14996 set dummy ${ncn_progname}; ac_word=$2
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14998 $as_echo_n "checking
for $ac_word...
" >&6; }
14999 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15000 $as_echo_n "(cached
) " >&6
15002 if test -n "$DLLTOOL_FOR_TARGET"; then
15003 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15006 for as_dir in $PATH
15009 test -z "$as_dir" && as_dir=.
15010 for ac_exec_ext in '' $ac_executable_extensions; do
15011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15012 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15013 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15022 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15023 if test -n "$DLLTOOL_FOR_TARGET"; then
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15025 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15028 $as_echo "no
" >&6; }
15035 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15036 for ncn_progname in dlltool; do
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15038 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15039 if test -x $with_build_time_tools/${ncn_progname}; then
15040 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15042 $as_echo "yes" >&6; }
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15046 $as_echo "no
" >&6; }
15051 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15052 for ncn_progname in dlltool; do
15053 if test -n "$ncn_target_tool_prefix"; then
15054 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15055 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15057 $as_echo_n "checking
for $ac_word...
" >&6; }
15058 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15059 $as_echo_n "(cached
) " >&6
15061 if test -n "$DLLTOOL_FOR_TARGET"; then
15062 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15065 for as_dir in $PATH
15068 test -z "$as_dir" && as_dir=.
15069 for ac_exec_ext in '' $ac_executable_extensions; do
15070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15071 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15072 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15081 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15082 if test -n "$DLLTOOL_FOR_TARGET"; then
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15084 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15087 $as_echo "no
" >&6; }
15092 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
15093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15094 set dummy ${ncn_progname}; ac_word=$2
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15096 $as_echo_n "checking
for $ac_word...
" >&6; }
15097 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15098 $as_echo_n "(cached
) " >&6
15100 if test -n "$DLLTOOL_FOR_TARGET"; then
15101 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15104 for as_dir in $PATH
15107 test -z "$as_dir" && as_dir=.
15108 for ac_exec_ext in '' $ac_executable_extensions; do
15109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15110 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15111 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15120 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15121 if test -n "$DLLTOOL_FOR_TARGET"; then
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15123 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15126 $as_echo "no
" >&6; }
15131 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15135 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15137 if test $build = $target ; then
15138 DLLTOOL_FOR_TARGET="$2"
15140 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15143 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
15147 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15153 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15154 if test -n "$with_build_time_tools"; then
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
15156 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
15157 if test -x $with_build_time_tools/dsymutil; then
15158 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15159 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15161 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15164 $as_echo "no
" >&6; }
15166 elif test $build != $host && test $have_gcc_for_target = yes; then
15167 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15168 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15169 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15172 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15173 # Extract the first word of "dsymutil
", so it can be a program name with args.
15174 set dummy dsymutil; ac_word=$2
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15176 $as_echo_n "checking
for $ac_word...
" >&6; }
15177 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15178 $as_echo_n "(cached
) " >&6
15180 case $DSYMUTIL_FOR_TARGET in
15182 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15186 for as_dir in $gcc_cv_tool_dirs
15189 test -z "$as_dir" && as_dir=.
15190 for ac_exec_ext in '' $ac_executable_extensions; do
15191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15192 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15193 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15203 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15204 if test -n "$DSYMUTIL_FOR_TARGET"; then
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15206 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15209 $as_echo "no
" >&6; }
15214 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15217 if test -n "$DSYMUTIL_FOR_TARGET"; then
15218 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15219 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15220 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15223 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15224 for ncn_progname in dsymutil; do
15225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15226 set dummy ${ncn_progname}; ac_word=$2
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15228 $as_echo_n "checking
for $ac_word...
" >&6; }
15229 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15230 $as_echo_n "(cached
) " >&6
15232 if test -n "$DSYMUTIL_FOR_TARGET"; then
15233 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15236 for as_dir in $PATH
15239 test -z "$as_dir" && as_dir=.
15240 for ac_exec_ext in '' $ac_executable_extensions; do
15241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15242 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15243 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15252 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15253 if test -n "$DSYMUTIL_FOR_TARGET"; then
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15255 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15258 $as_echo "no
" >&6; }
15265 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15266 for ncn_progname in dsymutil; do
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15268 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15269 if test -x $with_build_time_tools/${ncn_progname}; then
15270 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15272 $as_echo "yes" >&6; }
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15276 $as_echo "no
" >&6; }
15281 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15282 for ncn_progname in dsymutil; do
15283 if test -n "$ncn_target_tool_prefix"; then
15284 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15285 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15287 $as_echo_n "checking
for $ac_word...
" >&6; }
15288 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15289 $as_echo_n "(cached
) " >&6
15291 if test -n "$DSYMUTIL_FOR_TARGET"; then
15292 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15295 for as_dir in $PATH
15298 test -z "$as_dir" && as_dir=.
15299 for ac_exec_ext in '' $ac_executable_extensions; do
15300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15301 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15302 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15311 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15312 if test -n "$DSYMUTIL_FOR_TARGET"; then
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15314 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15317 $as_echo "no
" >&6; }
15322 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15324 set dummy ${ncn_progname}; ac_word=$2
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15326 $as_echo_n "checking
for $ac_word...
" >&6; }
15327 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15328 $as_echo_n "(cached
) " >&6
15330 if test -n "$DSYMUTIL_FOR_TARGET"; then
15331 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15334 for as_dir in $PATH
15337 test -z "$as_dir" && as_dir=.
15338 for ac_exec_ext in '' $ac_executable_extensions; do
15339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15340 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15341 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15350 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15351 if test -n "$DSYMUTIL_FOR_TARGET"; then
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15353 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15356 $as_echo "no
" >&6; }
15361 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15365 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15367 if test $build = $target ; then
15368 DSYMUTIL_FOR_TARGET="$2"
15370 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15373 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15377 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15383 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15384 if test -n "$with_build_time_tools"; then
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
15386 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
15387 if test -x $with_build_time_tools/ld; then
15388 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15389 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
15391 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15394 $as_echo "no
" >&6; }
15396 elif test $build != $host && test $have_gcc_for_target = yes; then
15397 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15398 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15399 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15402 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15403 # Extract the first word of "ld
", so it can be a program name with args.
15404 set dummy ld; ac_word=$2
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15406 $as_echo_n "checking
for $ac_word...
" >&6; }
15407 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15408 $as_echo_n "(cached
) " >&6
15410 case $LD_FOR_TARGET in
15412 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15416 for as_dir in $gcc_cv_tool_dirs
15419 test -z "$as_dir" && as_dir=.
15420 for ac_exec_ext in '' $ac_executable_extensions; do
15421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15422 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15423 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15433 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15434 if test -n "$LD_FOR_TARGET"; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15436 $as_echo "$LD_FOR_TARGET" >&6; }
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15439 $as_echo "no
" >&6; }
15444 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15447 if test -n "$LD_FOR_TARGET"; then
15448 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15449 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15450 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15453 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15454 for ncn_progname in ld; do
15455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15456 set dummy ${ncn_progname}; ac_word=$2
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15458 $as_echo_n "checking
for $ac_word...
" >&6; }
15459 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15460 $as_echo_n "(cached
) " >&6
15462 if test -n "$LD_FOR_TARGET"; then
15463 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15466 for as_dir in $PATH
15469 test -z "$as_dir" && as_dir=.
15470 for ac_exec_ext in '' $ac_executable_extensions; do
15471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15472 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15473 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15482 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15483 if test -n "$LD_FOR_TARGET"; then
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15485 $as_echo "$LD_FOR_TARGET" >&6; }
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15488 $as_echo "no
" >&6; }
15495 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15496 for ncn_progname in ld; do
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15498 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15499 if test -x $with_build_time_tools/${ncn_progname}; then
15500 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15502 $as_echo "yes" >&6; }
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15506 $as_echo "no
" >&6; }
15511 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15512 for ncn_progname in ld; do
15513 if test -n "$ncn_target_tool_prefix"; then
15514 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15515 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15517 $as_echo_n "checking
for $ac_word...
" >&6; }
15518 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15519 $as_echo_n "(cached
) " >&6
15521 if test -n "$LD_FOR_TARGET"; then
15522 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15525 for as_dir in $PATH
15528 test -z "$as_dir" && as_dir=.
15529 for ac_exec_ext in '' $ac_executable_extensions; do
15530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15531 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15532 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15541 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15542 if test -n "$LD_FOR_TARGET"; then
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15544 $as_echo "$LD_FOR_TARGET" >&6; }
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15547 $as_echo "no
" >&6; }
15552 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15554 set dummy ${ncn_progname}; ac_word=$2
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15556 $as_echo_n "checking
for $ac_word...
" >&6; }
15557 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15558 $as_echo_n "(cached
) " >&6
15560 if test -n "$LD_FOR_TARGET"; then
15561 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15564 for as_dir in $PATH
15567 test -z "$as_dir" && as_dir=.
15568 for ac_exec_ext in '' $ac_executable_extensions; do
15569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15570 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15571 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15580 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15581 if test -n "$LD_FOR_TARGET"; then
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15583 $as_echo "$LD_FOR_TARGET" >&6; }
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15586 $as_echo "no
" >&6; }
15591 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15595 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15597 if test $build = $target ; then
15600 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15603 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15607 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15613 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15614 if test -n "$with_build_time_tools"; then
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15616 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15617 if test -x $with_build_time_tools/lipo; then
15618 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15619 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15621 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15624 $as_echo "no
" >&6; }
15626 elif test $build != $host && test $have_gcc_for_target = yes; then
15627 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15628 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15629 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15632 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15633 # Extract the first word of "lipo
", so it can be a program name with args.
15634 set dummy lipo; ac_word=$2
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15636 $as_echo_n "checking
for $ac_word...
" >&6; }
15637 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15638 $as_echo_n "(cached
) " >&6
15640 case $LIPO_FOR_TARGET in
15642 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15646 for as_dir in $gcc_cv_tool_dirs
15649 test -z "$as_dir" && as_dir=.
15650 for ac_exec_ext in '' $ac_executable_extensions; do
15651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15652 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15653 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15663 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15664 if test -n "$LIPO_FOR_TARGET"; then
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15666 $as_echo "$LIPO_FOR_TARGET" >&6; }
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15669 $as_echo "no
" >&6; }
15674 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15677 if test -n "$LIPO_FOR_TARGET"; then
15678 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15679 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15680 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15683 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15684 for ncn_progname in lipo; do
15685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15686 set dummy ${ncn_progname}; ac_word=$2
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15688 $as_echo_n "checking
for $ac_word...
" >&6; }
15689 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15690 $as_echo_n "(cached
) " >&6
15692 if test -n "$LIPO_FOR_TARGET"; then
15693 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15696 for as_dir in $PATH
15699 test -z "$as_dir" && as_dir=.
15700 for ac_exec_ext in '' $ac_executable_extensions; do
15701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15702 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15703 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15712 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15713 if test -n "$LIPO_FOR_TARGET"; then
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15715 $as_echo "$LIPO_FOR_TARGET" >&6; }
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15718 $as_echo "no
" >&6; }
15725 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15726 for ncn_progname in lipo; do
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15728 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15729 if test -x $with_build_time_tools/${ncn_progname}; then
15730 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15732 $as_echo "yes" >&6; }
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15736 $as_echo "no
" >&6; }
15741 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15742 for ncn_progname in lipo; do
15743 if test -n "$ncn_target_tool_prefix"; then
15744 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15745 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15747 $as_echo_n "checking
for $ac_word...
" >&6; }
15748 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15749 $as_echo_n "(cached
) " >&6
15751 if test -n "$LIPO_FOR_TARGET"; then
15752 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15755 for as_dir in $PATH
15758 test -z "$as_dir" && as_dir=.
15759 for ac_exec_ext in '' $ac_executable_extensions; do
15760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15761 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15762 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15771 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15772 if test -n "$LIPO_FOR_TARGET"; then
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15774 $as_echo "$LIPO_FOR_TARGET" >&6; }
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15777 $as_echo "no
" >&6; }
15782 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15783 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15784 set dummy ${ncn_progname}; ac_word=$2
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15786 $as_echo_n "checking
for $ac_word...
" >&6; }
15787 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15788 $as_echo_n "(cached
) " >&6
15790 if test -n "$LIPO_FOR_TARGET"; then
15791 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15794 for as_dir in $PATH
15797 test -z "$as_dir" && as_dir=.
15798 for ac_exec_ext in '' $ac_executable_extensions; do
15799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15800 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15801 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15810 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15811 if test -n "$LIPO_FOR_TARGET"; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15813 $as_echo "$LIPO_FOR_TARGET" >&6; }
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15816 $as_echo "no
" >&6; }
15821 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15825 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15827 if test $build = $target ; then
15828 LIPO_FOR_TARGET="$2"
15830 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15833 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15837 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15843 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15844 if test -n "$with_build_time_tools"; then
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15846 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15847 if test -x $with_build_time_tools/nm; then
15848 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15849 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15851 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15854 $as_echo "no
" >&6; }
15856 elif test $build != $host && test $have_gcc_for_target = yes; then
15857 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15858 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15859 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15862 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15863 # Extract the first word of "nm
", so it can be a program name with args.
15864 set dummy nm; ac_word=$2
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15866 $as_echo_n "checking
for $ac_word...
" >&6; }
15867 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15868 $as_echo_n "(cached
) " >&6
15870 case $NM_FOR_TARGET in
15872 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15876 for as_dir in $gcc_cv_tool_dirs
15879 test -z "$as_dir" && as_dir=.
15880 for ac_exec_ext in '' $ac_executable_extensions; do
15881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15882 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15883 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15893 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15894 if test -n "$NM_FOR_TARGET"; then
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15896 $as_echo "$NM_FOR_TARGET" >&6; }
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15899 $as_echo "no
" >&6; }
15904 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15907 if test -n "$NM_FOR_TARGET"; then
15908 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15909 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15910 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15913 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15914 for ncn_progname in nm; do
15915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15916 set dummy ${ncn_progname}; ac_word=$2
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15918 $as_echo_n "checking
for $ac_word...
" >&6; }
15919 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15920 $as_echo_n "(cached
) " >&6
15922 if test -n "$NM_FOR_TARGET"; then
15923 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15926 for as_dir in $PATH
15929 test -z "$as_dir" && as_dir=.
15930 for ac_exec_ext in '' $ac_executable_extensions; do
15931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15932 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15933 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15942 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15943 if test -n "$NM_FOR_TARGET"; then
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15945 $as_echo "$NM_FOR_TARGET" >&6; }
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15948 $as_echo "no
" >&6; }
15955 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15956 for ncn_progname in nm; do
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15958 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15959 if test -x $with_build_time_tools/${ncn_progname}; then
15960 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15962 $as_echo "yes" >&6; }
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15966 $as_echo "no
" >&6; }
15971 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15972 for ncn_progname in nm; do
15973 if test -n "$ncn_target_tool_prefix"; then
15974 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15975 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15977 $as_echo_n "checking
for $ac_word...
" >&6; }
15978 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15979 $as_echo_n "(cached
) " >&6
15981 if test -n "$NM_FOR_TARGET"; then
15982 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15985 for as_dir in $PATH
15988 test -z "$as_dir" && as_dir=.
15989 for ac_exec_ext in '' $ac_executable_extensions; do
15990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15991 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15992 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16001 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16002 if test -n "$NM_FOR_TARGET"; then
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16004 $as_echo "$NM_FOR_TARGET" >&6; }
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16007 $as_echo "no
" >&6; }
16012 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
16013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16014 set dummy ${ncn_progname}; ac_word=$2
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16016 $as_echo_n "checking
for $ac_word...
" >&6; }
16017 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16018 $as_echo_n "(cached
) " >&6
16020 if test -n "$NM_FOR_TARGET"; then
16021 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16024 for as_dir in $PATH
16027 test -z "$as_dir" && as_dir=.
16028 for ac_exec_ext in '' $ac_executable_extensions; do
16029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16030 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16031 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16040 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16041 if test -n "$NM_FOR_TARGET"; then
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16043 $as_echo "$NM_FOR_TARGET" >&6; }
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16046 $as_echo "no
" >&6; }
16051 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
16055 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
16057 if test $build = $target ; then
16060 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
16063 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
16067 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16073 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16074 if test -n "$with_build_time_tools"; then
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
16076 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
16077 if test -x $with_build_time_tools/objcopy; then
16078 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
16079 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
16081 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16084 $as_echo "no
" >&6; }
16086 elif test $build != $host && test $have_gcc_for_target = yes; then
16087 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
16088 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
16089 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16092 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16093 # Extract the first word of "objcopy
", so it can be a program name with args.
16094 set dummy objcopy; ac_word=$2
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16096 $as_echo_n "checking
for $ac_word...
" >&6; }
16097 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
16098 $as_echo_n "(cached
) " >&6
16100 case $OBJCOPY_FOR_TARGET in
16102 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
16105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16106 for as_dir in $gcc_cv_tool_dirs
16109 test -z "$as_dir" && as_dir=.
16110 for ac_exec_ext in '' $ac_executable_extensions; do
16111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16112 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16123 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16124 if test -n "$OBJCOPY_FOR_TARGET"; then
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16126 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16129 $as_echo "no
" >&6; }
16134 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16137 if test -n "$OBJCOPY_FOR_TARGET"; then
16138 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16139 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16140 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16143 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16144 for ncn_progname in objcopy; do
16145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16146 set dummy ${ncn_progname}; ac_word=$2
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16148 $as_echo_n "checking
for $ac_word...
" >&6; }
16149 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16150 $as_echo_n "(cached
) " >&6
16152 if test -n "$OBJCOPY_FOR_TARGET"; then
16153 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16156 for as_dir in $PATH
16159 test -z "$as_dir" && as_dir=.
16160 for ac_exec_ext in '' $ac_executable_extensions; do
16161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16162 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16163 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16172 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16173 if test -n "$OBJCOPY_FOR_TARGET"; then
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16175 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16178 $as_echo "no
" >&6; }
16185 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16186 for ncn_progname in objcopy; do
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16188 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16189 if test -x $with_build_time_tools/${ncn_progname}; then
16190 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16192 $as_echo "yes" >&6; }
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16196 $as_echo "no
" >&6; }
16201 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16202 for ncn_progname in objcopy; do
16203 if test -n "$ncn_target_tool_prefix"; then
16204 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16205 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16207 $as_echo_n "checking
for $ac_word...
" >&6; }
16208 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16209 $as_echo_n "(cached
) " >&6
16211 if test -n "$OBJCOPY_FOR_TARGET"; then
16212 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16215 for as_dir in $PATH
16218 test -z "$as_dir" && as_dir=.
16219 for ac_exec_ext in '' $ac_executable_extensions; do
16220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16221 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16222 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16231 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16232 if test -n "$OBJCOPY_FOR_TARGET"; then
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16234 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16237 $as_echo "no
" >&6; }
16242 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16244 set dummy ${ncn_progname}; ac_word=$2
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16246 $as_echo_n "checking
for $ac_word...
" >&6; }
16247 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16248 $as_echo_n "(cached
) " >&6
16250 if test -n "$OBJCOPY_FOR_TARGET"; then
16251 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16254 for as_dir in $PATH
16257 test -z "$as_dir" && as_dir=.
16258 for ac_exec_ext in '' $ac_executable_extensions; do
16259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16260 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16261 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16270 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16271 if test -n "$OBJCOPY_FOR_TARGET"; then
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16273 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16276 $as_echo "no
" >&6; }
16281 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16285 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16287 if test $build = $target ; then
16288 OBJCOPY_FOR_TARGET="$2"
16290 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16293 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16297 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16303 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16304 if test -n "$with_build_time_tools"; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
16306 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
16307 if test -x $with_build_time_tools/objdump; then
16308 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16309 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16311 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16314 $as_echo "no
" >&6; }
16316 elif test $build != $host && test $have_gcc_for_target = yes; then
16317 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16318 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16319 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16322 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16323 # Extract the first word of "objdump
", so it can be a program name with args.
16324 set dummy objdump; ac_word=$2
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16326 $as_echo_n "checking
for $ac_word...
" >&6; }
16327 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16328 $as_echo_n "(cached
) " >&6
16330 case $OBJDUMP_FOR_TARGET in
16332 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16336 for as_dir in $gcc_cv_tool_dirs
16339 test -z "$as_dir" && as_dir=.
16340 for ac_exec_ext in '' $ac_executable_extensions; do
16341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16342 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16343 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16353 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16354 if test -n "$OBJDUMP_FOR_TARGET"; then
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16356 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16359 $as_echo "no
" >&6; }
16364 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16367 if test -n "$OBJDUMP_FOR_TARGET"; then
16368 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16369 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16370 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16373 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16374 for ncn_progname in objdump; do
16375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16376 set dummy ${ncn_progname}; ac_word=$2
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16378 $as_echo_n "checking
for $ac_word...
" >&6; }
16379 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16380 $as_echo_n "(cached
) " >&6
16382 if test -n "$OBJDUMP_FOR_TARGET"; then
16383 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16386 for as_dir in $PATH
16389 test -z "$as_dir" && as_dir=.
16390 for ac_exec_ext in '' $ac_executable_extensions; do
16391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16392 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16393 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16402 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16403 if test -n "$OBJDUMP_FOR_TARGET"; then
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16405 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16408 $as_echo "no
" >&6; }
16415 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16416 for ncn_progname in objdump; do
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16418 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16419 if test -x $with_build_time_tools/${ncn_progname}; then
16420 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16422 $as_echo "yes" >&6; }
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16426 $as_echo "no
" >&6; }
16431 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16432 for ncn_progname in objdump; do
16433 if test -n "$ncn_target_tool_prefix"; then
16434 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16435 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16437 $as_echo_n "checking
for $ac_word...
" >&6; }
16438 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16439 $as_echo_n "(cached
) " >&6
16441 if test -n "$OBJDUMP_FOR_TARGET"; then
16442 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16445 for as_dir in $PATH
16448 test -z "$as_dir" && as_dir=.
16449 for ac_exec_ext in '' $ac_executable_extensions; do
16450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16451 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16452 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16461 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16462 if test -n "$OBJDUMP_FOR_TARGET"; then
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16464 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16467 $as_echo "no
" >&6; }
16472 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16474 set dummy ${ncn_progname}; ac_word=$2
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16476 $as_echo_n "checking
for $ac_word...
" >&6; }
16477 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16478 $as_echo_n "(cached
) " >&6
16480 if test -n "$OBJDUMP_FOR_TARGET"; then
16481 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16484 for as_dir in $PATH
16487 test -z "$as_dir" && as_dir=.
16488 for ac_exec_ext in '' $ac_executable_extensions; do
16489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16490 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16491 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16500 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16501 if test -n "$OBJDUMP_FOR_TARGET"; then
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16503 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16506 $as_echo "no
" >&6; }
16511 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16515 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16517 if test $build = $target ; then
16518 OBJDUMP_FOR_TARGET="$2"
16520 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16523 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16527 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16533 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16534 if test -n "$with_build_time_tools"; then
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16536 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16537 if test -x $with_build_time_tools/otool; then
16538 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16539 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16541 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16544 $as_echo "no
" >&6; }
16546 elif test $build != $host && test $have_gcc_for_target = yes; then
16547 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16548 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16549 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16552 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16553 # Extract the first word of "otool
", so it can be a program name with args.
16554 set dummy otool; ac_word=$2
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16556 $as_echo_n "checking
for $ac_word...
" >&6; }
16557 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16558 $as_echo_n "(cached
) " >&6
16560 case $OTOOL_FOR_TARGET in
16562 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16566 for as_dir in $gcc_cv_tool_dirs
16569 test -z "$as_dir" && as_dir=.
16570 for ac_exec_ext in '' $ac_executable_extensions; do
16571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16572 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16573 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16583 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16584 if test -n "$OTOOL_FOR_TARGET"; then
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16586 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16589 $as_echo "no
" >&6; }
16594 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16597 if test -n "$OTOOL_FOR_TARGET"; then
16598 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16599 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16600 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16603 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16604 for ncn_progname in otool; do
16605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16606 set dummy ${ncn_progname}; ac_word=$2
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16608 $as_echo_n "checking
for $ac_word...
" >&6; }
16609 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16610 $as_echo_n "(cached
) " >&6
16612 if test -n "$OTOOL_FOR_TARGET"; then
16613 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16616 for as_dir in $PATH
16619 test -z "$as_dir" && as_dir=.
16620 for ac_exec_ext in '' $ac_executable_extensions; do
16621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16622 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16623 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16632 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16633 if test -n "$OTOOL_FOR_TARGET"; then
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16635 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16638 $as_echo "no
" >&6; }
16645 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16646 for ncn_progname in otool; do
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16648 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16649 if test -x $with_build_time_tools/${ncn_progname}; then
16650 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16652 $as_echo "yes" >&6; }
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16656 $as_echo "no
" >&6; }
16661 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16662 for ncn_progname in otool; do
16663 if test -n "$ncn_target_tool_prefix"; then
16664 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16665 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16667 $as_echo_n "checking
for $ac_word...
" >&6; }
16668 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16669 $as_echo_n "(cached
) " >&6
16671 if test -n "$OTOOL_FOR_TARGET"; then
16672 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16675 for as_dir in $PATH
16678 test -z "$as_dir" && as_dir=.
16679 for ac_exec_ext in '' $ac_executable_extensions; do
16680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16681 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16682 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16691 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16692 if test -n "$OTOOL_FOR_TARGET"; then
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16694 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16697 $as_echo "no
" >&6; }
16702 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16704 set dummy ${ncn_progname}; ac_word=$2
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16706 $as_echo_n "checking
for $ac_word...
" >&6; }
16707 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16708 $as_echo_n "(cached
) " >&6
16710 if test -n "$OTOOL_FOR_TARGET"; then
16711 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16714 for as_dir in $PATH
16717 test -z "$as_dir" && as_dir=.
16718 for ac_exec_ext in '' $ac_executable_extensions; do
16719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16720 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16721 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16730 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16731 if test -n "$OTOOL_FOR_TARGET"; then
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16733 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16736 $as_echo "no
" >&6; }
16741 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16745 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16747 if test $build = $target ; then
16748 OTOOL_FOR_TARGET="$2"
16750 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16753 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16757 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16763 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16764 if test -n "$with_build_time_tools"; then
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16766 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16767 if test -x $with_build_time_tools/ranlib; then
16768 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16769 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16771 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16774 $as_echo "no
" >&6; }
16776 elif test $build != $host && test $have_gcc_for_target = yes; then
16777 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16778 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16779 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16782 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16783 # Extract the first word of "ranlib
", so it can be a program name with args.
16784 set dummy ranlib; ac_word=$2
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16786 $as_echo_n "checking
for $ac_word...
" >&6; }
16787 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16788 $as_echo_n "(cached
) " >&6
16790 case $RANLIB_FOR_TARGET in
16792 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16796 for as_dir in $gcc_cv_tool_dirs
16799 test -z "$as_dir" && as_dir=.
16800 for ac_exec_ext in '' $ac_executable_extensions; do
16801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16802 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16803 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16813 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16814 if test -n "$RANLIB_FOR_TARGET"; then
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16816 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16819 $as_echo "no
" >&6; }
16824 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16827 if test -n "$RANLIB_FOR_TARGET"; then
16828 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16829 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16830 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16833 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16834 for ncn_progname in ranlib; do
16835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16836 set dummy ${ncn_progname}; ac_word=$2
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16838 $as_echo_n "checking
for $ac_word...
" >&6; }
16839 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16840 $as_echo_n "(cached
) " >&6
16842 if test -n "$RANLIB_FOR_TARGET"; then
16843 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16846 for as_dir in $PATH
16849 test -z "$as_dir" && as_dir=.
16850 for ac_exec_ext in '' $ac_executable_extensions; do
16851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16852 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16853 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16862 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16863 if test -n "$RANLIB_FOR_TARGET"; then
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16865 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16868 $as_echo "no
" >&6; }
16875 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16876 for ncn_progname in ranlib; do
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16878 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16879 if test -x $with_build_time_tools/${ncn_progname}; then
16880 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16882 $as_echo "yes" >&6; }
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16886 $as_echo "no
" >&6; }
16891 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16892 for ncn_progname in ranlib; do
16893 if test -n "$ncn_target_tool_prefix"; then
16894 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16895 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16897 $as_echo_n "checking
for $ac_word...
" >&6; }
16898 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16899 $as_echo_n "(cached
) " >&6
16901 if test -n "$RANLIB_FOR_TARGET"; then
16902 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16905 for as_dir in $PATH
16908 test -z "$as_dir" && as_dir=.
16909 for ac_exec_ext in '' $ac_executable_extensions; do
16910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16911 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16912 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16921 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16922 if test -n "$RANLIB_FOR_TARGET"; then
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16924 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16927 $as_echo "no
" >&6; }
16932 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16934 set dummy ${ncn_progname}; ac_word=$2
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16936 $as_echo_n "checking
for $ac_word...
" >&6; }
16937 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16938 $as_echo_n "(cached
) " >&6
16940 if test -n "$RANLIB_FOR_TARGET"; then
16941 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16944 for as_dir in $PATH
16947 test -z "$as_dir" && as_dir=.
16948 for ac_exec_ext in '' $ac_executable_extensions; do
16949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16950 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16951 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16960 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16961 if test -n "$RANLIB_FOR_TARGET"; then
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16963 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16966 $as_echo "no
" >&6; }
16971 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16975 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16977 if test $build = $target ; then
16978 RANLIB_FOR_TARGET="$2"
16980 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16983 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16987 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16993 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16994 if test -n "$with_build_time_tools"; then
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16996 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16997 if test -x $with_build_time_tools/readelf; then
16998 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16999 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
17001 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17004 $as_echo "no
" >&6; }
17006 elif test $build != $host && test $have_gcc_for_target = yes; then
17007 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
17008 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
17009 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17012 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17013 # Extract the first word of "readelf
", so it can be a program name with args.
17014 set dummy readelf; ac_word=$2
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17016 $as_echo_n "checking
for $ac_word...
" >&6; }
17017 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
17018 $as_echo_n "(cached
) " >&6
17020 case $READELF_FOR_TARGET in
17022 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
17025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17026 for as_dir in $gcc_cv_tool_dirs
17029 test -z "$as_dir" && as_dir=.
17030 for ac_exec_ext in '' $ac_executable_extensions; do
17031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17032 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17033 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17043 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17044 if test -n "$READELF_FOR_TARGET"; then
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17046 $as_echo "$READELF_FOR_TARGET" >&6; }
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17049 $as_echo "no
" >&6; }
17054 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17057 if test -n "$READELF_FOR_TARGET"; then
17058 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
17059 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17060 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17063 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17064 for ncn_progname in readelf; do
17065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17066 set dummy ${ncn_progname}; ac_word=$2
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17068 $as_echo_n "checking
for $ac_word...
" >&6; }
17069 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17070 $as_echo_n "(cached
) " >&6
17072 if test -n "$READELF_FOR_TARGET"; then
17073 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17076 for as_dir in $PATH
17079 test -z "$as_dir" && as_dir=.
17080 for ac_exec_ext in '' $ac_executable_extensions; do
17081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17082 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17083 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17092 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17093 if test -n "$READELF_FOR_TARGET"; then
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17095 $as_echo "$READELF_FOR_TARGET" >&6; }
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17098 $as_echo "no
" >&6; }
17105 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
17106 for ncn_progname in readelf; do
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17108 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17109 if test -x $with_build_time_tools/${ncn_progname}; then
17110 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17112 $as_echo "yes" >&6; }
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17116 $as_echo "no
" >&6; }
17121 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
17122 for ncn_progname in readelf; do
17123 if test -n "$ncn_target_tool_prefix"; then
17124 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17125 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17127 $as_echo_n "checking
for $ac_word...
" >&6; }
17128 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17129 $as_echo_n "(cached
) " >&6
17131 if test -n "$READELF_FOR_TARGET"; then
17132 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17135 for as_dir in $PATH
17138 test -z "$as_dir" && as_dir=.
17139 for ac_exec_ext in '' $ac_executable_extensions; do
17140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17141 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17142 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17151 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17152 if test -n "$READELF_FOR_TARGET"; then
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17154 $as_echo "$READELF_FOR_TARGET" >&6; }
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17157 $as_echo "no
" >&6; }
17162 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17164 set dummy ${ncn_progname}; ac_word=$2
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17166 $as_echo_n "checking
for $ac_word...
" >&6; }
17167 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17168 $as_echo_n "(cached
) " >&6
17170 if test -n "$READELF_FOR_TARGET"; then
17171 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17174 for as_dir in $PATH
17177 test -z "$as_dir" && as_dir=.
17178 for ac_exec_ext in '' $ac_executable_extensions; do
17179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17180 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17181 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17190 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17191 if test -n "$READELF_FOR_TARGET"; then
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17193 $as_echo "$READELF_FOR_TARGET" >&6; }
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17196 $as_echo "no
" >&6; }
17201 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17205 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17207 if test $build = $target ; then
17208 READELF_FOR_TARGET="$2"
17210 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17213 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17217 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17223 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17224 if test -n "$with_build_time_tools"; then
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
17226 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
17227 if test -x $with_build_time_tools/strip; then
17228 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17229 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
17231 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17234 $as_echo "no
" >&6; }
17236 elif test $build != $host && test $have_gcc_for_target = yes; then
17237 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
17238 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17239 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17242 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17243 # Extract the first word of "strip
", so it can be a program name with args.
17244 set dummy strip; ac_word=$2
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17246 $as_echo_n "checking
for $ac_word...
" >&6; }
17247 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
17248 $as_echo_n "(cached
) " >&6
17250 case $STRIP_FOR_TARGET in
17252 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17256 for as_dir in $gcc_cv_tool_dirs
17259 test -z "$as_dir" && as_dir=.
17260 for ac_exec_ext in '' $ac_executable_extensions; do
17261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17262 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17263 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17273 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17274 if test -n "$STRIP_FOR_TARGET"; then
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17276 $as_echo "$STRIP_FOR_TARGET" >&6; }
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17279 $as_echo "no
" >&6; }
17284 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17287 if test -n "$STRIP_FOR_TARGET"; then
17288 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17289 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17290 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17293 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17294 for ncn_progname in strip; do
17295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17296 set dummy ${ncn_progname}; ac_word=$2
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17298 $as_echo_n "checking
for $ac_word...
" >&6; }
17299 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17300 $as_echo_n "(cached
) " >&6
17302 if test -n "$STRIP_FOR_TARGET"; then
17303 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17306 for as_dir in $PATH
17309 test -z "$as_dir" && as_dir=.
17310 for ac_exec_ext in '' $ac_executable_extensions; do
17311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17312 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17313 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17322 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17323 if test -n "$STRIP_FOR_TARGET"; then
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17325 $as_echo "$STRIP_FOR_TARGET" >&6; }
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17328 $as_echo "no
" >&6; }
17335 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17336 for ncn_progname in strip; do
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17338 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17339 if test -x $with_build_time_tools/${ncn_progname}; then
17340 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17342 $as_echo "yes" >&6; }
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17346 $as_echo "no
" >&6; }
17351 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17352 for ncn_progname in strip; do
17353 if test -n "$ncn_target_tool_prefix"; then
17354 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17355 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17357 $as_echo_n "checking
for $ac_word...
" >&6; }
17358 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17359 $as_echo_n "(cached
) " >&6
17361 if test -n "$STRIP_FOR_TARGET"; then
17362 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17365 for as_dir in $PATH
17368 test -z "$as_dir" && as_dir=.
17369 for ac_exec_ext in '' $ac_executable_extensions; do
17370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17371 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17372 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17381 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17382 if test -n "$STRIP_FOR_TARGET"; then
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17384 $as_echo "$STRIP_FOR_TARGET" >&6; }
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17387 $as_echo "no
" >&6; }
17392 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17394 set dummy ${ncn_progname}; ac_word=$2
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17396 $as_echo_n "checking
for $ac_word...
" >&6; }
17397 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17398 $as_echo_n "(cached
) " >&6
17400 if test -n "$STRIP_FOR_TARGET"; then
17401 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17404 for as_dir in $PATH
17407 test -z "$as_dir" && as_dir=.
17408 for ac_exec_ext in '' $ac_executable_extensions; do
17409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17410 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17411 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17420 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17421 if test -n "$STRIP_FOR_TARGET"; then
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17423 $as_echo "$STRIP_FOR_TARGET" >&6; }
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17426 $as_echo "no
" >&6; }
17431 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17435 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17437 if test $build = $target ; then
17438 STRIP_FOR_TARGET="$2"
17440 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17443 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17447 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17453 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17454 if test -n "$with_build_time_tools"; then
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17456 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17457 if test -x $with_build_time_tools/windres; then
17458 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17459 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17461 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17464 $as_echo "no
" >&6; }
17466 elif test $build != $host && test $have_gcc_for_target = yes; then
17467 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17468 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17469 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17472 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17473 # Extract the first word of "windres
", so it can be a program name with args.
17474 set dummy windres; ac_word=$2
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17476 $as_echo_n "checking
for $ac_word...
" >&6; }
17477 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17478 $as_echo_n "(cached
) " >&6
17480 case $WINDRES_FOR_TARGET in
17482 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17486 for as_dir in $gcc_cv_tool_dirs
17489 test -z "$as_dir" && as_dir=.
17490 for ac_exec_ext in '' $ac_executable_extensions; do
17491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17492 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17493 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17503 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17504 if test -n "$WINDRES_FOR_TARGET"; then
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17506 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17509 $as_echo "no
" >&6; }
17514 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17517 if test -n "$WINDRES_FOR_TARGET"; then
17518 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17519 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17520 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17523 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17524 for ncn_progname in windres; do
17525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17526 set dummy ${ncn_progname}; ac_word=$2
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17528 $as_echo_n "checking
for $ac_word...
" >&6; }
17529 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17530 $as_echo_n "(cached
) " >&6
17532 if test -n "$WINDRES_FOR_TARGET"; then
17533 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17536 for as_dir in $PATH
17539 test -z "$as_dir" && as_dir=.
17540 for ac_exec_ext in '' $ac_executable_extensions; do
17541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17542 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17543 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17552 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17553 if test -n "$WINDRES_FOR_TARGET"; then
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17555 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17558 $as_echo "no
" >&6; }
17565 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17566 for ncn_progname in windres; do
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17568 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17569 if test -x $with_build_time_tools/${ncn_progname}; then
17570 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17572 $as_echo "yes" >&6; }
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17576 $as_echo "no
" >&6; }
17581 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17582 for ncn_progname in windres; do
17583 if test -n "$ncn_target_tool_prefix"; then
17584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17585 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17587 $as_echo_n "checking
for $ac_word...
" >&6; }
17588 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17589 $as_echo_n "(cached
) " >&6
17591 if test -n "$WINDRES_FOR_TARGET"; then
17592 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17595 for as_dir in $PATH
17598 test -z "$as_dir" && as_dir=.
17599 for ac_exec_ext in '' $ac_executable_extensions; do
17600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17601 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17602 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17611 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17612 if test -n "$WINDRES_FOR_TARGET"; then
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17614 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17617 $as_echo "no
" >&6; }
17622 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17624 set dummy ${ncn_progname}; ac_word=$2
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17626 $as_echo_n "checking
for $ac_word...
" >&6; }
17627 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17628 $as_echo_n "(cached
) " >&6
17630 if test -n "$WINDRES_FOR_TARGET"; then
17631 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17634 for as_dir in $PATH
17637 test -z "$as_dir" && as_dir=.
17638 for ac_exec_ext in '' $ac_executable_extensions; do
17639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17640 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17641 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17650 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17651 if test -n "$WINDRES_FOR_TARGET"; then
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17653 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17656 $as_echo "no
" >&6; }
17661 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17665 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17667 if test $build = $target ; then
17668 WINDRES_FOR_TARGET="$2"
17670 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17673 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17677 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17683 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17684 if test -n "$with_build_time_tools"; then
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17686 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17687 if test -x $with_build_time_tools/windmc; then
17688 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17689 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17691 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17694 $as_echo "no
" >&6; }
17696 elif test $build != $host && test $have_gcc_for_target = yes; then
17697 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17698 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17699 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17702 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17703 # Extract the first word of "windmc
", so it can be a program name with args.
17704 set dummy windmc; ac_word=$2
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17706 $as_echo_n "checking
for $ac_word...
" >&6; }
17707 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17708 $as_echo_n "(cached
) " >&6
17710 case $WINDMC_FOR_TARGET in
17712 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17716 for as_dir in $gcc_cv_tool_dirs
17719 test -z "$as_dir" && as_dir=.
17720 for ac_exec_ext in '' $ac_executable_extensions; do
17721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17722 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17723 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17733 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17734 if test -n "$WINDMC_FOR_TARGET"; then
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17736 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17739 $as_echo "no
" >&6; }
17744 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17747 if test -n "$WINDMC_FOR_TARGET"; then
17748 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17749 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17750 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17753 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17754 for ncn_progname in windmc; do
17755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17756 set dummy ${ncn_progname}; ac_word=$2
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17758 $as_echo_n "checking
for $ac_word...
" >&6; }
17759 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17760 $as_echo_n "(cached
) " >&6
17762 if test -n "$WINDMC_FOR_TARGET"; then
17763 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17766 for as_dir in $PATH
17769 test -z "$as_dir" && as_dir=.
17770 for ac_exec_ext in '' $ac_executable_extensions; do
17771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17772 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17773 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17782 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17783 if test -n "$WINDMC_FOR_TARGET"; then
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17785 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17788 $as_echo "no
" >&6; }
17795 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17796 for ncn_progname in windmc; do
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17798 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17799 if test -x $with_build_time_tools/${ncn_progname}; then
17800 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17802 $as_echo "yes" >&6; }
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17806 $as_echo "no
" >&6; }
17811 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17812 for ncn_progname in windmc; do
17813 if test -n "$ncn_target_tool_prefix"; then
17814 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17815 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17817 $as_echo_n "checking
for $ac_word...
" >&6; }
17818 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17819 $as_echo_n "(cached
) " >&6
17821 if test -n "$WINDMC_FOR_TARGET"; then
17822 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17825 for as_dir in $PATH
17828 test -z "$as_dir" && as_dir=.
17829 for ac_exec_ext in '' $ac_executable_extensions; do
17830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17831 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17832 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17841 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17842 if test -n "$WINDMC_FOR_TARGET"; then
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17844 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17847 $as_echo "no
" >&6; }
17852 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17854 set dummy ${ncn_progname}; ac_word=$2
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17856 $as_echo_n "checking
for $ac_word...
" >&6; }
17857 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17858 $as_echo_n "(cached
) " >&6
17860 if test -n "$WINDMC_FOR_TARGET"; then
17861 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17864 for as_dir in $PATH
17867 test -z "$as_dir" && as_dir=.
17868 for ac_exec_ext in '' $ac_executable_extensions; do
17869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17870 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17871 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17880 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17881 if test -n "$WINDMC_FOR_TARGET"; then
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17883 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17886 $as_echo "no
" >&6; }
17891 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17895 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17897 if test $build = $target ; then
17898 WINDMC_FOR_TARGET="$2"
17900 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17903 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17907 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17911 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17914 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17915 if test "x
${build}" != "x
${host}" ; then
17916 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17917 # We already found the complete path
17918 ac_dir=`dirname $AR_FOR_TARGET`
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17920 $as_echo "pre-installed
in $ac_dir" >&6; }
17922 # Canadian cross, just use what we found
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17924 $as_echo "pre-installed
" >&6; }
17928 case " ${configdirs} " in
17933 if test $ok = yes; then
17934 # An in-tree tool is available and we can use it
17935 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17937 $as_echo "just compiled
" >&6; }
17938 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17939 # We already found the complete path
17940 ac_dir=`dirname $AR_FOR_TARGET`
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17942 $as_echo "pre-installed
in $ac_dir" >&6; }
17943 elif test "x
$target" = "x
$host"; then
17944 # We can use an host tool
17945 AR_FOR_TARGET='$(AR)'
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17947 $as_echo "host tool
" >&6; }
17949 # We need a cross tool
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17951 $as_echo "pre-installed
" >&6; }
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17956 $as_echo_n "checking where to
find the target as...
" >&6; }
17957 if test "x
${build}" != "x
${host}" ; then
17958 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17959 # We already found the complete path
17960 ac_dir=`dirname $AS_FOR_TARGET`
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17962 $as_echo "pre-installed
in $ac_dir" >&6; }
17964 # Canadian cross, just use what we found
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17966 $as_echo "pre-installed
" >&6; }
17970 case " ${configdirs} " in
17975 if test $ok = yes; then
17976 # An in-tree tool is available and we can use it
17977 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17979 $as_echo "just compiled
" >&6; }
17980 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17981 # We already found the complete path
17982 ac_dir=`dirname $AS_FOR_TARGET`
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17984 $as_echo "pre-installed
in $ac_dir" >&6; }
17985 elif test "x
$target" = "x
$host"; then
17986 # We can use an host tool
17987 AS_FOR_TARGET='$(AS)'
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17989 $as_echo "host tool
" >&6; }
17991 # We need a cross tool
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17993 $as_echo "pre-installed
" >&6; }
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17998 $as_echo_n "checking where to
find the target cc...
" >&6; }
17999 if test "x
${build}" != "x
${host}" ; then
18000 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
18001 # We already found the complete path
18002 ac_dir=`dirname $CC_FOR_TARGET`
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18004 $as_echo "pre-installed
in $ac_dir" >&6; }
18006 # Canadian cross, just use what we found
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18008 $as_echo "pre-installed
" >&6; }
18012 case " ${configdirs} " in
18017 if test $ok = yes; then
18018 # An in-tree tool is available and we can use it
18019 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18021 $as_echo "just compiled
" >&6; }
18022 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
18023 # We already found the complete path
18024 ac_dir=`dirname $CC_FOR_TARGET`
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18026 $as_echo "pre-installed
in $ac_dir" >&6; }
18027 elif test "x
$target" = "x
$host"; then
18028 # We can use an host tool
18029 CC_FOR_TARGET='$(CC)'
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18031 $as_echo "host tool
" >&6; }
18033 # We need a cross tool
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18035 $as_echo "pre-installed
" >&6; }
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
18040 $as_echo_n "checking where to
find the target c
++...
" >&6; }
18041 if test "x
${build}" != "x
${host}" ; then
18042 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
18043 # We already found the complete path
18044 ac_dir=`dirname $CXX_FOR_TARGET`
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18046 $as_echo "pre-installed
in $ac_dir" >&6; }
18048 # Canadian cross, just use what we found
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18050 $as_echo "pre-installed
" >&6; }
18054 case " ${configdirs} " in
18058 case ,${enable_languages}, in
18062 if test $ok = yes; then
18063 # An in-tree tool is available and we can use it
18064 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18066 $as_echo "just compiled
" >&6; }
18067 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
18068 # We already found the complete path
18069 ac_dir=`dirname $CXX_FOR_TARGET`
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18071 $as_echo "pre-installed
in $ac_dir" >&6; }
18072 elif test "x
$target" = "x
$host"; then
18073 # We can use an host tool
18074 CXX_FOR_TARGET='$(CXX)'
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18076 $as_echo "host tool
" >&6; }
18078 # We need a cross tool
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18080 $as_echo "pre-installed
" >&6; }
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
18085 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
18086 if test "x
${build}" != "x
${host}" ; then
18087 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
18088 # We already found the complete path
18089 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18091 $as_echo "pre-installed
in $ac_dir" >&6; }
18093 # Canadian cross, just use what we found
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18095 $as_echo "pre-installed
" >&6; }
18099 case " ${configdirs} " in
18103 case ,${enable_languages}, in
18107 if test $ok = yes; then
18108 # An in-tree tool is available and we can use it
18109 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18111 $as_echo "just compiled
" >&6; }
18112 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
18113 # We already found the complete path
18114 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18116 $as_echo "pre-installed
in $ac_dir" >&6; }
18117 elif test "x
$target" = "x
$host"; then
18118 # We can use an host tool
18119 RAW_CXX_FOR_TARGET='$(CXX)'
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18121 $as_echo "host tool
" >&6; }
18123 # We need a cross tool
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18125 $as_echo "pre-installed
" >&6; }
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
18130 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
18131 if test "x
${build}" != "x
${host}" ; then
18132 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18133 # We already found the complete path
18134 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18136 $as_echo "pre-installed
in $ac_dir" >&6; }
18138 # Canadian cross, just use what we found
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18140 $as_echo "pre-installed
" >&6; }
18144 case " ${configdirs} " in
18149 if test $ok = yes; then
18150 # An in-tree tool is available and we can use it
18151 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18153 $as_echo "just compiled
" >&6; }
18154 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18155 # We already found the complete path
18156 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18158 $as_echo "pre-installed
in $ac_dir" >&6; }
18159 elif test "x
$target" = "x
$host"; then
18160 # We can use an host tool
18161 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18163 $as_echo "host tool
" >&6; }
18165 # We need a cross tool
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18167 $as_echo "pre-installed
" >&6; }
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
18172 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
18173 if test "x
${build}" != "x
${host}" ; then
18174 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
18175 # We already found the complete path
18176 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18178 $as_echo "pre-installed
in $ac_dir" >&6; }
18180 # Canadian cross, just use what we found
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18182 $as_echo "pre-installed
" >&6; }
18185 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
18186 # We already found the complete path
18187 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18189 $as_echo "pre-installed
in $ac_dir" >&6; }
18190 elif test "x
$target" = "x
$host"; then
18191 # We can use an host tool
18192 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18194 $as_echo "host tool
" >&6; }
18196 # We need a cross tool
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18198 $as_echo "pre-installed
" >&6; }
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
18203 $as_echo_n "checking where to
find the target gcc...
" >&6; }
18204 if test "x
${build}" != "x
${host}" ; then
18205 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
18206 # We already found the complete path
18207 ac_dir=`dirname $GCC_FOR_TARGET`
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18209 $as_echo "pre-installed
in $ac_dir" >&6; }
18211 # Canadian cross, just use what we found
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18213 $as_echo "pre-installed
" >&6; }
18217 case " ${configdirs} " in
18222 if test $ok = yes; then
18223 # An in-tree tool is available and we can use it
18224 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18226 $as_echo "just compiled
" >&6; }
18227 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
18228 # We already found the complete path
18229 ac_dir=`dirname $GCC_FOR_TARGET`
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18231 $as_echo "pre-installed
in $ac_dir" >&6; }
18232 elif test "x
$target" = "x
$host"; then
18233 # We can use an host tool
18234 GCC_FOR_TARGET='$()'
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18236 $as_echo "host tool
" >&6; }
18238 # We need a cross tool
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18240 $as_echo "pre-installed
" >&6; }
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
18245 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
18246 if test "x
${build}" != "x
${host}" ; then
18247 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
18248 # We already found the complete path
18249 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18251 $as_echo "pre-installed
in $ac_dir" >&6; }
18253 # Canadian cross, just use what we found
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18255 $as_echo "pre-installed
" >&6; }
18259 case " ${configdirs} " in
18263 case ,${enable_languages}, in
18267 if test $ok = yes; then
18268 # An in-tree tool is available and we can use it
18269 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18271 $as_echo "just compiled
" >&6; }
18272 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
18273 # We already found the complete path
18274 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18276 $as_echo "pre-installed
in $ac_dir" >&6; }
18277 elif test "x
$target" = "x
$host"; then
18278 # We can use an host tool
18279 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18281 $as_echo "host tool
" >&6; }
18283 # We need a cross tool
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18285 $as_echo "pre-installed
" >&6; }
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
18290 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
18291 if test "x
${build}" != "x
${host}" ; then
18292 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
18293 # We already found the complete path
18294 ac_dir=`dirname $GOC_FOR_TARGET`
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18296 $as_echo "pre-installed
in $ac_dir" >&6; }
18298 # Canadian cross, just use what we found
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18300 $as_echo "pre-installed
" >&6; }
18304 case " ${configdirs} " in
18308 case ,${enable_languages}, in
18312 if test $ok = yes; then
18313 # An in-tree tool is available and we can use it
18314 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18316 $as_echo "just compiled
" >&6; }
18317 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
18318 # We already found the complete path
18319 ac_dir=`dirname $GOC_FOR_TARGET`
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18321 $as_echo "pre-installed
in $ac_dir" >&6; }
18322 elif test "x
$target" = "x
$host"; then
18323 # We can use an host tool
18324 GOC_FOR_TARGET='$(GOC)'
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18326 $as_echo "host tool
" >&6; }
18328 # We need a cross tool
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18330 $as_echo "pre-installed
" >&6; }
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
18335 $as_echo_n "checking where to
find the target gdc...
" >&6; }
18336 if test "x
${build}" != "x
${host}" ; then
18337 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18338 # We already found the complete path
18339 ac_dir=`dirname $GDC_FOR_TARGET`
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18341 $as_echo "pre-installed
in $ac_dir" >&6; }
18343 # Canadian cross, just use what we found
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18345 $as_echo "pre-installed
" >&6; }
18349 case " ${configdirs} " in
18353 case ,${enable_languages}, in
18357 if test $ok = yes; then
18358 # An in-tree tool is available and we can use it
18359 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18361 $as_echo "just compiled
" >&6; }
18362 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18363 # We already found the complete path
18364 ac_dir=`dirname $GDC_FOR_TARGET`
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18366 $as_echo "pre-installed
in $ac_dir" >&6; }
18367 elif test "x
$target" = "x
$host"; then
18368 # We can use an host tool
18369 GDC_FOR_TARGET='$(GDC)'
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18371 $as_echo "host tool
" >&6; }
18373 # We need a cross tool
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18375 $as_echo "pre-installed
" >&6; }
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gm2
" >&5
18380 $as_echo_n "checking where to
find the target gm2...
" >&6; }
18381 if test "x
${build}" != "x
${host}" ; then
18382 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18383 # We already found the complete path
18384 ac_dir=`dirname $GM2_FOR_TARGET`
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18386 $as_echo "pre-installed
in $ac_dir" >&6; }
18388 # Canadian cross, just use what we found
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18390 $as_echo "pre-installed
" >&6; }
18394 case " ${configdirs} " in
18398 case ,${enable_languages}, in
18402 if test $ok = yes; then
18403 # An in-tree tool is available and we can use it
18404 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18406 $as_echo "just compiled
" >&6; }
18407 elif expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18408 # We already found the complete path
18409 ac_dir=`dirname $GM2_FOR_TARGET`
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18411 $as_echo "pre-installed
in $ac_dir" >&6; }
18412 elif test "x
$target" = "x
$host"; then
18413 # We can use an host tool
18414 GM2_FOR_TARGET='$(GM2)'
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18416 $as_echo "host tool
" >&6; }
18418 # We need a cross tool
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18420 $as_echo "pre-installed
" >&6; }
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
18425 $as_echo_n "checking where to
find the target ld...
" >&6; }
18426 if test "x
${build}" != "x
${host}" ; then
18427 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18428 # We already found the complete path
18429 ac_dir=`dirname $LD_FOR_TARGET`
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18431 $as_echo "pre-installed
in $ac_dir" >&6; }
18433 # Canadian cross, just use what we found
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18435 $as_echo "pre-installed
" >&6; }
18439 case " ${configdirs} " in
18444 if test $ok = yes; then
18445 # An in-tree tool is available and we can use it
18446 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18448 $as_echo "just compiled
" >&6; }
18449 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18450 # We already found the complete path
18451 ac_dir=`dirname $LD_FOR_TARGET`
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18453 $as_echo "pre-installed
in $ac_dir" >&6; }
18454 elif test "x
$target" = "x
$host"; then
18455 # We can use an host tool
18456 LD_FOR_TARGET='$(LD)'
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18458 $as_echo "host tool
" >&6; }
18460 # We need a cross tool
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18462 $as_echo "pre-installed
" >&6; }
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
18467 $as_echo_n "checking where to
find the target lipo...
" >&6; }
18468 if test "x
${build}" != "x
${host}" ; then
18469 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18470 # We already found the complete path
18471 ac_dir=`dirname $LIPO_FOR_TARGET`
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18473 $as_echo "pre-installed
in $ac_dir" >&6; }
18475 # Canadian cross, just use what we found
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18477 $as_echo "pre-installed
" >&6; }
18480 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18481 # We already found the complete path
18482 ac_dir=`dirname $LIPO_FOR_TARGET`
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18484 $as_echo "pre-installed
in $ac_dir" >&6; }
18485 elif test "x
$target" = "x
$host"; then
18486 # We can use an host tool
18487 LIPO_FOR_TARGET='$(LIPO)'
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18489 $as_echo "host tool
" >&6; }
18491 # We need a cross tool
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18493 $as_echo "pre-installed
" >&6; }
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
18498 $as_echo_n "checking where to
find the target nm...
" >&6; }
18499 if test "x
${build}" != "x
${host}" ; then
18500 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18501 # We already found the complete path
18502 ac_dir=`dirname $NM_FOR_TARGET`
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18504 $as_echo "pre-installed
in $ac_dir" >&6; }
18506 # Canadian cross, just use what we found
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18508 $as_echo "pre-installed
" >&6; }
18512 case " ${configdirs} " in
18517 if test $ok = yes; then
18518 # An in-tree tool is available and we can use it
18519 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18521 $as_echo "just compiled
" >&6; }
18522 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18523 # We already found the complete path
18524 ac_dir=`dirname $NM_FOR_TARGET`
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18526 $as_echo "pre-installed
in $ac_dir" >&6; }
18527 elif test "x
$target" = "x
$host"; then
18528 # We can use an host tool
18529 NM_FOR_TARGET='$(NM)'
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18531 $as_echo "host tool
" >&6; }
18533 # We need a cross tool
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18535 $as_echo "pre-installed
" >&6; }
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
18540 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
18541 if test "x
${build}" != "x
${host}" ; then
18542 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18543 # We already found the complete path
18544 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18546 $as_echo "pre-installed
in $ac_dir" >&6; }
18548 # Canadian cross, just use what we found
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18550 $as_echo "pre-installed
" >&6; }
18554 case " ${configdirs} " in
18559 if test $ok = yes; then
18560 # An in-tree tool is available and we can use it
18561 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18563 $as_echo "just compiled
" >&6; }
18564 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18565 # We already found the complete path
18566 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18568 $as_echo "pre-installed
in $ac_dir" >&6; }
18569 elif test "x
$target" = "x
$host"; then
18570 # We can use an host tool
18571 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18573 $as_echo "host tool
" >&6; }
18575 # We need a cross tool
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18577 $as_echo "pre-installed
" >&6; }
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18582 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18583 if test "x
${build}" != "x
${host}" ; then
18584 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18585 # We already found the complete path
18586 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18588 $as_echo "pre-installed
in $ac_dir" >&6; }
18590 # Canadian cross, just use what we found
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18592 $as_echo "pre-installed
" >&6; }
18596 case " ${configdirs} " in
18601 if test $ok = yes; then
18602 # An in-tree tool is available and we can use it
18603 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18605 $as_echo "just compiled
" >&6; }
18606 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18607 # We already found the complete path
18608 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18610 $as_echo "pre-installed
in $ac_dir" >&6; }
18611 elif test "x
$target" = "x
$host"; then
18612 # We can use an host tool
18613 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18615 $as_echo "host tool
" >&6; }
18617 # We need a cross tool
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18619 $as_echo "pre-installed
" >&6; }
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18624 $as_echo_n "checking where to
find the target otool...
" >&6; }
18625 if test "x
${build}" != "x
${host}" ; then
18626 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18627 # We already found the complete path
18628 ac_dir=`dirname $OTOOL_FOR_TARGET`
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18630 $as_echo "pre-installed
in $ac_dir" >&6; }
18632 # Canadian cross, just use what we found
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18634 $as_echo "pre-installed
" >&6; }
18637 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18638 # We already found the complete path
18639 ac_dir=`dirname $OTOOL_FOR_TARGET`
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18641 $as_echo "pre-installed
in $ac_dir" >&6; }
18642 elif test "x
$target" = "x
$host"; then
18643 # We can use an host tool
18644 OTOOL_FOR_TARGET='$(OTOOL)'
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18646 $as_echo "host tool
" >&6; }
18648 # We need a cross tool
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18650 $as_echo "pre-installed
" >&6; }
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18655 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18656 if test "x
${build}" != "x
${host}" ; then
18657 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18658 # We already found the complete path
18659 ac_dir=`dirname $RANLIB_FOR_TARGET`
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18661 $as_echo "pre-installed
in $ac_dir" >&6; }
18663 # Canadian cross, just use what we found
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18665 $as_echo "pre-installed
" >&6; }
18669 case " ${configdirs} " in
18674 if test $ok = yes; then
18675 # An in-tree tool is available and we can use it
18676 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18678 $as_echo "just compiled
" >&6; }
18679 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18680 # We already found the complete path
18681 ac_dir=`dirname $RANLIB_FOR_TARGET`
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18683 $as_echo "pre-installed
in $ac_dir" >&6; }
18684 elif test "x
$target" = "x
$host"; then
18685 # We can use an host tool
18686 RANLIB_FOR_TARGET='$(RANLIB)'
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18688 $as_echo "host tool
" >&6; }
18690 # We need a cross tool
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18692 $as_echo "pre-installed
" >&6; }
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18697 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18698 if test "x
${build}" != "x
${host}" ; then
18699 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18700 # We already found the complete path
18701 ac_dir=`dirname $READELF_FOR_TARGET`
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18703 $as_echo "pre-installed
in $ac_dir" >&6; }
18705 # Canadian cross, just use what we found
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18707 $as_echo "pre-installed
" >&6; }
18711 case " ${configdirs} " in
18716 if test $ok = yes; then
18717 # An in-tree tool is available and we can use it
18718 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18720 $as_echo "just compiled
" >&6; }
18721 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18722 # We already found the complete path
18723 ac_dir=`dirname $READELF_FOR_TARGET`
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18725 $as_echo "pre-installed
in $ac_dir" >&6; }
18726 elif test "x
$target" = "x
$host"; then
18727 # We can use an host tool
18728 READELF_FOR_TARGET='$(READELF)'
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18730 $as_echo "host tool
" >&6; }
18732 # We need a cross tool
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18734 $as_echo "pre-installed
" >&6; }
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18739 $as_echo_n "checking where to
find the target strip...
" >&6; }
18740 if test "x
${build}" != "x
${host}" ; then
18741 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18742 # We already found the complete path
18743 ac_dir=`dirname $STRIP_FOR_TARGET`
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18745 $as_echo "pre-installed
in $ac_dir" >&6; }
18747 # Canadian cross, just use what we found
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18749 $as_echo "pre-installed
" >&6; }
18753 case " ${configdirs} " in
18758 if test $ok = yes; then
18759 # An in-tree tool is available and we can use it
18760 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18762 $as_echo "just compiled
" >&6; }
18763 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18764 # We already found the complete path
18765 ac_dir=`dirname $STRIP_FOR_TARGET`
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18767 $as_echo "pre-installed
in $ac_dir" >&6; }
18768 elif test "x
$target" = "x
$host"; then
18769 # We can use an host tool
18770 STRIP_FOR_TARGET='$(STRIP)'
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18772 $as_echo "host tool
" >&6; }
18774 # We need a cross tool
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18776 $as_echo "pre-installed
" >&6; }
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18781 $as_echo_n "checking where to
find the target windres...
" >&6; }
18782 if test "x
${build}" != "x
${host}" ; then
18783 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18784 # We already found the complete path
18785 ac_dir=`dirname $WINDRES_FOR_TARGET`
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18787 $as_echo "pre-installed
in $ac_dir" >&6; }
18789 # Canadian cross, just use what we found
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18791 $as_echo "pre-installed
" >&6; }
18795 case " ${configdirs} " in
18800 if test $ok = yes; then
18801 # An in-tree tool is available and we can use it
18802 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18804 $as_echo "just compiled
" >&6; }
18805 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18806 # We already found the complete path
18807 ac_dir=`dirname $WINDRES_FOR_TARGET`
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18809 $as_echo "pre-installed
in $ac_dir" >&6; }
18810 elif test "x
$target" = "x
$host"; then
18811 # We can use an host tool
18812 WINDRES_FOR_TARGET='$(WINDRES)'
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18814 $as_echo "host tool
" >&6; }
18816 # We need a cross tool
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18818 $as_echo "pre-installed
" >&6; }
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18823 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18824 if test "x
${build}" != "x
${host}" ; then
18825 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18826 # We already found the complete path
18827 ac_dir=`dirname $WINDMC_FOR_TARGET`
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18829 $as_echo "pre-installed
in $ac_dir" >&6; }
18831 # Canadian cross, just use what we found
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18833 $as_echo "pre-installed
" >&6; }
18837 case " ${configdirs} " in
18842 if test $ok = yes; then
18843 # An in-tree tool is available and we can use it
18844 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18846 $as_echo "just compiled
" >&6; }
18847 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18848 # We already found the complete path
18849 ac_dir=`dirname $WINDMC_FOR_TARGET`
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18851 $as_echo "pre-installed
in $ac_dir" >&6; }
18852 elif test "x
$target" = "x
$host"; then
18853 # We can use an host tool
18854 WINDMC_FOR_TARGET='$(WINDMC)'
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18856 $as_echo "host tool
" >&6; }
18858 # We need a cross tool
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18860 $as_echo "pre-installed
" >&6; }
18868 # Certain tools may need extra flags.
18869 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18870 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18871 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18873 # When building target libraries, except in a Canadian cross, we use
18874 # the same toolchain as the compiler we just built.
18875 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18876 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18877 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18878 if test $host = $build; then
18879 case " $configdirs " in
18881 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18882 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18883 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18893 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18894 # Check whether --enable-maintainer-mode was given.
18895 if test "${enable_maintainer_mode+set}" = set; then :
18896 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18898 USE_MAINTAINER_MODE=no
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18902 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18905 if test "$USE_MAINTAINER_MODE" = yes; then
18906 MAINTAINER_MODE_TRUE=
18907 MAINTAINER_MODE_FALSE='#'
18909 MAINTAINER_MODE_TRUE='#'
18910 MAINTAINER_MODE_FALSE=
18912 MAINT=$MAINTAINER_MODE_TRUE
18914 # ---------------------
18915 # GCC bootstrap support
18916 # ---------------------
18918 # Stage specific cflags for build.
18923 yes) stage1_cflags="-g -Wa,-J" ;;
18924 *) stage1_cflags="-g -J" ;;
18930 # Enable --enable-checking in stage1 of the compiler.
18931 # Check whether --enable-stage1-checking was given.
18932 if test "${enable_stage1_checking+set}" = set; then :
18933 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18935 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18936 # For --disable-checking or implicit --enable-checking=release, avoid
18937 # setting --enable-checking=gc in the default stage1 checking for LTO
18938 # bootstraps. See PR62077.
18939 case $BUILD_CONFIG in
18941 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18943 stage1_checking=--enable-checking=yes,types;;
18945 if test "x
$enable_checking" = x && \
18946 test -d ${srcdir}/gcc && \
18947 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18948 stage1_checking=--enable-checking=yes,types,extra
18951 stage1_checking=--enable-checking=$enable_checking,types
18957 # Enable -Werror in bootstrap stage2 and later.
18958 # Check whether --enable-werror was given.
18959 if test "${enable_werror+set}" = set; then :
18960 enableval=$enable_werror;
18961 case ${enable_werror} in
18962 yes) stage2_werror_flag="--enable-werror-always" ;;
18963 *) stage2_werror_flag="" ;;
18968 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18969 case $BUILD_CONFIG in
18971 stage2_werror_flag="--enable-werror-always" ;;
18973 stage2_werror_flag="--enable-werror-always" ;;
18982 # Specify what files to not compare during bootstrap.
18984 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18985 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
18986 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
18987 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
18989 hppa*64*-*-hpux*) ;;
18990 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18994 ac_config_files="$ac_config_files Makefile
"
18996 cat >confcache <<\_ACEOF
18997 # This file is a shell script that caches the results of configure
18998 # tests run on this system so they can be shared between configure
18999 # scripts and configure runs, see configure's option --config-cache.
19000 # It is not useful on other systems. If it contains results you don't
19001 # want to keep, you may remove or edit it.
19003 # config.status only pays attention to the cache file if you give it
19004 # the --recheck option to rerun configure.
19006 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19007 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19008 # following values.
19012 # The following way of writing the cache mishandles newlines in values,
19013 # but we know of no workaround that is simple, portable, and efficient.
19014 # So, we kill variables containing newlines.
19015 # Ultrix sh set writes to stderr and can't be redirected directly,
19016 # and sets the high bit in the cache file unless we assign to the vars.
19018 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19019 eval ac_val=\$$ac_var
19023 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
19024 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
19027 _ | IFS | as_nl) ;; #(
19028 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19029 *) { eval $ac_var=; unset $ac_var;} ;;
19035 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19036 *${as_nl}ac_space=\ *)
19037 # `set' does not quote correctly, so add quotes: double-quote
19038 # substitution turns \\\\ into \\, and sed turns \\ into \.
19041 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
19044 # `set' quotes correctly as required by POSIX, so do not add quotes.
19045 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
19054 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19056 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19058 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19059 if test -w "$cache_file"; then
19060 if test "x
$cache_file" != "x
/dev
/null
"; then
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
19062 $as_echo "$as_me: updating cache
$cache_file" >&6;}
19063 if test ! -f "$cache_file" || test -h "$cache_file"; then
19064 cat confcache >"$cache_file"
19066 case $cache_file in #(
19068 mv -f confcache "$cache_file"$$ &&
19069 mv -f "$cache_file"$$ "$cache_file" ;; #(
19071 mv -f confcache "$cache_file" ;;
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
19077 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
19082 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
19083 # Let make expand exec_prefix.
19084 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
19086 # Transform confdefs.h into DEFS.
19087 # Protect against shell expansion while executing Makefile rules.
19088 # Protect against Makefile macro expansion.
19090 # If the first sed substitution is executed (which looks for macros that
19091 # take arguments), then branch to the quote section. Otherwise,
19092 # look for a macro that doesn't take arguments.
19102 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19104 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19108 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
19121 DEFS=`sed -n "$ac_script" confdefs.h`
19127 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19128 # 1. Remove the extension, and $U if already installed.
19129 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
19130 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19131 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19132 # will be set to the directory where LIBOBJS objects are built.
19133 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19134 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
19136 LIBOBJS=$ac_libobjs
19138 LTLIBOBJS=$ac_ltlibobjs
19142 : "${CONFIG_STATUS=./config.status}"
19144 ac_clean_files_save=$ac_clean_files
19145 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19147 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19149 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19151 # Generated by $as_me.
19152 # Run this file to recreate the current configuration.
19153 # Compiler output produced by configure, useful for debugging
19154 # configure, is in config.log if it exists.
19157 ac_cs_recheck=false
19160 SHELL=\${CONFIG_SHELL-$SHELL}
19163 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19164 ## -------------------- ##
19165 ## M4sh Initialization. ##
19166 ## -------------------- ##
19168 # Be more Bourne compatible
19169 DUALCASE=1; export DUALCASE # for MKS sh
19170 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19173 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19174 # is contrary to our usage. Disable this feature.
19175 alias -g '${1+"$@"}'='"$@"'
19176 setopt NO_GLOB_SUBST
19178 case `(set -o) 2>/dev/null` in #(
19190 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19191 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19192 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
19193 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19194 # Prefer a ksh shell builtin over an external printf program on Solaris,
19195 # but without wasting forks for bash or zsh.
19196 if test -z "$BASH_VERSION$ZSH_VERSION" \
19197 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
19198 as_echo
='print -r --'
19199 as_echo_n
='print -rn --'
19200 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
19201 as_echo
='printf %s\n'
19202 as_echo_n
='printf %s'
19204 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19205 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
19206 as_echo_n
='/usr/ucb/echo -n'
19208 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
19209 as_echo_n_body
='eval
19213 expr "X$arg" : "X\\(.*\\)$as_nl";
19214 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19216 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19218 export as_echo_n_body
19219 as_echo_n
='sh -c $as_echo_n_body as_echo'
19221 export as_echo_body
19222 as_echo
='sh -c $as_echo_body as_echo'
19225 # The user is always right.
19226 if test "${PATH_SEPARATOR+set}" != set; then
19228 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
19229 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
19236 # We need space, tab and new line, in precisely that order. Quoting is
19237 # there to prevent editors from complaining about space-tab.
19238 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19239 # splitting by setting IFS to empty value.)
19242 # Find who we are. Look in the path if we contain no directory separator.
19245 *[\\/]* ) as_myself
=$0 ;;
19246 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19247 for as_dir
in $PATH
19250 test -z "$as_dir" && as_dir
=.
19251 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19257 # We did not find ourselves, most probably we were run as `sh COMMAND'
19258 # in which case we are not to be found in the path.
19259 if test "x$as_myself" = x
; then
19262 if test ! -f "$as_myself"; then
19263 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19267 # Unset variables that we do not need and which cause bugs (e.g. in
19268 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19269 # suppresses any "Segmentation fault" message there. '((' could
19270 # trigger a bug in pdksh 5.2.14.
19271 for as_var
in BASH_ENV ENV MAIL MAILPATH
19272 do eval test x\
${$as_var+set} = xset \
19273 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19286 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19289 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19290 # ----------------------------------------
19291 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19292 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19293 # script with STATUS, using 1 if that was 0.
19296 as_status
=$1; test $as_status -eq 0 && as_status
=1
19298 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19299 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19301 $as_echo "$as_me: error: $2" >&2
19302 as_fn_exit
$as_status
19306 # as_fn_set_status STATUS
19307 # -----------------------
19308 # Set $? to STATUS, without forking.
19309 as_fn_set_status
()
19312 } # as_fn_set_status
19314 # as_fn_exit STATUS
19315 # -----------------
19316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19320 as_fn_set_status
$1
19326 # Portably unset VAR.
19329 { eval $1=; unset $1;}
19331 as_unset
=as_fn_unset
19332 # as_fn_append VAR VALUE
19333 # ----------------------
19334 # Append the text in VALUE to the end of the definition contained in VAR. Take
19335 # advantage of any shell optimizations that allow amortized linear growth over
19336 # repeated appends, instead of the typical quadratic growth present in naive
19338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19339 eval 'as_fn_append ()
19350 # as_fn_arith ARG...
19351 # ------------------
19352 # Perform arithmetic evaluation on the ARGs, and store the result in the
19353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19354 # must be portable across $(()) and expr.
19355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19356 eval 'as_fn_arith ()
19363 as_val
=`expr "$@" || test $? -eq 1`
19368 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19369 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19375 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19376 as_basename
=basename
19381 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19387 as_me
=`$as_basename -- "$0" ||
19388 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19389 X"$0" : 'X\(//\)$' \| \
19390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19392 sed '/^.*\/\([^/][^/]*\)\/*$/{
19406 # Avoid depending upon Character Ranges.
19407 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19408 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19409 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19410 as_cr_digits
='0123456789'
19411 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19413 ECHO_C
= ECHO_N
= ECHO_T
=
19414 case `echo -n x` in #(((((
19416 case `echo 'xy\c'` in
19417 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19419 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19426 rm -f conf$$ conf$$.exe conf$$.
file
19427 if test -d conf$$.dir
; then
19428 rm -f conf$$.dir
/conf$$.
file
19431 mkdir conf$$.dir
2>/dev
/null
19433 if (echo >conf$$.
file) 2>/dev
/null
; then
19434 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19436 # ... but there are two gotchas:
19437 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19438 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19439 # In both cases, we have to default to `cp -pR'.
19440 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19442 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19450 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19451 rmdir conf$$.dir
2>/dev
/null
19456 # Create "$as_dir" as a directory, including parents if necessary.
19461 -*) as_dir
=.
/$as_dir;;
19463 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19467 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19468 *) as_qdir
=$as_dir;;
19470 as_dirs
="'$as_qdir' $as_dirs"
19471 as_dir
=`$as_dirname -- "$as_dir" ||
19472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19473 X"$as_dir" : 'X\(//\)[^/]' \| \
19474 X"$as_dir" : 'X\(//\)$' \| \
19475 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19476 $as_echo X"$as_dir" |
19477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19481 /^X\(\/\/\)[^/].*/{
19494 test -d "$as_dir" && break
19496 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19497 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19501 if mkdir
-p .
2>/dev
/null
; then
19502 as_mkdir_p
='mkdir -p "$as_dir"'
19504 test -d .
/-p && rmdir .
/-p
19509 # as_fn_executable_p FILE
19510 # -----------------------
19511 # Test if FILE is an executable regular file.
19512 as_fn_executable_p
()
19514 test -f "$1" && test -x "$1"
19515 } # as_fn_executable_p
19516 as_test_x
='test -x'
19517 as_executable_p
=as_fn_executable_p
19519 # Sed expression to map a string onto a valid CPP name.
19520 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19522 # Sed expression to map a string onto a valid variable name.
19523 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19527 ## ----------------------------------- ##
19528 ## Main body of $CONFIG_STATUS script. ##
19529 ## ----------------------------------- ##
19531 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19534 # Save the log message, to keep $0 and so on meaningful, and to
19535 # report actual input values of CONFIG_FILES etc. instead of their
19536 # values after options handling.
19538 This file was extended by $as_me, which was
19539 generated by GNU Autoconf 2.69. Invocation command line was
19541 CONFIG_FILES = $CONFIG_FILES
19542 CONFIG_HEADERS = $CONFIG_HEADERS
19543 CONFIG_LINKS = $CONFIG_LINKS
19544 CONFIG_COMMANDS = $CONFIG_COMMANDS
19547 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19552 case $ac_config_files in *"
19553 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19559 # Files that config.status was made for.
19560 config_files="$ac_config_files"
19564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19566 \`$as_me' instantiates files and other configuration actions
19567 from templates according to the current configuration. Unless the files
19568 and actions are specified as TAGs, all are instantiated by default.
19570 Usage: $0 [OPTION]... [TAG]...
19572 -h, --help print this help, then exit
19573 -V, --version print version number and configuration settings, then exit
19574 --config print configuration, then exit
19575 -q, --quiet, --silent
19576 do not print progress messages
19577 -d, --debug don't remove temporary files
19578 --recheck update $as_me by reconfiguring in the same conditions
19579 --file=FILE[:TEMPLATE]
19580 instantiate the configuration file FILE
19582 Configuration files:
19585 Report bugs to the package provider."
19588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19589 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19592 configured by $0, generated by GNU Autoconf 2.69,
19593 with options \\"\$ac_cs_config\\"
19595 Copyright (C) 2012 Free Software Foundation, Inc.
19596 This config.status script is free software; the Free Software Foundation
19597 gives unlimited permission to copy, distribute and modify it."
19603 test -n "\$AWK" || AWK=awk
19606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19607 # The default lists apply if the user does not specify any file.
19613 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19614 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19618 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19630 # Handling of the options.
19631 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19633 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19634 $as_echo "$ac_cs_version"; exit ;;
19635 --config |
--confi |
--conf |
--con |
--co |
--c )
19636 $as_echo "$ac_cs_config"; exit ;;
19637 --debug |
--debu |
--deb |
--de |
--d |
-d )
19639 --file |
--fil |
--fi |
--f )
19642 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19643 '') as_fn_error $?
"missing file argument" ;;
19645 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19646 ac_need_defaults
=false
;;
19647 --he |
--h |
--help |
--hel |
-h )
19648 $as_echo "$ac_cs_usage"; exit ;;
19649 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19650 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19653 # This is an error.
19654 -*) as_fn_error $?
"unrecognized option: \`$1'
19655 Try \`$0 --help' for more information." ;;
19657 *) as_fn_append ac_config_targets
" $1"
19658 ac_need_defaults
=false
;;
19664 ac_configure_extra_args
=
19666 if $ac_cs_silent; then
19668 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19673 if \$ac_cs_recheck; then
19674 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19676 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19677 CONFIG_SHELL='$SHELL'
19678 export CONFIG_SHELL
19683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19688 ## Running $as_me. ##
19694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19698 extrasub_build="$extrasub_build"
19699 extrasub_host="$extrasub_host"
19700 extrasub_target="$extrasub_target"
19704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19706 # Handling of arguments.
19707 for ac_config_target
in $ac_config_targets
19709 case $ac_config_target in
19710 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19712 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19717 # If the user did not use the arguments to specify the items to instantiate,
19718 # then the envvar interface is used. Set only those that are not.
19719 # We use the long form for the default assignment because of an extremely
19720 # bizarre bug on SunOS 4.1.3.
19721 if $ac_need_defaults; then
19722 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19725 # Have a temporary directory for convenience. Make it in the build tree
19726 # simply because there is no reason against having it here, and in addition,
19727 # creating and moving files from /tmp can sometimes cause problems.
19728 # Hook for its removal unless debugging.
19729 # Note that there is a small window in which the directory will not be cleaned:
19730 # after its creation but before its name has been assigned to `$tmp'.
19734 trap 'exit_status=$?
19735 : "${ac_tmp:=$tmp}"
19736 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19738 trap 'as_fn_exit 1' 1 2 13 15
19740 # Create a (secure) tmp directory for tmp files.
19743 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19747 tmp
=.
/conf$$
-$RANDOM
19748 (umask 077 && mkdir
"$tmp")
19749 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19752 # Set up the scripts for CONFIG_FILES section.
19753 # No need to generate them if there are no CONFIG_FILES.
19754 # This happens for instance with `./config.status config.h'.
19755 if test -n "$CONFIG_FILES"; then
19757 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19758 ac_cs_awk_getline
=:
19759 ac_cs_awk_pipe_init
=
19760 ac_cs_awk_read_file
='
19761 while ((getline aline < (F[key])) > 0)
19764 ac_cs_awk_pipe_fini
=
19766 ac_cs_awk_getline
=false
19767 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19768 ac_cs_awk_read_file
='
19770 print "cat " F[key] " &&"
19771 '$ac_cs_awk_pipe_init
19772 # The final `:' finishes the AND list.
19773 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19775 ac_cr
=`echo X | tr X '\015'`
19776 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19777 # But we know of no other shell where ac_cr would be empty at this
19778 # point, so we can use a bashism as a fallback.
19779 if test "x$ac_cr" = x
; then
19780 eval ac_cr
=\$
\'\\r
\'
19782 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19783 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19786 ac_cs_awk_cr
=$ac_cr
19789 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19792 # Create commands to substitute file output variables.
19794 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19795 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19796 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19799 } >conf$
$files.sh
&&
19800 . .
/conf$
$files.sh ||
19801 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19802 rm -f conf$
$files.sh
19805 echo "cat >conf$$subs.awk <<_ACEOF" &&
19806 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19808 } >conf$$subs.sh ||
19809 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19810 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19812 for ac_last_try in false false false false false :; do
19813 . ./conf$$subs.sh ||
19814 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19816 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19817 if test $ac_delim_n = $ac_delim_num; then
19819 elif $ac_last_try; then
19820 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19822 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19825 rm -f conf$$subs.sh
19827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19828 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19832 s/^/S["/; s
/!.
*/"]=/
19842 s/\(.\{148\}\)..*/\1/
19844 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19849 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19856 s/\(.\{148\}\)..*/\1/
19858 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19862 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19867 ' <conf$$subs.awk | sed '
19872 ' >>$CONFIG_STATUS || ac_write_fail=1
19873 rm -f conf$$subs.awk
19874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19876 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19877 for (key in S) S_is_set[key] = 1
19879 \$ac_cs_awk_pipe_init
19883 nfields = split(line, field, "@
")
19885 len = length(field[1])
19886 for (i = 2; i < nfields; i++) {
19888 keylen = length(key)
19889 if (S_is_set[key]) {
19891 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19892 len += length(value) + length(field[++i])
19897 if (nfields == 3 && !substed) {
19899 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19900 \$ac_cs_awk_read_file
19906 \$ac_cs_awk_pipe_fini
19909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19910 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19911 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19914 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19915 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19918 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19919 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19920 # trailing colons and then remove the whole line if VPATH becomes empty
19921 # (actually we leave an empty line to preserve line numbers).
19922 if test "x
$srcdir" = x.; then
19923 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19942 fi # test -n "$CONFIG_FILES"
19945 eval set X " :F
$CONFIG_FILES "
19950 :[FHLC]) ac_mode=$ac_tag; continue;;
19952 case $ac_mode$ac_tag in
19954 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19955 :[FH]-) ac_tag=-:-;;
19956 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19973 -) ac_f="$ac_tmp/stdin";;
19974 *) # Look for the file first in the build tree, then in the source tree
19975 # (if the path is not absolute). The absolute path cannot be DOS-style,
19976 # because $ac_f cannot contain `:'.
19980 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19982 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19984 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19985 as_fn_append ac_file_inputs " '$ac_f'"
19988 # Let's still pretend it is `configure' which instantiates (i.e., don't
19989 # use $as_me), people would be surprised to read:
19990 # /* config.h. Generated by config.status. */
19991 configure_input='Generated from '`
19992 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19994 if test x"$ac_file" != x-; then
19995 configure_input="$ac_file.
$configure_input"
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19997 $as_echo "$as_me: creating
$ac_file" >&6;}
19999 # Neutralize special characters interpreted by sed in replacement strings.
20000 case $configure_input in #(
20001 *\&* | *\|* | *\\* )
20002 ac_sed_conf_input=`$as_echo "$configure_input" |
20003 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20004 *) ac_sed_conf_input=$configure_input;;
20008 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
20009 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
20014 ac_dir=`$as_dirname -- "$ac_file" ||
20015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20016 X"$ac_file" : 'X\(//\)[^/]' \| \
20017 X"$ac_file" : 'X\(//\)$' \| \
20018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20019 $as_echo X"$ac_file" |
20020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20024 /^X\(\/\/\)[^/].*/{
20037 as_dir="$ac_dir"; as_fn_mkdir_p
20041 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20043 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20044 # A "..
" for each directory in $ac_dir_suffix.
20045 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20046 case $ac_top_builddir_sub in
20047 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20048 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20051 ac_abs_top_builddir=$ac_pwd
20052 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20053 # for backward compatibility:
20054 ac_top_builddir=$ac_top_build_prefix
20057 .) # We are building in place.
20059 ac_top_srcdir=$ac_top_builddir_sub
20060 ac_abs_top_srcdir=$ac_pwd ;;
20061 [\\/]* | ?:[\\/]* ) # Absolute name.
20062 ac_srcdir=$srcdir$ac_dir_suffix;
20063 ac_top_srcdir=$srcdir
20064 ac_abs_top_srcdir=$srcdir ;;
20065 *) # Relative name.
20066 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20067 ac_top_srcdir=$ac_top_build_prefix$srcdir
20068 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20070 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20080 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20081 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20086 # If the template does not know about datarootdir, expand it.
20087 # FIXME: This hack should be removed a few years after 2.60.
20088 ac_datarootdir_hack=; ac_datarootdir_seen=
20099 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
20100 *datarootdir*) ac_datarootdir_seen=yes;;
20101 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
20103 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
20105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20106 ac_datarootdir_hack='
20107 s&@datadir@&$datadir&g
20108 s&@docdir@&$docdir&g
20109 s&@infodir@&$infodir&g
20110 s&@localedir@&$localedir&g
20111 s&@mandir@&$mandir&g
20112 s&\\\${datarootdir}&$datarootdir&g' ;;
20116 # Neutralize VPATH when `$srcdir' = `.'.
20117 # Shell code in configure.ac might set extrasub.
20118 # FIXME: do we really want to maintain this feature?
20119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20120 ac_sed_extra="$ac_vpsub
20123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20125 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20126 s|@configure_input@|
$ac_sed_conf_input|
;t t
20127 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20128 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20129 s
&@srcdir@
&$ac_srcdir&;t t
20130 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20131 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20132 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20133 s
&@builddir@
&$ac_builddir&;t t
20134 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20135 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20136 s
&@INSTALL@
&$ac_INSTALL&;t t
20137 $ac_datarootdir_hack
20139 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20140 if $ac_cs_awk_getline; then
20141 $AWK -f "$ac_tmp/subs.
awk"
20143 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20145 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20147 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20148 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20149 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20150 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20152 which seems to be undefined. Please make sure it is defined" >&5
20153 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20154 which seems to be undefined. Please make sure it is defined" >&2;}
20156 rm -f "$ac_tmp/stdin"
20158 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20159 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20169 case $ac_file$ac_mode in
20170 "Makefile":F) sed "$extrasub_build" Makefile |
20171 sed "$extrasub_host" |
20172 sed "$extrasub_target" > mf$$
20173 mv -f mf$$ Makefile ;;
20181 ac_clean_files=$ac_clean_files_save
20183 test $ac_write_fail = 0 ||
20184 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20187 # configure is writing to config.log, and then calls config.status.
20188 # config.status does its own redirection, appending to config.log.
20189 # Unfortunately, on DOS this fails, as config.log is still kept open
20190 # by configure, so config.status won't be able to
write to it
; its
20191 # output is simply discarded. So we exec the FD to /dev/null,
20192 # effectively closing config.log, so it can be properly (re)opened and
20193 # appended to by config.status. When coming back to configure, we
20194 # need to make the FD available again.
20195 if test "$no_create" != yes; then
20197 ac_config_status_args
=
20198 test "$silent" = yes &&
20199 ac_config_status_args
="$ac_config_status_args --quiet"
20201 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20203 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20204 # would make configure fail if this is the last instruction.
20205 $ac_cs_success || as_fn_exit
1
20207 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20209 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}