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
694 enable_libdiagnostics
699 extra_linker_plugin_flags
700 extra_linker_plugin_configure_flags
707 extra_isl_gmp_configure_flags
708 extra_mpc_mpfr_configure_flags
709 extra_mpc_gmp_configure_flags
710 extra_mpfr_configure_flags
759 TOPLEVEL_CONFIGURE_ARGUMENTS
787 program_transform_name
798 ac_subst_files
='serialization_dependencies
804 enable_option_checking
808 enable_as_accelerator_for
809 enable_offload_targets
810 enable_offload_defaulted
814 enable_compressed_debug_sections
815 enable_default_compressed_debug_sections_algorithm
818 enable_libquadmath_support
835 with_static_standard_libraries
842 enable_isl_version_check
844 enable_linker_plugin_configure_flags
845 enable_linker_plugin_flags
848 enable_libdiagnostics
849 enable_stage1_languages
852 with_target_bdw_gc_include
853 with_target_bdw_gc_lib
854 with_gcc_major_version_only
856 with_debug_prefix_map
859 enable_serial_configure
860 with_build_time_tools
861 enable_maintainer_mode
862 enable_stage1_checking
865 ac_precious_vars
='build_alias
918 # Initialize some variables set by options.
920 ac_init_version
=false
921 ac_unrecognized_opts
=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
932 program_transform_name
=s
,x
,x
,
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir
='${exec_prefix}/bin'
947 sbindir
='${exec_prefix}/sbin'
948 libexecdir
='${exec_prefix}/libexec'
949 datarootdir
='${prefix}/share'
950 datadir
='${datarootdir}'
951 sysconfdir
='${prefix}/etc'
952 sharedstatedir
='${prefix}/com'
953 localstatedir
='${prefix}/var'
954 includedir
='${prefix}/include'
955 oldincludedir
='/usr/include'
956 docdir
='${datarootdir}/doc/${PACKAGE}'
957 infodir
='${datarootdir}/info'
962 libdir
='${exec_prefix}/lib'
963 localedir
='${datarootdir}/locale'
964 mandir
='${datarootdir}/man'
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\
$ac_option
978 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 # Accept the important Cygnus configure options, so we can diagnose typos.
985 case $ac_dashdash$ac_option in
989 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
991 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
994 -build |
--build |
--buil |
--bui |
--bu)
995 ac_prev
=build_alias
;;
996 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
997 build_alias
=$ac_optarg ;;
999 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1000 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1001 ac_prev
=cache_file
;;
1002 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1003 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1004 cache_file
=$ac_optarg ;;
1006 --config-cache |
-C)
1007 cache_file
=config.cache
;;
1009 -datadir |
--datadir |
--datadi |
--datad)
1011 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1012 datadir
=$ac_optarg ;;
1014 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1015 |
--dataroo |
--dataro |
--datar)
1016 ac_prev
=datarootdir
;;
1017 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1018 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1019 datarootdir
=$ac_optarg ;;
1021 -disable-* |
--disable-*)
1022 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1025 as_fn_error $?
"invalid feature name: $ac_useropt"
1026 ac_useropt_orig
=$ac_useropt
1027 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_
$ac_useropt"
1032 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033 ac_unrecognized_sep
=', ';;
1035 eval enable_
$ac_useropt=no
;;
1037 -docdir |
--docdir |
--docdi |
--doc |
--do)
1039 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1040 docdir
=$ac_optarg ;;
1042 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1044 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1045 dvidir
=$ac_optarg ;;
1047 -enable-* |
--enable-*)
1048 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1051 as_fn_error $?
"invalid feature name: $ac_useropt"
1052 ac_useropt_orig
=$ac_useropt
1053 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_
$ac_useropt"
1058 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059 ac_unrecognized_sep
=', ';;
1061 eval enable_
$ac_useropt=\
$ac_optarg ;;
1063 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1064 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1065 |
--exec |
--exe |
--ex)
1066 ac_prev
=exec_prefix
;;
1067 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1068 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1069 |
--exec=* |
--exe=* |
--ex=*)
1070 exec_prefix
=$ac_optarg ;;
1072 -gas |
--gas |
--ga |
--g)
1073 # Obsolete; use --with-gas.
1076 -help |
--help |
--hel |
--he |
-h)
1077 ac_init_help
=long
;;
1078 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1079 ac_init_help
=recursive
;;
1080 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1081 ac_init_help
=short
;;
1083 -host |
--host |
--hos |
--ho)
1084 ac_prev
=host_alias
;;
1085 -host=* |
--host=* |
--hos=* |
--ho=*)
1086 host_alias
=$ac_optarg ;;
1088 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1090 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1092 htmldir
=$ac_optarg ;;
1094 -includedir |
--includedir |
--includedi |
--included |
--include \
1095 |
--includ |
--inclu |
--incl |
--inc)
1096 ac_prev
=includedir
;;
1097 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1098 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1099 includedir
=$ac_optarg ;;
1101 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1103 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1104 infodir
=$ac_optarg ;;
1106 -libdir |
--libdir |
--libdi |
--libd)
1108 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1109 libdir
=$ac_optarg ;;
1111 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1112 |
--libexe |
--libex |
--libe)
1113 ac_prev
=libexecdir
;;
1114 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1115 |
--libexe=* |
--libex=* |
--libe=*)
1116 libexecdir
=$ac_optarg ;;
1118 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1119 ac_prev
=localedir
;;
1120 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1121 localedir
=$ac_optarg ;;
1123 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1124 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1125 ac_prev
=localstatedir
;;
1126 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1127 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1128 localstatedir
=$ac_optarg ;;
1130 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1132 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1133 mandir
=$ac_optarg ;;
1135 -nfp |
--nfp |
--nf)
1136 # Obsolete; use --without-fp.
1139 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1140 |
--no-cr |
--no-c |
-n)
1143 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1144 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1147 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1148 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1149 |
--oldin |
--oldi |
--old |
--ol |
--o)
1150 ac_prev
=oldincludedir
;;
1151 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1152 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1153 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1154 oldincludedir
=$ac_optarg ;;
1156 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1158 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1159 prefix
=$ac_optarg ;;
1161 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1162 |
--program-pre |
--program-pr |
--program-p)
1163 ac_prev
=program_prefix
;;
1164 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1165 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1166 program_prefix
=$ac_optarg ;;
1168 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1169 |
--program-suf |
--program-su |
--program-s)
1170 ac_prev
=program_suffix
;;
1171 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1172 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1173 program_suffix
=$ac_optarg ;;
1175 -program-transform-name |
--program-transform-name \
1176 |
--program-transform-nam |
--program-transform-na \
1177 |
--program-transform-n |
--program-transform- \
1178 |
--program-transform |
--program-transfor \
1179 |
--program-transfo |
--program-transf \
1180 |
--program-trans |
--program-tran \
1181 |
--progr-tra |
--program-tr |
--program-t)
1182 ac_prev
=program_transform_name
;;
1183 -program-transform-name=* |
--program-transform-name=* \
1184 |
--program-transform-nam=* |
--program-transform-na=* \
1185 |
--program-transform-n=* |
--program-transform-=* \
1186 |
--program-transform=* |
--program-transfor=* \
1187 |
--program-transfo=* |
--program-transf=* \
1188 |
--program-trans=* |
--program-tran=* \
1189 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1190 program_transform_name
=$ac_optarg ;;
1192 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1194 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1195 pdfdir
=$ac_optarg ;;
1197 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1199 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1202 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1203 |
-silent |
--silent |
--silen |
--sile |
--sil)
1206 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1208 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1210 sbindir
=$ac_optarg ;;
1212 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1213 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1214 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1216 ac_prev
=sharedstatedir
;;
1217 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1218 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1219 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1221 sharedstatedir
=$ac_optarg ;;
1223 -site |
--site |
--sit)
1225 -site=* |
--site=* |
--sit=*)
1228 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1230 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1231 srcdir
=$ac_optarg ;;
1233 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1234 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1235 ac_prev
=sysconfdir
;;
1236 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1237 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1238 sysconfdir
=$ac_optarg ;;
1240 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1241 ac_prev
=target_alias
;;
1242 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1243 target_alias
=$ac_optarg ;;
1245 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1248 -version |
--version |
--versio |
--versi |
--vers |
-V)
1249 ac_init_version
=: ;;
1252 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1255 as_fn_error $?
"invalid package name: $ac_useropt"
1256 ac_useropt_orig
=$ac_useropt
1257 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep
=', ';;
1265 eval with_
$ac_useropt=\
$ac_optarg ;;
1267 -without-* |
--without-*)
1268 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1271 as_fn_error $?
"invalid package name: $ac_useropt"
1272 ac_useropt_orig
=$ac_useropt
1273 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1278 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279 ac_unrecognized_sep
=', ';;
1281 eval with_
$ac_useropt=no
;;
1284 # Obsolete; use --with-x.
1287 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1288 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1289 ac_prev
=x_includes
;;
1290 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1291 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1292 x_includes
=$ac_optarg ;;
1294 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1295 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1296 ac_prev
=x_libraries
;;
1297 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1298 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1299 x_libraries
=$ac_optarg ;;
1301 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1302 Try \`$0 --help' for more information"
1306 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 case $ac_envvar in #(
1309 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1310 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1312 eval $ac_envvar=\
$ac_optarg
1313 export $ac_envvar ;;
1316 # FIXME: should be removed in autoconf 3.0.
1317 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1319 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1326 if test -n "$ac_prev"; then
1327 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1328 as_fn_error $?
"missing argument to $ac_option"
1331 if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1334 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1335 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 # Check all directory arguments for consistency.
1340 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1345 eval ac_val
=\$
$ac_var
1346 # Remove trailing slashes.
1349 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350 eval $ac_var=\
$ac_val;;
1352 # Be sure to have absolute directory names.
1354 [\\/$
]* | ?
:[\\/]* ) continue;;
1355 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1357 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1365 target
=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x
; then
1369 if test "x$build_alias" = x
; then
1370 cross_compiling
=maybe
1371 elif test "x$build_alias" != "x$host_alias"; then
1377 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1379 test "$silent" = yes && exec 6>/dev
/null
1382 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di
=`ls -di .` &&
1384 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1385 as_fn_error $?
"working directory cannot be determined"
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 as_fn_error $?
"pwd does not report name of working directory"
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted
=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir
=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1422 ac_srcdir_defaulted
=no
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1426 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1428 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1440 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 as_fn_error $?
"path to source, $srcdir, contains spaces"
1447 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1449 for ac_var
in $ac_precious_vars; do
1450 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1452 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1457 # Report the --help message.
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1463 \`configure' configures this package to adapt to many kinds of systems.
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1470 Defaults for the options are specified in brackets.
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking ...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1494 For better control, use the options below.
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1521 --program-prefix=PREFIX prepend PREFIX to installed program names
1522 --program-suffix=SUFFIX append SUFFIX to installed program names
1523 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1526 --build=BUILD configure
for building on BUILD
[guessed
]
1527 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1528 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1532 if test -n "$ac_init_help"; then
1537 --disable-option-checking ignore unrecognized
--enable/--with options
1538 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1539 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1540 --enable-as-accelerator-for=ARG
1541 build as offload target compiler. Specify offload
1543 --enable-offload-targets=LIST
1544 enable offloading to devices from comma-separated
1545 LIST of TARGET
[=DIR
]. Use optional path to
find
1546 offload target compiler during the build
1547 --enable-offload-defaulted
1548 If enabled
, configured but not installed offload compilers and
1549 libgomp plugins are silently ignored. Useful
for distribution
1550 compilers where those are
in separate optional packages.
1552 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1553 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1554 --disable-gprofng do not build gprofng
1555 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1556 Enable compressed debug sections
for gas
, gold or ld
1558 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1559 Default compression algorithm
for
1560 --enable-compressed-debug-sections.
1561 --enable-year2038 enable support
for timestamps past the year
2038
1562 --disable-libquadmath do not build libquadmath directory
1563 --disable-libquadmath-support
1564 disable libquadmath support
for Fortran
1565 --enable-libada build libada directory
1566 --enable-libgm2 build libgm2 directory
1567 --enable-libssp build libssp directory
1568 --disable-libstdcxx do not build libstdc
++-v3 directory
1569 --enable-bootstrap enable bootstrapping
[yes if native build
]
1570 --enable-pgo-build[=lto
]
1571 enable the PGO build
1572 --disable-isl-version-check
1573 disable check
for isl version
1574 --enable-lto enable link
time optimization support
1575 --enable-linker-plugin-configure-flags=FLAGS
1576 additional flags
for configuring linker plugins
1578 --enable-linker-plugin-flags=FLAGS
1579 additional flags
for configuring and building linker
1581 --enable-host-pie build position independent
host executables
1582 --enable-host-shared build
host code as shared libraries
1583 --enable-libdiagnostics build libdiagnostics shared library
1584 --enable-stage1-languages[=all
]
1585 choose additional languages to build during stage1.
1586 Mostly useful
for compiler development
1587 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1589 --enable-vtable-verify Enable vtable verification feature
1590 --enable-serial-[{host,target,build}-]configure
1591 force sequential configuration of sub-packages for
1592 the host, target or build machine, or all
1594 --enable-maintainer-mode
1595 enable make rules and dependencies not useful (and
1596 sometimes confusing) to the casual installer
1597 --enable-stage1-checking[=all]
1598 choose additional checking for stage1 of the
1600 --enable-werror enable -Werror in bootstrap stage2 and later
1603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1605 --with-build-libsubdir=DIR Directory where to find libraries for build system
1606 --with-system-zlib use installed libz
1607 --with-zstd Support zstd compressed debug sections
1609 --with-mpc=PATH specify prefix directory for installed MPC package.
1610 Equivalent to --with-mpc-include=PATH/include plus
1611 --with-mpc-lib=PATH/lib
1612 --with-mpc-include=PATH specify directory for installed MPC include files
1613 --with-mpc-lib=PATH specify directory for the installed MPC library
1614 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1615 Equivalent to --with-mpfr-include=PATH/include plus
1616 --with-mpfr-lib=PATH/lib
1617 --with-mpfr-include=PATH
1618 specify directory for installed MPFR include files
1619 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1620 --with-gmp=PATH specify prefix directory for the installed GMP
1621 package. Equivalent to
1622 --with-gmp-include=PATH/include plus
1623 --with-gmp-lib=PATH/lib
1624 --with-gmp-include=PATH specify directory for installed GMP include files
1625 --with-gmp-lib=PATH specify directory for the installed GMP library
1626 --with-stage1-libs=LIBS libraries for stage1
1627 --with-static-standard-libraries
1628 use -static-libstdc++ and -static-libgcc
1630 --with-stage1-ldflags=FLAGS
1631 linker flags for stage1
1632 --with-boot-libs=LIBS libraries for stage2 and later
1633 --with-boot-ldflags=FLAGS
1634 linker flags for stage2 and later
1635 --with-isl=PATH Specify prefix directory for the installed isl
1636 package. Equivalent to
1637 --with-isl-include=PATH/include plus
1638 --with-isl-lib=PATH/lib
1639 --with-isl-include=PATH Specify directory for installed isl include files
1640 --with-isl-lib=PATH Specify the directory for the installed isl library
1641 --with-target-bdw-gc=PATHLIST
1642 specify prefix directory for installed bdw-gc
1643 package. Equivalent to
1644 --with-target-bdw-gc-include=PATH/include plus
1645 --with-target-bdw-gc-lib=PATH/lib
1646 --with-target-bdw-gc-include=PATHLIST
1647 specify directories for installed bdw-gc include
1649 --with-target-bdw-gc-lib=PATHLIST
1650 specify directories for installed bdw-gc library
1651 --with-gcc-major-version-only
1652 use only GCC major number in filesystem paths
1653 --with-build-sysroot=SYSROOT
1654 use sysroot as the system root during the build
1655 --with-debug-prefix-map='A
=B C
=D ...
'
1656 map A to B, C to D ... in debug information
1657 --with-build-config='NAME NAME2...
'
1658 use config/NAME.mk build configuration
1659 --with-build-time-tools=PATH
1660 use given path to find target tools during the build
1662 Some influential environment variables:
1663 CC C compiler command
1664 CFLAGS C compiler flags
1665 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1666 nonstandard directory <lib dir>
1667 LIBS libraries to pass to the linker, e.g. -l<library>
1668 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1669 you have headers in a nonstandard directory <include dir>
1670 CXX C++ compiler command
1671 CXXFLAGS C++ compiler flags
1673 additional configure arguments for build directories
1675 additional configure arguments for host directories
1677 additional configure arguments for target directories
1680 DLLTOOL DLLTOOL for the host
1681 DSYMUTIL DSYMUTIL for the host
1683 LIPO LIPO for the host
1685 RANLIB RANLIB for the host
1686 STRIP STRIP for the host
1687 WINDRES WINDRES for the host
1688 WINDMC WINDMC for the host
1689 OBJCOPY OBJCOPY for the host
1690 OBJDUMP OBJDUMP for the host
1691 OTOOL OTOOL for the host
1692 READELF READELF for the host
1700 GFORTRAN for the target
1712 DLLTOOL for the target
1714 DSYMUTIL for the target
1722 OBJCOPY for the target
1724 OBJDUMP for the target
1726 OTOOL for the target
1728 RANLIB for the target
1730 READELF for the target
1732 STRIP for the target
1734 WINDRES for the target
1736 WINDMC for the target
1738 Use these variables to override the choices made by `configure' or to
help
1739 it to
find libraries and programs with nonstandard names
/locations.
1741 Report bugs to the package provider.
1746 if test "$ac_init_help" = "recursive"; then
1747 # If there are subdirs, report their specific --help.
1748 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1749 test -d "$ac_dir" ||
1750 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1755 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1757 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1758 # A ".." for each directory in $ac_dir_suffix.
1759 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1760 case $ac_top_builddir_sub in
1761 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1762 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1765 ac_abs_top_builddir
=$ac_pwd
1766 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1767 # for backward compatibility:
1768 ac_top_builddir
=$ac_top_build_prefix
1771 .
) # We are building in place.
1773 ac_top_srcdir
=$ac_top_builddir_sub
1774 ac_abs_top_srcdir
=$ac_pwd ;;
1775 [\\/]* | ?
:[\\/]* ) # Absolute name.
1776 ac_srcdir
=$srcdir$ac_dir_suffix;
1777 ac_top_srcdir
=$srcdir
1778 ac_abs_top_srcdir
=$srcdir ;;
1780 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1781 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1782 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1784 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1786 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1787 # Check for guested configure.
1788 if test -f "$ac_srcdir/configure.gnu"; then
1790 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1791 elif test -f "$ac_srcdir/configure"; then
1793 $SHELL "$ac_srcdir/configure" --help=recursive
1795 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1797 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1801 test -n "$ac_init_help" && exit $ac_status
1802 if $ac_init_version; then
1805 generated by GNU Autoconf
2.69
1807 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1808 This configure
script is free software
; the Free Software Foundation
1809 gives unlimited permission to copy
, distribute and modify it.
1814 ## ------------------------ ##
1815 ## Autoconf initialization. ##
1816 ## ------------------------ ##
1818 # ac_fn_c_try_compile LINENO
1819 # --------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_c_try_compile
()
1823 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1824 rm -f conftest.
$ac_objext
1825 if { { ac_try
="$ac_compile"
1827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_compile") 2>conftest.err
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest.$ac_objext; then :
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1854 } # ac_fn_c_try_compile
1856 # ac_fn_cxx_try_compile LINENO
1857 # ----------------------------
1858 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_cxx_try_compile ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 rm -f conftest.$ac_objext
1863 if { { ac_try="$ac_compile"
1865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1866 *) ac_try_echo
=$ac_try;;
1868 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_compile") 2>conftest.err
1872 if test -s conftest.err
; then
1873 grep -v '^ *+' conftest.err
>conftest.er1
1874 cat conftest.er1
>&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && {
1879 test -z "$ac_cxx_werror_flag" ||
1880 test ! -s conftest.err
1881 } && test -s conftest.
$ac_objext; then :
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.
$ac_ext >&5
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status
$ac_retval
1892 } # ac_fn_cxx_try_compile
1894 # ac_fn_cxx_try_link LINENO
1895 # -------------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_cxx_try_link
()
1899 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1900 rm -f conftest.
$ac_objext conftest
$ac_exeext
1901 if { { ac_try
="$ac_link"
1903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_cxx_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 test -x conftest$ac_exeext
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_cxx_try_link
1940 # ac_fn_c_try_link LINENO
1941 # -----------------------
1942 # Try to link conftest.$ac_ext, and return whether this succeeded.
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 rm -f conftest.$ac_objext conftest$ac_exeext
1947 if { { ac_try="$ac_link"
1949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1950 *) ac_try_echo
=$ac_try;;
1952 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_link") 2>conftest.err
1956 if test -s conftest.err
; then
1957 grep -v '^ *+' conftest.err
>conftest.er1
1958 cat conftest.er1
>&5
1959 mv -f conftest.er1 conftest.err
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } && {
1963 test -z "$ac_c_werror_flag" ||
1964 test ! -s conftest.err
1965 } && test -s conftest
$ac_exeext && {
1966 test "$cross_compiling" = yes ||
1967 test -x conftest
$ac_exeext
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.
$ac_ext >&5
1976 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1977 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1978 # interfere with the next link command; also delete a directory that is
1979 # left behind by Apple's compiler. We do this before executing the actions.
1980 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status
$ac_retval
1984 } # ac_fn_c_try_link
1985 cat >config.log
<<_ACEOF
1986 This file contains any messages produced by compilers while
1987 running configure, to aid debugging if configure makes a mistake.
1989 It was created by $as_me, which was
1990 generated by GNU Autoconf 2.69. Invocation command line was
2002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2003 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2004 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2005 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2006 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2009 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2011 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2012 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2014 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2015 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2016 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2017 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir
=.
2026 $as_echo "PATH: $as_dir"
2042 # Keep a trace of the command line.
2043 # Strip out --no-create and --no-recursion so they do not pile up.
2044 # Strip out --silent because we don't want to record it for future runs.
2045 # Also quote any args containing shell meta-characters.
2046 # Make two passes to allow for proper duplicate-argument suppression.
2050 ac_must_keep_next
=false
2056 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2057 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2058 |
-silent |
--silent |
--silen |
--sile |
--sil)
2061 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2064 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2066 as_fn_append ac_configure_args1
" '$ac_arg'"
2067 if test $ac_must_keep_next = true
; then
2068 ac_must_keep_next
=false
# Got value, back to normal.
2071 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2072 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2073 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2074 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2075 case "$ac_configure_args0 " in
2076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2079 -* ) ac_must_keep_next
=true
;;
2082 as_fn_append ac_configure_args
" '$ac_arg'"
2087 { ac_configure_args0
=; unset ac_configure_args0
;}
2088 { ac_configure_args1
=; unset ac_configure_args1
;}
2090 # When interrupted or exit'd, cleanup temporary files, and complete
2091 # config.log. We remove comments because anyway the quotes in there
2092 # would cause problems or look ugly.
2093 # WARNING: Use '\'' to represent an apostrophe within the trap.
2094 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2095 trap 'exit_status=$?
2096 # Save into config.log some information that might help in debugging.
2100 $as_echo "## ---------------- ##
2101 ## Cache variables. ##
2102 ## ---------------- ##"
2104 # The following way of writing the cache mishandles newlines in values,
2106 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2107 eval ac_val=\$$ac_var
2111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2112 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2115 _ | IFS | as_nl) ;; #(
2116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2117 *) { eval $ac_var=; unset $ac_var;} ;;
2122 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2123 *${as_nl}ac_space=\ *)
2125 "s/'\''/'\''\\\\'\'''\''/g;
2126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2136 $as_echo "## ----------------- ##
2137 ## Output variables. ##
2138 ## ----------------- ##"
2140 for ac_var in $ac_subst_vars
2142 eval ac_val=\$$ac_var
2144 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 $as_echo "$ac_var='\''$ac_val'\''"
2150 if test -n "$ac_subst_files"; then
2151 $as_echo "## ------------------- ##
2152 ## File substitutions. ##
2153 ## ------------------- ##"
2155 for ac_var
in $ac_subst_files
2157 eval ac_val
=\$
$ac_var
2159 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161 $as_echo "$ac_var='\''$ac_val'\''"
2166 if test -s confdefs.h; then
2167 $as_echo "## ----------- ##
2174 test "$ac_signal" != 0 &&
2175 $as_echo "$as_me: caught signal $ac_signal"
2176 $as_echo "$as_me: exit $exit_status"
2178 rm -f core *.core core.conftest.* &&
2179 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2182 for ac_signal
in 1 2 13 15; do
2183 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2188 rm -f -r conftest
* confdefs.h
2190 $as_echo "/* confdefs.h */" > confdefs.h
2192 # Predefined preprocessor variables.
2194 cat >>confdefs.h
<<_ACEOF
2195 #define PACKAGE_NAME "$PACKAGE_NAME"
2198 cat >>confdefs.h
<<_ACEOF
2199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2202 cat >>confdefs.h
<<_ACEOF
2203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2206 cat >>confdefs.h
<<_ACEOF
2207 #define PACKAGE_STRING "$PACKAGE_STRING"
2210 cat >>confdefs.h
<<_ACEOF
2211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2214 cat >>confdefs.h
<<_ACEOF
2215 #define PACKAGE_URL "$PACKAGE_URL"
2219 # Let the site file select an alternate cache file if it wants to.
2220 # Prefer an explicitly selected file to automatically selected ones.
2223 if test -n "$CONFIG_SITE"; then
2224 # We do not want a PATH search for config.site.
2225 case $CONFIG_SITE in #((
2226 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2227 */*) ac_site_file1
=$CONFIG_SITE;;
2228 *) ac_site_file1
=.
/$CONFIG_SITE;;
2230 elif test "x$prefix" != xNONE
; then
2231 ac_site_file1
=$prefix/share
/config.site
2232 ac_site_file2
=$prefix/etc
/config.site
2234 ac_site_file1
=$ac_default_prefix/share
/config.site
2235 ac_site_file2
=$ac_default_prefix/etc
/config.site
2237 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2239 test "x$ac_site_file" = xNONE
&& continue
2240 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2242 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2243 sed 's/^/| /' "$ac_site_file" >&5
2245 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2247 as_fn_error $?
"failed to load site script $ac_site_file
2248 See \`config.log' for more details" "$LINENO" 5; }
2252 if test -r "$cache_file"; then
2253 # Some versions of bash will fail to source /dev/null (special files
2254 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2255 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2257 $as_echo "$as_me: loading cache $cache_file" >&6;}
2259 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2260 *) .
"./$cache_file";;
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2265 $as_echo "$as_me: creating cache $cache_file" >&6;}
2269 # Check that the precious variables saved in the cache have kept the same
2271 ac_cache_corrupted
=false
2272 for ac_var
in $ac_precious_vars; do
2273 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2274 eval ac_new_set
=\
$ac_env_${ac_var}_set
2275 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2276 eval ac_new_val
=\
$ac_env_${ac_var}_value
2277 case $ac_old_set,$ac_new_set in
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2280 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2281 ac_cache_corrupted
=: ;;
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2284 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2285 ac_cache_corrupted
=: ;;
2288 if test "x$ac_old_val" != "x$ac_new_val"; then
2289 # differences in whitespace do not lead to failure.
2290 ac_old_val_w
=`echo x $ac_old_val`
2291 ac_new_val_w
=`echo x $ac_new_val`
2292 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2294 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2295 ac_cache_corrupted
=:
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2298 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2299 eval $ac_var=\
$ac_old_val
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2302 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2304 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2307 # Pass precious variables to config.status.
2308 if test "$ac_new_set" = set; then
2310 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2311 *) ac_arg
=$ac_var=$ac_new_val ;;
2313 case " $ac_configure_args " in
2314 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2315 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2319 if $ac_cache_corrupted; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2323 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2324 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2326 ## -------------------- ##
2327 ## Main body of script. ##
2328 ## -------------------- ##
2331 ac_cpp
='$CPP $CPPFLAGS'
2332 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2345 # if PWD already has a value, it is probably wrong.
2346 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2348 # Export original configure arguments for use by sub-configures.
2349 # Quote arguments with shell meta charatcers.
2350 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2351 set -- "$progname" "$@"
2355 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2356 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2357 # if the argument is of the form -foo=baz, quote the baz part only
2358 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2361 # Add the quoted argument to the list.
2362 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2364 if test "$silent" = yes; then
2365 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2367 # Remove the initial space we just introduced and, as these will be
2368 # expanded by make, quote '$'.
2369 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2372 # Find the build, host, and target systems.
2374 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2375 if test -f "$ac_dir/install-sh"; then
2377 ac_install_sh
="$ac_aux_dir/install-sh -c"
2379 elif test -f "$ac_dir/install.sh"; then
2381 ac_install_sh
="$ac_aux_dir/install.sh -c"
2383 elif test -f "$ac_dir/shtool"; then
2385 ac_install_sh
="$ac_aux_dir/shtool install -c"
2389 if test -z "$ac_aux_dir"; then
2390 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2393 # These three variables are undocumented and unsupported,
2394 # and are intended to be withdrawn in a future Autoconf release.
2395 # They can cause serious problems if a builder's source tree is in a directory
2396 # whose full name contains unusual characters.
2397 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2398 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2399 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2402 # Make sure we can run config.sub.
2403 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2404 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2407 $as_echo_n "checking build system type... " >&6; }
2408 if ${ac_cv_build+:} false
; then :
2409 $as_echo_n "(cached) " >&6
2411 ac_build_alias
=$build_alias
2412 test "x$ac_build_alias" = x
&&
2413 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2414 test "x$ac_build_alias" = x
&&
2415 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2416 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2417 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2421 $as_echo "$ac_cv_build" >&6; }
2422 case $ac_cv_build in
2424 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2427 ac_save_IFS
=$IFS; IFS
='-'
2433 # Remember, the first character of IFS is used to create $*,
2434 # except with old shells:
2437 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2440 case ${build_alias} in
2441 "") build_noncanonical
=${build} ;;
2442 *) build_noncanonical
=${build_alias} ;;
2447 case ${host_alias} in
2448 "") host_noncanonical
=${build_noncanonical} ;;
2449 *) host_noncanonical
=${host_alias} ;;
2454 case ${target_alias} in
2455 "") target_noncanonical
=${host_noncanonical} ;;
2456 *) target_noncanonical
=${target_alias} ;;
2462 test "$host_noncanonical" = "$target_noncanonical" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2465 program_transform_name
=s
,y
,y
,
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2468 $as_echo_n "checking host system type... " >&6; }
2469 if ${ac_cv_host+:} false
; then :
2470 $as_echo_n "(cached) " >&6
2472 if test "x$host_alias" = x
; then
2473 ac_cv_host
=$ac_cv_build
2475 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2476 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2481 $as_echo "$ac_cv_host" >&6; }
2484 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2487 ac_save_IFS
=$IFS; IFS
='-'
2493 # Remember, the first character of IFS is used to create $*,
2494 # except with old shells:
2497 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2501 $as_echo_n "checking target system type... " >&6; }
2502 if ${ac_cv_target+:} false
; then :
2503 $as_echo_n "(cached) " >&6
2505 if test "x$target_alias" = x
; then
2506 ac_cv_target
=$ac_cv_host
2508 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2509 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2514 $as_echo "$ac_cv_target" >&6; }
2515 case $ac_cv_target in
2517 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2519 target
=$ac_cv_target
2520 ac_save_IFS
=$IFS; IFS
='-'
2526 # Remember, the first character of IFS is used to create $*,
2527 # except with old shells:
2530 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2533 # The aliases save the names the user supplied, while $host etc.
2534 # will get canonicalized.
2535 test -n "$target_alias" &&
2536 test "$program_prefix$program_suffix$program_transform_name" = \
2538 program_prefix
=${target_alias}-
2539 test "$program_prefix" != NONE
&&
2540 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2541 # Use a double $ so make ignores it.
2542 test "$program_suffix" != NONE
&&
2543 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2544 # Double any \ or $.
2545 # By default was `s,x,x', remove it if useless.
2546 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2547 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2551 # Get 'install' or 'install-sh' and its variants.
2552 # Find a good install program. We prefer a C program (faster),
2553 # so one script is as good as another. But avoid the broken or
2554 # incompatible versions:
2555 # SysV /etc/install, /usr/sbin/install
2556 # SunOS /usr/etc/install
2557 # IRIX /sbin/install
2559 # AmigaOS /C/install, which installs bootblocks on floppy discs
2560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2563 # OS/2's system install, which has a completely different semantic
2564 # ./install, which can be erroneously created by make from ./install.sh.
2565 # Reject install programs that cannot install multiple files.
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2567 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2568 if test -z "$INSTALL"; then
2569 if ${ac_cv_path_install+:} false
; then :
2570 $as_echo_n "(cached) " >&6
2572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir
=.
2577 # Account for people who put trailing slashes in PATH elements.
2578 case $as_dir/ in #((
2579 .
/ | .
// |
/[cC
]/* | \
2580 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2581 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2584 # OSF1 and SCO ODT 3.0 have their own names for install.
2585 # Don't use installbsd from OSF since it installs stuff as root
2587 for ac_prog
in ginstall scoinst
install; do
2588 for ac_exec_ext
in '' $ac_executable_extensions; do
2589 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2590 if test $ac_prog = install &&
2591 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2592 # AIX install. It has an incompatible calling convention.
2594 elif test $ac_prog = install &&
2595 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2596 # program-specific install script used by HP pwplus--don't use.
2599 rm -rf conftest.one conftest.two conftest.dir
2600 echo one
> conftest.one
2601 echo two
> conftest.two
2603 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2604 test -s conftest.one
&& test -s conftest.two
&&
2605 test -s conftest.dir
/conftest.one
&&
2606 test -s conftest.dir
/conftest.two
2608 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2621 rm -rf conftest.one conftest.two conftest.dir
2624 if test "${ac_cv_path_install+set}" = set; then
2625 INSTALL
=$ac_cv_path_install
2627 # As a last resort, use the slow shell script. Don't cache a
2628 # value for INSTALL within a source directory, because that will
2629 # break other packages using the cache if that directory is
2630 # removed, or if the value is a relative name.
2631 INSTALL
=$ac_install_sh
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2635 $as_echo "$INSTALL" >&6; }
2637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2638 # It thinks the first close brace ends the variable substitution.
2639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2643 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2646 $as_echo_n "checking whether ln works... " >&6; }
2647 if ${acx_cv_prog_LN+:} false
; then :
2648 $as_echo_n "(cached) " >&6
2650 rm -f conftestdata_t
2651 echo >conftestdata_f
2652 if ln conftestdata_f conftestdata_t
2>/dev
/null
2658 rm -f conftestdata_f conftestdata_t
2661 if test $acx_cv_prog_LN = no
; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2664 $as_echo "no, using $LN" >&6; }
2666 LN
="$acx_cv_prog_LN"
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668 $as_echo "yes" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2672 $as_echo_n "checking whether ln -s works... " >&6; }
2674 if test "$LN_S" = "ln -s"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2676 $as_echo "yes" >&6; }
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2679 $as_echo "no, using $LN_S" >&6; }
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2683 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2684 if ${ac_cv_path_SED+:} false
; then :
2685 $as_echo_n "(cached) " >&6
2687 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2688 for ac_i
in 1 2 3 4 5 6 7; do
2689 ac_script
="$ac_script$as_nl$ac_script"
2691 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2692 { ac_script
=; unset ac_script
;}
2693 if test -z "$SED"; then
2694 ac_path_SED_found
=false
2695 # Loop through the user's path and test for each of PROGNAME-LIST
2696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2700 test -z "$as_dir" && as_dir
=.
2701 for ac_prog
in sed gsed
; do
2702 for ac_exec_ext
in '' $ac_executable_extensions; do
2703 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2704 as_fn_executable_p
"$ac_path_SED" ||
continue
2705 # Check for GNU ac_path_SED and select it if it is found.
2706 # Check for GNU $ac_path_SED
2707 case `"$ac_path_SED" --version 2>&1` in
2709 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2712 $as_echo_n 0123456789 >"conftest.in"
2715 cat "conftest.in" "conftest.in" >"conftest.tmp"
2716 mv "conftest.tmp" "conftest.in"
2717 cp "conftest.in" "conftest.nl"
2718 $as_echo '' >> "conftest.nl"
2719 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2720 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2721 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2722 if test $ac_count -gt ${ac_path_SED_max-0}; then
2723 # Best one so far, save it but keep looking for a better one
2724 ac_cv_path_SED
="$ac_path_SED"
2725 ac_path_SED_max
=$ac_count
2727 # 10*(2^10) chars as input seems more than enough
2728 test $ac_count -gt 10 && break
2730 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2733 $ac_path_SED_found && break 3
2738 if test -z "$ac_cv_path_SED"; then
2739 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2747 $as_echo "$ac_cv_path_SED" >&6; }
2748 SED
="$ac_cv_path_SED"
2751 for ac_prog
in gawk mawk nawk
awk
2753 # Extract the first word of "$ac_prog", so it can be a program name with args.
2754 set dummy
$ac_prog; ac_word
=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if ${ac_cv_prog_AWK+:} false
; then :
2758 $as_echo_n "(cached) " >&6
2760 if test -n "$AWK"; then
2761 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir
=.
2768 for ac_exec_ext
in '' $ac_executable_extensions; do
2769 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2770 ac_cv_prog_AWK
="$ac_prog"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 if test -n "$AWK"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2783 $as_echo "$AWK" >&6; }
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2790 test -n "$AWK" && break
2794 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2796 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2798 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2799 INSTALL
="${srcpwd}/install-sh -c"
2802 # Set srcdir to "." if that's what it is.
2803 # This is important for multilib support.
2805 if test "${pwd}" = "${srcpwd}" ; then
2813 ### To add a new directory to the tree, first choose whether it is a target
2814 ### or a host dependent tool. Then put it into the appropriate list
2815 ### (library or tools, host or target), doing a dependency sort.
2817 # Subdirs will be configured in the order listed in build_configdirs,
2818 # configdirs, or target_configdirs; see the serialization section below.
2820 # Dependency sorting is only needed when *configuration* must be done in
2821 # a particular order. In all cases a dependency should be specified in
2822 # the Makefile, whether or not it's implicitly specified here.
2824 # Double entries in build_configdirs, configdirs, or target_configdirs may
2825 # cause circular dependencies and break everything horribly.
2827 # these library is used by various programs built for the build
2830 build_libs
="build-libiberty build-libcpp"
2832 # these tools are built for the build environment
2833 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2835 # these libraries are used by various programs built for the host environment
2837 host_libs
="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2839 # these tools are built for the host environment
2840 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2841 # know that we are building the simulator.
2842 # binutils, gas and ld appear in that order because it makes sense to run
2843 # "make check" in that particular order.
2844 # If --enable-gold is used, "gold" may replace "ld".
2845 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"
2847 # these libraries are built for the target environment, and are built after
2848 # the host libraries and the host tools (which may be a cross compiler)
2849 # Note that libiberty is not a target library.
2850 target_libraries
="target-libgcc \
2851 target-libbacktrace \
2857 target-libstdc++-v3 \
2858 target-libsanitizer \
2861 target-libquadmath \
2862 target-libgfortran \
2872 # these tools are built using the target libraries, and are intended to
2873 # run only in the target environment
2875 # note: any program that *uses* libraries that are in the "target_libraries"
2876 # list belongs in this list.
2878 target_tools
="target-rda"
2880 ################################################################################
2882 ## All tools belong in one of the four categories, and are assigned above
2883 ## We assign ${configdirs} this way to remove all embedded newlines. This
2884 ## is important because configure will choke if they ever get through.
2885 ## ${configdirs} is directories we build using the host tools.
2886 ## ${target_configdirs} is directories we build using the target tools.
2887 configdirs
=`echo ${host_libs} ${host_tools}`
2888 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2889 build_configdirs
=`echo ${build_libs} ${build_tools}`
2893 ################################################################################
2895 srcname
="gnu development package"
2897 # This gets set non-empty for some net releases of packages.
2900 # Define is_cross_compiler to save on calls to 'test'.
2902 if test x
"${host}" = x
"${target}" ; then
2903 is_cross_compiler
=no
2905 is_cross_compiler
=yes
2908 # Find the build and target subdir names.
2910 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2911 # have matching libraries, they should use host libraries: Makefile.tpl
2912 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2913 # However, they still use the build modules, because the corresponding
2914 # host modules (e.g. bison) are only built for the host when bootstrap
2916 # - build_subdir is where we find build modules, and never changes.
2917 # - build_libsubdir is where we find build libraries, and can be overridden.
2919 # Prefix 'build-' so this never conflicts with target_subdir.
2920 build_subdir
="build-${build_noncanonical}"
2922 # Check whether --with-build-libsubdir was given.
2923 if test "${with_build_libsubdir+set}" = set; then :
2924 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2926 build_libsubdir
="$build_subdir"
2929 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2930 if ( test $srcdir = .
&& test -d gcc
) \
2931 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2932 host_subdir
="host-${host_noncanonical}"
2937 target_subdir
=${target_noncanonical}
2939 # Be sure to cover against remnants of an in-tree build.
2940 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2941 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2942 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2945 # Skipdirs are removed silently.
2947 # Noconfigdirs are removed loudly.
2951 # Make sure we don't let GNU ld be added if we didn't want it.
2952 if test x
$with_gnu_ld = xno
; then
2954 noconfigdirs
="$noconfigdirs ld gold"
2958 # Make sure we don't let GNU as be added if we didn't want it.
2959 if test x
$with_gnu_as = xno
; then
2961 noconfigdirs
="$noconfigdirs gas"
2966 # Check whether --with-system-zlib was given.
2967 if test "${with_system_zlib+set}" = set; then :
2968 withval
=$with_system_zlib;
2971 # Make sure we don't let ZLIB be added if we didn't want it.
2972 if test x
$with_system_zlib = xyes
; then
2973 use_included_zlib
=no
2974 noconfigdirs
="$noconfigdirs zlib"
2977 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2979 if test x
$with_system_readline = xyes
; then
2980 noconfigdirs
="$noconfigdirs readline"
2984 # Check whether --with-zstd was given.
2985 if test "${with_zstd+set}" = set; then :
2990 # some tools are so dependent upon X11 that if we're not building with X,
2991 # it's not even worth trying to configure, much less build, that tool.
2994 yes |
"") ;; # the default value for this tree is that X11 is available
2996 skipdirs
="${skipdirs} tk itcl libgui"
2997 # We won't be able to build gdbtk without X.
3000 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3003 # Some are only suitable for cross toolchains.
3004 # Remove these if host=target.
3005 cross_only
="target-libgloss target-newlib target-opcodes"
3007 case $is_cross_compiler in
3008 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
3011 # If both --with-headers and --with-libs are specified, default to
3013 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
3014 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
3015 if test x
"${with_newlib}" = x
; then
3020 # Recognize --with-newlib/--without-newlib.
3021 case ${with_newlib} in
3022 no
) skipdirs
="${skipdirs} target-newlib" ;;
3023 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3026 # Check whether --enable-as-accelerator-for was given.
3027 if test "${enable_as_accelerator_for+set}" = set; then :
3028 enableval
=$enable_as_accelerator_for;
3032 # Check whether --enable-offload-targets was given.
3033 if test "${enable_offload_targets+set}" = set; then :
3034 enableval
=$enable_offload_targets;
3035 if test x
"$enable_offload_targets" = x
; then
3036 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3040 enable_offload_targets
=
3044 # Check whether --enable-offload-defaulted was given.
3045 if test "${enable_offload_defaulted+set}" = set; then :
3046 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3048 enable_offload_defaulted
=
3052 # Handle --enable-gold, --enable-ld.
3053 # --disable-gold [--enable-ld]
3054 # Build only ld. Default option.
3055 # --enable-gold [--enable-ld]
3056 # Build both gold and ld. Install gold as "ld.gold", install ld
3057 # as "ld.bfd" and "ld".
3058 # --enable-gold=default [--enable-ld]
3059 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3060 # install ld as "ld.bfd".
3061 # --enable-gold[=default] --disable-ld
3062 # Build only gold, which is then installed as both "ld.gold" and "ld".
3063 # --enable-gold --enable-ld=default
3064 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3066 # In other words, ld is default
3067 # --enable-gold=default --enable-ld=default
3071 # Check whether --enable-gold was given.
3072 if test "${enable_gold+set}" = set; then :
3073 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3078 case "${ENABLE_GOLD}" in
3080 # Check for ELF target.
3083 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3084 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3085 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3086 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl* |
*-*-haiku*)
3088 *-*-linux*aout
* |
*-*-linux*oldld
*)
3096 if test "$is_elf" = "yes"; then
3097 # Check for target supported by gold.
3099 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3100 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3101 configdirs
="$configdirs gold"
3102 if test x
${ENABLE_GOLD} = xdefault
; then
3113 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3117 # Check whether --enable-ld was given.
3118 if test "${enable_ld+set}" = set; then :
3119 enableval
=$enable_ld; ENABLE_LD
=$enableval
3125 case "${ENABLE_LD}" in
3127 if test x
${default_ld} != x
; then
3128 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3134 if test x
${ENABLE_GOLD} != xyes
; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3136 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3138 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3141 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3145 # Check whether --enable-gprofng was given.
3146 if test "${enable_gprofng+set}" = set; then :
3147 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3152 if test "$enable_gprofng" = "yes"; then
3156 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux* | riscv64-
*-linux*)
3157 configdirs
="$configdirs gprofng"
3164 # Decide the default method for compressing debug sections.
3165 # Provide a configure time option to override our default.
3166 # Check whether --enable-compressed_debug_sections was given.
3167 if test "${enable_compressed_debug_sections+set}" = set; then :
3168 enableval
=$enable_compressed_debug_sections;
3169 if test x
"$enable_compressed_debug_sections" = xyes
; then
3170 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3174 enable_compressed_debug_sections
=
3178 # Select default compression algorithm.
3179 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3180 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3181 enableval
=$enable_default_compressed_debug_sections_algorithm;
3183 default_compressed_debug_sections_algorithm
=
3187 # Configure extra directories which are host specific
3191 configdirs
="$configdirs libtermcap" ;;
3194 # A target can indicate whether a language isn't supported for some reason.
3195 # Only spaces may be used in this macro; not newlines or tabs.
3196 unsupported_languages
=
3198 # Remove more programs from consideration, based on the host or
3199 # target this usually means that a port of the program doesn't
3203 i
[3456789]86-*-msdosdjgpp*)
3204 noconfigdirs
="$noconfigdirs tcl tk itcl"
3208 # Default to --disable-year2038 until we can handle differences between
3209 # projects that use gnulib (which understands year 2038) and projects that
3210 # do not (like BFD).
3211 # Check whether --enable-year2038 was given.
3212 if test "${enable_year2038+set}" = set; then :
3213 enableval
=$enable_year2038; ENABLE_YEAR2038
=$enableval
3219 if test "${ENABLE_YEAR2038}" = "no" ; then
3223 # Check whether --enable-libquadmath was given.
3224 if test "${enable_libquadmath+set}" = set; then :
3225 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3227 ENABLE_LIBQUADMATH
=yes
3230 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3231 noconfigdirs
="$noconfigdirs target-libquadmath"
3235 # Check whether --enable-libquadmath-support was given.
3236 if test "${enable_libquadmath_support+set}" = set; then :
3237 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3239 ENABLE_LIBQUADMATH_SUPPORT
=yes
3242 enable_libquadmath_support
=
3243 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3244 enable_libquadmath_support
=no
3248 # Check whether --enable-libada was given.
3249 if test "${enable_libada+set}" = set; then :
3250 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3255 if test "${ENABLE_LIBADA}" != "yes" ; then
3256 noconfigdirs
="$noconfigdirs gnattools"
3259 # Check whether --enable-libgm2 was given.
3260 if test "${enable_libgm2+set}" = set; then :
3261 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3266 if test "${ENABLE_LIBGM2}" != "yes" ; then
3267 noconfigdirs
="$noconfigdirs gm2tools"
3270 # Check whether --enable-libssp was given.
3271 if test "${enable_libssp+set}" = set; then :
3272 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3278 # Check whether --enable-libstdcxx was given.
3279 if test "${enable_libstdcxx+set}" = set; then :
3280 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3282 ENABLE_LIBSTDCXX
=default
3285 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3286 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3289 # Enable libgomp by default on hosted POSIX systems, and a few others.
3290 if test x
$enable_libgomp = x
; then
3292 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3294 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3296 *-*-solaris2* |
*-*-hpux11*)
3298 *-*-darwin* |
*-*-aix*)
3300 nvptx
*-*-* | amdgcn
*-*-*)
3303 noconfigdirs
="$noconfigdirs target-libgomp"
3308 # Disable libatomic on unsupported systems.
3309 if test -d ${srcdir}/libatomic
; then
3310 if test x
$enable_libatomic = x
; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3312 $as_echo_n "checking for libatomic support... " >&6; }
3313 if (srcdir
=${srcdir}/libatomic
; \
3314 .
${srcdir}/configure.tgt
; \
3315 test -n "$UNSUPPORTED")
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 noconfigdirs
="$noconfigdirs target-libatomic"
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 $as_echo "yes" >&6; }
3327 # Disable libitm on unsupported systems.
3328 if test -d ${srcdir}/libitm
; then
3329 if test x
$enable_libitm = x
; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3331 $as_echo_n "checking for libitm support... " >&6; }
3332 if (srcdir
=${srcdir}/libitm
; \
3333 .
${srcdir}/configure.tgt
; \
3334 test -n "$UNSUPPORTED")
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 noconfigdirs
="$noconfigdirs target-libitm"
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3346 # Disable libsanitizer on unsupported systems.
3347 if test -d ${srcdir}/libsanitizer
; then
3348 if test x
$enable_libsanitizer = x
; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3350 $as_echo_n "checking for libsanitizer support... " >&6; }
3351 if (srcdir
=${srcdir}/libsanitizer
; \
3352 .
${srcdir}/configure.tgt
; \
3353 test -n "$UNSUPPORTED")
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 noconfigdirs
="$noconfigdirs target-libsanitizer"
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360 $as_echo "yes" >&6; }
3365 # Disable libvtv on unsupported systems.
3366 if test -d ${srcdir}/libvtv
; then
3367 if test x
$enable_libvtv = x
; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3369 $as_echo_n "checking for libvtv support... " >&6; }
3370 if (srcdir
=${srcdir}/libvtv
; \
3371 .
${srcdir}/configure.tgt
; \
3372 test "$VTV_SUPPORTED" != "yes")
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 noconfigdirs
="$noconfigdirs target-libvtv"
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3379 $as_echo "yes" >&6; }
3384 # Disable libquadmath for some systems.
3387 noconfigdirs
="$noconfigdirs target-libquadmath"
3389 # libquadmath is unused on AIX and libquadmath build process use of
3390 # LD_LIBRARY_PATH can break AIX bootstrap.
3391 powerpc-
*-aix* | rs6000-
*-aix*)
3392 noconfigdirs
="$noconfigdirs target-libquadmath"
3396 # Disable libssp for some systems.
3399 # No hosted I/O support.
3400 noconfigdirs
="$noconfigdirs target-libssp"
3403 noconfigdirs
="$noconfigdirs target-libssp"
3405 powerpc-
*-aix* | rs6000-
*-aix*)
3406 noconfigdirs
="$noconfigdirs target-libssp"
3409 # No hosted I/O support.
3410 noconfigdirs
="$noconfigdirs target-libssp"
3413 # libssp uses a misaligned load to trigger a fault, but the RL78
3414 # doesn't fault for those - instead, it gives a build-time error
3415 # for explicit misaligned loads.
3416 noconfigdirs
="$noconfigdirs target-libssp"
3419 # No hosted I/O support.
3420 noconfigdirs
="$noconfigdirs target-libssp"
3424 # Disable libstdc++-v3 for some systems.
3425 # Allow user to override this if they pass --enable-libstdcxx
3426 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3429 # VxWorks uses the Dinkumware C++ library.
3430 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3433 # Not ported/fails to build when using newlib.
3434 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3437 # the C++ libraries don't build on top of CE's C libraries
3438 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3441 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3444 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3447 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3452 # Disable C++ on systems where it is known to not work.
3453 # For testing, you can override this with --enable-languages=c++.
3454 case ,${enable_languages}, in
3460 unsupported_languages
="$unsupported_languages c++"
3466 # Disable Objc on systems where it is known to not work.
3467 # For testing, you can override this with --enable-languages=objc.
3468 case ,${enable_languages}, in
3474 unsupported_languages
="$unsupported_languages objc"
3480 # Disable D on systems where it is known to not work.
3481 # For testing, you can override this with --enable-languages=d.
3482 case ,${enable_languages}, in
3488 unsupported_languages
="$unsupported_languages d"
3494 # Disable libphobos on unsupported systems.
3495 # For testing, you can override this with --enable-libphobos.
3496 if test -d ${srcdir}/libphobos
; then
3497 if test x
$enable_libphobos = x
; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3499 $as_echo_n "checking for libphobos support... " >&6; }
3500 if (srcdir
=${srcdir}/libphobos
; \
3501 .
${srcdir}/configure.tgt
; \
3502 test "$LIBPHOBOS_SUPPORTED" != "yes")
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 noconfigdirs
="$noconfigdirs target-libphobos"
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3509 $as_echo "yes" >&6; }
3514 # Disable Fortran for some systems.
3517 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3518 unsupported_languages
="$unsupported_languages fortran"
3521 unsupported_languages
="$unsupported_languages fortran"
3525 # Disable libffi for some systems.
3529 i
[3456789]86-*-darwin*)
3531 x86_64-
*-darwin[912]*)
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"
3549 noconfigdirs
="$noconfigdirs target-libffi"
3552 noconfigdirs
="$noconfigdirs target-libffi"
3554 aarch64
*-*-freebsd*)
3555 noconfigdirs
="$noconfigdirs target-libffi"
3558 noconfigdirs
="$noconfigdirs target-libffi"
3561 noconfigdirs
="$noconfigdirs target-libffi"
3564 noconfigdirs
="$noconfigdirs target-libffi"
3567 noconfigdirs
="$noconfigdirs target-libffi"
3570 noconfigdirs
="$noconfigdirs target-libffi"
3572 cris-
*-* | crisv32-
*-*)
3576 *) # See PR46792 regarding target-libffi.
3577 noconfigdirs
="$noconfigdirs target-libffi";;
3581 noconfigdirs
="$noconfigdirs target-libffi"
3586 noconfigdirs
="$noconfigdirs target-libffi"
3589 noconfigdirs
="$noconfigdirs target-libffi"
3591 i
[3456789]86-w64-mingw*)
3592 noconfigdirs
="$noconfigdirs target-libffi"
3594 i
[3456789]86-*-mingw*)
3595 noconfigdirs
="$noconfigdirs target-libffi"
3598 noconfigdirs
="$noconfigdirs target-libffi"
3601 noconfigdirs
="$noconfigdirs target-libffi"
3608 noconfigdirs
="$noconfigdirs target-libffi"
3611 noconfigdirs
="$noconfigdirs target-libffi"
3615 # Disable the go frontend on systems where it is known to not work. Please keep
3616 # this in sync with contrib/config-list.mk.
3618 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3619 unsupported_languages
="$unsupported_languages go"
3623 # Only allow gdbserver on some systems.
3624 if test -d ${srcdir}/gdbserver
; then
3625 if test x
$enable_gdbserver = x
; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3627 $as_echo_n "checking for gdbserver support... " >&6; }
3628 if (srcdir
=${srcdir}/gdbserver
; \
3629 .
${srcdir}/configure.srv
; \
3630 test -n "$UNSUPPORTED")
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 noconfigdirs
="$noconfigdirs gdbserver"
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637 $as_echo "yes" >&6; }
3642 # Disable libgo for some systems where it is known to not work.
3643 # For testing, you can easily override this with --enable-libgo.
3644 if test x
$enable_libgo = x
; then
3648 noconfigdirs
="$noconfigdirs target-libgo"
3650 *-*-cygwin* |
*-*-mingw*)
3651 noconfigdirs
="$noconfigdirs target-libgo"
3654 noconfigdirs
="$noconfigdirs target-libgo"
3659 # Default libgloss CPU subdirectory.
3660 libgloss_dir
="$target_cpu"
3663 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3667 libgloss_dir
=aarch64
3672 cris-
*-* | crisv32-
*-*)
3676 libgloss_dir
=kvx-elf
3679 libgloss_dir
=kvx-mbr
3682 libgloss_dir
=kvx-cos
3691 libgloss_dir
=loongarch
3693 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3694 libgloss_dir
=m68hc11
3696 m68
*-*-* | fido-
*-*)
3713 # Disable newlib and libgloss for various target OSes.
3716 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3718 i
[3456789]86-*-linux*)
3719 # This section makes it possible to build newlib natively on linux.
3720 # If we are using a cross compiler then don't configure newlib.
3721 if test x
${is_cross_compiler} != xno
; then
3722 noconfigdirs
="$noconfigdirs target-newlib"
3724 noconfigdirs
="$noconfigdirs target-libgloss"
3725 # If we are not using a cross compiler, do configure newlib.
3726 # Note however, that newlib will only be configured in this situation
3727 # if the --with-newlib option has been given, because otherwise
3728 # 'target-newlib' will appear in skipdirs.
3730 i
[3456789]86-*-rdos*)
3731 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3733 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3734 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3737 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3740 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
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"
3757 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3758 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3761 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3764 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3767 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3770 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3773 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3776 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3779 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3783 # The ARM simulator has been deprecated for all ARM targets.
3786 noconfigdirs
="$noconfigdirs sim"
3794 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3795 noconfigdirs
="$noconfigdirs sim target-rda"
3800 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3801 noconfigdirs
="$noconfigdirs target-rda"
3804 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3805 noconfigdirs
="$noconfigdirs sim target-rda"
3807 i
[3456789]86-*-darwin*)
3808 noconfigdirs
="$noconfigdirs ld gprof"
3809 noconfigdirs
="$noconfigdirs sim target-rda"
3811 x86_64-
*-darwin[912]*)
3812 noconfigdirs
="$noconfigdirs ld gas gprof"
3813 noconfigdirs
="$noconfigdirs sim target-rda"
3816 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3817 noconfigdirs
="$noconfigdirs sim target-rda"
3822 if test "x$with_gmp" = x \
3823 && ! test -d ${srcdir}/gmp \
3824 && test -f /usr
/local
/include
/gmp.h
; then
3829 # Remove unsupported stuff on all kaOS configurations.
3830 noconfigdirs
="$noconfigdirs target-libgloss"
3837 noconfigdirs
="$noconfigdirs target-libgloss"
3840 noconfigdirs
="$noconfigdirs target-libgloss"
3842 # The tpf target doesn't support gdb yet.
3844 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3847 noconfigdirs
="$noconfigdirs target-rda"
3852 # ld works, but does not support shared libraries.
3853 # gas doesn't generate exception information.
3854 noconfigdirs
="$noconfigdirs gas ld"
3857 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3860 # newlib is not 64 bit ready
3861 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3864 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3866 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3867 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3870 noconfigdirs
="$noconfigdirs sim"
3873 noconfigdirs
="$noconfigdirs target-libgloss"
3876 noconfigdirs
="$noconfigdirs ld target-libgloss"
3879 if test x
${with_avrlibc} != xno
; then
3880 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3883 c4x-
*-* | tic4x-
*-*)
3884 noconfigdirs
="$noconfigdirs target-libgloss"
3887 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3890 noconfigdirs
="$noconfigdirs target-libgloss"
3893 noconfigdirs
="$noconfigdirs gdb"
3896 noconfigdirs
="$noconfigdirs gdb"
3899 noconfigdirs
="$noconfigdirs target-rda gprof"
3902 noconfigdirs
="$noconfigdirs"
3905 noconfigdirs
="$noconfigdirs target-libgloss"
3908 noconfigdirs
="$noconfigdirs target-libgloss"
3910 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3913 noconfigdirs
="$noconfigdirs gdb"
3916 noconfigdirs
="$noconfigdirs gdb ld"
3924 hppa
*-*-openbsd* | \
3930 noconfigdirs
="$noconfigdirs ld"
3933 noconfigdirs
="$noconfigdirs gdb"
3936 # No gdb support yet.
3937 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3940 # No ld support yet.
3941 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3944 # No ld support yet.
3945 noconfigdirs
="$noconfigdirs libgui itcl ld"
3947 i
[3456789]86-w64-mingw*)
3949 i
[3456789]86-*-mingw*)
3950 target_configdirs
="$target_configdirs target-winsup"
3953 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3954 noconfigdirs
="$noconfigdirs target-libgloss"
3955 # always build newlib if winsup directory is present.
3956 if test -d "$srcdir/winsup/cygwin"; then
3957 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3958 elif test -d "$srcdir/newlib"; then
3959 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3963 noconfigdirs
="$noconfigdirs target-libgloss"
3965 i
[3456789]86-*-sco3.2v5
*)
3966 # The linker does not yet know about weak symbols in COFF,
3967 # and is not configured to handle mixed ELF and COFF.
3968 noconfigdirs
="$noconfigdirs ld target-libgloss"
3970 i
[3456789]86-*-sco*)
3971 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3973 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3974 noconfigdirs
="$noconfigdirs target-libgloss"
3976 i
[3456789]86-*-sysv4*)
3977 noconfigdirs
="$noconfigdirs target-libgloss"
3979 i
[3456789]86-*-beos*)
3980 noconfigdirs
="$noconfigdirs gdb"
3982 i
[3456789]86-*-rdos*)
3983 noconfigdirs
="$noconfigdirs gdb"
3986 noconfigdirs
="$noconfigdirs gdb gdbserver sim"
3989 noconfigdirs
="$noconfigdirs gdb"
3992 noconfigdirs
="$noconfigdirs sim"
3995 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3996 noconfigdirs
="$noconfigdirs $target_libraries"
3999 noconfigdirs
="$noconfigdirs gdb gprof"
4002 # copied from rs6000-*-* entry
4003 noconfigdirs
="$noconfigdirs gprof"
4005 powerpc
*-*-winnt* | powerpc
*-*-pe*)
4006 target_configdirs
="$target_configdirs target-winsup"
4007 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
4008 # always build newlib.
4009 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4011 # This is temporary until we can link against shared libraries
4012 powerpcle-
*-solaris*)
4013 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
4016 noconfigdirs
="$noconfigdirs gdb"
4019 noconfigdirs
="$noconfigdirs gprof"
4022 noconfigdirs
="$noconfigdirs gprof"
4025 noconfigdirs
="$noconfigdirs gprof"
4028 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
4031 noconfigdirs
="$noconfigdirs gprof"
4033 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4034 if test x
$with_newlib = xyes
; then
4035 noconfigdirs
="$noconfigdirs gprof"
4039 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4042 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4045 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4049 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4050 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4051 noconfigdirs
="$noconfigdirs ld gas gprof"
4054 noconfigdirs
="$noconfigdirs gprof"
4057 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4064 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4068 if test x
${is_cross_compiler} = xno
; then
4073 noconfigdirs
="$noconfigdirs sim"
4075 tilepro
*-*-* | tilegx
*-*-*)
4076 noconfigdirs
="$noconfigdirs sim"
4079 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4082 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4085 noconfigdirs
="$noconfigdirs ld"
4087 loongarch
*-*-linux*)
4090 noconfigdirs
="$noconfigdirs gprof"
4094 # If we aren't building newlib, then don't build libgloss, since libgloss
4095 # depends upon some newlib header files.
4096 case "${noconfigdirs}" in
4097 *target-libgloss
*) ;;
4098 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4101 # Work in distributions that contain no compiler tools, like Autoconf.
4102 host_makefile_frag
=/dev
/null
4103 if test -d ${srcdir}/config
; then
4105 i
[3456789]86-*-msdosdjgpp*)
4106 host_makefile_frag
="config/mh-djgpp"
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4111 $as_echo_n "checking to see if cat works as expected... " >&6; }
4112 echo a
>cygwin-cat-check
4113 if test `cat cygwin-cat-check` = a
; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4116 $as_echo "yes" >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 as_fn_error $?
"The cat command does not ignore carriage return characters.
4122 Please either mount the build directory in binary mode or run the following
4123 commands before running any configure script:
4129 host_makefile_frag
="config/mh-cygwin"
4132 host_makefile_frag
="config/mh-mingw"
4135 host_makefile_frag
="config/mh-alpha-linux"
4138 host_makefile_frag
="config/mh-pa"
4141 host_makefile_frag
="config/mh-pa"
4143 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4144 host_makefile_frag
="config/mh-darwin"
4147 host_makefile_frag
="config/mh-ppc-aix"
4150 host_makefile_frag
="config/mh-ppc-aix"
4155 if test "${build}" != "${host}" ; then
4156 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4157 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4158 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4159 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4160 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4161 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4162 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4163 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4164 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4165 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4166 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4167 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4168 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4169 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4170 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4172 AR_FOR_BUILD
="\$(AR)"
4173 AS_FOR_BUILD
="\$(AS)"
4174 CC_FOR_BUILD
="\$(CC)"
4175 CXX_FOR_BUILD
="\$(CXX)"
4176 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4177 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4178 GOC_FOR_BUILD
="\$(GOC)"
4179 GDC_FOR_BUILD
="\$(GDC)"
4180 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4181 LD_FOR_BUILD
="\$(LD)"
4182 NM_FOR_BUILD
="\$(NM)"
4183 RANLIB_FOR_BUILD
="\$(RANLIB)"
4184 WINDRES_FOR_BUILD
="\$(WINDRES)"
4185 WINDMC_FOR_BUILD
="\$(WINDMC)"
4189 ac_cpp
='$CPP $CPPFLAGS'
4190 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4195 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_CC+:} false
; then :
4199 $as_echo_n "(cached) " >&6
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC
="$CC" # Let the user override the test.
4204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4208 test -z "$as_dir" && as_dir
=.
4209 for ac_exec_ext
in '' $ac_executable_extensions; do
4210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4232 if test -z "$ac_cv_prog_CC"; then
4234 # Extract the first word of "gcc", so it can be a program name with args.
4235 set dummy gcc
; ac_word
=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4239 $as_echo_n "(cached) " >&6
4241 if test -n "$ac_ct_CC"; then
4242 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir
=.
4249 for ac_exec_ext
in '' $ac_executable_extensions; do
4250 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_ac_ct_CC
="gcc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4262 if test -n "$ac_ct_CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4264 $as_echo "$ac_ct_CC" >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4270 if test "x$ac_ct_CC" = x
; then
4273 case $cross_compiling:$ac_tool_warned in
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4277 ac_tool_warned
=yes ;;
4285 if test -z "$CC"; then
4286 if test -n "$ac_tool_prefix"; then
4287 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4288 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4290 $as_echo_n "checking for $ac_word... " >&6; }
4291 if ${ac_cv_prog_CC+:} false
; then :
4292 $as_echo_n "(cached) " >&6
4294 if test -n "$CC"; then
4295 ac_cv_prog_CC
="$CC" # Let the user override the test.
4297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4301 test -z "$as_dir" && as_dir
=.
4302 for ac_exec_ext
in '' $ac_executable_extensions; do
4303 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4304 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 if test -n "$CC"; then
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4317 $as_echo "$CC" >&6; }
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4320 $as_echo "no" >&6; }
4326 if test -z "$CC"; then
4327 # Extract the first word of "cc", so it can be a program name with args.
4328 set dummy cc
; ac_word
=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if ${ac_cv_prog_CC+:} false
; then :
4332 $as_echo_n "(cached) " >&6
4334 if test -n "$CC"; then
4335 ac_cv_prog_CC
="$CC" # Let the user override the test.
4338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir
=.
4343 for ac_exec_ext
in '' $ac_executable_extensions; do
4344 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4345 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4346 ac_prog_rejected
=yes
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 if test $ac_prog_rejected = yes; then
4358 # We found a bogon in the path, so make sure we never use it.
4359 set dummy
$ac_cv_prog_CC
4361 if test $# != 0; then
4362 # We chose a different compiler from the bogus one.
4363 # However, it has the same basename, so the bogon will be chosen
4364 # first if we set CC to just the basename; use the full file name.
4366 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4372 if test -n "$CC"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4374 $as_echo "$CC" >&6; }
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4382 if test -z "$CC"; then
4383 if test -n "$ac_tool_prefix"; then
4384 for ac_prog
in cl.exe
4386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4387 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_prog_CC+:} false
; then :
4391 $as_echo_n "(cached) " >&6
4393 if test -n "$CC"; then
4394 ac_cv_prog_CC
="$CC" # Let the user override the test.
4396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4400 test -z "$as_dir" && as_dir
=.
4401 for ac_exec_ext
in '' $ac_executable_extensions; do
4402 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 if test -n "$CC"; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4416 $as_echo "$CC" >&6; }
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 $as_echo "no" >&6; }
4423 test -n "$CC" && break
4426 if test -z "$CC"; then
4428 for ac_prog
in cl.exe
4430 # Extract the first word of "$ac_prog", so it can be a program name with args.
4431 set dummy
$ac_prog; ac_word
=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4435 $as_echo_n "(cached) " >&6
4437 if test -n "$ac_ct_CC"; then
4438 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir
=.
4445 for ac_exec_ext
in '' $ac_executable_extensions; do
4446 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_prog_ac_ct_CC
="$ac_prog"
4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4458 if test -n "$ac_ct_CC"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4460 $as_echo "$ac_ct_CC" >&6; }
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4467 test -n "$ac_ct_CC" && break
4470 if test "x$ac_ct_CC" = x
; then
4473 case $cross_compiling:$ac_tool_warned in
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477 ac_tool_warned
=yes ;;
4486 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4488 as_fn_error $?
"no acceptable C compiler found in \$PATH
4489 See \`config.log' for more details" "$LINENO" 5; }
4491 # Provide some information about the compiler.
4492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4495 for ac_option
in --version -v -V -qversion; do
4496 { { ac_try
="$ac_compiler $ac_option >&5"
4498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4505 if test -s conftest.err; then
4507 ... rest of stderr output deleted ...
4508 10q' conftest.err >conftest.er1
4509 cat conftest.er1 >&5
4511 rm -f conftest.er1 conftest.err
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4527 ac_clean_files_save=$ac_clean_files
4528 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4529 # Try to create an executable without -o first, disregard a.out.
4530 # It will help us diagnose broken compilers, and finding out an intuition
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4533 $as_echo_n "checking whether the C compiler works... " >&6; }
4534 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4536 # The possible output files:
4537 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4540 for ac_file in $ac_files
4543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4544 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4549 if { { ac_try="$ac_link_default"
4551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4552 *) ac_try_echo
=$ac_try;;
4554 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4555 $as_echo "$ac_try_echo"; } >&5
4556 (eval "$ac_link_default") 2>&5
4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559 test $ac_status = 0; }; then :
4560 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4561 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4562 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4563 # so that the user can short-circuit this test for compilers unknown to
4565 for ac_file
in $ac_files ''
4567 test -f "$ac_file" ||
continue
4569 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4572 # We found the default executable, but exeext='' is most
4576 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4578 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4580 # We set ac_cv_exeext here because the later test for it is not
4581 # safe: cross compilers may not add the suffix if given an `-o'
4582 # argument, so we may need to know it at that point already.
4583 # Even if this section looks crufty: it has the advantage of
4590 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4595 if test -z "$ac_file"; then :
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4598 $as_echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.
$ac_ext >&5
4601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error
77 "C compiler cannot create executables
4604 See \`config.log' for more details" "$LINENO" 5; }
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4607 $as_echo "yes" >&6; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4610 $as_echo_n "checking for C compiler default output file name... " >&6; }
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4612 $as_echo "$ac_file" >&6; }
4613 ac_exeext
=$ac_cv_exeext
4615 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4616 ac_clean_files
=$ac_clean_files_save
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4618 $as_echo_n "checking for suffix of executables... " >&6; }
4619 if { { ac_try
="$ac_link"
4621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_link") 2>&5
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }; then :
4630 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4631 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4632 # work properly (i.e., refer to `conftest.exe'), while it won't with
4634 for ac_file
in conftest.exe conftest conftest.
*; do
4635 test -f "$ac_file" ||
continue
4637 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4638 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4646 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4647 See \`config.log' for more details" "$LINENO" 5; }
4649 rm -f conftest conftest
$ac_cv_exeext
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4651 $as_echo "$ac_cv_exeext" >&6; }
4653 rm -f conftest.
$ac_ext
4654 EXEEXT
=$ac_cv_exeext
4656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4662 FILE *f = fopen ("conftest.out", "w");
4663 return ferror (f) || fclose (f) != 0;
4669 ac_clean_files
="$ac_clean_files conftest.out"
4670 # Check that the compiler produces executables we can run. If not, either
4671 # the compiler is broken, or we cross compile.
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4673 $as_echo_n "checking whether we are cross compiling... " >&6; }
4674 if test "$cross_compiling" != yes; then
4675 { { ac_try
="$ac_link"
4677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4681 $as_echo "$ac_try_echo"; } >&5
4682 (eval "$ac_link") 2>&5
4684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4685 test $ac_status = 0; }
4686 if { ac_try='./conftest$ac_cv_exeext'
4687 { { case "(($ac_try" in
4688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4689 *) ac_try_echo
=$ac_try;;
4691 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4692 $as_echo "$ac_try_echo"; } >&5
4693 (eval "$ac_try") 2>&5
4695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696 test $ac_status = 0; }; }; then
4699 if test "$cross_compiling" = maybe
; then
4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 as_fn_error $?
"cannot run C compiled programs.
4705 If you meant to cross compile, use \`--host'.
4706 See \`config.log' for more details" "$LINENO" 5; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4711 $as_echo "$cross_compiling" >&6; }
4713 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4714 ac_clean_files
=$ac_clean_files_save
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4716 $as_echo_n "checking for suffix of object files... " >&6; }
4717 if ${ac_cv_objext+:} false
; then :
4718 $as_echo_n "(cached) " >&6
4720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4731 rm -f conftest.o conftest.obj
4732 if { { ac_try
="$ac_compile"
4734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4738 $as_echo "$ac_try_echo"; } >&5
4739 (eval "$ac_compile") 2>&5
4741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4742 test $ac_status = 0; }; then :
4743 for ac_file in conftest.o conftest.obj conftest.*; do
4744 test -f "$ac_file" || continue;
4746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4747 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4752 $as_echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4757 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4758 See \
`config.log' for more details" "$LINENO" 5; }
4760 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4763 $as_echo "$ac_cv_objext" >&6; }
4764 OBJEXT=$ac_cv_objext
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4767 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4768 if ${ac_cv_c_compiler_gnu+:} false; then :
4769 $as_echo_n "(cached) " >&6
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4785 if ac_fn_c_try_compile "$LINENO"; then :
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4795 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4796 if test $ac_compiler_gnu = yes; then
4801 ac_test_CFLAGS=${CFLAGS+set}
4802 ac_save_CFLAGS=$CFLAGS
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4804 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4805 if ${ac_cv_prog_cc_g+:} false; then :
4806 $as_echo_n "(cached) " >&6
4808 ac_save_c_werror_flag=$ac_c_werror_flag
4809 ac_c_werror_flag=yes
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4823 if ac_fn_c_try_compile "$LINENO"; then :
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4838 if ac_fn_c_try_compile "$LINENO"; then :
4841 ac_c_werror_flag=$ac_save_c_werror_flag
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4854 if ac_fn_c_try_compile "$LINENO"; then :
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 ac_c_werror_flag=$ac_save_c_werror_flag
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4865 $as_echo "$ac_cv_prog_cc_g" >&6; }
4866 if test "$ac_test_CFLAGS" = set; then
4867 CFLAGS=$ac_save_CFLAGS
4868 elif test $ac_cv_prog_cc_g = yes; then
4869 if test "$GCC" = yes; then
4875 if test "$GCC" = yes; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4882 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4883 if ${ac_cv_prog_cc_c89+:} false; then :
4884 $as_echo_n "(cached) " >&6
4886 ac_cv_prog_cc_c89=no
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4893 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4894 struct buf { int x; };
4895 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4896 static char *e (p, i)
4902 static char *f (char * (*g) (char **, int), char **p, ...)
4907 s = g (p, va_arg (v,int));
4912 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4913 function prototypes and stuff, but not '\xHH' hex character constants.
4914 These don't provoke an error unfortunately, instead are silently treated
4915 as 'x'. The following induces an error, until -std is added to get
4916 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4917 array size at least. It's necessary to write '\x00'==0 to get something
4918 that's true only with -std. */
4919 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4921 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4922 inside strings and character constants. */
4924 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4926 int test (int i, double x);
4927 struct s1 {int (*f) (int a);};
4928 struct s2 {int (*f) (double a);};
4929 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4935 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4940 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4941 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4943 CC="$ac_save_CC $ac_arg"
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_cv_prog_cc_c89=$ac_arg
4947 rm -f core conftest.err conftest.$ac_objext
4948 test "x$ac_cv_prog_cc_c89" != "xno" && break
4950 rm -f conftest.$ac_ext
4955 case "x$ac_cv_prog_cc_c89" in
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4958 $as_echo "none needed" >&6; } ;;
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4961 $as_echo "unsupported" >&6; } ;;
4963 CC="$CC $ac_cv_prog_cc_c89"
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4965 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4967 if test "x$ac_cv_prog_cc_c89" != xno; then :
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4978 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4979 if ${ac_cv_prog_cc_c99+:} false; then :
4980 $as_echo_n "(cached) " >&6
4982 ac_cv_prog_cc_c99=no
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4987 #include <stdbool.h>
4992 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4993 #define debug(...) fprintf (stderr, __VA_ARGS__)
4994 #define showlist(...) puts (#__VA_ARGS__)
4995 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4997 test_varargs_macros (void)
5002 debug ("X = %d\n", x);
5003 showlist (The first, second, and third items.);
5004 report (x>y, "x is %d but y is %d", x, y);
5007 // Check long long types.
5008 #define BIG64 18446744073709551615ull
5009 #define BIG32 4294967295ul
5010 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5012 your preprocessor is broken;
5016 your preprocessor is broken;
5018 static long long int bignum = -9223372036854775807LL;
5019 static unsigned long long int ubignum = BIG64;
5021 struct incomplete_array
5029 const wchar_t *name;
5033 typedef const char *ccp;
5036 test_restrict (ccp restrict text)
5038 // See if C++-style comments work.
5039 // Iterate through items via the restricted pointer.
5040 // Also check for declarations in for loops.
5041 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5046 // Check varargs and va_copy.
5048 test_varargs (const char *format, ...)
5051 va_start (args, format);
5053 va_copy (args_copy, args);
5064 str = va_arg (args_copy, const char *);
5067 number = va_arg (args_copy, int);
5070 fnumber = va_arg (args_copy, double);
5085 _Bool success = false;
5088 if (test_restrict ("String literal") == 0)
5090 char *restrict newvar = "Another string";
5093 test_varargs ("s, d' f .", "string", 65, 34.234);
5094 test_varargs_macros ();
5096 // Check flexible array members.
5097 struct incomplete_array *ia =
5098 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5100 for (int i = 0; i < ia->datasize; ++i)
5101 ia->data[i] = i * 1.234;
5103 // Check named initializers.
5104 struct named_init ni = {
5106 .name = L"Test wide string",
5107 .average = 543.34343,
5112 int dynamic_array[ni.number];
5113 dynamic_array[ni.number - 1] = 543;
5115 // work around unused variable warnings
5116 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5117 || dynamic_array[ni.number - 1] != 543);
5123 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5125 CC="$ac_save_CC $ac_arg"
5126 if ac_fn_c_try_compile "$LINENO"; then :
5127 ac_cv_prog_cc_c99=$ac_arg
5129 rm -f core conftest.err conftest.$ac_objext
5130 test "x$ac_cv_prog_cc_c99" != "xno" && break
5132 rm -f conftest.$ac_ext
5137 case "x$ac_cv_prog_cc_c99" in
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5140 $as_echo "none needed" >&6; } ;;
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5143 $as_echo "unsupported" >&6; } ;;
5145 CC="$CC $ac_cv_prog_cc_c99"
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5147 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5149 if test "x$ac_cv_prog_cc_c99" != xno; then :
5155 ac_cpp='$CXXCPP $CPPFLAGS'
5156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5159 if test -z "$CXX"; then
5160 if test -n "$CCC"; then
5163 if test -n "$ac_tool_prefix"; then
5164 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_prog_CXX+:} false; then :
5171 $as_echo_n "(cached) " >&6
5173 if test -n "$CXX"; then
5174 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 if test -n "$CXX"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5196 $as_echo "$CXX" >&6; }
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 test -n "$CXX" && break
5206 if test -z "$CXX"; then
5208 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5210 # Extract the first word of "$ac_prog", so it can be a program name with args.
5211 set dummy $ac_prog; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5215 $as_echo_n "(cached) " >&6
5217 if test -n "$ac_ct_CXX"; then
5218 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_ac_ct_CXX="$ac_prog"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5238 if test -n "$ac_ct_CXX"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5240 $as_echo "$ac_ct_CXX" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5247 test -n "$ac_ct_CXX" && break
5250 if test "x$ac_ct_CXX" = x; then
5253 case $cross_compiling:$ac_tool_warned in
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5257 ac_tool_warned=yes ;;
5265 # Provide some information about the compiler.
5266 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5269 for ac_option in --version -v -V -qversion; do
5270 { { ac_try="$ac_compiler $ac_option >&5"
5272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5273 *) ac_try_echo
=$ac_try;;
5275 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5276 $as_echo "$ac_try_echo"; } >&5
5277 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5279 if test -s conftest.err
; then
5281 ... rest of stderr output deleted ...
5282 10q' conftest.err
>conftest.er1
5283 cat conftest.er1
>&5
5285 rm -f conftest.er1 conftest.err
5286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5287 test $ac_status = 0; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5291 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5292 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5293 $as_echo_n "(cached) " >&6
5295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5309 if ac_fn_cxx_try_compile
"$LINENO"; then :
5314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5315 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5319 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5320 if test $ac_compiler_gnu = yes; then
5325 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5326 ac_save_CXXFLAGS
=$CXXFLAGS
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5328 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5329 if ${ac_cv_prog_cxx_g+:} false
; then :
5330 $as_echo_n "(cached) " >&6
5332 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5333 ac_cxx_werror_flag
=yes
5336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5347 if ac_fn_cxx_try_compile
"$LINENO"; then :
5348 ac_cv_prog_cxx_g
=yes
5351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5362 if ac_fn_cxx_try_compile
"$LINENO"; then :
5365 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5378 if ac_fn_cxx_try_compile
"$LINENO"; then :
5379 ac_cv_prog_cxx_g
=yes
5381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5386 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5389 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5390 if test "$ac_test_CXXFLAGS" = set; then
5391 CXXFLAGS
=$ac_save_CXXFLAGS
5392 elif test $ac_cv_prog_cxx_g = yes; then
5393 if test "$GXX" = yes; then
5399 if test "$GXX" = yes; then
5406 ac_cpp
='$CPP $CPPFLAGS'
5407 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5412 # We must set the default linker to the linker used by gcc for the correct
5413 # operation of libtool. If LD is not defined and we are using gcc, try to
5414 # set the LD default to the ld used by gcc.
5415 if test -z "$LD"; then
5416 if test "$GCC" = yes; then
5419 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5421 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5423 case $gcc_prog_ld in
5424 # Accept absolute paths.
5425 [\\/]* |
[A-Za-z
]:[\\/]*)
5426 LD
="$gcc_prog_ld" ;;
5431 # Check whether -static-libstdc++ -static-libgcc is supported.
5433 if test "$GCC" = yes; then
5434 saved_LDFLAGS
="$LDFLAGS"
5436 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5438 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5440 ac_cpp
='$CXXCPP $CPPFLAGS'
5441 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5449 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5450 #error -static-libstdc++ not implemented
5454 if ac_fn_cxx_try_link
"$LINENO"; then :
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5456 $as_echo "yes" >&6; }; have_static_libs
=yes
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5461 rm -f core conftest.err conftest.
$ac_objext \
5462 conftest
$ac_exeext conftest.
$ac_ext
5464 ac_cpp
='$CPP $CPPFLAGS'
5465 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5470 LDFLAGS
="$saved_LDFLAGS"
5476 if test -n "$ac_tool_prefix"; then
5477 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5478 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_prog_GNATBIND+:} false
; then :
5482 $as_echo_n "(cached) " >&6
5484 if test -n "$GNATBIND"; then
5485 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5491 test -z "$as_dir" && as_dir
=.
5492 for ac_exec_ext
in '' $ac_executable_extensions; do
5493 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5494 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 GNATBIND
=$ac_cv_prog_GNATBIND
5505 if test -n "$GNATBIND"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5507 $as_echo "$GNATBIND" >&6; }
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5515 if test -z "$ac_cv_prog_GNATBIND"; then
5516 ac_ct_GNATBIND
=$GNATBIND
5517 # Extract the first word of "gnatbind", so it can be a program name with args.
5518 set dummy gnatbind
; ac_word
=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5522 $as_echo_n "(cached) " >&6
5524 if test -n "$ac_ct_GNATBIND"; then
5525 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5531 test -z "$as_dir" && as_dir
=.
5532 for ac_exec_ext
in '' $ac_executable_extensions; do
5533 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5545 if test -n "$ac_ct_GNATBIND"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5547 $as_echo "$ac_ct_GNATBIND" >&6; }
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5553 if test "x$ac_ct_GNATBIND" = x
; then
5556 case $cross_compiling:$ac_tool_warned in
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned
=yes ;;
5562 GNATBIND
=$ac_ct_GNATBIND
5565 GNATBIND
="$ac_cv_prog_GNATBIND"
5568 if test -n "$ac_tool_prefix"; then
5569 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5570 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5574 $as_echo_n "(cached) " >&6
5576 if test -n "$GNATMAKE"; then
5577 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5583 test -z "$as_dir" && as_dir
=.
5584 for ac_exec_ext
in '' $ac_executable_extensions; do
5585 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 GNATMAKE
=$ac_cv_prog_GNATMAKE
5597 if test -n "$GNATMAKE"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5599 $as_echo "$GNATMAKE" >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5607 if test -z "$ac_cv_prog_GNATMAKE"; then
5608 ac_ct_GNATMAKE
=$GNATMAKE
5609 # Extract the first word of "gnatmake", so it can be a program name with args.
5610 set dummy gnatmake
; ac_word
=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5614 $as_echo_n "(cached) " >&6
5616 if test -n "$ac_ct_GNATMAKE"; then
5617 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5623 test -z "$as_dir" && as_dir
=.
5624 for ac_exec_ext
in '' $ac_executable_extensions; do
5625 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5637 if test -n "$ac_ct_GNATMAKE"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5639 $as_echo "$ac_ct_GNATMAKE" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5645 if test "x$ac_ct_GNATMAKE" = x
; then
5648 case $cross_compiling:$ac_tool_warned in
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5652 ac_tool_warned
=yes ;;
5654 GNATMAKE
=$ac_ct_GNATMAKE
5657 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5661 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5662 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5663 $as_echo_n "(cached) " >&6
5665 cat >conftest.adb
<<EOF
5666 pragma Warnings (Off);
5668 pragma Warnings (On);
5669 use type System.CRTL.int64;
5670 procedure conftest is begin null; end conftest;
5672 acx_cv_cc_gcc_supports_ada
=no
5673 # There is a bug in old released versions of GCC which causes the
5674 # driver to exit successfully when the appropriate language module
5675 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5676 # Therefore we must check for the error message as well as an
5677 # unsuccessful exit.
5678 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5679 # given a .adb file, but produce no object file. So we must check
5680 # if an object file was really produced to guard against this.
5681 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5682 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5683 acx_cv_cc_gcc_supports_ada
=yes
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5688 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5690 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5698 if test -n "$ac_tool_prefix"; then
5699 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5700 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_prog_GDC+:} false
; then :
5704 $as_echo_n "(cached) " >&6
5706 if test -n "$GDC"; then
5707 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5713 test -z "$as_dir" && as_dir
=.
5714 for ac_exec_ext
in '' $ac_executable_extensions; do
5715 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5716 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 if test -n "$GDC"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5729 $as_echo "$GDC" >&6; }
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5737 if test -z "$ac_cv_prog_GDC"; then
5739 # Extract the first word of "gdc", so it can be a program name with args.
5740 set dummy gdc
; ac_word
=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5744 $as_echo_n "(cached) " >&6
5746 if test -n "$ac_ct_GDC"; then
5747 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5753 test -z "$as_dir" && as_dir
=.
5754 for ac_exec_ext
in '' $ac_executable_extensions; do
5755 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_ac_ct_GDC
="gdc"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5767 if test -n "$ac_ct_GDC"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5769 $as_echo "$ac_ct_GDC" >&6; }
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5775 if test "x$ac_ct_GDC" = x
; then
5778 case $cross_compiling:$ac_tool_warned in
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5782 ac_tool_warned
=yes ;;
5787 GDC
="$ac_cv_prog_GDC"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5791 $as_echo_n "checking whether the D compiler works... " >&6; }
5792 if ${acx_cv_d_compiler_works+:} false
; then :
5793 $as_echo_n "(cached) " >&6
5795 cat >conftest.d
<<EOF
5796 module conftest; int main() { return 0; }
5798 acx_cv_d_compiler_works
=no
5799 if test "x$GDC" != xno
; then
5800 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5801 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5802 acx_cv_d_compiler_works
=yes
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5808 $as_echo "$acx_cv_d_compiler_works" >&6; }
5809 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5815 for ac_prog
in cargo
5817 # Extract the first word of "$ac_prog", so it can be a program name with args.
5818 set dummy
$ac_prog; ac_word
=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_prog_CARGO+:} false
; then :
5822 $as_echo_n "(cached) " >&6
5824 if test -n "$CARGO"; then
5825 ac_cv_prog_CARGO
="$CARGO" # Let the user override the test.
5827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5831 test -z "$as_dir" && as_dir
=.
5832 for ac_exec_ext
in '' $ac_executable_extensions; do
5833 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5834 ac_cv_prog_CARGO
="$ac_prog"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 CARGO
=$ac_cv_prog_CARGO
5845 if test -n "$CARGO"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5847 $as_echo "$CARGO" >&6; }
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5854 test -n "$CARGO" && break
5856 test -n "$CARGO" || CARGO
="no"
5858 if test "x$CARGO" != xno
; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5864 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5865 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5866 $as_echo_n "(cached) " >&6
5870 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5871 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5872 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5875 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5878 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5879 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5882 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5889 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5890 do_compare
="$gcc_cv_prog_cmp_skip"
5894 # Check whether --enable-bootstrap was given.
5895 if test "${enable_bootstrap+set}" = set; then :
5896 enableval
=$enable_bootstrap;
5898 enable_bootstrap
=default
5902 # Issue errors and warnings for invalid/strange bootstrap combinations.
5903 if test -r $srcdir/gcc
/configure
; then
5909 case "$have_compiler:$host:$target:$enable_bootstrap" in
5912 # Default behavior. Enable bootstrap if we have a compiler
5913 # and we are in a native configuration.
5914 yes:$build:$build:default
)
5915 enable_bootstrap
=yes ;;
5918 enable_bootstrap
=no
;;
5920 # We have a compiler and we are in a native configuration, bootstrap is ok
5921 yes:$build:$build:yes)
5924 # Other configurations, but we have a compiler. Assume the user knows
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5928 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5931 # No compiler: if they passed --enable-bootstrap explicitly, fail
5933 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5935 # Fail if wrong command line
5937 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5941 # When bootstrapping with GCC, build stage 1 in C++14 mode to ensure that a
5942 # C++14 compiler can still start the bootstrap. Otherwise, if building GCC,
5943 # require C++14 (or higher).
5944 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5945 CXX
="$CXX -std=c++14"
5946 elif test "$have_compiler" = yes; then
5947 ax_cxx_compile_alternatives
="14 1y" ax_cxx_compile_cxx14_required
=true
5949 ac_cpp
='$CXXCPP $CPPFLAGS'
5950 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5951 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
5956 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
5957 if ${ax_cv_cxx_compile_cxx14+:} false
; then :
5958 $as_echo_n "(cached) " >&6
5960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5964 // If the compiler admits that it is not ready for C++11, why torture it?
5965 // Hopefully, this will speed up the test.
5969 #error "This is not a C++ compiler"
5971 #elif __cplusplus < 201103L
5973 #error "This is not a C++11 compiler"
5980 namespace test_static_assert
5983 template <typename T>
5986 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5991 namespace test_final_override
6000 struct Derived : public Base
6002 virtual ~Derived() override {}
6003 virtual void f() override {}
6008 namespace test_double_right_angle_brackets
6011 template < typename T >
6014 typedef check<void> single_type;
6015 typedef check<check<void>> double_type;
6016 typedef check<check<check<void>>> triple_type;
6017 typedef check<check<check<check<void>>>> quadruple_type;
6021 namespace test_decltype
6034 namespace test_type_deduction
6037 template < typename T1, typename T2 >
6040 static const bool value = false;
6043 template < typename T >
6044 struct is_same<T, T>
6046 static const bool value = true;
6049 template < typename T1, typename T2 >
6051 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6057 test(const int c, volatile int v)
6059 static_assert(is_same<int, decltype(0)>::value == true, "");
6060 static_assert(is_same<int, decltype(c)>::value == false, "");
6061 static_assert(is_same<int, decltype(v)>::value == false, "");
6064 auto sumi = ac + av + 'x';
6065 auto sumf = ac + av + 1.0;
6066 static_assert(is_same<int, decltype(ac)>::value == true, "");
6067 static_assert(is_same<int, decltype(av)>::value == true, "");
6068 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6069 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6070 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6071 return (sumf > 0.0) ? sumi : add(c, v);
6076 namespace test_noexcept
6079 int f() { return 0; }
6080 int g() noexcept { return 0; }
6082 static_assert(noexcept(f()) == false, "");
6083 static_assert(noexcept(g()) == true, "");
6087 namespace test_constexpr
6090 template < typename CharT >
6091 unsigned long constexpr
6092 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6094 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6097 template < typename CharT >
6098 unsigned long constexpr
6099 strlen_c(const CharT *const s) noexcept
6101 return strlen_c_r(s, 0UL);
6104 static_assert(strlen_c("") == 0UL, "");
6105 static_assert(strlen_c("1") == 1UL, "");
6106 static_assert(strlen_c("example") == 7UL, "");
6107 static_assert(strlen_c("another\0example") == 7UL, "");
6111 namespace test_rvalue_references
6117 static constexpr int value = N;
6120 answer<1> f(int&) { return answer<1>(); }
6121 answer<2> f(const int&) { return answer<2>(); }
6122 answer<3> f(int&&) { return answer<3>(); }
6129 static_assert(decltype(f(i))::value == 1, "");
6130 static_assert(decltype(f(c))::value == 2, "");
6131 static_assert(decltype(f(0))::value == 3, "");
6136 namespace test_uniform_initialization
6141 static const int zero {};
6142 static const int one {1};
6145 static_assert(test::zero == 0, "");
6146 static_assert(test::one == 1, "");
6150 namespace test_lambdas
6156 auto lambda1 = [](){};
6157 auto lambda2 = lambda1;
6165 auto a = [](int i, int j){ return i + j; }(1, 2);
6166 auto b = []() -> int { return '0'; }();
6167 auto c = [=](){ return a + b; }();
6168 auto d = [&](){ return c; }();
6169 auto e = [a, &b](int x) mutable {
6170 const auto identity = [](int y){ return y; };
6171 for (auto i = 0; i < a; ++i)
6173 return x + identity(a + b);
6175 return a + b + c + d + e;
6181 const auto nullary = [](){ return 0; };
6182 const auto unary = [](int x){ return x; };
6183 using nullary_t = decltype(nullary);
6184 using unary_t = decltype(unary);
6185 const auto higher1st = [](nullary_t f){ return f(); };
6186 const auto higher2nd = [unary](nullary_t f1){
6187 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6189 return higher1st(nullary) + higher2nd(nullary)(unary);
6194 namespace test_variadic_templates
6200 template <int N0, int... N1toN>
6201 struct sum<N0, N1toN...>
6203 static constexpr auto value = N0 + sum<N1toN...>::value;
6209 static constexpr auto value = 0;
6212 static_assert(sum<>::value == 0, "");
6213 static_assert(sum<1>::value == 1, "");
6214 static_assert(sum<23>::value == 23, "");
6215 static_assert(sum<1, 2>::value == 3, "");
6216 static_assert(sum<5, 5, 11>::value == 21, "");
6217 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6221 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6222 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6224 namespace test_template_alias_sfinae
6229 template<typename T>
6230 using member = typename T::member_type;
6232 template<typename T>
6235 template<typename T>
6236 void func(member<T>*) {}
6240 void test() { func<foo>(0); }
6244 } // namespace cxx11
6246 #endif // __cplusplus >= 201103L
6251 // If the compiler admits that it is not ready for C++14, why torture it?
6252 // Hopefully, this will speed up the test.
6256 #error "This is not a C++ compiler"
6258 #elif __cplusplus < 201402L
6260 #error "This is not a C++14 compiler"
6267 namespace test_polymorphic_lambdas
6273 const auto lambda = [](auto&&... args){
6274 const auto istiny = [](auto x){
6275 return (sizeof(x) == 1UL) ? 1 : 0;
6277 const int aretiny[] = { istiny(args)... };
6280 return lambda(1, 1L, 1.0f, '1');
6285 namespace test_binary_literals
6288 constexpr auto ivii = 0b0000000000101010;
6289 static_assert(ivii == 42, "wrong value");
6293 namespace test_generalized_constexpr
6296 template < typename CharT >
6297 constexpr unsigned long
6298 strlen_c(const CharT *const s) noexcept
6301 for (auto p = s; *p; ++p)
6306 static_assert(strlen_c("") == 0UL, "");
6307 static_assert(strlen_c("x") == 1UL, "");
6308 static_assert(strlen_c("test") == 4UL, "");
6309 static_assert(strlen_c("another\0test") == 7UL, "");
6313 namespace test_lambda_init_capture
6320 const auto lambda1 = [a = x](int b){ return a + b; };
6321 const auto lambda2 = [a = lambda1(x)](){ return a; };
6327 namespace test_digit_separators
6330 constexpr auto ten_million = 100'000'000;
6331 static_assert(ten_million == 100000000, "");
6335 namespace test_return_type_deduction
6338 auto f(int& x) { return x; }
6339 decltype(auto) g(int& x) { return x; }
6341 template < typename T1, typename T2 >
6344 static constexpr auto value = false;
6347 template < typename T >
6348 struct is_same<T, T>
6350 static constexpr auto value = true;
6357 static_assert(is_same<int, decltype(f(x))>::value, "");
6358 static_assert(is_same<int&, decltype(g(x))>::value, "");
6364 } // namespace cxx14
6366 #endif // __cplusplus >= 201402L
6371 if ac_fn_cxx_try_compile
"$LINENO"; then :
6372 ax_cv_cxx_compile_cxx14
=yes
6374 ax_cv_cxx_compile_cxx14
=no
6376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
6379 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
6380 if test x
$ax_cv_cxx_compile_cxx14 = xyes
; then
6384 if test x
$ac_success = xno
; then
6385 for alternative
in ${ax_cxx_compile_alternatives}; do
6386 switch
="-std=gnu++${alternative}"
6387 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6389 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6390 if eval \
${$cachevar+:} false
; then :
6391 $as_echo_n "(cached) " >&6
6395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6399 // If the compiler admits that it is not ready for C++11, why torture it?
6400 // Hopefully, this will speed up the test.
6404 #error "This is not a C++ compiler"
6406 #elif __cplusplus < 201103L
6408 #error "This is not a C++11 compiler"
6415 namespace test_static_assert
6418 template <typename T>
6421 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6426 namespace test_final_override
6435 struct Derived : public Base
6437 virtual ~Derived() override {}
6438 virtual void f() override {}
6443 namespace test_double_right_angle_brackets
6446 template < typename T >
6449 typedef check<void> single_type;
6450 typedef check<check<void>> double_type;
6451 typedef check<check<check<void>>> triple_type;
6452 typedef check<check<check<check<void>>>> quadruple_type;
6456 namespace test_decltype
6469 namespace test_type_deduction
6472 template < typename T1, typename T2 >
6475 static const bool value = false;
6478 template < typename T >
6479 struct is_same<T, T>
6481 static const bool value = true;
6484 template < typename T1, typename T2 >
6486 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6492 test(const int c, volatile int v)
6494 static_assert(is_same<int, decltype(0)>::value == true, "");
6495 static_assert(is_same<int, decltype(c)>::value == false, "");
6496 static_assert(is_same<int, decltype(v)>::value == false, "");
6499 auto sumi = ac + av + 'x';
6500 auto sumf = ac + av + 1.0;
6501 static_assert(is_same<int, decltype(ac)>::value == true, "");
6502 static_assert(is_same<int, decltype(av)>::value == true, "");
6503 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6504 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6505 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6506 return (sumf > 0.0) ? sumi : add(c, v);
6511 namespace test_noexcept
6514 int f() { return 0; }
6515 int g() noexcept { return 0; }
6517 static_assert(noexcept(f()) == false, "");
6518 static_assert(noexcept(g()) == true, "");
6522 namespace test_constexpr
6525 template < typename CharT >
6526 unsigned long constexpr
6527 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6529 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6532 template < typename CharT >
6533 unsigned long constexpr
6534 strlen_c(const CharT *const s) noexcept
6536 return strlen_c_r(s, 0UL);
6539 static_assert(strlen_c("") == 0UL, "");
6540 static_assert(strlen_c("1") == 1UL, "");
6541 static_assert(strlen_c("example") == 7UL, "");
6542 static_assert(strlen_c("another\0example") == 7UL, "");
6546 namespace test_rvalue_references
6552 static constexpr int value = N;
6555 answer<1> f(int&) { return answer<1>(); }
6556 answer<2> f(const int&) { return answer<2>(); }
6557 answer<3> f(int&&) { return answer<3>(); }
6564 static_assert(decltype(f(i))::value == 1, "");
6565 static_assert(decltype(f(c))::value == 2, "");
6566 static_assert(decltype(f(0))::value == 3, "");
6571 namespace test_uniform_initialization
6576 static const int zero {};
6577 static const int one {1};
6580 static_assert(test::zero == 0, "");
6581 static_assert(test::one == 1, "");
6585 namespace test_lambdas
6591 auto lambda1 = [](){};
6592 auto lambda2 = lambda1;
6600 auto a = [](int i, int j){ return i + j; }(1, 2);
6601 auto b = []() -> int { return '0'; }();
6602 auto c = [=](){ return a + b; }();
6603 auto d = [&](){ return c; }();
6604 auto e = [a, &b](int x) mutable {
6605 const auto identity = [](int y){ return y; };
6606 for (auto i = 0; i < a; ++i)
6608 return x + identity(a + b);
6610 return a + b + c + d + e;
6616 const auto nullary = [](){ return 0; };
6617 const auto unary = [](int x){ return x; };
6618 using nullary_t = decltype(nullary);
6619 using unary_t = decltype(unary);
6620 const auto higher1st = [](nullary_t f){ return f(); };
6621 const auto higher2nd = [unary](nullary_t f1){
6622 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6624 return higher1st(nullary) + higher2nd(nullary)(unary);
6629 namespace test_variadic_templates
6635 template <int N0, int... N1toN>
6636 struct sum<N0, N1toN...>
6638 static constexpr auto value = N0 + sum<N1toN...>::value;
6644 static constexpr auto value = 0;
6647 static_assert(sum<>::value == 0, "");
6648 static_assert(sum<1>::value == 1, "");
6649 static_assert(sum<23>::value == 23, "");
6650 static_assert(sum<1, 2>::value == 3, "");
6651 static_assert(sum<5, 5, 11>::value == 21, "");
6652 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6656 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6657 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6659 namespace test_template_alias_sfinae
6664 template<typename T>
6665 using member = typename T::member_type;
6667 template<typename T>
6670 template<typename T>
6671 void func(member<T>*) {}
6675 void test() { func<foo>(0); }
6679 } // namespace cxx11
6681 #endif // __cplusplus >= 201103L
6686 // If the compiler admits that it is not ready for C++14, why torture it?
6687 // Hopefully, this will speed up the test.
6691 #error "This is not a C++ compiler"
6693 #elif __cplusplus < 201402L
6695 #error "This is not a C++14 compiler"
6702 namespace test_polymorphic_lambdas
6708 const auto lambda = [](auto&&... args){
6709 const auto istiny = [](auto x){
6710 return (sizeof(x) == 1UL) ? 1 : 0;
6712 const int aretiny[] = { istiny(args)... };
6715 return lambda(1, 1L, 1.0f, '1');
6720 namespace test_binary_literals
6723 constexpr auto ivii = 0b0000000000101010;
6724 static_assert(ivii == 42, "wrong value");
6728 namespace test_generalized_constexpr
6731 template < typename CharT >
6732 constexpr unsigned long
6733 strlen_c(const CharT *const s) noexcept
6736 for (auto p = s; *p; ++p)
6741 static_assert(strlen_c("") == 0UL, "");
6742 static_assert(strlen_c("x") == 1UL, "");
6743 static_assert(strlen_c("test") == 4UL, "");
6744 static_assert(strlen_c("another\0test") == 7UL, "");
6748 namespace test_lambda_init_capture
6755 const auto lambda1 = [a = x](int b){ return a + b; };
6756 const auto lambda2 = [a = lambda1(x)](){ return a; };
6762 namespace test_digit_separators
6765 constexpr auto ten_million = 100'000'000;
6766 static_assert(ten_million == 100000000, "");
6770 namespace test_return_type_deduction
6773 auto f(int& x) { return x; }
6774 decltype(auto) g(int& x) { return x; }
6776 template < typename T1, typename T2 >
6779 static constexpr auto value = false;
6782 template < typename T >
6783 struct is_same<T, T>
6785 static constexpr auto value = true;
6792 static_assert(is_same<int, decltype(f(x))>::value, "");
6793 static_assert(is_same<int&, decltype(g(x))>::value, "");
6799 } // namespace cxx14
6801 #endif // __cplusplus >= 201402L
6806 if ac_fn_cxx_try_compile
"$LINENO"; then :
6811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6814 eval ac_res
=\$
$cachevar
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6816 $as_echo "$ac_res" >&6; }
6817 if eval test x\$
$cachevar = xyes
; then
6819 if test -n "$CXXCPP" ; then
6820 CXXCPP
="$CXXCPP $switch"
6828 if test x
$ac_success = xno
; then
6829 for alternative
in ${ax_cxx_compile_alternatives}; do
6830 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6831 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_
$switch" | $as_tr_sh`
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++14 features with
$switch" >&5
6833 $as_echo_n "checking whether
$CXX supports C
++14 features with
$switch...
" >&6; }
6834 if eval \${$cachevar+:} false; then :
6835 $as_echo_n "(cached
) " >&6
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6843 // If the compiler admits that it is not ready for C++11, why torture it?
6844 // Hopefully, this will speed up the test.
6848 #error "This is not a C
++ compiler
"
6850 #elif __cplusplus < 201103L
6852 #error "This is not a C
++11 compiler
"
6859 namespace test_static_assert
6862 template <typename T>
6865 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6870 namespace test_final_override
6879 struct Derived : public Base
6881 virtual ~Derived() override {}
6882 virtual void f() override {}
6887 namespace test_double_right_angle_brackets
6890 template < typename T >
6893 typedef check<void> single_type;
6894 typedef check<check<void>> double_type;
6895 typedef check<check<check<void>>> triple_type;
6896 typedef check<check<check<check<void>>>> quadruple_type;
6900 namespace test_decltype
6913 namespace test_type_deduction
6916 template < typename T1, typename T2 >
6919 static const bool value = false;
6922 template < typename T >
6923 struct is_same<T, T>
6925 static const bool value = true;
6928 template < typename T1, typename T2 >
6930 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6936 test(const int c, volatile int v)
6938 static_assert(is_same<int, decltype(0)>::value == true, "");
6939 static_assert(is_same<int, decltype(c)>::value == false, "");
6940 static_assert(is_same<int, decltype(v)>::value == false, "");
6943 auto sumi = ac + av + 'x';
6944 auto sumf = ac + av + 1.0;
6945 static_assert(is_same<int, decltype(ac)>::value == true, "");
6946 static_assert(is_same<int, decltype(av)>::value == true, "");
6947 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6948 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6949 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6950 return (sumf > 0.0) ? sumi : add(c, v);
6955 namespace test_noexcept
6958 int f() { return 0; }
6959 int g() noexcept { return 0; }
6961 static_assert(noexcept(f()) == false, "");
6962 static_assert(noexcept(g()) == true, "");
6966 namespace test_constexpr
6969 template < typename CharT >
6970 unsigned long constexpr
6971 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6973 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6976 template < typename CharT >
6977 unsigned long constexpr
6978 strlen_c(const CharT *const s) noexcept
6980 return strlen_c_r(s, 0UL);
6983 static_assert(strlen_c("") == 0UL, "");
6984 static_assert(strlen_c("1") == 1UL, "");
6985 static_assert(strlen_c("example
") == 7UL, "");
6986 static_assert(strlen_c("another\
0example
") == 7UL, "");
6990 namespace test_rvalue_references
6996 static constexpr int value = N;
6999 answer<1> f(int&) { return answer<1>(); }
7000 answer<2> f(const int&) { return answer<2>(); }
7001 answer<3> f(int&&) { return answer<3>(); }
7008 static_assert(decltype(f(i))::value == 1, "");
7009 static_assert(decltype(f(c))::value == 2, "");
7010 static_assert(decltype(f(0))::value == 3, "");
7015 namespace test_uniform_initialization
7020 static const int zero {};
7021 static const int one {1};
7024 static_assert(test::zero == 0, "");
7025 static_assert(test::one == 1, "");
7029 namespace test_lambdas
7035 auto lambda1 = [](){};
7036 auto lambda2 = lambda1;
7044 auto a = [](int i, int j){ return i + j; }(1, 2);
7045 auto b = []() -> int { return '0'; }();
7046 auto c = [=](){ return a + b; }();
7047 auto d = [&](){ return c; }();
7048 auto e = [a, &b](int x) mutable {
7049 const auto identity = [](int y){ return y; };
7050 for (auto i = 0; i < a; ++i)
7052 return x + identity(a + b);
7054 return a + b + c + d + e;
7060 const auto nullary = [](){ return 0; };
7061 const auto unary = [](int x){ return x; };
7062 using nullary_t = decltype(nullary);
7063 using unary_t = decltype(unary);
7064 const auto higher1st = [](nullary_t f){ return f(); };
7065 const auto higher2nd = [unary](nullary_t f1){
7066 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7068 return higher1st(nullary) + higher2nd(nullary)(unary);
7073 namespace test_variadic_templates
7079 template <int N0, int... N1toN>
7080 struct sum<N0, N1toN...>
7082 static constexpr auto value = N0 + sum<N1toN...>::value;
7088 static constexpr auto value = 0;
7091 static_assert(sum<>::value == 0, "");
7092 static_assert(sum<1>::value == 1, "");
7093 static_assert(sum<23>::value == 23, "");
7094 static_assert(sum<1, 2>::value == 3, "");
7095 static_assert(sum<5, 5, 11>::value == 21, "");
7096 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7100 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7101 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7103 namespace test_template_alias_sfinae
7108 template<typename T>
7109 using member = typename T::member_type;
7111 template<typename T>
7114 template<typename T>
7115 void func(member<T>*) {}
7119 void test() { func<foo>(0); }
7123 } // namespace cxx11
7125 #endif // __cplusplus >= 201103L
7130 // If the compiler admits that it is not ready for C++14, why torture it?
7131 // Hopefully, this will speed up the test.
7135 #error "This is not a C
++ compiler
"
7137 #elif __cplusplus < 201402L
7139 #error "This is not a C
++14 compiler
"
7146 namespace test_polymorphic_lambdas
7152 const auto lambda = [](auto&&... args){
7153 const auto istiny = [](auto x){
7154 return (sizeof(x) == 1UL) ? 1 : 0;
7156 const int aretiny[] = { istiny(args)... };
7159 return lambda(1, 1L, 1.0f, '1');
7164 namespace test_binary_literals
7167 constexpr auto ivii = 0b0000000000101010;
7168 static_assert(ivii == 42, "wrong value
");
7172 namespace test_generalized_constexpr
7175 template < typename CharT >
7176 constexpr unsigned long
7177 strlen_c(const CharT *const s) noexcept
7180 for (auto p = s; *p; ++p)
7185 static_assert(strlen_c("") == 0UL, "");
7186 static_assert(strlen_c("x
") == 1UL, "");
7187 static_assert(strlen_c("test") == 4UL, "");
7188 static_assert(strlen_c("another\
0test") == 7UL, "");
7192 namespace test_lambda_init_capture
7199 const auto lambda1 = [a = x](int b){ return a + b; };
7200 const auto lambda2 = [a = lambda1(x)](){ return a; };
7206 namespace test_digit_separators
7209 constexpr auto ten_million = 100'000'000;
7210 static_assert(ten_million == 100000000, "");
7214 namespace test_return_type_deduction
7217 auto f(int& x) { return x; }
7218 decltype(auto) g(int& x) { return x; }
7220 template < typename T1, typename T2 >
7223 static constexpr auto value = false;
7226 template < typename T >
7227 struct is_same<T, T>
7229 static constexpr auto value = true;
7236 static_assert(is_same<int, decltype(f(x))>::value, "");
7237 static_assert(is_same<int&, decltype(g(x))>::value, "");
7243 } // namespace cxx14
7245 #endif // __cplusplus >= 201402L
7250 if ac_fn_cxx_try_compile "$LINENO"; then :
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258 eval ac_res=\$$cachevar
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7260 $as_echo "$ac_res" >&6; }
7261 if eval test x\$$cachevar = xyes; then
7263 if test -n "$CXXCPP" ; then
7264 CXXCPP="$CXXCPP $switch"
7270 if test x$ac_success = xyes; then
7277 ac_cpp='$CPP $CPPFLAGS'
7278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282 if test x$ax_cxx_compile_cxx14_required = xtrue; then
7283 if test x$ac_success = xno; then
7284 as_fn_error $? "*** A compiler with support
for C
++14 language features is required.
" "$LINENO" 5
7287 if test x$ac_success = xno; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++14 support was found
" >&5
7290 $as_echo "$as_me: No compiler with C
++14 support was found
" >&6;}
7294 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
7300 if test "${build}" != "${host}"; then
7301 ax_cxx_compile_alternatives
="14 1y" ax_cxx_compile_cxx14_required
=true
7303 ac_cpp
='$CXXCPP $CPPFLAGS'
7304 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7308 ax_cv_cxx_compile_cxx14_orig_cxx
="$CXX"
7309 ax_cv_cxx_compile_cxx14_orig_cxxflags
="$CXXFLAGS"
7310 ax_cv_cxx_compile_cxx14_orig_cppflags
="$CPPFLAGS"
7311 CXX
="$CXX_FOR_BUILD"
7312 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
7313 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
7315 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
7316 if ${ax_cv_cxx_compile_cxx14_FOR_BUILD+:} false
; then :
7317 $as_echo_n "(cached) " >&6
7319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7323 // If the compiler admits that it is not ready for C++11, why torture it?
7324 // Hopefully, this will speed up the test.
7328 #error "This is not a C++ compiler"
7330 #elif __cplusplus < 201103L
7332 #error "This is not a C++11 compiler"
7339 namespace test_static_assert
7342 template <typename T>
7345 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7350 namespace test_final_override
7359 struct Derived : public Base
7361 virtual ~Derived() override {}
7362 virtual void f() override {}
7367 namespace test_double_right_angle_brackets
7370 template < typename T >
7373 typedef check<void> single_type;
7374 typedef check<check<void>> double_type;
7375 typedef check<check<check<void>>> triple_type;
7376 typedef check<check<check<check<void>>>> quadruple_type;
7380 namespace test_decltype
7393 namespace test_type_deduction
7396 template < typename T1, typename T2 >
7399 static const bool value = false;
7402 template < typename T >
7403 struct is_same<T, T>
7405 static const bool value = true;
7408 template < typename T1, typename T2 >
7410 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7416 test(const int c, volatile int v)
7418 static_assert(is_same<int, decltype(0)>::value == true, "");
7419 static_assert(is_same<int, decltype(c)>::value == false, "");
7420 static_assert(is_same<int, decltype(v)>::value == false, "");
7423 auto sumi = ac + av + 'x';
7424 auto sumf = ac + av + 1.0;
7425 static_assert(is_same<int, decltype(ac)>::value == true, "");
7426 static_assert(is_same<int, decltype(av)>::value == true, "");
7427 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7428 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7429 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7430 return (sumf > 0.0) ? sumi : add(c, v);
7435 namespace test_noexcept
7438 int f() { return 0; }
7439 int g() noexcept { return 0; }
7441 static_assert(noexcept(f()) == false, "");
7442 static_assert(noexcept(g()) == true, "");
7446 namespace test_constexpr
7449 template < typename CharT >
7450 unsigned long constexpr
7451 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7453 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7456 template < typename CharT >
7457 unsigned long constexpr
7458 strlen_c(const CharT *const s) noexcept
7460 return strlen_c_r(s, 0UL);
7463 static_assert(strlen_c("") == 0UL, "");
7464 static_assert(strlen_c("1") == 1UL, "");
7465 static_assert(strlen_c("example") == 7UL, "");
7466 static_assert(strlen_c("another\0example") == 7UL, "");
7470 namespace test_rvalue_references
7476 static constexpr int value = N;
7479 answer<1> f(int&) { return answer<1>(); }
7480 answer<2> f(const int&) { return answer<2>(); }
7481 answer<3> f(int&&) { return answer<3>(); }
7488 static_assert(decltype(f(i))::value == 1, "");
7489 static_assert(decltype(f(c))::value == 2, "");
7490 static_assert(decltype(f(0))::value == 3, "");
7495 namespace test_uniform_initialization
7500 static const int zero {};
7501 static const int one {1};
7504 static_assert(test::zero == 0, "");
7505 static_assert(test::one == 1, "");
7509 namespace test_lambdas
7515 auto lambda1 = [](){};
7516 auto lambda2 = lambda1;
7524 auto a = [](int i, int j){ return i + j; }(1, 2);
7525 auto b = []() -> int { return '0'; }();
7526 auto c = [=](){ return a + b; }();
7527 auto d = [&](){ return c; }();
7528 auto e = [a, &b](int x) mutable {
7529 const auto identity = [](int y){ return y; };
7530 for (auto i = 0; i < a; ++i)
7532 return x + identity(a + b);
7534 return a + b + c + d + e;
7540 const auto nullary = [](){ return 0; };
7541 const auto unary = [](int x){ return x; };
7542 using nullary_t = decltype(nullary);
7543 using unary_t = decltype(unary);
7544 const auto higher1st = [](nullary_t f){ return f(); };
7545 const auto higher2nd = [unary](nullary_t f1){
7546 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7548 return higher1st(nullary) + higher2nd(nullary)(unary);
7553 namespace test_variadic_templates
7559 template <int N0, int... N1toN>
7560 struct sum<N0, N1toN...>
7562 static constexpr auto value = N0 + sum<N1toN...>::value;
7568 static constexpr auto value = 0;
7571 static_assert(sum<>::value == 0, "");
7572 static_assert(sum<1>::value == 1, "");
7573 static_assert(sum<23>::value == 23, "");
7574 static_assert(sum<1, 2>::value == 3, "");
7575 static_assert(sum<5, 5, 11>::value == 21, "");
7576 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7580 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7581 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7583 namespace test_template_alias_sfinae
7588 template<typename T>
7589 using member = typename T::member_type;
7591 template<typename T>
7594 template<typename T>
7595 void func(member<T>*) {}
7599 void test() { func<foo>(0); }
7603 } // namespace cxx11
7605 #endif // __cplusplus >= 201103L
7610 // If the compiler admits that it is not ready for C++14, why torture it?
7611 // Hopefully, this will speed up the test.
7615 #error "This is not a C++ compiler"
7617 #elif __cplusplus < 201402L
7619 #error "This is not a C++14 compiler"
7626 namespace test_polymorphic_lambdas
7632 const auto lambda = [](auto&&... args){
7633 const auto istiny = [](auto x){
7634 return (sizeof(x) == 1UL) ? 1 : 0;
7636 const int aretiny[] = { istiny(args)... };
7639 return lambda(1, 1L, 1.0f, '1');
7644 namespace test_binary_literals
7647 constexpr auto ivii = 0b0000000000101010;
7648 static_assert(ivii == 42, "wrong value");
7652 namespace test_generalized_constexpr
7655 template < typename CharT >
7656 constexpr unsigned long
7657 strlen_c(const CharT *const s) noexcept
7660 for (auto p = s; *p; ++p)
7665 static_assert(strlen_c("") == 0UL, "");
7666 static_assert(strlen_c("x") == 1UL, "");
7667 static_assert(strlen_c("test") == 4UL, "");
7668 static_assert(strlen_c("another\0test") == 7UL, "");
7672 namespace test_lambda_init_capture
7679 const auto lambda1 = [a = x](int b){ return a + b; };
7680 const auto lambda2 = [a = lambda1(x)](){ return a; };
7686 namespace test_digit_separators
7689 constexpr auto ten_million = 100'000'000;
7690 static_assert(ten_million == 100000000, "");
7694 namespace test_return_type_deduction
7697 auto f(int& x) { return x; }
7698 decltype(auto) g(int& x) { return x; }
7700 template < typename T1, typename T2 >
7703 static constexpr auto value = false;
7706 template < typename T >
7707 struct is_same<T, T>
7709 static constexpr auto value = true;
7716 static_assert(is_same<int, decltype(f(x))>::value, "");
7717 static_assert(is_same<int&, decltype(g(x))>::value, "");
7723 } // namespace cxx14
7725 #endif // __cplusplus >= 201402L
7730 if ac_fn_cxx_try_compile
"$LINENO"; then :
7731 ax_cv_cxx_compile_cxx14_FOR_BUILD
=yes
7733 ax_cv_cxx_compile_cxx14_FOR_BUILD
=no
7735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14_FOR_BUILD" >&5
7738 $as_echo "$ax_cv_cxx_compile_cxx14_FOR_BUILD" >&6; }
7739 if test x
$ax_cv_cxx_compile_cxx14_FOR_BUILD = xyes
; then
7743 if test x
$ac_success = xno
; then
7744 for alternative
in ${ax_cxx_compile_alternatives}; do
7745 switch
="-std=gnu++${alternative}"
7746 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
7748 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
7749 if eval \
${$cachevar+:} false
; then :
7750 $as_echo_n "(cached) " >&6
7754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7758 // If the compiler admits that it is not ready for C++11, why torture it?
7759 // Hopefully, this will speed up the test.
7763 #error "This is not a C++ compiler"
7765 #elif __cplusplus < 201103L
7767 #error "This is not a C++11 compiler"
7774 namespace test_static_assert
7777 template <typename T>
7780 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7785 namespace test_final_override
7794 struct Derived : public Base
7796 virtual ~Derived() override {}
7797 virtual void f() override {}
7802 namespace test_double_right_angle_brackets
7805 template < typename T >
7808 typedef check<void> single_type;
7809 typedef check<check<void>> double_type;
7810 typedef check<check<check<void>>> triple_type;
7811 typedef check<check<check<check<void>>>> quadruple_type;
7815 namespace test_decltype
7828 namespace test_type_deduction
7831 template < typename T1, typename T2 >
7834 static const bool value = false;
7837 template < typename T >
7838 struct is_same<T, T>
7840 static const bool value = true;
7843 template < typename T1, typename T2 >
7845 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7851 test(const int c, volatile int v)
7853 static_assert(is_same<int, decltype(0)>::value == true, "");
7854 static_assert(is_same<int, decltype(c)>::value == false, "");
7855 static_assert(is_same<int, decltype(v)>::value == false, "");
7858 auto sumi = ac + av + 'x';
7859 auto sumf = ac + av + 1.0;
7860 static_assert(is_same<int, decltype(ac)>::value == true, "");
7861 static_assert(is_same<int, decltype(av)>::value == true, "");
7862 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7863 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7864 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7865 return (sumf > 0.0) ? sumi : add(c, v);
7870 namespace test_noexcept
7873 int f() { return 0; }
7874 int g() noexcept { return 0; }
7876 static_assert(noexcept(f()) == false, "");
7877 static_assert(noexcept(g()) == true, "");
7881 namespace test_constexpr
7884 template < typename CharT >
7885 unsigned long constexpr
7886 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7888 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7891 template < typename CharT >
7892 unsigned long constexpr
7893 strlen_c(const CharT *const s) noexcept
7895 return strlen_c_r(s, 0UL);
7898 static_assert(strlen_c("") == 0UL, "");
7899 static_assert(strlen_c("1") == 1UL, "");
7900 static_assert(strlen_c("example") == 7UL, "");
7901 static_assert(strlen_c("another\0example") == 7UL, "");
7905 namespace test_rvalue_references
7911 static constexpr int value = N;
7914 answer<1> f(int&) { return answer<1>(); }
7915 answer<2> f(const int&) { return answer<2>(); }
7916 answer<3> f(int&&) { return answer<3>(); }
7923 static_assert(decltype(f(i))::value == 1, "");
7924 static_assert(decltype(f(c))::value == 2, "");
7925 static_assert(decltype(f(0))::value == 3, "");
7930 namespace test_uniform_initialization
7935 static const int zero {};
7936 static const int one {1};
7939 static_assert(test::zero == 0, "");
7940 static_assert(test::one == 1, "");
7944 namespace test_lambdas
7950 auto lambda1 = [](){};
7951 auto lambda2 = lambda1;
7959 auto a = [](int i, int j){ return i + j; }(1, 2);
7960 auto b = []() -> int { return '0'; }();
7961 auto c = [=](){ return a + b; }();
7962 auto d = [&](){ return c; }();
7963 auto e = [a, &b](int x) mutable {
7964 const auto identity = [](int y){ return y; };
7965 for (auto i = 0; i < a; ++i)
7967 return x + identity(a + b);
7969 return a + b + c + d + e;
7975 const auto nullary = [](){ return 0; };
7976 const auto unary = [](int x){ return x; };
7977 using nullary_t = decltype(nullary);
7978 using unary_t = decltype(unary);
7979 const auto higher1st = [](nullary_t f){ return f(); };
7980 const auto higher2nd = [unary](nullary_t f1){
7981 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7983 return higher1st(nullary) + higher2nd(nullary)(unary);
7988 namespace test_variadic_templates
7994 template <int N0, int... N1toN>
7995 struct sum<N0, N1toN...>
7997 static constexpr auto value = N0 + sum<N1toN...>::value;
8003 static constexpr auto value = 0;
8006 static_assert(sum<>::value == 0, "");
8007 static_assert(sum<1>::value == 1, "");
8008 static_assert(sum<23>::value == 23, "");
8009 static_assert(sum<1, 2>::value == 3, "");
8010 static_assert(sum<5, 5, 11>::value == 21, "");
8011 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8015 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8016 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8018 namespace test_template_alias_sfinae
8023 template<typename T>
8024 using member = typename T::member_type;
8026 template<typename T>
8029 template<typename T>
8030 void func(member<T>*) {}
8034 void test() { func<foo>(0); }
8038 } // namespace cxx11
8040 #endif // __cplusplus >= 201103L
8045 // If the compiler admits that it is not ready for C++14, why torture it?
8046 // Hopefully, this will speed up the test.
8050 #error "This is not a C++ compiler"
8052 #elif __cplusplus < 201402L
8054 #error "This is not a C++14 compiler"
8061 namespace test_polymorphic_lambdas
8067 const auto lambda = [](auto&&... args){
8068 const auto istiny = [](auto x){
8069 return (sizeof(x) == 1UL) ? 1 : 0;
8071 const int aretiny[] = { istiny(args)... };
8074 return lambda(1, 1L, 1.0f, '1');
8079 namespace test_binary_literals
8082 constexpr auto ivii = 0b0000000000101010;
8083 static_assert(ivii == 42, "wrong value");
8087 namespace test_generalized_constexpr
8090 template < typename CharT >
8091 constexpr unsigned long
8092 strlen_c(const CharT *const s) noexcept
8095 for (auto p = s; *p; ++p)
8100 static_assert(strlen_c("") == 0UL, "");
8101 static_assert(strlen_c("x") == 1UL, "");
8102 static_assert(strlen_c("test") == 4UL, "");
8103 static_assert(strlen_c("another\0test") == 7UL, "");
8107 namespace test_lambda_init_capture
8114 const auto lambda1 = [a = x](int b){ return a + b; };
8115 const auto lambda2 = [a = lambda1(x)](){ return a; };
8121 namespace test_digit_separators
8124 constexpr auto ten_million = 100'000'000;
8125 static_assert(ten_million == 100000000, "");
8129 namespace test_return_type_deduction
8132 auto f(int& x) { return x; }
8133 decltype(auto) g(int& x) { return x; }
8135 template < typename T1, typename T2 >
8138 static constexpr auto value = false;
8141 template < typename T >
8142 struct is_same<T, T>
8144 static constexpr auto value = true;
8151 static_assert(is_same<int, decltype(f(x))>::value, "");
8152 static_assert(is_same<int&, decltype(g(x))>::value, "");
8158 } // namespace cxx14
8160 #endif // __cplusplus >= 201402L
8165 if ac_fn_cxx_try_compile
"$LINENO"; then :
8170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8173 eval ac_res
=\$
$cachevar
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8175 $as_echo "$ac_res" >&6; }
8176 if eval test x\$
$cachevar = xyes
; then
8178 if test -n "$CXXCPP" ; then
8179 CXXCPP
="$CXXCPP $switch"
8187 if test x
$ac_success = xno
; then
8188 for alternative
in ${ax_cxx_compile_alternatives}; do
8189 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8190 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_
$switch" | $as_tr_sh`
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++14 features with
$switch" >&5
8192 $as_echo_n "checking whether
$CXX supports C
++14 features with
$switch...
" >&6; }
8193 if eval \${$cachevar+:} false; then :
8194 $as_echo_n "(cached
) " >&6
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8202 // If the compiler admits that it is not ready for C++11, why torture it?
8203 // Hopefully, this will speed up the test.
8207 #error "This is not a C
++ compiler
"
8209 #elif __cplusplus < 201103L
8211 #error "This is not a C
++11 compiler
"
8218 namespace test_static_assert
8221 template <typename T>
8224 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
8229 namespace test_final_override
8238 struct Derived : public Base
8240 virtual ~Derived() override {}
8241 virtual void f() override {}
8246 namespace test_double_right_angle_brackets
8249 template < typename T >
8252 typedef check<void> single_type;
8253 typedef check<check<void>> double_type;
8254 typedef check<check<check<void>>> triple_type;
8255 typedef check<check<check<check<void>>>> quadruple_type;
8259 namespace test_decltype
8272 namespace test_type_deduction
8275 template < typename T1, typename T2 >
8278 static const bool value = false;
8281 template < typename T >
8282 struct is_same<T, T>
8284 static const bool value = true;
8287 template < typename T1, typename T2 >
8289 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8295 test(const int c, volatile int v)
8297 static_assert(is_same<int, decltype(0)>::value == true, "");
8298 static_assert(is_same<int, decltype(c)>::value == false, "");
8299 static_assert(is_same<int, decltype(v)>::value == false, "");
8302 auto sumi = ac + av + 'x';
8303 auto sumf = ac + av + 1.0;
8304 static_assert(is_same<int, decltype(ac)>::value == true, "");
8305 static_assert(is_same<int, decltype(av)>::value == true, "");
8306 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8307 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8308 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8309 return (sumf > 0.0) ? sumi : add(c, v);
8314 namespace test_noexcept
8317 int f() { return 0; }
8318 int g() noexcept { return 0; }
8320 static_assert(noexcept(f()) == false, "");
8321 static_assert(noexcept(g()) == true, "");
8325 namespace test_constexpr
8328 template < typename CharT >
8329 unsigned long constexpr
8330 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8332 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8335 template < typename CharT >
8336 unsigned long constexpr
8337 strlen_c(const CharT *const s) noexcept
8339 return strlen_c_r(s, 0UL);
8342 static_assert(strlen_c("") == 0UL, "");
8343 static_assert(strlen_c("1") == 1UL, "");
8344 static_assert(strlen_c("example
") == 7UL, "");
8345 static_assert(strlen_c("another\
0example
") == 7UL, "");
8349 namespace test_rvalue_references
8355 static constexpr int value = N;
8358 answer<1> f(int&) { return answer<1>(); }
8359 answer<2> f(const int&) { return answer<2>(); }
8360 answer<3> f(int&&) { return answer<3>(); }
8367 static_assert(decltype(f(i))::value == 1, "");
8368 static_assert(decltype(f(c))::value == 2, "");
8369 static_assert(decltype(f(0))::value == 3, "");
8374 namespace test_uniform_initialization
8379 static const int zero {};
8380 static const int one {1};
8383 static_assert(test::zero == 0, "");
8384 static_assert(test::one == 1, "");
8388 namespace test_lambdas
8394 auto lambda1 = [](){};
8395 auto lambda2 = lambda1;
8403 auto a = [](int i, int j){ return i + j; }(1, 2);
8404 auto b = []() -> int { return '0'; }();
8405 auto c = [=](){ return a + b; }();
8406 auto d = [&](){ return c; }();
8407 auto e = [a, &b](int x) mutable {
8408 const auto identity = [](int y){ return y; };
8409 for (auto i = 0; i < a; ++i)
8411 return x + identity(a + b);
8413 return a + b + c + d + e;
8419 const auto nullary = [](){ return 0; };
8420 const auto unary = [](int x){ return x; };
8421 using nullary_t = decltype(nullary);
8422 using unary_t = decltype(unary);
8423 const auto higher1st = [](nullary_t f){ return f(); };
8424 const auto higher2nd = [unary](nullary_t f1){
8425 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8427 return higher1st(nullary) + higher2nd(nullary)(unary);
8432 namespace test_variadic_templates
8438 template <int N0, int... N1toN>
8439 struct sum<N0, N1toN...>
8441 static constexpr auto value = N0 + sum<N1toN...>::value;
8447 static constexpr auto value = 0;
8450 static_assert(sum<>::value == 0, "");
8451 static_assert(sum<1>::value == 1, "");
8452 static_assert(sum<23>::value == 23, "");
8453 static_assert(sum<1, 2>::value == 3, "");
8454 static_assert(sum<5, 5, 11>::value == 21, "");
8455 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8459 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8460 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8462 namespace test_template_alias_sfinae
8467 template<typename T>
8468 using member = typename T::member_type;
8470 template<typename T>
8473 template<typename T>
8474 void func(member<T>*) {}
8478 void test() { func<foo>(0); }
8482 } // namespace cxx11
8484 #endif // __cplusplus >= 201103L
8489 // If the compiler admits that it is not ready for C++14, why torture it?
8490 // Hopefully, this will speed up the test.
8494 #error "This is not a C
++ compiler
"
8496 #elif __cplusplus < 201402L
8498 #error "This is not a C
++14 compiler
"
8505 namespace test_polymorphic_lambdas
8511 const auto lambda = [](auto&&... args){
8512 const auto istiny = [](auto x){
8513 return (sizeof(x) == 1UL) ? 1 : 0;
8515 const int aretiny[] = { istiny(args)... };
8518 return lambda(1, 1L, 1.0f, '1');
8523 namespace test_binary_literals
8526 constexpr auto ivii = 0b0000000000101010;
8527 static_assert(ivii == 42, "wrong value
");
8531 namespace test_generalized_constexpr
8534 template < typename CharT >
8535 constexpr unsigned long
8536 strlen_c(const CharT *const s) noexcept
8539 for (auto p = s; *p; ++p)
8544 static_assert(strlen_c("") == 0UL, "");
8545 static_assert(strlen_c("x
") == 1UL, "");
8546 static_assert(strlen_c("test") == 4UL, "");
8547 static_assert(strlen_c("another\
0test") == 7UL, "");
8551 namespace test_lambda_init_capture
8558 const auto lambda1 = [a = x](int b){ return a + b; };
8559 const auto lambda2 = [a = lambda1(x)](){ return a; };
8565 namespace test_digit_separators
8568 constexpr auto ten_million = 100'000'000;
8569 static_assert(ten_million == 100000000, "");
8573 namespace test_return_type_deduction
8576 auto f(int& x) { return x; }
8577 decltype(auto) g(int& x) { return x; }
8579 template < typename T1, typename T2 >
8582 static constexpr auto value = false;
8585 template < typename T >
8586 struct is_same<T, T>
8588 static constexpr auto value = true;
8595 static_assert(is_same<int, decltype(f(x))>::value, "");
8596 static_assert(is_same<int&, decltype(g(x))>::value, "");
8602 } // namespace cxx14
8604 #endif // __cplusplus >= 201402L
8609 if ac_fn_cxx_try_compile "$LINENO"; then :
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 eval ac_res=\$$cachevar
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
8619 $as_echo "$ac_res" >&6; }
8620 if eval test x\$$cachevar = xyes; then
8622 if test -n "$CXXCPP" ; then
8623 CXXCPP="$CXXCPP $switch"
8629 if test x$ac_success = xyes; then
8634 CXX_FOR_BUILD="$CXX"
8635 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
8636 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
8637 CXX="$ax_cv_cxx_compile_cxx14_orig_cxx"
8638 CXXFLAGS="$ax_cv_cxx_compile_cxx14_orig_cxxflags"
8639 CPPFLAGS="$ax_cv_cxx_compile_cxx14_orig_cppflags"
8641 ac_cpp='$CPP $CPPFLAGS'
8642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8646 if test x$ax_cxx_compile_cxx14_required = xtrue; then
8647 if test x$ac_success = xno; then
8648 as_fn_error $? "*** A compiler with support
for C
++14 language features is required.
" "$LINENO" 5
8651 if test x$ac_success = xno; then
8652 HAVE_CXX14_FOR_BUILD=0
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++14 support was found
" >&5
8654 $as_echo "$as_me: No compiler with C
++14 support was found
" >&6;}
8656 HAVE_CXX14_FOR_BUILD=1
8658 $as_echo "#define HAVE_CXX14_FOR_BUILD 1" >>confdefs.h
8666 # Check whether --enable-pgo-build was given.
8667 if test "${enable_pgo_build+set}" = set; then :
8668 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
8674 # Issue errors and warnings for invalid/strange PGO build combinations.
8675 case "$have_compiler:$host:$target:$enable_pgo_build" in
8678 # Allow the PGO build only if we aren't building a compiler and
8679 # we are in a native configuration.
8680 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
8682 # Disallow the PGO bootstrap if we are building a compiler.
8683 yes:*:*:yes |
yes:*:*:lto
)
8684 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
8687 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
8691 if test "$enable_pgo_build" != "no"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
8693 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
8694 old_CFLAGS
="$CFLAGS"
8695 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
8696 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
8698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8702 if ac_fn_c_try_compile
"$LINENO"; then :
8705 PGO_BUILD_GEN_CFLAGS
=
8707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8708 CFLAGS
="$old_CFLAGS"
8709 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8711 $as_echo "yes" >&6; }
8712 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
8719 if test "$enable_pgo_build" = "lto"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
8721 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
8722 old_CFLAGS
="$CFLAGS"
8723 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
8724 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
8725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8729 if ac_fn_c_try_compile
"$LINENO"; then :
8732 PGO_BUILD_LTO_CFLAGS
=
8734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8735 CFLAGS
="$old_CFLAGS"
8736 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8738 $as_echo "yes" >&6; }
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741 $as_echo "no" >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
8743 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8751 # Used for setting $lt_cv_objdir
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8753 $as_echo_n "checking for objdir... " >&6; }
8754 if ${lt_cv_objdir+:} false
; then :
8755 $as_echo_n "(cached) " >&6
8757 rm -f .libs
2>/dev
/null
8758 mkdir .libs
2>/dev
/null
8759 if test -d .libs
; then
8762 # MS-DOS does not allow filenames that begin with a dot.
8765 rmdir .libs
2>/dev
/null
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8768 $as_echo "$lt_cv_objdir" >&6; }
8769 objdir
=$lt_cv_objdir
8775 cat >>confdefs.h
<<_ACEOF
8776 #define LT_OBJDIR "$lt_cv_objdir/"
8781 # Check for GMP, MPFR and MPC
8784 if test -d ${srcdir}/gcc
; then
8788 if test -d ${srcdir}/gdb
; then
8789 if test "x$enable_gdb" != xno
; then
8794 gmplibs
="-lmpfr -lgmp"
8795 if test x
"$require_mpc" = "xyes" ; then
8796 gmplibs
="-lmpc $gmplibs"
8801 # Specify a location for mpc
8802 # check for this first so it ends up on the link line before mpfr.
8804 # Check whether --with-mpc was given.
8805 if test "${with_mpc+set}" = set; then :
8810 # Check whether --with-mpc-include was given.
8811 if test "${with_mpc_include+set}" = set; then :
8812 withval
=$with_mpc_include;
8816 # Check whether --with-mpc-lib was given.
8817 if test "${with_mpc_lib+set}" = set; then :
8818 withval
=$with_mpc_lib;
8822 if test "x$with_mpc" != x
; then
8823 gmplibs
="-L$with_mpc/lib $gmplibs"
8824 gmpinc
="-I$with_mpc/include $gmpinc"
8826 if test "x$with_mpc_include" != x
; then
8827 gmpinc
="-I$with_mpc_include $gmpinc"
8829 if test "x$with_mpc_lib" != x
; then
8830 gmplibs
="-L$with_mpc_lib $gmplibs"
8832 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
8833 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8834 gmpinc
='-I$$s/mpc/src '"$gmpinc"
8835 # Do not test the mpc version. Assume that it is sufficient, since
8836 # it is in the source tree, and the library has not been built yet
8837 # but it would be included on the link line in the version check below
8838 # hence making the test fail.
8842 # Specify a location for mpfr
8843 # check for this first so it ends up on the link line before gmp.
8845 # Check whether --with-mpfr was given.
8846 if test "${with_mpfr+set}" = set; then :
8851 # Check whether --with-mpfr-include was given.
8852 if test "${with_mpfr_include+set}" = set; then :
8853 withval
=$with_mpfr_include;
8857 # Check whether --with-mpfr-lib was given.
8858 if test "${with_mpfr_lib+set}" = set; then :
8859 withval
=$with_mpfr_lib;
8863 if test "x$with_mpfr" != x
; then
8864 gmplibs
="-L$with_mpfr/lib $gmplibs"
8865 gmpinc
="-I$with_mpfr/include $gmpinc"
8867 if test "x$with_mpfr_include" != x
; then
8868 gmpinc
="-I$with_mpfr_include $gmpinc"
8870 if test "x$with_mpfr_lib" != x
; then
8871 gmplibs
="-L$with_mpfr_lib $gmplibs"
8873 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8874 # MPFR v3.1.0 moved the sources into a src sub-directory.
8875 if ! test -d ${srcdir}/mpfr
/src
; then
8876 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8878 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8879 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8880 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8881 # Do not test the mpfr version. Assume that it is sufficient, since
8882 # it is in the source tree, and the library has not been built yet
8883 # but it would be included on the link line in the version check below
8884 # hence making the test fail.
8888 # Specify a location for gmp
8890 # Check whether --with-gmp was given.
8891 if test "${with_gmp+set}" = set; then :
8896 # Check whether --with-gmp-include was given.
8897 if test "${with_gmp_include+set}" = set; then :
8898 withval
=$with_gmp_include;
8902 # Check whether --with-gmp-lib was given.
8903 if test "${with_gmp_lib+set}" = set; then :
8904 withval
=$with_gmp_lib;
8909 if test "x$with_gmp" != x
; then
8910 gmplibs
="-L$with_gmp/lib $gmplibs"
8911 gmpinc
="-I$with_gmp/include $gmpinc"
8913 if test "x$with_gmp_include" != x
; then
8914 gmpinc
="-I$with_gmp_include $gmpinc"
8916 if test "x$with_gmp_lib" != x
; then
8917 gmplibs
="-L$with_gmp_lib $gmplibs"
8919 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8920 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8921 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8922 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8923 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8924 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8925 # Do not test the gmp version. Assume that it is sufficient, since
8926 # it is in the source tree, and the library has not been built yet
8927 # but it would be included on the link line in the version check below
8928 # hence making the test fail.
8932 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8934 saved_CFLAGS
="$CFLAGS"
8935 CFLAGS
="$CFLAGS $gmpinc"
8936 # Check for the recommended and required versions of GMP.
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8938 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8946 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8947 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8948 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8956 if ac_fn_c_try_compile
"$LINENO"; then :
8957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8964 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8965 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8966 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8974 if ac_fn_c_try_compile
"$LINENO"; then :
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8976 $as_echo "yes" >&6; }
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8979 $as_echo "buggy but acceptable" >&6; }
8981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }; have_gmp
=no
8986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8988 # If we have GMP, check the MPFR version.
8989 if test x
"$have_gmp" = xyes
; then
8990 # Check for the recommended and required versions of MPFR.
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8992 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
9001 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
9009 if ac_fn_c_try_compile
"$LINENO"; then :
9010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9018 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
9026 if ac_fn_c_try_compile
"$LINENO"; then :
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9028 $as_echo "yes" >&6; }
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9031 $as_echo "buggy but acceptable" >&6; }
9033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }; have_gmp
=no
9038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9041 # Check for the MPC header version.
9042 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
9043 # Check for the recommended and required versions of MPC.
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
9045 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
9046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9053 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
9061 if ac_fn_c_try_compile
"$LINENO"; then :
9062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9069 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
9077 if ac_fn_c_try_compile
"$LINENO"; then :
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9079 $as_echo "yes" >&6; }
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9082 $as_echo "buggy but acceptable" >&6; }
9084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }; have_gmp
=no
9089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9092 # Now check the MPFR library.
9093 if test x
"$have_gmp" = xyes
; then
9095 LIBS
="$LIBS $gmplibs"
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
9097 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
9098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9110 mpfr_atan2 (n, n, x, MPFR_RNDN);
9111 mpfr_erfc (n, x, MPFR_RNDN);
9112 mpfr_subnormalize (x, t, MPFR_RNDN);
9120 if ac_fn_c_try_link
"$LINENO"; then :
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9122 $as_echo "yes" >&6; }
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125 $as_echo "no" >&6; }; have_gmp
=no
9127 rm -f core conftest.err conftest.
$ac_objext \
9128 conftest
$ac_exeext conftest.
$ac_ext
9132 # Now check the MPC library
9133 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
9135 LIBS
="$LIBS $gmplibs"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
9137 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
9138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9147 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
9148 mpc_cosh (c, c, MPC_RNDNN);
9149 mpc_pow (c, c, c, MPC_RNDNN);
9150 mpc_acosh (c, c, MPC_RNDNN);
9157 if ac_fn_c_try_link
"$LINENO"; then :
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9159 $as_echo "yes" >&6; }
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162 $as_echo "no" >&6; }; have_gmp
=no
9164 rm -f core conftest.err conftest.
$ac_objext \
9165 conftest
$ac_exeext conftest.
$ac_ext
9169 CFLAGS
="$saved_CFLAGS"
9171 # The library versions listed in the error message below should match
9172 # the HARD-minimums enforced above.
9173 if test x
$have_gmp != xyes
; then
9174 if test -d ${srcdir}/gcc
; then
9175 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
9176 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
9177 their locations. Source code for these libraries can be found at
9178 their respective hosting sites as well as at
9179 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
9180 http://gcc.gnu.org/install/prerequisites.html for additional info. If
9181 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
9182 make sure that you have installed both the libraries and the header
9183 files. They may be located in separate packages." "$LINENO" 5
9185 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
9186 Try the --with-gmp and/or --with-mpfr options to specify
9187 their locations. If you obtained GMP and/or MPFR from a vendor
9188 distribution package, make sure that you have installed both the libraries
9189 and the header files. They may be located in separate packages." "$LINENO" 5
9194 # Flags needed for both GMP, MPFR and/or MPC.
9202 # Libraries to use for stage1 or when not bootstrapping.
9204 # Check whether --with-stage1-libs was given.
9205 if test "${with_stage1_libs+set}" = set; then :
9206 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9209 stage1_libs
=$withval
9217 # Whether or not to use -static-libstdc++ and -static-libgcc. The
9218 # default is yes if gcc is being built; no otherwise. The reason for
9219 # this default is that gdb is sometimes linked against GNU Source
9220 # Highlight, which is a shared library that uses C++ exceptions. In
9221 # this case, -static-libstdc++ will cause crashes.
9223 # Check whether --with-static-standard-libraries was given.
9224 if test "${with_static_standard_libraries+set}" = set; then :
9225 withval
=$with_static_standard_libraries;
9227 with_static_standard_libraries
=auto
9230 if test "$with_static_standard_libraries" = auto
; then
9231 with_static_standard_libraries
=$have_compiler
9234 # Linker flags to use for stage1 or when not bootstrapping.
9236 # Check whether --with-stage1-ldflags was given.
9237 if test "${with_stage1_ldflags+set}" = set; then :
9238 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9241 stage1_ldflags
=$withval
9245 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
9246 # if supported. But if the user explicitly specified the libraries to use,
9247 # trust that they are doing what they want.
9248 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
9249 -a "$have_static_libs" = yes; then
9250 stage1_ldflags
="-static-libstdc++ -static-libgcc"
9256 # Libraries to use for stage2 and later builds.
9258 # Check whether --with-boot-libs was given.
9259 if test "${with_boot_libs+set}" = set; then :
9260 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9263 poststage1_libs
=$withval
9271 # Linker flags to use for stage2 and later builds.
9273 # Check whether --with-boot-ldflags was given.
9274 if test "${with_boot_ldflags+set}" = set; then :
9275 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9278 poststage1_ldflags
=$withval
9282 # In stages 2 and 3, default to linking libstdc++ and libgcc
9283 # statically. But if the user explicitly specified the libraries to
9284 # use, trust that they are doing what they want.
9285 if test "$poststage1_libs" = ""; then
9286 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
9291 *-darwin2* |
*-darwin1[56789]*)
9292 # For these versions, we default to using embedded rpaths.
9293 if test "x$enable_darwin_at_rpath" != "xno"; then
9294 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
9298 # For these versions, we only use embedded rpaths on demand.
9299 if test "x$enable_darwin_at_rpath" = "xyes"; then
9300 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
9306 # GCC GRAPHITE dependency isl.
9307 # Basic setup is inlined here, actual checks are in config/isl.m4
9310 # Check whether --with-isl was given.
9311 if test "${with_isl+set}" = set; then :
9316 # Treat --without-isl as a request to disable
9317 # GRAPHITE support and skip all following checks.
9318 if test "x$with_isl" != "xno"; then
9322 # Check whether --with-isl-include was given.
9323 if test "${with_isl_include+set}" = set; then :
9324 withval
=$with_isl_include;
9328 # Check whether --with-isl-lib was given.
9329 if test "${with_isl_lib+set}" = set; then :
9330 withval
=$with_isl_lib;
9334 # Check whether --enable-isl-version-check was given.
9335 if test "${enable_isl_version_check+set}" = set; then :
9336 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
9338 ENABLE_ISL_CHECK
=yes
9342 # Initialize isllibs and islinc.
9351 isllibs
="-L$with_isl/lib"
9352 islinc
="-I$with_isl/include"
9355 if test "x${with_isl_include}" != x
; then
9356 islinc
="-I$with_isl_include"
9358 if test "x${with_isl_lib}" != x
; then
9359 isllibs
="-L$with_isl_lib"
9361 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
9362 && test -d ${srcdir}/isl
; then
9363 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
9364 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
9367 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
9370 isllibs
="${isllibs} -lisl"
9374 if test "${ENABLE_ISL_CHECK}" = yes ; then
9375 _isl_saved_CFLAGS
=$CFLAGS
9376 _isl_saved_LDFLAGS
=$LDFLAGS
9377 _isl_saved_LIBS
=$LIBS
9379 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
9380 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
9381 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
9384 $as_echo_n "checking for isl 0.15 or later... " >&6; }
9385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 #include <isl/schedule.h>
9391 isl_options_set_schedule_serialize_sccs (NULL, 0);
9396 if ac_fn_c_try_link
"$LINENO"; then :
9401 rm -f core conftest.err conftest.
$ac_objext \
9402 conftest
$ac_exeext conftest.
$ac_ext
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
9404 $as_echo "$gcc_cv_isl" >&6; }
9406 if test "${gcc_cv_isl}" = no
; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
9408 $as_echo "required isl version is 0.15 or later" >&6; }
9411 CFLAGS
=$_isl_saved_CFLAGS
9412 LDFLAGS
=$_isl_saved_LDFLAGS
9413 LIBS
=$_isl_saved_LIBS
9421 if test "x${with_isl}" = xno
; then
9422 graphite_requested
=no
9423 elif test "x${with_isl}" != x \
9424 ||
test "x${with_isl_include}" != x \
9425 ||
test "x${with_isl_lib}" != x
; then
9426 graphite_requested
=yes
9428 graphite_requested
=no
9433 if test "${gcc_cv_isl}" = no
; then
9438 if test "${graphite_requested}" = yes \
9439 && test "x${isllibs}" = x \
9440 && test "x${islinc}" = x
; then
9442 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
9448 # If the isl check failed, disable builds of in-tree variant of isl
9449 if test "x$with_isl" = xno ||
9450 test "x$gcc_cv_isl" = xno
; then
9451 noconfigdirs
="$noconfigdirs isl"
9458 # Check for LTO support.
9459 # Check whether --enable-lto was given.
9460 if test "${enable_lto+set}" = set; then :
9461 enableval
=$enable_lto; enable_lto
=$enableval
9463 enable_lto
=yes; default_enable_lto
=yes
9472 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
9473 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
9474 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
9483 if test $target_elf = yes; then :
9484 # ELF platforms build the lto-plugin always.
9485 build_lto_plugin
=yes
9488 if test x
"$default_enable_lto" = x
"yes" ; then
9490 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
9491 # On other non-ELF platforms, LTO has yet to be validated.
9495 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
9496 # It would also be nice to check the binutils support, but we don't
9497 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
9498 # warn during gcc/ subconfigure; unless you're bootstrapping with
9499 # -flto it won't be needed until after installation anyway.
9501 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
9502 *) if test x
"$enable_lto" = x
"yes"; then
9503 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
9508 # Among non-ELF, only Windows platforms support the lto-plugin so far.
9509 # Build it unless LTO was explicitly disabled.
9511 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
9518 # Check whether --enable-linker-plugin-configure-flags was given.
9519 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
9520 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
9522 extra_linker_plugin_configure_flags
=
9526 # Check whether --enable-linker-plugin-flags was given.
9527 if test "${enable_linker_plugin_flags+set}" = set; then :
9528 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
9530 extra_linker_plugin_flags
=
9535 # Handle --enable-host-pie
9536 # If host PIE executables are the default (or must be forced on) for some host,
9537 # we must pass that configuration to the gcc directory.
9539 # Check whether --enable-host-pie was given.
9540 if test "${enable_host_pie+set}" = set; then :
9541 enableval
=$enable_host_pie; host_pie
=$enableval
9544 if test x
$host_pie != xyes
; then
9545 # for Darwin20+ this is required.
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
9547 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
9549 gcc_host_pie
=--enable-host-pie
9556 # Default to PIE (mandatory for aarch64).
9558 gcc_host_pie
=--enable-host-pie
9568 # Enable --enable-host-shared.
9569 # Checked early to determine whether jit is an 'all' language
9570 # Check whether --enable-host-shared was given.
9571 if test "${enable_host_shared+set}" = set; then :
9572 enableval
=$enable_host_shared; host_shared
=$enableval
9574 x86_64-
*-darwin* | aarch64-
*-darwin*)
9575 if test x
$host_shared != xyes
; then
9576 # PIC is the default, and actually cannot be switched off.
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
9578 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
9582 if test x
$host_pie = xyes
-a x
$host_shared != xyes
; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
9584 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
9591 # 64B x86_64 and Aarch64 Darwin default to PIC.
9592 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
9593 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
9594 *-*-darwin*) host_shared
=$host_pie ;;
9602 if test x
$host_shared = xyes
; then
9605 # Since host shared is the default for 64b Darwin, and also enabled for
9606 # host_pie, ensure that we present the PIE flag when host_pie is active.
9607 if test x
$host_pie = xyes
; then
9615 elif test x
$host_pie = xyes
; then
9624 # Check for libdiagnostics support.
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdiagnostics" >&5
9626 $as_echo_n "checking whether to enable libdiagnostics... " >&6; }
9627 # Check whether --enable-libdiagnostics was given.
9628 if test "${enable_libdiagnostics+set}" = set; then :
9629 enableval
=$enable_libdiagnostics; enable_libdiagnostics
=$enableval
9631 enable_libdiagnostics
=no
9635 if test x
$enable_libdiagnostics = xyes
; then
9636 # Disable libdiagnostics if -enable-host-shared not specified
9637 # but not if building for Mingw. All code in Windows
9638 # is position independent code (PIC).
9642 if test x
$host_shared != xyes
; then
9644 Enabling libdiagnostics requires --enable-host-shared.
9646 --enable-host-shared typically slows the rest of the compiler down by
9647 a few %, so you must explicitly enable it.
9649 If you want to build both libdiagnostics and the regular compiler, it is often
9650 best to do this via two separate configure/builds, in separate
9651 directories, to avoid imposing the performance cost of
9652 --enable-host-shared on the regular compiler." "$LINENO" 5
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libdiagnostics" >&5
9658 $as_echo "$enable_libdiagnostics" >&6; }
9662 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
9663 # default, so we check for them here
9664 # We are doing the test here and not in the gcc/configure to be able to nicely disable the
9665 # build of the Rust frontend in case a dep is missing.
9666 missing_rust_dynlibs
=none
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9671 $as_echo_n "checking for library containing dlopen... " >&6; }
9672 if ${ac_cv_search_dlopen+:} false
; then :
9673 $as_echo_n "(cached) " >&6
9675 ac_func_search_save_LIBS
=$LIBS
9676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9694 for ac_lib
in '' dl
; do
9695 if test -z "$ac_lib"; then
9696 ac_res
="none required"
9699 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9701 if ac_fn_c_try_link
"$LINENO"; then :
9702 ac_cv_search_dlopen
=$ac_res
9704 rm -f core conftest.err conftest.
$ac_objext \
9706 if ${ac_cv_search_dlopen+:} false
; then :
9710 if ${ac_cv_search_dlopen+:} false
; then :
9713 ac_cv_search_dlopen
=no
9716 LIBS
=$ac_func_search_save_LIBS
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9719 $as_echo "$ac_cv_search_dlopen" >&6; }
9720 ac_res
=$ac_cv_search_dlopen
9721 if test "$ac_res" != no
; then :
9722 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
9727 $as_echo_n "checking for library containing pthread_create... " >&6; }
9728 if ${ac_cv_search_pthread_create+:} false
; then :
9729 $as_echo_n "(cached) " >&6
9731 ac_func_search_save_LIBS
=$LIBS
9732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9735 /* Override any GCC internal prototype to avoid an error.
9736 Use char because int might match the return type of a GCC
9737 builtin and then its argument prototype would still apply. */
9741 char pthread_create ();
9745 return pthread_create ();
9750 for ac_lib
in '' pthread
; do
9751 if test -z "$ac_lib"; then
9752 ac_res
="none required"
9755 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9757 if ac_fn_c_try_link
"$LINENO"; then :
9758 ac_cv_search_pthread_create
=$ac_res
9760 rm -f core conftest.err conftest.
$ac_objext \
9762 if ${ac_cv_search_pthread_create+:} false
; then :
9766 if ${ac_cv_search_pthread_create+:} false
; then :
9769 ac_cv_search_pthread_create
=no
9772 LIBS
=$ac_func_search_save_LIBS
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
9775 $as_echo "$ac_cv_search_pthread_create" >&6; }
9776 ac_res
=$ac_cv_search_pthread_create
9777 if test "$ac_res" != no
; then :
9778 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9785 if test "$ac_cv_search_dlopen" = no
; then
9786 missing_rust_dynlibs
="libdl"
9789 if test "$ac_cv_search_pthread_create" = no
; then
9790 missing_rust_dynlibs
="$missing_rust_dynlibs, libpthread"
9793 CRAB1_LIBS
="$CRAB1_LIBS"
9796 # If we are building PIC/PIE host executables, and we are building dependent
9797 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
9800 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
9801 host_libs_picflag
='--with-pic'
9805 # By default, C and C++ are the only stage 1 languages.
9806 stage1_languages
=,c
,
9808 # Target libraries that we bootstrap.
9809 bootstrap_target_libs
=,target-libgcc
,
9811 # Figure out what language subdirectories are present.
9812 # Look if the user specified --enable-languages="..."; if not, use
9813 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9815 # NB: embedded tabs in this IF block -- do not untabify
9816 if test -d ${srcdir}/gcc
; then
9817 if test x
"${enable_languages+set}" != xset
; then
9818 if test x
"${LANGUAGES+set}" = xset
; then
9819 enable_languages
="${LANGUAGES}"
9820 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
9822 enable_languages
=default
9825 if test x
"${enable_languages}" = x ||
9826 test x
"${enable_languages}" = xyes
;
9828 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
9832 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
9834 # 'f95' is the old name for the 'fortran' language. We issue a warning
9835 # and make the substitution.
9836 case ,${enable_languages}, in
9838 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
9839 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
9843 # If bootstrapping, C++ must be enabled.
9844 case ",$enable_languages,:$enable_bootstrap" in
9847 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
9848 enable_languages
="${enable_languages},c++"
9850 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
9855 # First scan to see if an enabled language requires some other language.
9856 # We assume that a given config-lang.in will list all the language
9857 # front ends it requires, even if some are required indirectly.
9858 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
9859 case ${lang_frag} in
9861 # The odd quoting in the next line works around
9862 # an apparent bug in bash 1.12 on linux.
9863 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
9865 # From the config-lang.in, get $language, $lang_requires, and
9866 # $lang_requires_boot_languages.
9869 lang_requires_boot_languages
=
9870 # set srcdir during sourcing lang_frag to the gcc dir.
9871 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
9872 # pollutes this shell
9873 saved_srcdir
=${srcdir}
9874 srcdir
=${srcdir}/gcc .
${lang_frag}
9875 srcdir
=${saved_srcdir}
9876 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
9877 case ,${enable_languages}, in
9882 echo " \`$other' language required by \`$language'; enabling" 1>&2
9883 enable_languages
="${enable_languages},${other}"
9887 for other
in ${lang_requires_boot_languages} ; do
9888 if test "$other" != "c"; then
9889 case ,${enable_stage1_languages}, in
9894 case ,${enable_languages}, in
9896 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
9897 enable_stage1_languages
="$enable_stage1_languages,${other}"
9908 new_enable_languages
=,c
,
9910 # If LTO is enabled, add the LTO front end.
9911 if test "$enable_lto" = "yes" ; then
9912 case ,${enable_languages}, in
9914 *) enable_languages
="${enable_languages},lto" ;;
9916 if test "${build_lto_plugin}" = "yes" ; then
9917 configdirs
="$configdirs lto-plugin"
9921 # If we're building an offloading compiler, add the LTO front end.
9922 if test x
"$enable_as_accelerator_for" != x
; then
9923 case ,${enable_languages}, in
9925 *) enable_languages
="${enable_languages},lto" ;;
9929 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9930 potential_languages
=,c
,
9932 enabled_target_libs
=
9933 disabled_target_libs
=
9935 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
9936 case ${lang_frag} in
9938 # The odd quoting in the next line works around
9939 # an apparent bug in bash 1.12 on linux.
9940 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
9942 # From the config-lang.in, get $language, $target_libs,
9943 # $lang_dirs, $boot_language, and $build_by_default
9949 build_by_default
=yes
9950 # set srcdir during sourcing. See above about save & restore
9951 saved_srcdir
=${srcdir}
9952 srcdir
=${srcdir}/gcc .
${lang_frag}
9953 srcdir
=${saved_srcdir}
9954 if test x
${language} = x
; then
9955 echo "${lang_frag} doesn't set \$language." 1>&2
9959 if test "$language" = "c++"; then
9964 # C is always enabled, so no need to add it again
9965 if test "$language" != "c"; then
9966 case ,${enable_languages}, in
9968 # Language was explicitly selected; include it
9972 # All languages are enabled
9976 # 'default' was selected, select it if it is a default language
9977 add_this_lang
=${build_by_default}
9982 # Disable languages that need other directories if these aren't available.
9983 for i
in $subdir_requires; do
9984 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9985 case ${add_this_lang} in
9987 # Specifically requested language; tell them.
9988 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9992 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9993 add_this_lang
=unsupported
9997 add_this_lang
=unsupported
10002 # Disable Ada if no preexisting GNAT is available.
10003 case ${add_this_lang}:${language}:${have_gnat} in
10005 # Specifically requested language; tell them.
10006 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
10010 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
10011 add_this_lang
=unsupported
10014 # Silently disable.
10015 add_this_lang
=unsupported
10019 # Disable D if no preexisting GDC is available.
10020 case ${add_this_lang}:${language}:${have_gdc} in
10022 # Specifically requested language; tell them.
10023 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
10027 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
10028 add_this_lang
=unsupported
10031 # Silently disable.
10032 add_this_lang
=unsupported
10036 # Disable Rust if we are missing some required C libraries for the Rust runtime.
10037 case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
10039 # Nothing to do - we're not missing any C libraries
10042 as_fn_error $?
"some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
10043 add_this_lang
=unsupported
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
10047 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
10048 add_this_lang
=unsupported
10051 # Silently disable.
10052 add_this_lang
=unsupported
10056 # Disable jit if -enable-host-shared not specified
10057 # but not if building for Mingw. All code in Windows
10058 # is position independent code (PIC).
10062 case ${add_this_lang}:${language}:${host_shared} in
10064 # PR jit/64780: explicitly specify --enable-host-shared
10066 Enabling language \"jit\" requires --enable-host-shared.
10068 --enable-host-shared typically slows the rest of the compiler down by
10069 a few %, so you must explicitly enable it.
10071 If you want to build both the jit and the regular compiler, it is often
10072 best to do this via two separate configure/builds, in separate
10073 directories, to avoid imposing the performance cost of
10074 --enable-host-shared on the regular compiler." "$LINENO" 5
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
10078 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
10079 add_this_lang
=unsupported
10082 # Silently disable.
10083 add_this_lang
=unsupported
10089 # Pre-conditions to consider whether cargo being supported.
10090 if test x
"$have_cargo" = xyes \
10091 && test x
"$build" != x
"$host"; then
10092 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
10093 # "'cargo' should build for the host system" is resolved:
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
10095 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
10098 # Assume that cargo-produced object files are compatible with what
10099 # we're going to build here.
10102 # Disable Rust if cargo is unavailable.
10103 case ${add_this_lang}:${language}:${have_cargo} in
10105 # Specifically requested language; tell them.
10106 as_fn_error $?
"cargo is required to build $language" "$LINENO" 5
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
10110 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
10111 add_this_lang
=unsupported
10114 # Silently disable.
10115 add_this_lang
=unsupported
10120 # Disable a language that is unsupported by the target.
10121 case "${add_this_lang}: $unsupported_languages " in
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
10126 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
10127 add_this_lang
=unsupported
10131 case $add_this_lang in
10133 # Remove language-dependent dirs.
10134 disabled_target_libs
="$disabled_target_libs $target_libs"
10135 noconfigdirs
="$noconfigdirs $lang_dirs"
10138 # Remove language-dependent dirs; still show language as supported.
10139 disabled_target_libs
="$disabled_target_libs $target_libs"
10140 noconfigdirs
="$noconfigdirs $lang_dirs"
10141 potential_languages
="${potential_languages}${language},"
10144 new_enable_languages
="${new_enable_languages}${language},"
10145 potential_languages
="${potential_languages}${language},"
10146 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
10147 enabled_target_libs
="$enabled_target_libs $target_libs"
10148 case "${boot_language}:,$enable_stage1_languages," in
10149 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
10150 # Add to (comma-separated) list of stage 1 languages.
10151 case ",$stage1_languages," in
10152 *,$language,* |
,yes, |
,all
,) ;;
10153 *) stage1_languages
="${stage1_languages}${language}," ;;
10155 # We need to bootstrap any supporting libraries.
10156 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
10165 # Add target libraries which are only needed for disabled languages
10167 if test -n "$disabled_target_libs"; then
10168 for dir
in $disabled_target_libs; do
10169 case " $enabled_target_libs " in
10171 *) noconfigdirs
="$noconfigdirs $dir" ;;
10176 # Check whether --enable-stage1-languages was given.
10177 if test "${enable_stage1_languages+set}" = set; then :
10178 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
10180 # Set it to something that will have no effect in the loop below
10181 enable_stage1_languages
=c
;;
10183 enable_stage1_languages
=`echo $new_enable_languages | \
10184 sed -e "s/^,//" -e "s/,$//" ` ;;
10186 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
10187 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
10190 # Add "good" languages from enable_stage1_languages to stage1_languages,
10191 # while "bad" languages go in missing_languages. Leave no duplicates.
10192 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
10193 case $potential_languages in
10195 case $stage1_languages in
10197 *) stage1_languages
="$stage1_languages$i," ;;
10200 case $missing_languages in
10202 *) missing_languages
="$missing_languages$i," ;;
10209 # Remove leading/trailing commas that were added for simplicity
10210 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
10211 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
10212 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
10213 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
10215 if test "x$missing_languages" != x
; then
10217 The following requested languages could not be built: ${missing_languages}
10218 Supported languages are: ${potential_languages}" "$LINENO" 5
10220 if test "x$new_enable_languages" != "x$enable_languages"; then
10221 echo The following languages will be built
: ${new_enable_languages}
10222 enable_languages
="$new_enable_languages"
10226 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
10229 # Handle --disable-<component> generically.
10230 for dir
in $configdirs $build_configdirs $target_configdirs ; do
10231 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
10232 varname
=`echo $dirname | sed -e s/+/_/g`
10233 if eval test x\
${enable_${varname}} "=" xno
; then
10234 noconfigdirs
="$noconfigdirs $dir"
10238 # Check for Boehm's garbage collector
10239 # Check whether --enable-objc-gc was given.
10240 if test "${enable_objc_gc+set}" = set; then :
10241 enableval
=$enable_objc_gc;
10245 # Check whether --with-target-bdw-gc was given.
10246 if test "${with_target_bdw_gc+set}" = set; then :
10247 withval
=$with_target_bdw_gc;
10251 # Check whether --with-target-bdw-gc-include was given.
10252 if test "${with_target_bdw_gc_include+set}" = set; then :
10253 withval
=$with_target_bdw_gc_include;
10257 # Check whether --with-target-bdw-gc-lib was given.
10258 if test "${with_target_bdw_gc_lib+set}" = set; then :
10259 withval
=$with_target_bdw_gc_lib;
10263 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
10265 $as_echo_n "checking for bdw garbage collector... " >&6; }
10266 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
10268 $as_echo "using bdw-gc in default locations" >&6; }
10270 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
10271 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
10272 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
10273 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
10276 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
10281 # Disable libitm, libsanitizer, libvtv if we're not building C++
10282 case ,${enable_languages}, in
10284 # Disable libitm, libsanitizer if we're not building libstdc++
10285 case "${noconfigdirs}" in
10286 *target-libstdc
++-v3*)
10287 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
10293 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
10297 case ,${enable_languages}, in
10299 case " ${noconfigdirs} " in
10300 *\ target-libstdc
++-v3\
*)
10301 # Disable target libgrust if we're not building target libstdc++.
10302 noconfigdirs
="$noconfigdirs target-libgrust"
10308 # If gcc/ is not in the source tree then we'll not be building a
10309 # target compiler, assume in that case we don't want to build any
10310 # target libraries or tools.
10312 # This was added primarily for the benefit for binutils-gdb who reuse
10313 # this configure script, but don't always have target tools available.
10314 if test ! -d ${srcdir}/gcc
; then
10315 skipdirs
="${skipdirs} ${target_configdirs}"
10318 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
10319 # $build_configdirs and $target_configdirs.
10320 # If we have the source for $noconfigdirs entries, add them to $notsupp.
10323 for dir
in .
$skipdirs $noconfigdirs ; do
10324 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
10325 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10326 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
10327 if test -r $srcdir/$dirname/configure
; then
10328 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10331 notsupp
="$notsupp $dir"
10335 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10336 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
10337 if test -r $srcdir/$dirname/configure
; then
10338 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10341 notsupp
="$notsupp $dir"
10345 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10346 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
10347 if test -r $srcdir/$dirname/configure
; then
10348 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10351 notsupp
="$notsupp $dir"
10357 # Quietly strip out all directories which aren't configurable in this tree.
10358 # This relies on all configurable subdirectories being autoconfiscated, which
10360 build_configdirs_all
="$build_configdirs"
10362 for i
in ${build_configdirs_all} ; do
10363 j
=`echo $i | sed -e s/build-//g`
10364 if test -f ${srcdir}/$j/configure
; then
10365 build_configdirs
="${build_configdirs} $i"
10369 configdirs_all
="$configdirs"
10371 for i
in ${configdirs_all} ; do
10372 if test -f ${srcdir}/$i/configure
; then
10373 configdirs
="${configdirs} $i"
10377 target_configdirs_all
="$target_configdirs"
10379 for i
in ${target_configdirs_all} ; do
10380 j
=`echo $i | sed -e s/target-//g`
10381 if test -f ${srcdir}/$j/configure
; then
10382 target_configdirs
="${target_configdirs} $i"
10386 # libiberty-linker-plugin is special: it doesn't have its own source directory,
10387 # so we have to add it after the preceding checks.
10388 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
10390 case " $configdirs " in
10392 # If we can build libiberty, we can also build libiberty-linker-plugin.
10393 configdirs
="$configdirs libiberty-linker-plugin"
10394 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
10395 --with-libiberty=../libiberty-linker-plugin";;
10397 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
10401 # Sometimes we have special requirements for the host libiberty.
10402 extra_host_libiberty_configure_flags
=
10403 case " $configdirs " in
10404 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
10405 # When these are to be built as shared libraries, the same applies to
10407 extra_host_libiberty_configure_flags
=--enable-shared
10412 # Sometimes we have special requirements for the host zlib.
10413 extra_host_zlib_configure_flags
=
10414 case " $configdirs " in
10416 # When bfd is to be built as a shared library, the same applies to
10418 if test "$enable_shared" = "yes"; then
10419 extra_host_zlib_configure_flags
=--enable-host-shared
10425 # Produce a warning message for the subdirs we can't configure.
10426 # This isn't especially interesting in the Cygnus tree, but in the individual
10427 # FSF releases, it's important to let people know when their machine isn't
10428 # supported by the one or two programs in a package.
10430 if test -n "${notsupp}" && test -z "${norecursion}" ; then
10431 # If $appdirs is non-empty, at least one of those directories must still
10432 # be configured, or we error out. (E.g., if the gas release supports a
10433 # specified target in some subdirs but not the gas subdir, we shouldn't
10434 # pretend that all is well.)
10435 if test -n "$appdirs" ; then
10436 for dir
in $appdirs ; do
10437 if test -r $dir/Makefile.
in ; then
10438 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10442 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
10448 if test -n "$appdirs" ; then
10449 echo "*** This configuration is not supported by this package." 1>&2
10453 # Okay, some application will build, or we don't care to check. Still
10454 # notify of subdirs not getting built.
10455 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
10456 echo " ${notsupp}" 1>&2
10457 echo " (Any other directories should still work fine.)" 1>&2
10465 # To find our prefix, in gcc_cv_tool_prefix.
10467 # The user is always right.
10468 if test "${PATH_SEPARATOR+set}" != set; then
10469 echo "#! /bin/sh" >conf$$.sh
10470 echo "exit 0" >>conf$$.sh
10472 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10481 get_gcc_base_ver
="cat"
10483 # Check whether --with-gcc-major-version-only was given.
10484 if test "${with_gcc_major_version_only+set}" = set; then :
10485 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
10486 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
10496 if test "x$exec_prefix" = xNONE
; then
10497 if test "x$prefix" = xNONE
; then
10498 gcc_cv_tool_prefix
=$ac_default_prefix
10500 gcc_cv_tool_prefix
=$prefix
10503 gcc_cv_tool_prefix
=$exec_prefix
10506 # If there is no compiler in the tree, use the PATH only. In any
10507 # case, if there is no compiler in the tree nobody should use
10508 # AS_FOR_TARGET and LD_FOR_TARGET.
10509 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
10510 if test x
$with_gcc_major_version_only = xyes
; then
10511 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
10513 gcc_version
=`cat $srcdir/gcc/BASE-VER`
10515 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10516 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
10517 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10518 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
10519 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10520 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
10525 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
10526 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
10534 # Check whether --with-build-sysroot was given.
10535 if test "${with_build_sysroot+set}" = set; then :
10536 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
10537 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
10540 SYSROOT_CFLAGS_FOR_TARGET
=
10546 # Check whether --with-debug-prefix-map was given.
10547 if test "${with_debug_prefix_map+set}" = set; then :
10548 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
10549 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
10550 for debug_map
in $withval; do
10551 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
10555 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
10560 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
10561 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
10562 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
10563 # We want to ensure that TARGET libraries (which we know are built with
10564 # gcc) are built with "-O2 -g", so include those options when setting
10565 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
10566 if test "x$CFLAGS_FOR_TARGET" = x
; then
10567 if test "x${is_cross_compiler}" = xyes
; then
10568 CFLAGS_FOR_TARGET
="-g -O2"
10570 CFLAGS_FOR_TARGET
=$CFLAGS
10571 case " $CFLAGS " in
10573 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
10575 case " $CFLAGS " in
10576 *" -g "* |
*" -g3 "*) ;;
10577 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
10583 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
10584 if test "x${is_cross_compiler}" = xyes
; then
10585 CXXFLAGS_FOR_TARGET
="-g -O2"
10587 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
10588 case " $CXXFLAGS " in
10590 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
10592 case " $CXXFLAGS " in
10593 *" -g "* |
*" -g3 "*) ;;
10594 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
10602 # Handle --with-headers=XXX. If the value is not "yes", the contents of
10603 # the named directory are copied to $(tooldir)/sys-include.
10604 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
10605 if test x
${is_cross_compiler} = xno
; then
10606 echo 1>&2 '***' --with-headers is only supported when cross compiling
10609 if test x
"${with_headers}" != xyes
; then
10610 x
=${gcc_cv_tool_prefix}
10611 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
10615 # Handle --with-libs=XXX. If the value is not "yes", the contents of
10616 # the name directories are copied to $(tooldir)/lib. Multiple directories
10618 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
10619 if test x
${is_cross_compiler} = xno
; then
10620 echo 1>&2 '***' --with-libs is only supported when cross compiling
10623 if test x
"${with_libs}" != xyes
; then
10624 # Copy the libraries in reverse order, so that files in the first named
10625 # library override files in subsequent libraries.
10626 x
=${gcc_cv_tool_prefix}
10627 for l
in ${with_libs}; do
10628 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
10633 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
10635 # This is done by determining whether or not the appropriate directory
10636 # is available, and by checking whether or not specific configurations
10637 # have requested that this magic not happen.
10639 # The command line options always override the explicit settings in
10640 # configure.ac, and the settings in configure.ac override this magic.
10642 # If the default for a toolchain is to use GNU as and ld, and you don't
10643 # want to do that, then you should use the --without-gnu-as and
10644 # --without-gnu-ld options for the configure script. Similarly, if
10645 # the default is to use the included zlib and you don't want to do that,
10646 # you should use the --with-system-zlib option for the configure script.
10648 if test x
${use_gnu_as} = x
&&
10649 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
10651 extra_host_args
="$extra_host_args --with-gnu-as"
10654 if test x
${use_gnu_ld} = x
&&
10655 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
10657 extra_host_args
="$extra_host_args --with-gnu-ld"
10660 if test x
${use_included_zlib} = x
&&
10661 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
10664 with_system_zlib
=yes
10665 extra_host_args
="$extra_host_args --with-system-zlib"
10668 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
10669 # can detect this case.
10671 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
10673 extra_host_args
="$extra_host_args --with-newlib"
10676 # Handle ${copy_dirs}
10677 set fnord
${copy_dirs}
10679 while test $# != 0 ; do
10680 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
10683 echo Copying
$1 to
$2
10685 # Use the install script to create the directory and all required
10686 # parent directories.
10687 if test -d $2 ; then
10691 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
10694 # Copy the directory, assuming we have tar.
10695 # FIXME: Should we use B in the second tar? Not all systems support it.
10696 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
10698 # It is the responsibility of the user to correctly adjust all
10699 # symlinks. If somebody can figure out how to handle them correctly
10700 # here, feel free to add the code.
10702 echo $1 > $2/COPIED
10707 # Determine a target-dependent exec_prefix that the installed
10708 # gcc will search in. Keep this list sorted by triplet, with
10709 # the *-*-osname triplets last.
10711 case "${target}" in
10712 i
[34567]86-pc-msdosdjgpp*)
10713 md_exec_prefix
=/dev
/env
/DJDIR
/bin
10718 md_exec_prefix
=/usr
/ccs
/bin
10722 extra_arflags_for_target
=
10723 extra_nmflags_for_target
=
10724 extra_ranlibflags_for_target
=
10725 target_makefile_frag
=/dev
/null
10726 case "${target}" in
10728 target_makefile_frag
="config/mt-spu"
10730 loongarch
*-*linux
* | loongarch
*-*gnu
*)
10731 target_makefile_frag
="config/mt-loongarch-gnu"
10734 target_makefile_frag
="config/mt-loongarch-elf"
10736 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
10737 target_makefile_frag
="config/mt-sde"
10739 mipsisa
*-*-elfoabi*)
10740 target_makefile_frag
="config/mt-mips-elfoabi"
10742 mips
*-*-*linux
* | mips
*-*-gnu*)
10743 target_makefile_frag
="config/mt-mips-gnu"
10746 target_makefile_frag
="config/mt-nios2-elf"
10748 *-*-linux-android*)
10749 target_makefile_frag
="config/mt-android"
10751 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
10752 target_makefile_frag
="config/mt-gnu"
10754 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
10755 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
10756 # commands to handle both 32-bit and 64-bit objects. These flags are
10757 # harmless if we're using GNU nm or ar.
10758 extra_arflags_for_target
=" -X32_64"
10759 extra_nmflags_for_target
=" -B -X32_64"
10763 alphaieee_frag
=/dev
/null
10766 # This just makes sure to use the -mieee option to build target libs.
10767 # This should probably be set individually by each library.
10768 alphaieee_frag
="config/mt-alphaieee"
10772 # If --enable-target-optspace always use -Os instead of -O2 to build
10773 # the target libraries, similarly if it is not specified, use -Os
10774 # on selected platforms.
10775 ospace_frag
=/dev
/null
10776 case "${enable_target_optspace}:${target}" in
10778 ospace_frag
="config/mt-ospace"
10781 ospace_frag
="config/mt-d30v"
10783 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
10784 ospace_frag
="config/mt-ospace"
10789 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
10793 # Some systems (e.g., one of the i386-aix systems the gas testers are
10794 # using) don't handle "\$" correctly, so don't use it here.
10795 tooldir
='${exec_prefix}'/${target_noncanonical}
10796 build_tooldir
=${tooldir}
10798 # Create a .gdbinit file which runs the one in srcdir
10799 # and tells GDB to look there for source files.
10801 if test -r ${srcdir}/.gdbinit
; then
10804 *) cat > .
/.gdbinit
<<EOF
10808 source ${srcdir}/.gdbinit
10814 # Make sure that the compiler is able to generate an executable. If it
10815 # can't, we are probably in trouble. We don't care whether we can run the
10816 # executable--we might be using a cross compiler--we only care whether it
10817 # can be created. At this point the main configure script has set CC.
10819 echo "int main () { return 0; }" > conftest.c
10820 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10821 if test $?
= 0 ; then
10822 if test -s conftest ||
test -s conftest.exe
; then
10828 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
10829 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
10836 # Decide which environment variable is used to find dynamic libraries.
10838 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
10839 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
10840 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
10841 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
10844 # On systems where the dynamic library environment variable is PATH,
10845 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
10846 # built executables to PATH.
10847 if test "$RPATH_ENVVAR" = PATH
; then
10848 GCC_SHLIB_SUBDIR
=/shlib
10853 # Adjust the toplevel makefile according to whether bootstrap was selected.
10854 case $enable_bootstrap in
10856 bootstrap_suffix
=bootstrap
10857 BUILD_CONFIG
=bootstrap-debug
10860 bootstrap_suffix
=no-bootstrap
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
10866 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
10869 # Check whether --with-build-config was given.
10870 if test "${with_build_config+set}" = set; then :
10871 withval
=$with_build_config; case $with_build_config in
10872 yes) with_build_config
= ;;
10873 no
) with_build_config
= BUILD_CONFIG
= ;;
10878 if test "x${with_build_config}" != x
; then
10879 BUILD_CONFIG
=$with_build_config
10881 case $BUILD_CONFIG in
10883 if echo "int f (void) { return 0; }" > conftest.c
&&
10884 ${CC} -c conftest.c
&&
10885 mv conftest.o conftest.o.g0
&&
10886 ${CC} -c -g conftest.c
&&
10887 mv conftest.o conftest.o.g
&&
10888 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
10893 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
10898 $as_echo "$BUILD_CONFIG" >&6; }
10901 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
10903 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
10904 # Check whether --enable-vtable-verify was given.
10905 if test "${enable_vtable_verify+set}" = set; then :
10906 enableval
=$enable_vtable_verify; case "$enableval" in
10907 yes) enable_vtable_verify
=yes ;;
10908 no
) enable_vtable_verify
=no
;;
10909 *) enable_vtable_verify
=no
;;
10912 enable_vtable_verify
=no
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
10916 $as_echo "$enable_vtable_verify" >&6; }
10918 # Record target_configdirs and the configure arguments for target and
10919 # build configuration in Makefile.
10920 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
10921 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
10922 bootstrap_fixincludes
=no
10924 # If we are building libgomp, bootstrap it.
10925 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
10926 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
10929 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
10930 # or bootstrap-ubsan, bootstrap it.
10931 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
10932 case "$BUILD_CONFIG" in
10933 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
10934 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
10935 bootstrap_fixincludes
=yes
10940 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
10941 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
10942 test "$enable_vtable_verify" != no
; then
10943 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
10946 # If we are building libatomic and the list of enabled languages includes the
10947 # D frontend, bootstrap it.
10948 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
10949 case ,${enable_languages}, in
10951 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
10956 # Determine whether gdb needs tk/tcl or not.
10957 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
10958 # and in that case we want gdb to be built without tk. Ugh!
10959 # In fact I believe gdb is the *only* package directly dependent on tk,
10960 # so we should be able to put the 'maybe's in unconditionally and
10961 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
10962 # 100% sure that that's safe though.
10964 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
10965 case "$enable_gdbtk" in
10969 GDB_TK
="${gdb_tk}" ;;
10971 # Only add the dependency on gdbtk when GDBtk is part of the gdb
10972 # distro. Eventually someone will fix this and move Insight, nee
10973 # gdbtk to a separate directory.
10974 if test -d ${srcdir}/gdb
/gdbtk
; then
10981 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
10982 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
10984 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
10985 # else does, only include them if one of these is built. The Makefile
10986 # provides the ordering, so it's enough here to add to the list.
10987 case " ${configdirs} " in
10989 configdirs
="${configdirs} gnulib gdbsupport"
10992 configdirs
="${configdirs} gnulib gdbsupport"
10995 configdirs
="${configdirs} gnulib"
10999 # Strip out unwanted targets.
11001 # While at that, we remove Makefiles if we were started for recursive
11002 # configuration, so that the top-level Makefile reconfigures them,
11003 # like we used to do when configure itself was recursive.
11005 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
11006 # but now we're fixing up the Makefile ourselves with the additional
11007 # commands passed to AC_CONFIG_FILES. Use separate variables
11008 # extrasub-{build,host,target} not because there is any reason to split
11009 # the substitutions up that way, but only to remain below the limit of
11010 # 99 commands in a script, for HP-UX sed.
11012 # Do not nest @if/@endif or @unless/@endunless pairs, because
11013 # configure will not warn you at all.
11015 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
11016 yes:yes:*\ gold\
*:*,c
++,*) ;;
11017 yes:yes:*\ gold\
*:*)
11018 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
11022 # Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
11023 # Note C++ is always enabled for stage1 now.
11024 case "$enable_bootstrap:${noconfigdirs}" in
11025 yes:*target-libstdc
++-v3*)
11026 as_fn_error $?
"bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
11032 for module
in ${build_configdirs} ; do
11033 if test -z "${no_recursion}" \
11034 && test -f ${build_subdir}/${module}/Makefile
; then
11035 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
11036 rm -f ${build_subdir}/${module}/Makefile
11038 extrasub_build
="$extrasub_build
11039 /^@if build-$module\$/d
11040 /^@endif build-$module\$/d
11041 /^@unless build-$module\$/,/^@endunless build-$module\$/d
11042 /^@if build-$module-$bootstrap_suffix\$/d
11043 /^@endif build-$module-$bootstrap_suffix\$/d
11044 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
11047 for module
in ${configdirs} ; do
11048 if test -z "${no_recursion}"; then
11049 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
11050 if test -f ${file}; then
11051 echo 1>&2 "*** removing ${file} to force reconfigure"
11056 case ${module},${bootstrap_fixincludes} in
11057 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
11058 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
11060 extrasub_host
="$extrasub_host
11062 /^@endif $module\$/d
11063 /^@unless $module\$/,/^@endunless $module\$/d
11064 /^@if $module-$host_bootstrap_suffix\$/d
11065 /^@endif $module-$host_bootstrap_suffix\$/d
11066 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
11069 for module
in ${target_configdirs} ; do
11070 if test -z "${no_recursion}" \
11071 && test -f ${target_subdir}/${module}/Makefile
; then
11072 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
11073 rm -f ${target_subdir}/${module}/Makefile
11076 # We only bootstrap target libraries listed in bootstrap_target_libs.
11077 case $bootstrap_target_libs in
11078 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
11079 *) target_bootstrap_suffix
=no-bootstrap
;;
11082 extrasub_target
="$extrasub_target
11083 /^@if target-$module\$/d
11084 /^@endif target-$module\$/d
11085 /^@unless target-$module\$/,/^@endunless target-$module\$/d
11086 /^@if target-$module-$target_bootstrap_suffix\$/d
11087 /^@endif target-$module-$target_bootstrap_suffix\$/d
11088 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
11091 # Do the final fixup along with target modules.
11092 extrasub_target
="$extrasub_target
11093 /^@if /,/^@endif /d
11097 if test "$enable_pgo_build" != "no"; then
11098 extrasub_build
="$extrasub_build
11099 /^@if pgo-build\$/d
11100 /^@endif pgo-build\$/d"
11103 # Create the serialization dependencies. This uses a temporary file.
11105 # Check whether --enable-serial-configure was given.
11106 if test "${enable_serial_configure+set}" = set; then :
11107 enableval
=$enable_serial_configure;
11111 case ${enable_serial_configure} in
11113 enable_serial_build_configure
=yes
11114 enable_serial_host_configure
=yes
11115 enable_serial_target_configure
=yes
11119 # These force 'configure's to be done one at a time, to avoid problems
11120 # with contention over a shared config.cache.
11122 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
11123 echo '# serdep.tmp' > serdep.tmp
11126 test "x${enable_serial_build_configure}" = xyes
&&
11127 for item
in ${build_configdirs} ; do
11130 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
11135 test "x${enable_serial_host_configure}" = xyes
&&
11136 for item
in ${configdirs} ; do
11139 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
11144 test "x${enable_serial_target_configure}" = xyes
&&
11145 for item
in ${target_configdirs} ; do
11148 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
11152 serialization_dependencies
=serdep.tmp
11155 # Base args. Strip norecursion, cache-file, srcdir, host, build,
11156 # target, nonopt, and variable assignments. These are the ones we
11157 # might not want to pass down to subconfigures. The exception being
11158 # --cache-file=/dev/null, which is used to turn off the use of cache
11159 # files altogether, and which should be passed on to subconfigures.
11160 # Also strip program-prefix, program-suffix, and program-transform-name,
11161 # so that we can pass down a consistent program-transform-name.
11167 eval "set -- $ac_configure_args"
11170 if test X
"$skip_next" = X
"yes"; then
11174 if test X
"$keep_next" = X
"yes"; then
11177 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11179 hbaseargs
="$hbaseargs '$ac_arg'"
11180 bbaseargs
="$bbaseargs '$ac_arg'"
11181 tbaseargs
="$tbaseargs '$ac_arg'"
11186 # Handle separated arguments. Based on the logic generated by
11189 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
11190 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
11191 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
11192 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
11207 --with-* |
--without-*)
11208 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
11212 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
11215 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
11218 lib
=`echo "$libopt" | sed 's,[-_]prefix$,,'`
11221 lib
=`echo "$libopt" | sed 's,[-_]type$,,'`
11230 mpc | mpfr | gmp | isl
)
11231 # If we're processing --with-$lib, --with-$lib-include or
11232 # --with-$lib-lib, for one of the libs above, and target is
11233 # different from host, don't pass the current argument to any
11234 # target library's configure.
11235 if test x
$is_cross_compiler = xyes
; then
11239 libintl | libiconv
)
11240 # We don't want libintl (and co.) in anything but the host arguments.
11249 --cache-file=/dev
/null | \
11250 -cache-file=/dev
/null
)
11251 # Handled here to avoid the test to skip args below.
11252 hbaseargs
="$hbaseargs '$ac_arg'"
11253 bbaseargs
="$bbaseargs '$ac_arg'"
11254 tbaseargs
="$tbaseargs '$ac_arg'"
11255 # Assert: $separate_arg should always be no.
11256 keep_next
=$separate_arg
11272 -program-prefix* | \
11273 -program-suffix* | \
11274 -program-transform-name* )
11275 skip_next
=$separate_arg
11279 # An option. Add it.
11282 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11284 hbaseargs
="$hbaseargs '$ac_arg'"
11285 if test X
"$skip_barg" = Xno
; then
11286 bbaseargs
="$bbaseargs '$ac_arg'"
11288 if test X
"$skip_targ" = Xno
; then
11289 tbaseargs
="$tbaseargs '$ac_arg'"
11291 keep_next
=$separate_arg
11294 # Either a variable assignment, or a nonopt (triplet). Don't
11295 # pass it down; let the Makefile handle this.
11300 # Remove the initial space we just introduced and, as these will be
11301 # expanded by make, quote '$'.
11302 hbaseargs
=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11303 bbaseargs
=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11305 # Add in --program-transform-name, after --program-prefix and
11306 # --program-suffix have been applied to it. Autoconf has already
11307 # doubled dollar signs and backslashes in program_transform_name; we want
11308 # the backslashes un-doubled, and then the entire thing wrapped in single
11309 # quotes, because this will be expanded first by make and then by the shell.
11310 # Also, because we want to override the logic in subdir configure scripts to
11311 # choose program_transform_name, replace any s,x,x, with s,y,y,.
11312 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
11313 ${program_transform_name}
11315 gcc_transform_name
=`cat conftestsed.out`
11316 rm -f conftestsed.out
11317 hbaseargs
="$hbaseargs --program-transform-name='${gcc_transform_name}'"
11318 bbaseargs
="$bbaseargs --program-transform-name='${gcc_transform_name}'"
11319 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
11320 if test "$silent" = yes; then
11321 bbaseargs
="$bbaseargs --silent"
11322 hbaseargs
="$hbaseargs --silent"
11323 tbaseargs
="$tbaseargs --silent"
11326 bbaseargs
="$bbaseargs --disable-option-checking"
11327 hbaseargs
="$hbaseargs --disable-option-checking"
11328 tbaseargs
="$tbaseargs --disable-option-checking"
11330 if test "$enable_year2038" = no
; then
11331 bbaseargs
="$bbaseargs --disable-year2038"
11332 hbaseargs
="$hbaseargs --disable-year2038"
11333 tbaseargs
="$tbaseargs --disable-year2038"
11336 # Record and document user additions to sub configure arguments.
11341 # For the build-side libraries, we just need to pretend we're native,
11342 # and not use the same cache file. Multilibs are neither needed nor
11343 # desired. We can't even use the same cache file for all build-side
11344 # libraries, as they're compiled differently; some with C, some with
11345 # C++ or with different feature-enabling options.
11346 build_configargs
="$build_configargs --cache-file=./config.cache ${bbaseargs}"
11348 # For host modules, accept cache file option, or specification as blank.
11349 case "${cache_file}" in
11351 cache_file_option
="" ;;
11352 /* |
[A-Za-z
]:[\\/]* ) # absolute path
11353 cache_file_option
="--cache-file=${cache_file}" ;;
11355 cache_file_option
="--cache-file=../${cache_file}" ;;
11358 # Host dirs don't like to share a cache file either, horribly enough.
11359 # This seems to be due to autoconf 2.5x stupidity.
11360 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
11362 target_configargs
="$target_configargs ${tbaseargs}"
11364 # Passing a --with-cross-host argument lets the target libraries know
11365 # whether they are being built with a cross-compiler or being built
11366 # native. However, it would be better to use other mechanisms to make the
11367 # sorts of decisions they want to make on this basis. Please consider
11368 # this option to be deprecated. FIXME.
11369 if test x
${is_cross_compiler} = xyes
; then
11370 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
11373 # Special user-friendly check for native x86_64-linux build, if
11374 # multilib is not explicitly enabled.
11375 case "$target:$have_compiler:$host:$target:$enable_multilib" in
11376 x86_64-
*linux
*:yes:$build:$build:)
11377 # Make sure we have a development environment that handles 32-bit
11379 echo "int main () { return 0; }" > conftest.c
11380 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
11381 if test $?
= 0 ; then
11382 if test -s conftest ||
test -s conftest.exe
; then
11387 if test x
${dev64} != xyes
; then
11388 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
11393 # Default to --enable-multilib.
11394 if test x
${enable_multilib} = x
; then
11395 target_configargs
="--enable-multilib ${target_configargs}"
11398 # Pass --with-newlib if appropriate. Note that target_configdirs has
11399 # changed from the earlier setting of with_newlib.
11400 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
11401 target_configargs
="--with-newlib ${target_configargs}"
11404 # Different target subdirs use different values of certain variables
11405 # (notably CXX). Worse, multilibs use *lots* of different values.
11406 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
11407 # it doesn't automatically accept command-line overrides of them.
11408 # This means it's not safe for target subdirs to share a cache file,
11409 # which is disgusting, but there you have it. Hopefully this can be
11410 # fixed in future. It's still worthwhile to use a cache file for each
11411 # directory. I think.
11413 # Pass the appropriate --build, --host, --target and --cache-file arguments.
11414 # We need to pass --target, as newer autoconf's requires consistency
11415 # for target_alias and gcc doesn't manage it consistently.
11416 target_configargs
="--cache-file=./config.cache ${target_configargs}"
11419 case " $target_configdirs " in
11421 case " $target_configargs " in
11422 *" --with-newlib "*)
11425 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
11429 # If we're not building GCC, don't discard standard headers.
11430 if test -d ${srcdir}/gcc
; then
11431 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
11433 if test "${build}" != "${host}"; then
11434 # On Canadian crosses, CC_FOR_TARGET will have already been set
11435 # by `configure', so we won't have an opportunity to add -Bgcc/
11436 # to it. This is right: we don't want to search that directory
11437 # for binaries, but we want the header files in there, so add
11439 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
11441 # Someone might think of using the pre-installed headers on
11442 # Canadian crosses, in case the installed compiler is not fully
11443 # compatible with the compiler being built. In this case, it
11444 # would be better to flag an error than risking having
11445 # incompatible object files being constructed. We can't
11446 # guarantee that an error will be flagged, but let's hope the
11447 # compiler will do it, when presented with incompatible header
11452 case "${target}-${is_cross_compiler}" in
11453 i
[3456789]86-*-linux*-no)
11454 # Here host == target, so we don't need to build gcc,
11455 # so we don't want to discard standard headers.
11456 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
11459 # If we're building newlib, use its generic headers last, but search
11460 # for any libc-related directories first (so make it the last -B
11462 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
11464 # If we're building libgloss, find the startup file, simulator library
11465 # and linker script.
11466 case " $target_configdirs " in
11468 # Look for startup file, simulator library and maybe linker script.
11469 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
11470 # Look for libnosys.a in case the target needs it.
11471 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
11472 # Most targets have the linker script in the source directory.
11473 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
11484 x86_64-
*mingw
* |
*-w64-mingw*)
11485 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
11486 # however, use a symlink named 'mingw' in ${prefix} .
11487 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
11490 # MinGW can't be handled as Cygwin above since it does not use newlib.
11491 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'
11495 # Allow the user to override the flags for
11496 # our build compiler if desired.
11497 if test x
"${build}" = x
"${host}" ; then
11498 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
11499 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
11500 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
11501 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
11504 # On Canadian crosses, we'll be searching the right directories for
11505 # the previously-installed cross compiler, so don't bother to add
11506 # flags for directories within the install tree of the compiler
11507 # being built; programs in there won't even run.
11508 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
11509 # Search for pre-installed headers if nothing else fits.
11510 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
11513 if test "x
${use_gnu_ld}" = x &&
11514 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
11515 # Arrange for us to find uninstalled linker scripts.
11516 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
11519 # Search for other target-specific linker scripts and such.
11520 case "${target}" in
11522 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
11524 # The VxWorks support for shared libraries is getting in
11525 # incrementally. Make sure it doesn't get activated implicitly:
11527 if test "${enable_shared-unset}" = unset ; then
11529 # So the build of libraries knows ...
11530 target_configargs="${target_configargs} --disable-shared"
11532 host_configargs="${host_configargs} --disable-shared"
11537 # Makefile fragments.
11538 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
11540 eval fragval=\$$frag
11541 if test $fragval != /dev/null; then
11542 eval $frag=${srcdir}/$fragval
11550 # Miscellanea: directories, flags, etc.
11559 # Build module lists & subconfigure args.
11563 # Host module lists & subconfigure args.
11568 # Target module lists & subconfigure args.
11593 # Generate default definitions for YACC, M4, LEX and other programs that run
11594 # on the build machine. These are used if the Makefile can't locate these
11595 # programs in objdir.
11596 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
11598 for ac_prog in 'bison -y' byacc yacc
11600 # Extract the first word of "$ac_prog", so it can be a program name with args.
11601 set dummy $ac_prog; ac_word=$2
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11603 $as_echo_n "checking
for $ac_word...
" >&6; }
11604 if ${ac_cv_prog_YACC+:} false; then :
11605 $as_echo_n "(cached
) " >&6
11607 if test -n "$YACC"; then
11608 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11617 ac_cv_prog_YACC="$ac_prog"
11618 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11627 YACC=$ac_cv_prog_YACC
11628 if test -n "$YACC"; then
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
11630 $as_echo "$YACC" >&6; }
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11633 $as_echo "no
" >&6; }
11637 test -n "$YACC" && break
11639 test -n "$YACC" || YACC="$MISSING bison
-y"
11641 case " $build_configdirs " in
11642 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
11645 for ac_prog in bison
11647 # Extract the first word of "$ac_prog", so it can be a program name with args.
11648 set dummy $ac_prog; ac_word=$2
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11650 $as_echo_n "checking
for $ac_word...
" >&6; }
11651 if ${ac_cv_prog_BISON+:} false; then :
11652 $as_echo_n "(cached
) " >&6
11654 if test -n "$BISON"; then
11655 ac_cv_prog_BISON="$BISON" # Let the user override the test.
11657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658 for as_dir in $PATH
11661 test -z "$as_dir" && as_dir=.
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11664 ac_cv_prog_BISON="$ac_prog"
11665 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11674 BISON=$ac_cv_prog_BISON
11675 if test -n "$BISON"; then
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
11677 $as_echo "$BISON" >&6; }
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11680 $as_echo "no
" >&6; }
11684 test -n "$BISON" && break
11686 test -n "$BISON" || BISON="$MISSING bison
"
11688 case " $build_configdirs " in
11689 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
11692 for ac_prog in gm4 gnum4 m4
11694 # Extract the first word of "$ac_prog", so it can be a program name with args.
11695 set dummy $ac_prog; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11697 $as_echo_n "checking
for $ac_word...
" >&6; }
11698 if ${ac_cv_prog_M4+:} false; then :
11699 $as_echo_n "(cached
) " >&6
11701 if test -n "$M4"; then
11702 ac_cv_prog_M4="$M4" # Let the user override the test.
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_M4="$ac_prog"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11722 if test -n "$M4"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
11724 $as_echo "$M4" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11727 $as_echo "no
" >&6; }
11731 test -n "$M4" && break
11733 test -n "$M4" || M4="$MISSING m4"
11735 case " $build_configdirs " in
11736 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
11739 for ac_prog in flex lex
11741 # Extract the first word of "$ac_prog", so it can be a program name with args.
11742 set dummy $ac_prog; ac_word=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11744 $as_echo_n "checking
for $ac_word...
" >&6; }
11745 if ${ac_cv_prog_LEX+:} false; then :
11746 $as_echo_n "(cached
) " >&6
11748 if test -n "$LEX"; then
11749 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11758 ac_cv_prog_LEX="$ac_prog"
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11768 LEX=$ac_cv_prog_LEX
11769 if test -n "$LEX"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
11771 $as_echo "$LEX" >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11774 $as_echo "no
" >&6; }
11778 test -n "$LEX" && break
11780 test -n "$LEX" || LEX="$MISSING flex
"
11782 case " $build_configdirs " in
11783 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11784 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
11787 for ac_prog in flex
11789 # Extract the first word of "$ac_prog", so it can be a program name with args.
11790 set dummy $ac_prog; ac_word=$2
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11792 $as_echo_n "checking
for $ac_word...
" >&6; }
11793 if ${ac_cv_prog_FLEX+:} false; then :
11794 $as_echo_n "(cached
) " >&6
11796 if test -n "$FLEX"; then
11797 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
11799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800 for as_dir in $PATH
11803 test -z "$as_dir" && as_dir=.
11804 for ac_exec_ext in '' $ac_executable_extensions; do
11805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11806 ac_cv_prog_FLEX="$ac_prog"
11807 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11816 FLEX=$ac_cv_prog_FLEX
11817 if test -n "$FLEX"; then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
11819 $as_echo "$FLEX" >&6; }
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11822 $as_echo "no
" >&6; }
11826 test -n "$FLEX" && break
11828 test -n "$FLEX" || FLEX="$MISSING flex
"
11830 case " $build_configdirs " in
11831 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11834 for ac_prog in makeinfo
11836 # Extract the first word of "$ac_prog", so it can be a program name with args.
11837 set dummy $ac_prog; ac_word=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11839 $as_echo_n "checking
for $ac_word...
" >&6; }
11840 if ${ac_cv_prog_MAKEINFO+:} false; then :
11841 $as_echo_n "(cached
) " >&6
11843 if test -n "$MAKEINFO"; then
11844 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $PATH
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11853 ac_cv_prog_MAKEINFO="$ac_prog"
11854 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11863 MAKEINFO=$ac_cv_prog_MAKEINFO
11864 if test -n "$MAKEINFO"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
11866 $as_echo "$MAKEINFO" >&6; }
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11869 $as_echo "no
" >&6; }
11873 test -n "$MAKEINFO" && break
11875 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
11877 case " $build_configdirs " in
11878 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
11881 # For an installed makeinfo, we require it to be from texinfo 4.7 or
11882 # higher, else we use the "missing
" dummy.
11883 if ${MAKEINFO} --version \
11884 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
11887 MAKEINFO="$MISSING makeinfo
"
11893 # FIXME: expect and dejagnu may become build tools?
11895 for ac_prog in expect
11897 # Extract the first word of "$ac_prog", so it can be a program name with args.
11898 set dummy $ac_prog; ac_word=$2
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11900 $as_echo_n "checking
for $ac_word...
" >&6; }
11901 if ${ac_cv_prog_EXPECT+:} false; then :
11902 $as_echo_n "(cached
) " >&6
11904 if test -n "$EXPECT"; then
11905 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $PATH
11911 test -z "$as_dir" && as_dir=.
11912 for ac_exec_ext in '' $ac_executable_extensions; do
11913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11914 ac_cv_prog_EXPECT="$ac_prog"
11915 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11924 EXPECT=$ac_cv_prog_EXPECT
11925 if test -n "$EXPECT"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
11927 $as_echo "$EXPECT" >&6; }
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11930 $as_echo "no
" >&6; }
11934 test -n "$EXPECT" && break
11936 test -n "$EXPECT" || EXPECT="expect
"
11938 case " $configdirs " in
11940 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
11944 for ac_prog in runtest
11946 # Extract the first word of "$ac_prog", so it can be a program name with args.
11947 set dummy $ac_prog; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11949 $as_echo_n "checking
for $ac_word...
" >&6; }
11950 if ${ac_cv_prog_RUNTEST+:} false; then :
11951 $as_echo_n "(cached
) " >&6
11953 if test -n "$RUNTEST"; then
11954 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_RUNTEST="$ac_prog"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11973 RUNTEST=$ac_cv_prog_RUNTEST
11974 if test -n "$RUNTEST"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
11976 $as_echo "$RUNTEST" >&6; }
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11979 $as_echo "no
" >&6; }
11983 test -n "$RUNTEST" && break
11985 test -n "$RUNTEST" || RUNTEST="runtest
"
11987 case " $configdirs " in
11989 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
11996 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
11997 ncn_target_tool_prefix=
11998 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
12002 if test -n "$AR"; then
12004 elif test -n "$ac_cv_prog_AR"; then
12008 if test -n "$ac_cv_prog_AR"; then
12009 for ncn_progname in ar; do
12010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12011 set dummy ${ncn_progname}; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12013 $as_echo_n "checking
for $ac_word...
" >&6; }
12014 if ${ac_cv_prog_AR+:} false; then :
12015 $as_echo_n "(cached
) " >&6
12017 if test -n "$AR"; then
12018 ac_cv_prog_AR="$AR" # Let the user override the test.
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12024 test -z "$as_dir" && as_dir=.
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12027 ac_cv_prog_AR="${ncn_progname}"
12028 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12038 if test -n "$AR"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12040 $as_echo "$AR" >&6; }
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12043 $as_echo "no
" >&6; }
12050 for ncn_progname in ar; do
12051 if test -n "$ncn_tool_prefix"; then
12052 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12053 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12055 $as_echo_n "checking
for $ac_word...
" >&6; }
12056 if ${ac_cv_prog_AR+:} false; then :
12057 $as_echo_n "(cached
) " >&6
12059 if test -n "$AR"; then
12060 ac_cv_prog_AR="$AR" # Let the user override the test.
12062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063 for as_dir in $PATH
12066 test -z "$as_dir" && as_dir=.
12067 for ac_exec_ext in '' $ac_executable_extensions; do
12068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12069 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
12070 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12080 if test -n "$AR"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12082 $as_echo "$AR" >&6; }
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12085 $as_echo "no
" >&6; }
12090 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
12091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12092 set dummy ${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_AR+:} false; then :
12096 $as_echo_n "(cached
) " >&6
12098 if test -n "$AR"; then
12099 ac_cv_prog_AR="$AR" # 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_AR="${ncn_progname}"
12109 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12119 if test -n "$AR"; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12121 $as_echo "$AR" >&6; }
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12124 $as_echo "no
" >&6; }
12129 test -n "$ac_cv_prog_AR" && break
12132 if test -z "$ac_cv_prog_AR" ; then
12134 if test $build = $host ; then
12137 AR="${ncn_tool_prefix}$2"
12143 if test -n "$AS"; then
12145 elif test -n "$ac_cv_prog_AS"; then
12149 if test -n "$ac_cv_prog_AS"; then
12150 for ncn_progname in as; do
12151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12152 set dummy ${ncn_progname}; ac_word=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12154 $as_echo_n "checking
for $ac_word...
" >&6; }
12155 if ${ac_cv_prog_AS+:} false; then :
12156 $as_echo_n "(cached
) " >&6
12158 if test -n "$AS"; then
12159 ac_cv_prog_AS="$AS" # Let the user override the test.
12161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162 for as_dir in $PATH
12165 test -z "$as_dir" && as_dir=.
12166 for ac_exec_ext in '' $ac_executable_extensions; do
12167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12168 ac_cv_prog_AS="${ncn_progname}"
12169 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12179 if test -n "$AS"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
12181 $as_echo "$AS" >&6; }
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12184 $as_echo "no
" >&6; }
12191 for ncn_progname in as; do
12192 if test -n "$ncn_tool_prefix"; then
12193 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12194 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12196 $as_echo_n "checking
for $ac_word...
" >&6; }
12197 if ${ac_cv_prog_AS+:} false; then :
12198 $as_echo_n "(cached
) " >&6
12200 if test -n "$AS"; then
12201 ac_cv_prog_AS="$AS" # Let the user override the test.
12203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204 for as_dir in $PATH
12207 test -z "$as_dir" && as_dir=.
12208 for ac_exec_ext in '' $ac_executable_extensions; do
12209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12210 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
12211 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12221 if test -n "$AS"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
12223 $as_echo "$AS" >&6; }
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12226 $as_echo "no
" >&6; }
12231 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
12232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12233 set dummy ${ncn_progname}; ac_word=$2
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12235 $as_echo_n "checking
for $ac_word...
" >&6; }
12236 if ${ac_cv_prog_AS+:} false; then :
12237 $as_echo_n "(cached
) " >&6
12239 if test -n "$AS"; then
12240 ac_cv_prog_AS="$AS" # Let the user override the test.
12242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243 for as_dir in $PATH
12246 test -z "$as_dir" && as_dir=.
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12249 ac_cv_prog_AS="${ncn_progname}"
12250 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12260 if test -n "$AS"; then
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
12262 $as_echo "$AS" >&6; }
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12265 $as_echo "no
" >&6; }
12270 test -n "$ac_cv_prog_AS" && break
12273 if test -z "$ac_cv_prog_AS" ; then
12275 if test $build = $host ; then
12278 AS="${ncn_tool_prefix}$2"
12284 if test -n "$DLLTOOL"; then
12285 ac_cv_prog_DLLTOOL=$DLLTOOL
12286 elif test -n "$ac_cv_prog_DLLTOOL"; then
12287 DLLTOOL=$ac_cv_prog_DLLTOOL
12290 if test -n "$ac_cv_prog_DLLTOOL"; then
12291 for ncn_progname in dlltool; do
12292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12293 set dummy ${ncn_progname}; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12295 $as_echo_n "checking
for $ac_word...
" >&6; }
12296 if ${ac_cv_prog_DLLTOOL+:} false; then :
12297 $as_echo_n "(cached
) " >&6
12299 if test -n "$DLLTOOL"; then
12300 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
12306 test -z "$as_dir" && as_dir=.
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12309 ac_cv_prog_DLLTOOL="${ncn_progname}"
12310 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12319 DLLTOOL=$ac_cv_prog_DLLTOOL
12320 if test -n "$DLLTOOL"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
12322 $as_echo "$DLLTOOL" >&6; }
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12325 $as_echo "no
" >&6; }
12332 for ncn_progname in dlltool; do
12333 if test -n "$ncn_tool_prefix"; then
12334 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12335 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12337 $as_echo_n "checking
for $ac_word...
" >&6; }
12338 if ${ac_cv_prog_DLLTOOL+:} false; then :
12339 $as_echo_n "(cached
) " >&6
12341 if test -n "$DLLTOOL"; then
12342 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12348 test -z "$as_dir" && as_dir=.
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12351 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
12352 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12361 DLLTOOL=$ac_cv_prog_DLLTOOL
12362 if test -n "$DLLTOOL"; then
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
12364 $as_echo "$DLLTOOL" >&6; }
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12367 $as_echo "no
" >&6; }
12372 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
12373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12374 set dummy ${ncn_progname}; ac_word=$2
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12376 $as_echo_n "checking
for $ac_word...
" >&6; }
12377 if ${ac_cv_prog_DLLTOOL+:} false; then :
12378 $as_echo_n "(cached
) " >&6
12380 if test -n "$DLLTOOL"; then
12381 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12387 test -z "$as_dir" && as_dir=.
12388 for ac_exec_ext in '' $ac_executable_extensions; do
12389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12390 ac_cv_prog_DLLTOOL="${ncn_progname}"
12391 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12400 DLLTOOL=$ac_cv_prog_DLLTOOL
12401 if test -n "$DLLTOOL"; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
12403 $as_echo "$DLLTOOL" >&6; }
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12406 $as_echo "no
" >&6; }
12411 test -n "$ac_cv_prog_DLLTOOL" && break
12414 if test -z "$ac_cv_prog_DLLTOOL" ; then
12416 if test $build = $host ; then
12419 DLLTOOL="${ncn_tool_prefix}$2"
12425 if test -n "$DSYMUTIL"; then
12426 ac_cv_prog_DSYMUTIL=$DSYMUTIL
12427 elif test -n "$ac_cv_prog_DSYMUTIL"; then
12428 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12431 if test -n "$ac_cv_prog_DSYMUTIL"; then
12432 for ncn_progname in dsymutil; do
12433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12434 set dummy ${ncn_progname}; ac_word=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12436 $as_echo_n "checking
for $ac_word...
" >&6; }
12437 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12438 $as_echo_n "(cached
) " >&6
12440 if test -n "$DSYMUTIL"; then
12441 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12447 test -z "$as_dir" && as_dir=.
12448 for ac_exec_ext in '' $ac_executable_extensions; do
12449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12450 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12451 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12460 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12461 if test -n "$DSYMUTIL"; then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
12463 $as_echo "$DSYMUTIL" >&6; }
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12466 $as_echo "no
" >&6; }
12473 for ncn_progname in dsymutil; do
12474 if test -n "$ncn_tool_prefix"; then
12475 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12476 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12478 $as_echo_n "checking
for $ac_word...
" >&6; }
12479 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12480 $as_echo_n "(cached
) " >&6
12482 if test -n "$DSYMUTIL"; then
12483 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12486 for as_dir in $PATH
12489 test -z "$as_dir" && as_dir=.
12490 for ac_exec_ext in '' $ac_executable_extensions; do
12491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12492 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
12493 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12502 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12503 if test -n "$DSYMUTIL"; then
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
12505 $as_echo "$DSYMUTIL" >&6; }
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12508 $as_echo "no
" >&6; }
12513 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
12514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12515 set dummy ${ncn_progname}; ac_word=$2
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12517 $as_echo_n "checking
for $ac_word...
" >&6; }
12518 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12519 $as_echo_n "(cached
) " >&6
12521 if test -n "$DSYMUTIL"; then
12522 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12532 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12541 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12542 if test -n "$DSYMUTIL"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
12544 $as_echo "$DSYMUTIL" >&6; }
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12547 $as_echo "no
" >&6; }
12552 test -n "$ac_cv_prog_DSYMUTIL" && break
12555 if test -z "$ac_cv_prog_DSYMUTIL" ; then
12557 if test $build = $host ; then
12560 DSYMUTIL="${ncn_tool_prefix}$2"
12566 if test -n "$LD"; then
12568 elif test -n "$ac_cv_prog_LD"; then
12572 if test -n "$ac_cv_prog_LD"; then
12573 for ncn_progname in ld; do
12574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12575 set dummy ${ncn_progname}; ac_word=$2
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12577 $as_echo_n "checking
for $ac_word...
" >&6; }
12578 if ${ac_cv_prog_LD+:} false; then :
12579 $as_echo_n "(cached
) " >&6
12581 if test -n "$LD"; then
12582 ac_cv_prog_LD="$LD" # Let the user override the test.
12584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585 for as_dir in $PATH
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12591 ac_cv_prog_LD="${ncn_progname}"
12592 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12602 if test -n "$LD"; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
12604 $as_echo "$LD" >&6; }
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12607 $as_echo "no
" >&6; }
12614 for ncn_progname in ld; do
12615 if test -n "$ncn_tool_prefix"; then
12616 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12617 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12619 $as_echo_n "checking
for $ac_word...
" >&6; }
12620 if ${ac_cv_prog_LD+:} false; then :
12621 $as_echo_n "(cached
) " >&6
12623 if test -n "$LD"; then
12624 ac_cv_prog_LD="$LD" # Let the user override the test.
12626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627 for as_dir in $PATH
12630 test -z "$as_dir" && as_dir=.
12631 for ac_exec_ext in '' $ac_executable_extensions; do
12632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12633 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
12634 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12644 if test -n "$LD"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
12646 $as_echo "$LD" >&6; }
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12649 $as_echo "no
" >&6; }
12654 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
12655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12656 set dummy ${ncn_progname}; ac_word=$2
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12658 $as_echo_n "checking
for $ac_word...
" >&6; }
12659 if ${ac_cv_prog_LD+:} false; then :
12660 $as_echo_n "(cached
) " >&6
12662 if test -n "$LD"; then
12663 ac_cv_prog_LD="$LD" # Let the user override the test.
12665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666 for as_dir in $PATH
12669 test -z "$as_dir" && as_dir=.
12670 for ac_exec_ext in '' $ac_executable_extensions; do
12671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12672 ac_cv_prog_LD="${ncn_progname}"
12673 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12683 if test -n "$LD"; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
12685 $as_echo "$LD" >&6; }
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12688 $as_echo "no
" >&6; }
12693 test -n "$ac_cv_prog_LD" && break
12696 if test -z "$ac_cv_prog_LD" ; then
12698 if test $build = $host ; then
12701 LD="${ncn_tool_prefix}$2"
12707 if test -n "$LIPO"; then
12708 ac_cv_prog_LIPO=$LIPO
12709 elif test -n "$ac_cv_prog_LIPO"; then
12710 LIPO=$ac_cv_prog_LIPO
12713 if test -n "$ac_cv_prog_LIPO"; then
12714 for ncn_progname in lipo; do
12715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12716 set dummy ${ncn_progname}; ac_word=$2
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12718 $as_echo_n "checking
for $ac_word...
" >&6; }
12719 if ${ac_cv_prog_LIPO+:} false; then :
12720 $as_echo_n "(cached
) " >&6
12722 if test -n "$LIPO"; then
12723 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12732 ac_cv_prog_LIPO="${ncn_progname}"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12742 LIPO=$ac_cv_prog_LIPO
12743 if test -n "$LIPO"; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
12745 $as_echo "$LIPO" >&6; }
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12748 $as_echo "no
" >&6; }
12755 for ncn_progname in lipo; do
12756 if test -n "$ncn_tool_prefix"; then
12757 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12758 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12760 $as_echo_n "checking
for $ac_word...
" >&6; }
12761 if ${ac_cv_prog_LIPO+:} false; then :
12762 $as_echo_n "(cached
) " >&6
12764 if test -n "$LIPO"; then
12765 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768 for as_dir in $PATH
12771 test -z "$as_dir" && as_dir=.
12772 for ac_exec_ext in '' $ac_executable_extensions; do
12773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12774 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
12775 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12784 LIPO=$ac_cv_prog_LIPO
12785 if test -n "$LIPO"; then
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
12787 $as_echo "$LIPO" >&6; }
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12790 $as_echo "no
" >&6; }
12795 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
12796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12797 set dummy ${ncn_progname}; ac_word=$2
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12799 $as_echo_n "checking
for $ac_word...
" >&6; }
12800 if ${ac_cv_prog_LIPO+:} false; then :
12801 $as_echo_n "(cached
) " >&6
12803 if test -n "$LIPO"; then
12804 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in $PATH
12810 test -z "$as_dir" && as_dir=.
12811 for ac_exec_ext in '' $ac_executable_extensions; do
12812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12813 ac_cv_prog_LIPO="${ncn_progname}"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12823 LIPO=$ac_cv_prog_LIPO
12824 if test -n "$LIPO"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
12826 $as_echo "$LIPO" >&6; }
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12829 $as_echo "no
" >&6; }
12834 test -n "$ac_cv_prog_LIPO" && break
12837 if test -z "$ac_cv_prog_LIPO" ; then
12839 if test $build = $host ; then
12842 LIPO="${ncn_tool_prefix}$2"
12848 if test -n "$NM"; then
12850 elif test -n "$ac_cv_prog_NM"; then
12854 if test -n "$ac_cv_prog_NM"; then
12855 for ncn_progname in nm; do
12856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12857 set dummy ${ncn_progname}; ac_word=$2
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12859 $as_echo_n "checking
for $ac_word...
" >&6; }
12860 if ${ac_cv_prog_NM+:} false; then :
12861 $as_echo_n "(cached
) " >&6
12863 if test -n "$NM"; then
12864 ac_cv_prog_NM="$NM" # Let the user override the test.
12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867 for as_dir in $PATH
12870 test -z "$as_dir" && as_dir=.
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12873 ac_cv_prog_NM="${ncn_progname}"
12874 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12884 if test -n "$NM"; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12886 $as_echo "$NM" >&6; }
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12889 $as_echo "no
" >&6; }
12896 for ncn_progname in nm; do
12897 if test -n "$ncn_tool_prefix"; then
12898 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12899 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12901 $as_echo_n "checking
for $ac_word...
" >&6; }
12902 if ${ac_cv_prog_NM+:} false; then :
12903 $as_echo_n "(cached
) " >&6
12905 if test -n "$NM"; then
12906 ac_cv_prog_NM="$NM" # Let the user override the test.
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12915 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12926 if test -n "$NM"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12928 $as_echo "$NM" >&6; }
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12931 $as_echo "no
" >&6; }
12936 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
12937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12938 set dummy ${ncn_progname}; ac_word=$2
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12940 $as_echo_n "checking
for $ac_word...
" >&6; }
12941 if ${ac_cv_prog_NM+:} false; then :
12942 $as_echo_n "(cached
) " >&6
12944 if test -n "$NM"; then
12945 ac_cv_prog_NM="$NM" # Let the user override the test.
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
12953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12954 ac_cv_prog_NM="${ncn_progname}"
12955 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12965 if test -n "$NM"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12967 $as_echo "$NM" >&6; }
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12970 $as_echo "no
" >&6; }
12975 test -n "$ac_cv_prog_NM" && break
12978 if test -z "$ac_cv_prog_NM" ; then
12980 if test $build = $host ; then
12983 NM="${ncn_tool_prefix}$2"
12989 if test -n "$RANLIB"; then
12990 ac_cv_prog_RANLIB=$RANLIB
12991 elif test -n "$ac_cv_prog_RANLIB"; then
12992 RANLIB=$ac_cv_prog_RANLIB
12995 if test -n "$ac_cv_prog_RANLIB"; then
12996 for ncn_progname in ranlib; do
12997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12998 set dummy ${ncn_progname}; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13000 $as_echo_n "checking
for $ac_word...
" >&6; }
13001 if ${ac_cv_prog_RANLIB+:} false; then :
13002 $as_echo_n "(cached
) " >&6
13004 if test -n "$RANLIB"; then
13005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13011 test -z "$as_dir" && as_dir=.
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13014 ac_cv_prog_RANLIB="${ncn_progname}"
13015 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13024 RANLIB=$ac_cv_prog_RANLIB
13025 if test -n "$RANLIB"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13027 $as_echo "$RANLIB" >&6; }
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13030 $as_echo "no
" >&6; }
13037 for ncn_progname in ranlib; do
13038 if test -n "$ncn_tool_prefix"; then
13039 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13040 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13042 $as_echo_n "checking
for $ac_word...
" >&6; }
13043 if ${ac_cv_prog_RANLIB+:} false; then :
13044 $as_echo_n "(cached
) " >&6
13046 if test -n "$RANLIB"; then
13047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050 for as_dir in $PATH
13053 test -z "$as_dir" && as_dir=.
13054 for ac_exec_ext in '' $ac_executable_extensions; do
13055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13056 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
13057 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13066 RANLIB=$ac_cv_prog_RANLIB
13067 if test -n "$RANLIB"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13069 $as_echo "$RANLIB" >&6; }
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13072 $as_echo "no
" >&6; }
13077 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
13078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13079 set dummy ${ncn_progname}; ac_word=$2
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13081 $as_echo_n "checking
for $ac_word...
" >&6; }
13082 if ${ac_cv_prog_RANLIB+:} false; then :
13083 $as_echo_n "(cached
) " >&6
13085 if test -n "$RANLIB"; then
13086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13095 ac_cv_prog_RANLIB="${ncn_progname}"
13096 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13105 RANLIB=$ac_cv_prog_RANLIB
13106 if test -n "$RANLIB"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13108 $as_echo "$RANLIB" >&6; }
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13111 $as_echo "no
" >&6; }
13116 test -n "$ac_cv_prog_RANLIB" && break
13119 if test -z "$ac_cv_prog_RANLIB" ; then
13125 if test -n "$STRIP"; then
13126 ac_cv_prog_STRIP=$STRIP
13127 elif test -n "$ac_cv_prog_STRIP"; then
13128 STRIP=$ac_cv_prog_STRIP
13131 if test -n "$ac_cv_prog_STRIP"; then
13132 for ncn_progname in strip; do
13133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13134 set dummy ${ncn_progname}; ac_word=$2
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13136 $as_echo_n "checking
for $ac_word...
" >&6; }
13137 if ${ac_cv_prog_STRIP+:} false; then :
13138 $as_echo_n "(cached
) " >&6
13140 if test -n "$STRIP"; then
13141 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144 for as_dir in $PATH
13147 test -z "$as_dir" && as_dir=.
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13150 ac_cv_prog_STRIP="${ncn_progname}"
13151 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13160 STRIP=$ac_cv_prog_STRIP
13161 if test -n "$STRIP"; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13163 $as_echo "$STRIP" >&6; }
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13166 $as_echo "no
" >&6; }
13173 for ncn_progname in strip; do
13174 if test -n "$ncn_tool_prefix"; then
13175 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13176 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13178 $as_echo_n "checking
for $ac_word...
" >&6; }
13179 if ${ac_cv_prog_STRIP+:} false; then :
13180 $as_echo_n "(cached
) " >&6
13182 if test -n "$STRIP"; then
13183 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13189 test -z "$as_dir" && as_dir=.
13190 for ac_exec_ext in '' $ac_executable_extensions; do
13191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13192 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
13193 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13202 STRIP=$ac_cv_prog_STRIP
13203 if test -n "$STRIP"; then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13205 $as_echo "$STRIP" >&6; }
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13208 $as_echo "no
" >&6; }
13213 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
13214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13215 set dummy ${ncn_progname}; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13217 $as_echo_n "checking
for $ac_word...
" >&6; }
13218 if ${ac_cv_prog_STRIP+:} false; then :
13219 $as_echo_n "(cached
) " >&6
13221 if test -n "$STRIP"; then
13222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13225 for as_dir in $PATH
13228 test -z "$as_dir" && as_dir=.
13229 for ac_exec_ext in '' $ac_executable_extensions; do
13230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13231 ac_cv_prog_STRIP="${ncn_progname}"
13232 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13241 STRIP=$ac_cv_prog_STRIP
13242 if test -n "$STRIP"; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13244 $as_echo "$STRIP" >&6; }
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13247 $as_echo "no
" >&6; }
13252 test -n "$ac_cv_prog_STRIP" && break
13255 if test -z "$ac_cv_prog_STRIP" ; then
13261 if test -n "$WINDRES"; then
13262 ac_cv_prog_WINDRES=$WINDRES
13263 elif test -n "$ac_cv_prog_WINDRES"; then
13264 WINDRES=$ac_cv_prog_WINDRES
13267 if test -n "$ac_cv_prog_WINDRES"; then
13268 for ncn_progname in windres; do
13269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13270 set dummy ${ncn_progname}; ac_word=$2
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13272 $as_echo_n "checking
for $ac_word...
" >&6; }
13273 if ${ac_cv_prog_WINDRES+:} false; then :
13274 $as_echo_n "(cached
) " >&6
13276 if test -n "$WINDRES"; then
13277 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13280 for as_dir in $PATH
13283 test -z "$as_dir" && as_dir=.
13284 for ac_exec_ext in '' $ac_executable_extensions; do
13285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13286 ac_cv_prog_WINDRES="${ncn_progname}"
13287 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13296 WINDRES=$ac_cv_prog_WINDRES
13297 if test -n "$WINDRES"; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
13299 $as_echo "$WINDRES" >&6; }
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13302 $as_echo "no
" >&6; }
13309 for ncn_progname in windres; do
13310 if test -n "$ncn_tool_prefix"; then
13311 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13312 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13314 $as_echo_n "checking
for $ac_word...
" >&6; }
13315 if ${ac_cv_prog_WINDRES+:} false; then :
13316 $as_echo_n "(cached
) " >&6
13318 if test -n "$WINDRES"; then
13319 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13322 for as_dir in $PATH
13325 test -z "$as_dir" && as_dir=.
13326 for ac_exec_ext in '' $ac_executable_extensions; do
13327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13328 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
13329 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13338 WINDRES=$ac_cv_prog_WINDRES
13339 if test -n "$WINDRES"; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
13341 $as_echo "$WINDRES" >&6; }
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13344 $as_echo "no
" >&6; }
13349 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
13350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13351 set dummy ${ncn_progname}; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13353 $as_echo_n "checking
for $ac_word...
" >&6; }
13354 if ${ac_cv_prog_WINDRES+:} false; then :
13355 $as_echo_n "(cached
) " >&6
13357 if test -n "$WINDRES"; then
13358 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361 for as_dir in $PATH
13364 test -z "$as_dir" && as_dir=.
13365 for ac_exec_ext in '' $ac_executable_extensions; do
13366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13367 ac_cv_prog_WINDRES="${ncn_progname}"
13368 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13377 WINDRES=$ac_cv_prog_WINDRES
13378 if test -n "$WINDRES"; then
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
13380 $as_echo "$WINDRES" >&6; }
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13383 $as_echo "no
" >&6; }
13388 test -n "$ac_cv_prog_WINDRES" && break
13391 if test -z "$ac_cv_prog_WINDRES" ; then
13393 if test $build = $host ; then
13396 WINDRES="${ncn_tool_prefix}$2"
13402 if test -n "$WINDMC"; then
13403 ac_cv_prog_WINDMC=$WINDMC
13404 elif test -n "$ac_cv_prog_WINDMC"; then
13405 WINDMC=$ac_cv_prog_WINDMC
13408 if test -n "$ac_cv_prog_WINDMC"; then
13409 for ncn_progname in windmc; do
13410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13411 set dummy ${ncn_progname}; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13413 $as_echo_n "checking
for $ac_word...
" >&6; }
13414 if ${ac_cv_prog_WINDMC+:} false; then :
13415 $as_echo_n "(cached
) " >&6
13417 if test -n "$WINDMC"; then
13418 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13427 ac_cv_prog_WINDMC="${ncn_progname}"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13437 WINDMC=$ac_cv_prog_WINDMC
13438 if test -n "$WINDMC"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
13440 $as_echo "$WINDMC" >&6; }
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13443 $as_echo "no
" >&6; }
13450 for ncn_progname in windmc; do
13451 if test -n "$ncn_tool_prefix"; then
13452 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13453 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13455 $as_echo_n "checking
for $ac_word...
" >&6; }
13456 if ${ac_cv_prog_WINDMC+:} false; then :
13457 $as_echo_n "(cached
) " >&6
13459 if test -n "$WINDMC"; then
13460 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13463 for as_dir in $PATH
13466 test -z "$as_dir" && as_dir=.
13467 for ac_exec_ext in '' $ac_executable_extensions; do
13468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13469 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
13470 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13479 WINDMC=$ac_cv_prog_WINDMC
13480 if test -n "$WINDMC"; then
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
13482 $as_echo "$WINDMC" >&6; }
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13485 $as_echo "no
" >&6; }
13490 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
13491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13492 set dummy ${ncn_progname}; ac_word=$2
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13494 $as_echo_n "checking
for $ac_word...
" >&6; }
13495 if ${ac_cv_prog_WINDMC+:} false; then :
13496 $as_echo_n "(cached
) " >&6
13498 if test -n "$WINDMC"; then
13499 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13505 test -z "$as_dir" && as_dir=.
13506 for ac_exec_ext in '' $ac_executable_extensions; do
13507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13508 ac_cv_prog_WINDMC="${ncn_progname}"
13509 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13518 WINDMC=$ac_cv_prog_WINDMC
13519 if test -n "$WINDMC"; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
13521 $as_echo "$WINDMC" >&6; }
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13524 $as_echo "no
" >&6; }
13529 test -n "$ac_cv_prog_WINDMC" && break
13532 if test -z "$ac_cv_prog_WINDMC" ; then
13534 if test $build = $host ; then
13537 WINDMC="${ncn_tool_prefix}$2"
13543 if test -n "$OBJCOPY"; then
13544 ac_cv_prog_OBJCOPY=$OBJCOPY
13545 elif test -n "$ac_cv_prog_OBJCOPY"; then
13546 OBJCOPY=$ac_cv_prog_OBJCOPY
13549 if test -n "$ac_cv_prog_OBJCOPY"; then
13550 for ncn_progname in objcopy; do
13551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13552 set dummy ${ncn_progname}; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13554 $as_echo_n "checking
for $ac_word...
" >&6; }
13555 if ${ac_cv_prog_OBJCOPY+:} false; then :
13556 $as_echo_n "(cached
) " >&6
13558 if test -n "$OBJCOPY"; then
13559 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13562 for as_dir in $PATH
13565 test -z "$as_dir" && as_dir=.
13566 for ac_exec_ext in '' $ac_executable_extensions; do
13567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13568 ac_cv_prog_OBJCOPY="${ncn_progname}"
13569 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13578 OBJCOPY=$ac_cv_prog_OBJCOPY
13579 if test -n "$OBJCOPY"; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
13581 $as_echo "$OBJCOPY" >&6; }
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13584 $as_echo "no
" >&6; }
13591 for ncn_progname in objcopy; do
13592 if test -n "$ncn_tool_prefix"; then
13593 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13594 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13596 $as_echo_n "checking
for $ac_word...
" >&6; }
13597 if ${ac_cv_prog_OBJCOPY+:} false; then :
13598 $as_echo_n "(cached
) " >&6
13600 if test -n "$OBJCOPY"; then
13601 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604 for as_dir in $PATH
13607 test -z "$as_dir" && as_dir=.
13608 for ac_exec_ext in '' $ac_executable_extensions; do
13609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13610 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
13611 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13620 OBJCOPY=$ac_cv_prog_OBJCOPY
13621 if test -n "$OBJCOPY"; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
13623 $as_echo "$OBJCOPY" >&6; }
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13626 $as_echo "no
" >&6; }
13631 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
13632 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13633 set dummy ${ncn_progname}; ac_word=$2
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13635 $as_echo_n "checking
for $ac_word...
" >&6; }
13636 if ${ac_cv_prog_OBJCOPY+:} false; then :
13637 $as_echo_n "(cached
) " >&6
13639 if test -n "$OBJCOPY"; then
13640 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13643 for as_dir in $PATH
13646 test -z "$as_dir" && as_dir=.
13647 for ac_exec_ext in '' $ac_executable_extensions; do
13648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13649 ac_cv_prog_OBJCOPY="${ncn_progname}"
13650 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13659 OBJCOPY=$ac_cv_prog_OBJCOPY
13660 if test -n "$OBJCOPY"; then
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
13662 $as_echo "$OBJCOPY" >&6; }
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13665 $as_echo "no
" >&6; }
13670 test -n "$ac_cv_prog_OBJCOPY" && break
13673 if test -z "$ac_cv_prog_OBJCOPY" ; then
13675 if test $build = $host ; then
13678 OBJCOPY="${ncn_tool_prefix}$2"
13684 if test -n "$OBJDUMP"; then
13685 ac_cv_prog_OBJDUMP=$OBJDUMP
13686 elif test -n "$ac_cv_prog_OBJDUMP"; then
13687 OBJDUMP=$ac_cv_prog_OBJDUMP
13690 if test -n "$ac_cv_prog_OBJDUMP"; then
13691 for ncn_progname in objdump; do
13692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13693 set dummy ${ncn_progname}; ac_word=$2
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13695 $as_echo_n "checking
for $ac_word...
" >&6; }
13696 if ${ac_cv_prog_OBJDUMP+:} false; then :
13697 $as_echo_n "(cached
) " >&6
13699 if test -n "$OBJDUMP"; then
13700 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13703 for as_dir in $PATH
13706 test -z "$as_dir" && as_dir=.
13707 for ac_exec_ext in '' $ac_executable_extensions; do
13708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13709 ac_cv_prog_OBJDUMP="${ncn_progname}"
13710 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13719 OBJDUMP=$ac_cv_prog_OBJDUMP
13720 if test -n "$OBJDUMP"; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13722 $as_echo "$OBJDUMP" >&6; }
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13725 $as_echo "no
" >&6; }
13732 for ncn_progname in objdump; do
13733 if test -n "$ncn_tool_prefix"; then
13734 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13735 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13737 $as_echo_n "checking
for $ac_word...
" >&6; }
13738 if ${ac_cv_prog_OBJDUMP+:} false; then :
13739 $as_echo_n "(cached
) " >&6
13741 if test -n "$OBJDUMP"; then
13742 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
13750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13751 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
13752 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13761 OBJDUMP=$ac_cv_prog_OBJDUMP
13762 if test -n "$OBJDUMP"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13764 $as_echo "$OBJDUMP" >&6; }
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13767 $as_echo "no
" >&6; }
13772 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
13773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13774 set dummy ${ncn_progname}; ac_word=$2
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13776 $as_echo_n "checking
for $ac_word...
" >&6; }
13777 if ${ac_cv_prog_OBJDUMP+:} false; then :
13778 $as_echo_n "(cached
) " >&6
13780 if test -n "$OBJDUMP"; then
13781 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784 for as_dir in $PATH
13787 test -z "$as_dir" && as_dir=.
13788 for ac_exec_ext in '' $ac_executable_extensions; do
13789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13790 ac_cv_prog_OBJDUMP="${ncn_progname}"
13791 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13800 OBJDUMP=$ac_cv_prog_OBJDUMP
13801 if test -n "$OBJDUMP"; then
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13803 $as_echo "$OBJDUMP" >&6; }
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13806 $as_echo "no
" >&6; }
13811 test -n "$ac_cv_prog_OBJDUMP" && break
13814 if test -z "$ac_cv_prog_OBJDUMP" ; then
13816 if test $build = $host ; then
13819 OBJDUMP="${ncn_tool_prefix}$2"
13825 if test -n "$OTOOL"; then
13826 ac_cv_prog_OTOOL=$OTOOL
13827 elif test -n "$ac_cv_prog_OTOOL"; then
13828 OTOOL=$ac_cv_prog_OTOOL
13831 if test -n "$ac_cv_prog_OTOOL"; then
13832 for ncn_progname in otool; do
13833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13834 set dummy ${ncn_progname}; ac_word=$2
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13836 $as_echo_n "checking
for $ac_word...
" >&6; }
13837 if ${ac_cv_prog_OTOOL+:} false; then :
13838 $as_echo_n "(cached
) " >&6
13840 if test -n "$OTOOL"; then
13841 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13847 test -z "$as_dir" && as_dir=.
13848 for ac_exec_ext in '' $ac_executable_extensions; do
13849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13850 ac_cv_prog_OTOOL="${ncn_progname}"
13851 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13860 OTOOL=$ac_cv_prog_OTOOL
13861 if test -n "$OTOOL"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13863 $as_echo "$OTOOL" >&6; }
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13866 $as_echo "no
" >&6; }
13873 for ncn_progname in otool; do
13874 if test -n "$ncn_tool_prefix"; then
13875 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13876 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13878 $as_echo_n "checking
for $ac_word...
" >&6; }
13879 if ${ac_cv_prog_OTOOL+:} false; then :
13880 $as_echo_n "(cached
) " >&6
13882 if test -n "$OTOOL"; then
13883 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $PATH
13889 test -z "$as_dir" && as_dir=.
13890 for ac_exec_ext in '' $ac_executable_extensions; do
13891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13892 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
13893 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13902 OTOOL=$ac_cv_prog_OTOOL
13903 if test -n "$OTOOL"; then
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13905 $as_echo "$OTOOL" >&6; }
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13908 $as_echo "no
" >&6; }
13913 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
13914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13915 set dummy ${ncn_progname}; ac_word=$2
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13917 $as_echo_n "checking
for $ac_word...
" >&6; }
13918 if ${ac_cv_prog_OTOOL+:} false; then :
13919 $as_echo_n "(cached
) " >&6
13921 if test -n "$OTOOL"; then
13922 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13931 ac_cv_prog_OTOOL="${ncn_progname}"
13932 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13941 OTOOL=$ac_cv_prog_OTOOL
13942 if test -n "$OTOOL"; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13944 $as_echo "$OTOOL" >&6; }
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13947 $as_echo "no
" >&6; }
13952 test -n "$ac_cv_prog_OTOOL" && break
13955 if test -z "$ac_cv_prog_OTOOL" ; then
13957 if test $build = $host ; then
13960 OTOOL="${ncn_tool_prefix}$2"
13966 if test -n "$READELF"; then
13967 ac_cv_prog_READELF=$READELF
13968 elif test -n "$ac_cv_prog_READELF"; then
13969 READELF=$ac_cv_prog_READELF
13972 if test -n "$ac_cv_prog_READELF"; then
13973 for ncn_progname in readelf; do
13974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13975 set dummy ${ncn_progname}; ac_word=$2
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13977 $as_echo_n "checking
for $ac_word...
" >&6; }
13978 if ${ac_cv_prog_READELF+:} false; then :
13979 $as_echo_n "(cached
) " >&6
13981 if test -n "$READELF"; then
13982 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH
13988 test -z "$as_dir" && as_dir=.
13989 for ac_exec_ext in '' $ac_executable_extensions; do
13990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13991 ac_cv_prog_READELF="${ncn_progname}"
13992 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14001 READELF=$ac_cv_prog_READELF
14002 if test -n "$READELF"; then
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
14004 $as_echo "$READELF" >&6; }
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14007 $as_echo "no
" >&6; }
14014 for ncn_progname in readelf; do
14015 if test -n "$ncn_tool_prefix"; then
14016 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
14017 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14019 $as_echo_n "checking
for $ac_word...
" >&6; }
14020 if ${ac_cv_prog_READELF+:} false; then :
14021 $as_echo_n "(cached
) " >&6
14023 if test -n "$READELF"; then
14024 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14027 for as_dir in $PATH
14030 test -z "$as_dir" && as_dir=.
14031 for ac_exec_ext in '' $ac_executable_extensions; do
14032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14033 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
14034 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14043 READELF=$ac_cv_prog_READELF
14044 if test -n "$READELF"; then
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
14046 $as_echo "$READELF" >&6; }
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14049 $as_echo "no
" >&6; }
14054 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
14055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14056 set dummy ${ncn_progname}; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14058 $as_echo_n "checking
for $ac_word...
" >&6; }
14059 if ${ac_cv_prog_READELF+:} false; then :
14060 $as_echo_n "(cached
) " >&6
14062 if test -n "$READELF"; then
14063 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14066 for as_dir in $PATH
14069 test -z "$as_dir" && as_dir=.
14070 for ac_exec_ext in '' $ac_executable_extensions; do
14071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14072 ac_cv_prog_READELF="${ncn_progname}"
14073 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14082 READELF=$ac_cv_prog_READELF
14083 if test -n "$READELF"; then
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
14085 $as_echo "$READELF" >&6; }
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14088 $as_echo "no
" >&6; }
14093 test -n "$ac_cv_prog_READELF" && break
14096 if test -z "$ac_cv_prog_READELF" ; then
14098 if test $build = $host ; then
14101 READELF="${ncn_tool_prefix}$2"
14111 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
14115 $as_echo_n "checking
for -plugin option...
" >&6; }
14117 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
14119 for plugin in $plugin_names; do
14120 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14121 if test x$plugin_so = x$plugin; then
14122 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14124 if test x$plugin_so != x$plugin; then
14125 plugin_option="--plugin $plugin_so"
14129 if test -n "$ac_tool_prefix"; then
14130 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14131 set dummy ${ac_tool_prefix}ar; ac_word=$2
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14133 $as_echo_n "checking
for $ac_word...
" >&6; }
14134 if ${ac_cv_prog_AR+:} false; then :
14135 $as_echo_n "(cached
) " >&6
14137 if test -n "$AR"; then
14138 ac_cv_prog_AR="$AR" # Let the user override the test.
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $PATH
14144 test -z "$as_dir" && as_dir=.
14145 for ac_exec_ext in '' $ac_executable_extensions; do
14146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14147 ac_cv_prog_AR="${ac_tool_prefix}ar"
14148 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14158 if test -n "$AR"; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14160 $as_echo "$AR" >&6; }
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14163 $as_echo "no
" >&6; }
14168 if test -z "$ac_cv_prog_AR"; then
14170 # Extract the first word of "ar", so it can be a program name with args.
14171 set dummy ar; ac_word=$2
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14173 $as_echo_n "checking
for $ac_word...
" >&6; }
14174 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14175 $as_echo_n "(cached
) " >&6
14177 if test -n "$ac_ct_AR"; then
14178 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181 for as_dir in $PATH
14184 test -z "$as_dir" && as_dir=.
14185 for ac_exec_ext in '' $ac_executable_extensions; do
14186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14187 ac_cv_prog_ac_ct_AR="ar"
14188 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14197 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14198 if test -n "$ac_ct_AR"; then
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14200 $as_echo "$ac_ct_AR" >&6; }
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14203 $as_echo "no
" >&6; }
14206 if test "x
$ac_ct_AR" = x; then
14209 case $cross_compiling:$ac_tool_warned in
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14212 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14213 ac_tool_warned=yes ;;
14218 AR="$ac_cv_prog_AR"
14221 if test "${AR}" = "" ; then
14222 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
14225 ${AR} $plugin_option rc conftest.a conftest.c
14226 if test "$?
" != 0; then
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
14228 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
14232 if test -n "$plugin_option"; then
14233 PLUGIN_OPTION="$plugin_option"
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
14235 $as_echo "$plugin_option" >&6; }
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14238 $as_echo "no
" >&6; }
14242 RANLIB_PLUGIN_OPTION=
14243 if test -n "$PLUGIN_OPTION"; then
14244 if $AR --help 2>&1 | grep -q "\
--plugin"; then
14245 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
14247 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
14248 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
14256 # Check whether --with-build-time-tools was given.
14257 if test "${with_build_time_tools+set}" = set; then :
14258 withval=$with_build_time_tools; case x"$withval" in
14261 with_build_time_tools=
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
14263 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
14267 with_build_time_tools=
14273 if test -n "$CC_FOR_TARGET"; then
14274 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
14275 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14276 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14279 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14280 for ncn_progname in cc gcc; do
14281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14282 set dummy ${ncn_progname}; ac_word=$2
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14284 $as_echo_n "checking
for $ac_word...
" >&6; }
14285 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14286 $as_echo_n "(cached
) " >&6
14288 if test -n "$CC_FOR_TARGET"; then
14289 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292 for as_dir in $PATH
14295 test -z "$as_dir" && as_dir=.
14296 for ac_exec_ext in '' $ac_executable_extensions; do
14297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14298 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14308 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14309 if test -n "$CC_FOR_TARGET"; then
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
14311 $as_echo "$CC_FOR_TARGET" >&6; }
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14314 $as_echo "no
" >&6; }
14321 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14322 for ncn_progname in cc gcc; do
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14324 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14325 if test -x $with_build_time_tools/${ncn_progname}; then
14326 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14328 $as_echo "yes" >&6; }
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14332 $as_echo "no
" >&6; }
14337 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
14338 for ncn_progname in cc gcc; do
14339 if test -n "$ncn_target_tool_prefix"; then
14340 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14341 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14343 $as_echo_n "checking
for $ac_word...
" >&6; }
14344 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14345 $as_echo_n "(cached
) " >&6
14347 if test -n "$CC_FOR_TARGET"; then
14348 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14354 test -z "$as_dir" && as_dir=.
14355 for ac_exec_ext in '' $ac_executable_extensions; do
14356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14357 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14358 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14367 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14368 if test -n "$CC_FOR_TARGET"; then
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
14370 $as_echo "$CC_FOR_TARGET" >&6; }
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14373 $as_echo "no
" >&6; }
14378 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
14379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14380 set dummy ${ncn_progname}; ac_word=$2
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14382 $as_echo_n "checking
for $ac_word...
" >&6; }
14383 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14384 $as_echo_n "(cached
) " >&6
14386 if test -n "$CC_FOR_TARGET"; then
14387 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14390 for as_dir in $PATH
14393 test -z "$as_dir" && as_dir=.
14394 for ac_exec_ext in '' $ac_executable_extensions; do
14395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14396 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14397 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14406 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14407 if test -n "$CC_FOR_TARGET"; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
14409 $as_echo "$CC_FOR_TARGET" >&6; }
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14412 $as_echo "no
" >&6; }
14417 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
14421 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
14423 if test $build = $target ; then
14426 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14429 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
14434 if test -n "$CXX_FOR_TARGET"; then
14435 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
14436 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14437 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14440 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14441 for ncn_progname in c++ g++ cxx gxx; do
14442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14443 set dummy ${ncn_progname}; ac_word=$2
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14445 $as_echo_n "checking
for $ac_word...
" >&6; }
14446 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14447 $as_echo_n "(cached
) " >&6
14449 if test -n "$CXX_FOR_TARGET"; then
14450 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14453 for as_dir in $PATH
14456 test -z "$as_dir" && as_dir=.
14457 for ac_exec_ext in '' $ac_executable_extensions; do
14458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14459 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14460 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14469 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14470 if test -n "$CXX_FOR_TARGET"; then
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
14472 $as_echo "$CXX_FOR_TARGET" >&6; }
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14475 $as_echo "no
" >&6; }
14482 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
14483 for ncn_progname in c++ g++ cxx gxx; do
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14485 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14486 if test -x $with_build_time_tools/${ncn_progname}; then
14487 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14489 $as_echo "yes" >&6; }
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14493 $as_echo "no
" >&6; }
14498 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
14499 for ncn_progname in c++ g++ cxx gxx; do
14500 if test -n "$ncn_target_tool_prefix"; then
14501 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14502 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14504 $as_echo_n "checking
for $ac_word...
" >&6; }
14505 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14506 $as_echo_n "(cached
) " >&6
14508 if test -n "$CXX_FOR_TARGET"; then
14509 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14512 for as_dir in $PATH
14515 test -z "$as_dir" && as_dir=.
14516 for ac_exec_ext in '' $ac_executable_extensions; do
14517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14518 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14519 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14528 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14529 if test -n "$CXX_FOR_TARGET"; then
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
14531 $as_echo "$CXX_FOR_TARGET" >&6; }
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14534 $as_echo "no
" >&6; }
14539 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
14540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14541 set dummy ${ncn_progname}; ac_word=$2
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14543 $as_echo_n "checking
for $ac_word...
" >&6; }
14544 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14545 $as_echo_n "(cached
) " >&6
14547 if test -n "$CXX_FOR_TARGET"; then
14548 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14551 for as_dir in $PATH
14554 test -z "$as_dir" && as_dir=.
14555 for ac_exec_ext in '' $ac_executable_extensions; do
14556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14557 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14567 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14568 if test -n "$CXX_FOR_TARGET"; then
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
14570 $as_echo "$CXX_FOR_TARGET" >&6; }
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14573 $as_echo "no
" >&6; }
14578 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
14582 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
14583 set dummy c++ g++ cxx gxx
14584 if test $build = $target ; then
14585 CXX_FOR_TARGET="$2"
14587 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
14590 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
14595 if test -n "$GCC_FOR_TARGET"; then
14596 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
14597 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14598 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14601 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14602 for ncn_progname in gcc; do
14603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14604 set dummy ${ncn_progname}; ac_word=$2
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14606 $as_echo_n "checking
for $ac_word...
" >&6; }
14607 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14608 $as_echo_n "(cached
) " >&6
14610 if test -n "$GCC_FOR_TARGET"; then
14611 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14614 for as_dir in $PATH
14617 test -z "$as_dir" && as_dir=.
14618 for ac_exec_ext in '' $ac_executable_extensions; do
14619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14620 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14621 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14630 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14631 if test -n "$GCC_FOR_TARGET"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
14633 $as_echo "$GCC_FOR_TARGET" >&6; }
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14636 $as_echo "no
" >&6; }
14643 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14644 for ncn_progname in gcc; do
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14646 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14647 if test -x $with_build_time_tools/${ncn_progname}; then
14648 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14650 $as_echo "yes" >&6; }
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14654 $as_echo "no
" >&6; }
14659 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
14660 for ncn_progname in gcc; do
14661 if test -n "$ncn_target_tool_prefix"; then
14662 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14663 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14665 $as_echo_n "checking
for $ac_word...
" >&6; }
14666 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14667 $as_echo_n "(cached
) " >&6
14669 if test -n "$GCC_FOR_TARGET"; then
14670 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14673 for as_dir in $PATH
14676 test -z "$as_dir" && as_dir=.
14677 for ac_exec_ext in '' $ac_executable_extensions; do
14678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14679 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14680 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14689 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14690 if test -n "$GCC_FOR_TARGET"; then
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
14692 $as_echo "$GCC_FOR_TARGET" >&6; }
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14695 $as_echo "no
" >&6; }
14700 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
14701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14702 set dummy ${ncn_progname}; ac_word=$2
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14704 $as_echo_n "checking
for $ac_word...
" >&6; }
14705 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14706 $as_echo_n "(cached
) " >&6
14708 if test -n "$GCC_FOR_TARGET"; then
14709 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14712 for as_dir in $PATH
14715 test -z "$as_dir" && as_dir=.
14716 for ac_exec_ext in '' $ac_executable_extensions; do
14717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14718 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14719 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14728 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14729 if test -n "$GCC_FOR_TARGET"; then
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
14731 $as_echo "$GCC_FOR_TARGET" >&6; }
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14734 $as_echo "no
" >&6; }
14739 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
14743 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
14744 GCC_FOR_TARGET="${CC_FOR_TARGET}"
14746 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
14751 if test -n "$GFORTRAN_FOR_TARGET"; then
14752 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
14753 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14754 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14757 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14758 for ncn_progname in gfortran; do
14759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14760 set dummy ${ncn_progname}; ac_word=$2
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14762 $as_echo_n "checking
for $ac_word...
" >&6; }
14763 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14764 $as_echo_n "(cached
) " >&6
14766 if test -n "$GFORTRAN_FOR_TARGET"; then
14767 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14770 for as_dir in $PATH
14773 test -z "$as_dir" && as_dir=.
14774 for ac_exec_ext in '' $ac_executable_extensions; do
14775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14776 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14777 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14786 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14787 if test -n "$GFORTRAN_FOR_TARGET"; then
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
14789 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14792 $as_echo "no
" >&6; }
14799 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
14800 for ncn_progname in gfortran; do
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14802 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14803 if test -x $with_build_time_tools/${ncn_progname}; then
14804 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14806 $as_echo "yes" >&6; }
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14810 $as_echo "no
" >&6; }
14815 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14816 for ncn_progname in gfortran; do
14817 if test -n "$ncn_target_tool_prefix"; then
14818 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14819 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14821 $as_echo_n "checking
for $ac_word...
" >&6; }
14822 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14823 $as_echo_n "(cached
) " >&6
14825 if test -n "$GFORTRAN_FOR_TARGET"; then
14826 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14829 for as_dir in $PATH
14832 test -z "$as_dir" && as_dir=.
14833 for ac_exec_ext in '' $ac_executable_extensions; do
14834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14835 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14836 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14845 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14846 if test -n "$GFORTRAN_FOR_TARGET"; then
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
14848 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14851 $as_echo "no
" >&6; }
14856 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
14857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14858 set dummy ${ncn_progname}; ac_word=$2
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14860 $as_echo_n "checking
for $ac_word...
" >&6; }
14861 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14862 $as_echo_n "(cached
) " >&6
14864 if test -n "$GFORTRAN_FOR_TARGET"; then
14865 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14868 for as_dir in $PATH
14871 test -z "$as_dir" && as_dir=.
14872 for ac_exec_ext in '' $ac_executable_extensions; do
14873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14874 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14875 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14884 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14885 if test -n "$GFORTRAN_FOR_TARGET"; then
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
14887 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14890 $as_echo "no
" >&6; }
14895 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
14899 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
14901 if test $build = $target ; then
14902 GFORTRAN_FOR_TARGET="$2"
14904 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
14907 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
14912 if test -n "$GOC_FOR_TARGET"; then
14913 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
14914 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14915 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14918 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14919 for ncn_progname in gccgo; do
14920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14921 set dummy ${ncn_progname}; ac_word=$2
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14923 $as_echo_n "checking
for $ac_word...
" >&6; }
14924 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14925 $as_echo_n "(cached
) " >&6
14927 if test -n "$GOC_FOR_TARGET"; then
14928 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14931 for as_dir in $PATH
14934 test -z "$as_dir" && as_dir=.
14935 for ac_exec_ext in '' $ac_executable_extensions; do
14936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14937 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14938 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14947 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14948 if test -n "$GOC_FOR_TARGET"; then
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
14950 $as_echo "$GOC_FOR_TARGET" >&6; }
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14953 $as_echo "no
" >&6; }
14960 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14961 for ncn_progname in gccgo; do
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14963 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14964 if test -x $with_build_time_tools/${ncn_progname}; then
14965 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14967 $as_echo "yes" >&6; }
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14971 $as_echo "no
" >&6; }
14976 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
14977 for ncn_progname in gccgo; do
14978 if test -n "$ncn_target_tool_prefix"; then
14979 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14980 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14982 $as_echo_n "checking
for $ac_word...
" >&6; }
14983 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14984 $as_echo_n "(cached
) " >&6
14986 if test -n "$GOC_FOR_TARGET"; then
14987 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14990 for as_dir in $PATH
14993 test -z "$as_dir" && as_dir=.
14994 for ac_exec_ext in '' $ac_executable_extensions; do
14995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14996 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14997 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15006 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15007 if test -n "$GOC_FOR_TARGET"; then
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
15009 $as_echo "$GOC_FOR_TARGET" >&6; }
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15012 $as_echo "no
" >&6; }
15017 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
15018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15019 set dummy ${ncn_progname}; ac_word=$2
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15021 $as_echo_n "checking
for $ac_word...
" >&6; }
15022 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15023 $as_echo_n "(cached
) " >&6
15025 if test -n "$GOC_FOR_TARGET"; then
15026 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15029 for as_dir in $PATH
15032 test -z "$as_dir" && as_dir=.
15033 for ac_exec_ext in '' $ac_executable_extensions; do
15034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15035 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
15036 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15045 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15046 if test -n "$GOC_FOR_TARGET"; then
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
15048 $as_echo "$GOC_FOR_TARGET" >&6; }
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15051 $as_echo "no
" >&6; }
15056 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
15060 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
15062 if test $build = $target ; then
15063 GOC_FOR_TARGET="$2"
15065 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15068 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
15073 if test -n "$GDC_FOR_TARGET"; then
15074 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
15075 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15076 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15079 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15080 for ncn_progname in gdc; do
15081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15082 set dummy ${ncn_progname}; ac_word=$2
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15084 $as_echo_n "checking
for $ac_word...
" >&6; }
15085 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15086 $as_echo_n "(cached
) " >&6
15088 if test -n "$GDC_FOR_TARGET"; then
15089 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15092 for as_dir in $PATH
15095 test -z "$as_dir" && as_dir=.
15096 for ac_exec_ext in '' $ac_executable_extensions; do
15097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15098 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15099 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15108 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15109 if test -n "$GDC_FOR_TARGET"; then
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
15111 $as_echo "$GDC_FOR_TARGET" >&6; }
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15114 $as_echo "no
" >&6; }
15121 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15122 for ncn_progname in gdc; do
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15124 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15125 if test -x $with_build_time_tools/${ncn_progname}; then
15126 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15128 $as_echo "yes" >&6; }
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15132 $as_echo "no
" >&6; }
15137 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
15138 for ncn_progname in gdc; do
15139 if test -n "$ncn_target_tool_prefix"; then
15140 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15141 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15143 $as_echo_n "checking
for $ac_word...
" >&6; }
15144 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15145 $as_echo_n "(cached
) " >&6
15147 if test -n "$GDC_FOR_TARGET"; then
15148 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151 for as_dir in $PATH
15154 test -z "$as_dir" && as_dir=.
15155 for ac_exec_ext in '' $ac_executable_extensions; do
15156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15157 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15158 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15167 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15168 if test -n "$GDC_FOR_TARGET"; then
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
15170 $as_echo "$GDC_FOR_TARGET" >&6; }
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15173 $as_echo "no
" >&6; }
15178 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
15179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15180 set dummy ${ncn_progname}; ac_word=$2
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15182 $as_echo_n "checking
for $ac_word...
" >&6; }
15183 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15184 $as_echo_n "(cached
) " >&6
15186 if test -n "$GDC_FOR_TARGET"; then
15187 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15190 for as_dir in $PATH
15193 test -z "$as_dir" && as_dir=.
15194 for ac_exec_ext in '' $ac_executable_extensions; do
15195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15196 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15197 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15206 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15207 if test -n "$GDC_FOR_TARGET"; then
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
15209 $as_echo "$GDC_FOR_TARGET" >&6; }
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15212 $as_echo "no
" >&6; }
15217 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
15221 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
15223 if test $build = $target ; then
15224 GDC_FOR_TARGET="$2"
15226 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15229 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
15234 if test -n "$GM2_FOR_TARGET"; then
15235 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
15236 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15237 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15240 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15241 for ncn_progname in gm2; do
15242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15243 set dummy ${ncn_progname}; ac_word=$2
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15245 $as_echo_n "checking
for $ac_word...
" >&6; }
15246 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15247 $as_echo_n "(cached
) " >&6
15249 if test -n "$GM2_FOR_TARGET"; then
15250 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15253 for as_dir in $PATH
15256 test -z "$as_dir" && as_dir=.
15257 for ac_exec_ext in '' $ac_executable_extensions; do
15258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15259 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15260 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15269 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15270 if test -n "$GM2_FOR_TARGET"; then
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
15272 $as_echo "$GM2_FOR_TARGET" >&6; }
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15275 $as_echo "no
" >&6; }
15282 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
15283 for ncn_progname in gm2; do
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15285 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15286 if test -x $with_build_time_tools/${ncn_progname}; then
15287 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15289 $as_echo "yes" >&6; }
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15293 $as_echo "no
" >&6; }
15298 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
15299 for ncn_progname in gm2; do
15300 if test -n "$ncn_target_tool_prefix"; then
15301 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15302 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15304 $as_echo_n "checking
for $ac_word...
" >&6; }
15305 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15306 $as_echo_n "(cached
) " >&6
15308 if test -n "$GM2_FOR_TARGET"; then
15309 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312 for as_dir in $PATH
15315 test -z "$as_dir" && as_dir=.
15316 for ac_exec_ext in '' $ac_executable_extensions; do
15317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15318 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15319 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15328 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15329 if test -n "$GM2_FOR_TARGET"; then
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
15331 $as_echo "$GM2_FOR_TARGET" >&6; }
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15334 $as_echo "no
" >&6; }
15339 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
15340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15341 set dummy ${ncn_progname}; ac_word=$2
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15343 $as_echo_n "checking
for $ac_word...
" >&6; }
15344 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15345 $as_echo_n "(cached
) " >&6
15347 if test -n "$GM2_FOR_TARGET"; then
15348 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15351 for as_dir in $PATH
15354 test -z "$as_dir" && as_dir=.
15355 for ac_exec_ext in '' $ac_executable_extensions; do
15356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15357 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15358 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15367 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15368 if test -n "$GM2_FOR_TARGET"; then
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
15370 $as_echo "$GM2_FOR_TARGET" >&6; }
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15373 $as_echo "no
" >&6; }
15378 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
15382 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
15384 if test $build = $target ; then
15385 GM2_FOR_TARGET="$2"
15387 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
15390 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
15395 cat > conftest.c << \EOF
15400 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
15401 have_gcc_for_target=yes
15403 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
15404 have_gcc_for_target=no
15411 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15412 if test -n "$with_build_time_tools"; then
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
15414 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
15415 if test -x $with_build_time_tools/ar; then
15416 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
15417 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
15419 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15422 $as_echo "no
" >&6; }
15424 elif test $build != $host && test $have_gcc_for_target = yes; then
15425 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
15426 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
15427 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15430 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15431 # Extract the first word of "ar", so it can be a program name with args.
15432 set dummy ar; ac_word=$2
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15434 $as_echo_n "checking
for $ac_word...
" >&6; }
15435 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
15436 $as_echo_n "(cached
) " >&6
15438 case $AR_FOR_TARGET in
15440 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
15443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15444 for as_dir in $gcc_cv_tool_dirs
15447 test -z "$as_dir" && as_dir=.
15448 for ac_exec_ext in '' $ac_executable_extensions; do
15449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15450 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15451 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15461 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15462 if test -n "$AR_FOR_TARGET"; then
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
15464 $as_echo "$AR_FOR_TARGET" >&6; }
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15467 $as_echo "no
" >&6; }
15472 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15475 if test -n "$AR_FOR_TARGET"; then
15476 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
15477 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15478 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15481 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15482 for ncn_progname in ar; do
15483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15484 set dummy ${ncn_progname}; ac_word=$2
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15486 $as_echo_n "checking
for $ac_word...
" >&6; }
15487 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15488 $as_echo_n "(cached
) " >&6
15490 if test -n "$AR_FOR_TARGET"; then
15491 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15494 for as_dir in $PATH
15497 test -z "$as_dir" && as_dir=.
15498 for ac_exec_ext in '' $ac_executable_extensions; do
15499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15500 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15501 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15510 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15511 if test -n "$AR_FOR_TARGET"; then
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
15513 $as_echo "$AR_FOR_TARGET" >&6; }
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15516 $as_echo "no
" >&6; }
15523 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
15524 for ncn_progname in ar; do
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15526 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15527 if test -x $with_build_time_tools/${ncn_progname}; then
15528 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15530 $as_echo "yes" >&6; }
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15534 $as_echo "no
" >&6; }
15539 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
15540 for ncn_progname in ar; do
15541 if test -n "$ncn_target_tool_prefix"; then
15542 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15543 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15545 $as_echo_n "checking
for $ac_word...
" >&6; }
15546 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15547 $as_echo_n "(cached
) " >&6
15549 if test -n "$AR_FOR_TARGET"; then
15550 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15553 for as_dir in $PATH
15556 test -z "$as_dir" && as_dir=.
15557 for ac_exec_ext in '' $ac_executable_extensions; do
15558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15559 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15560 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15569 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15570 if test -n "$AR_FOR_TARGET"; then
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
15572 $as_echo "$AR_FOR_TARGET" >&6; }
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15575 $as_echo "no
" >&6; }
15580 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
15581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15582 set dummy ${ncn_progname}; ac_word=$2
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15584 $as_echo_n "checking
for $ac_word...
" >&6; }
15585 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15586 $as_echo_n "(cached
) " >&6
15588 if test -n "$AR_FOR_TARGET"; then
15589 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15592 for as_dir in $PATH
15595 test -z "$as_dir" && as_dir=.
15596 for ac_exec_ext in '' $ac_executable_extensions; do
15597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15598 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15599 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15608 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15609 if test -n "$AR_FOR_TARGET"; then
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
15611 $as_echo "$AR_FOR_TARGET" >&6; }
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15614 $as_echo "no
" >&6; }
15619 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
15623 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
15625 if test $build = $target ; then
15628 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
15631 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
15635 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15641 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15642 if test -n "$with_build_time_tools"; then
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
15644 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
15645 if test -x $with_build_time_tools/as; then
15646 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
15647 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
15649 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15652 $as_echo "no
" >&6; }
15654 elif test $build != $host && test $have_gcc_for_target = yes; then
15655 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
15656 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
15657 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15660 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15661 # Extract the first word of "as
", so it can be a program name with args.
15662 set dummy as; ac_word=$2
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15664 $as_echo_n "checking
for $ac_word...
" >&6; }
15665 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
15666 $as_echo_n "(cached
) " >&6
15668 case $AS_FOR_TARGET in
15670 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
15673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15674 for as_dir in $gcc_cv_tool_dirs
15677 test -z "$as_dir" && as_dir=.
15678 for ac_exec_ext in '' $ac_executable_extensions; do
15679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15680 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15681 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15691 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15692 if test -n "$AS_FOR_TARGET"; then
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15694 $as_echo "$AS_FOR_TARGET" >&6; }
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15697 $as_echo "no
" >&6; }
15702 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15705 if test -n "$AS_FOR_TARGET"; then
15706 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
15707 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15708 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15711 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15712 for ncn_progname in as; do
15713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15714 set dummy ${ncn_progname}; ac_word=$2
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15716 $as_echo_n "checking
for $ac_word...
" >&6; }
15717 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15718 $as_echo_n "(cached
) " >&6
15720 if test -n "$AS_FOR_TARGET"; then
15721 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15724 for as_dir in $PATH
15727 test -z "$as_dir" && as_dir=.
15728 for ac_exec_ext in '' $ac_executable_extensions; do
15729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15730 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15731 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15740 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15741 if test -n "$AS_FOR_TARGET"; then
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15743 $as_echo "$AS_FOR_TARGET" >&6; }
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15746 $as_echo "no
" >&6; }
15753 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
15754 for ncn_progname in as; do
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15756 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15757 if test -x $with_build_time_tools/${ncn_progname}; then
15758 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15760 $as_echo "yes" >&6; }
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15764 $as_echo "no
" >&6; }
15769 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
15770 for ncn_progname in as; do
15771 if test -n "$ncn_target_tool_prefix"; then
15772 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15773 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15775 $as_echo_n "checking
for $ac_word...
" >&6; }
15776 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15777 $as_echo_n "(cached
) " >&6
15779 if test -n "$AS_FOR_TARGET"; then
15780 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15783 for as_dir in $PATH
15786 test -z "$as_dir" && as_dir=.
15787 for ac_exec_ext in '' $ac_executable_extensions; do
15788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15789 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15790 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15799 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15800 if test -n "$AS_FOR_TARGET"; then
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15802 $as_echo "$AS_FOR_TARGET" >&6; }
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15805 $as_echo "no
" >&6; }
15810 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
15811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15812 set dummy ${ncn_progname}; ac_word=$2
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15814 $as_echo_n "checking
for $ac_word...
" >&6; }
15815 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15816 $as_echo_n "(cached
) " >&6
15818 if test -n "$AS_FOR_TARGET"; then
15819 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15822 for as_dir in $PATH
15825 test -z "$as_dir" && as_dir=.
15826 for ac_exec_ext in '' $ac_executable_extensions; do
15827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15828 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15829 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15838 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15839 if test -n "$AS_FOR_TARGET"; then
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15841 $as_echo "$AS_FOR_TARGET" >&6; }
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15844 $as_echo "no
" >&6; }
15849 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
15853 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
15855 if test $build = $target ; then
15858 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
15861 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
15865 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15871 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15872 if test -n "$with_build_time_tools"; then
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
15874 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
15875 if test -x $with_build_time_tools/dlltool; then
15876 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
15877 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
15879 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15882 $as_echo "no
" >&6; }
15884 elif test $build != $host && test $have_gcc_for_target = yes; then
15885 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
15886 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
15887 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15890 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15891 # Extract the first word of "dlltool
", so it can be a program name with args.
15892 set dummy dlltool; ac_word=$2
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15894 $as_echo_n "checking
for $ac_word...
" >&6; }
15895 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
15896 $as_echo_n "(cached
) " >&6
15898 case $DLLTOOL_FOR_TARGET in
15900 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
15903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15904 for as_dir in $gcc_cv_tool_dirs
15907 test -z "$as_dir" && as_dir=.
15908 for ac_exec_ext in '' $ac_executable_extensions; do
15909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15910 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15911 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15921 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15922 if test -n "$DLLTOOL_FOR_TARGET"; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15924 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15927 $as_echo "no
" >&6; }
15932 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15935 if test -n "$DLLTOOL_FOR_TARGET"; then
15936 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15937 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15938 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15941 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15942 for ncn_progname in dlltool; do
15943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15944 set dummy ${ncn_progname}; ac_word=$2
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15946 $as_echo_n "checking
for $ac_word...
" >&6; }
15947 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15948 $as_echo_n "(cached
) " >&6
15950 if test -n "$DLLTOOL_FOR_TARGET"; then
15951 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15954 for as_dir in $PATH
15957 test -z "$as_dir" && as_dir=.
15958 for ac_exec_ext in '' $ac_executable_extensions; do
15959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15960 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15961 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15970 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15971 if test -n "$DLLTOOL_FOR_TARGET"; then
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15973 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15976 $as_echo "no
" >&6; }
15983 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15984 for ncn_progname in dlltool; do
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15986 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15987 if test -x $with_build_time_tools/${ncn_progname}; then
15988 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15990 $as_echo "yes" >&6; }
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15994 $as_echo "no
" >&6; }
15999 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16000 for ncn_progname in dlltool; do
16001 if test -n "$ncn_target_tool_prefix"; then
16002 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16003 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16005 $as_echo_n "checking
for $ac_word...
" >&6; }
16006 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16007 $as_echo_n "(cached
) " >&6
16009 if test -n "$DLLTOOL_FOR_TARGET"; then
16010 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16013 for as_dir in $PATH
16016 test -z "$as_dir" && as_dir=.
16017 for ac_exec_ext in '' $ac_executable_extensions; do
16018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16019 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16020 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16029 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16030 if test -n "$DLLTOOL_FOR_TARGET"; then
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
16032 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16035 $as_echo "no
" >&6; }
16040 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
16041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16042 set dummy ${ncn_progname}; ac_word=$2
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16044 $as_echo_n "checking
for $ac_word...
" >&6; }
16045 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16046 $as_echo_n "(cached
) " >&6
16048 if test -n "$DLLTOOL_FOR_TARGET"; then
16049 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16052 for as_dir in $PATH
16055 test -z "$as_dir" && as_dir=.
16056 for ac_exec_ext in '' $ac_executable_extensions; do
16057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16058 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
16059 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16068 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16069 if test -n "$DLLTOOL_FOR_TARGET"; then
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
16071 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16074 $as_echo "no
" >&6; }
16079 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
16083 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
16085 if test $build = $target ; then
16086 DLLTOOL_FOR_TARGET="$2"
16088 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16091 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
16095 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
16101 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16102 if test -n "$with_build_time_tools"; then
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
16104 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
16105 if test -x $with_build_time_tools/dsymutil; then
16106 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
16107 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
16109 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16112 $as_echo "no
" >&6; }
16114 elif test $build != $host && test $have_gcc_for_target = yes; then
16115 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
16116 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
16117 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16120 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16121 # Extract the first word of "dsymutil
", so it can be a program name with args.
16122 set dummy dsymutil; ac_word=$2
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16124 $as_echo_n "checking
for $ac_word...
" >&6; }
16125 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
16126 $as_echo_n "(cached
) " >&6
16128 case $DSYMUTIL_FOR_TARGET in
16130 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
16133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16134 for as_dir in $gcc_cv_tool_dirs
16137 test -z "$as_dir" && as_dir=.
16138 for ac_exec_ext in '' $ac_executable_extensions; do
16139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16140 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16141 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16151 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16152 if test -n "$DSYMUTIL_FOR_TARGET"; then
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
16154 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16157 $as_echo "no
" >&6; }
16162 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16165 if test -n "$DSYMUTIL_FOR_TARGET"; then
16166 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16167 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16168 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16171 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16172 for ncn_progname in dsymutil; do
16173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16174 set dummy ${ncn_progname}; ac_word=$2
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16176 $as_echo_n "checking
for $ac_word...
" >&6; }
16177 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16178 $as_echo_n "(cached
) " >&6
16180 if test -n "$DSYMUTIL_FOR_TARGET"; then
16181 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16184 for as_dir in $PATH
16187 test -z "$as_dir" && as_dir=.
16188 for ac_exec_ext in '' $ac_executable_extensions; do
16189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16190 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16191 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16200 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16201 if test -n "$DSYMUTIL_FOR_TARGET"; then
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
16203 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16206 $as_echo "no
" >&6; }
16213 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16214 for ncn_progname in dsymutil; do
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16216 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16217 if test -x $with_build_time_tools/${ncn_progname}; then
16218 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16220 $as_echo "yes" >&6; }
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16224 $as_echo "no
" >&6; }
16229 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16230 for ncn_progname in dsymutil; do
16231 if test -n "$ncn_target_tool_prefix"; then
16232 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16233 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16235 $as_echo_n "checking
for $ac_word...
" >&6; }
16236 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16237 $as_echo_n "(cached
) " >&6
16239 if test -n "$DSYMUTIL_FOR_TARGET"; then
16240 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16243 for as_dir in $PATH
16246 test -z "$as_dir" && as_dir=.
16247 for ac_exec_ext in '' $ac_executable_extensions; do
16248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16249 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16250 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16259 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16260 if test -n "$DSYMUTIL_FOR_TARGET"; then
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
16262 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16265 $as_echo "no
" >&6; }
16270 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
16271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16272 set dummy ${ncn_progname}; ac_word=$2
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16274 $as_echo_n "checking
for $ac_word...
" >&6; }
16275 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16276 $as_echo_n "(cached
) " >&6
16278 if test -n "$DSYMUTIL_FOR_TARGET"; then
16279 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16282 for as_dir in $PATH
16285 test -z "$as_dir" && as_dir=.
16286 for ac_exec_ext in '' $ac_executable_extensions; do
16287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16288 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16298 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16299 if test -n "$DSYMUTIL_FOR_TARGET"; then
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
16301 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16304 $as_echo "no
" >&6; }
16309 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
16313 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
16315 if test $build = $target ; then
16316 DSYMUTIL_FOR_TARGET="$2"
16318 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16321 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
16325 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16331 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16332 if test -n "$with_build_time_tools"; then
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
16334 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
16335 if test -x $with_build_time_tools/ld; then
16336 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
16337 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
16339 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16342 $as_echo "no
" >&6; }
16344 elif test $build != $host && test $have_gcc_for_target = yes; then
16345 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
16346 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
16347 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16350 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16351 # Extract the first word of "ld
", so it can be a program name with args.
16352 set dummy ld; ac_word=$2
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16354 $as_echo_n "checking
for $ac_word...
" >&6; }
16355 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
16356 $as_echo_n "(cached
) " >&6
16358 case $LD_FOR_TARGET in
16360 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
16363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16364 for as_dir in $gcc_cv_tool_dirs
16367 test -z "$as_dir" && as_dir=.
16368 for ac_exec_ext in '' $ac_executable_extensions; do
16369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16370 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16371 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16381 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16382 if test -n "$LD_FOR_TARGET"; then
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
16384 $as_echo "$LD_FOR_TARGET" >&6; }
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16387 $as_echo "no
" >&6; }
16392 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16395 if test -n "$LD_FOR_TARGET"; then
16396 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
16397 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16398 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16401 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16402 for ncn_progname in ld; do
16403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16404 set dummy ${ncn_progname}; ac_word=$2
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16406 $as_echo_n "checking
for $ac_word...
" >&6; }
16407 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16408 $as_echo_n "(cached
) " >&6
16410 if test -n "$LD_FOR_TARGET"; then
16411 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16414 for as_dir in $PATH
16417 test -z "$as_dir" && as_dir=.
16418 for ac_exec_ext in '' $ac_executable_extensions; do
16419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16420 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16421 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16430 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16431 if test -n "$LD_FOR_TARGET"; then
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
16433 $as_echo "$LD_FOR_TARGET" >&6; }
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16436 $as_echo "no
" >&6; }
16443 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
16444 for ncn_progname in ld; do
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16446 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16447 if test -x $with_build_time_tools/${ncn_progname}; then
16448 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16450 $as_echo "yes" >&6; }
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16454 $as_echo "no
" >&6; }
16459 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
16460 for ncn_progname in ld; do
16461 if test -n "$ncn_target_tool_prefix"; then
16462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16463 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16465 $as_echo_n "checking
for $ac_word...
" >&6; }
16466 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16467 $as_echo_n "(cached
) " >&6
16469 if test -n "$LD_FOR_TARGET"; then
16470 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16473 for as_dir in $PATH
16476 test -z "$as_dir" && as_dir=.
16477 for ac_exec_ext in '' $ac_executable_extensions; do
16478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16479 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16480 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16489 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16490 if test -n "$LD_FOR_TARGET"; then
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
16492 $as_echo "$LD_FOR_TARGET" >&6; }
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16495 $as_echo "no
" >&6; }
16500 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
16501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16502 set dummy ${ncn_progname}; ac_word=$2
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16504 $as_echo_n "checking
for $ac_word...
" >&6; }
16505 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16506 $as_echo_n "(cached
) " >&6
16508 if test -n "$LD_FOR_TARGET"; then
16509 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16512 for as_dir in $PATH
16515 test -z "$as_dir" && as_dir=.
16516 for ac_exec_ext in '' $ac_executable_extensions; do
16517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16518 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16519 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16528 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16529 if test -n "$LD_FOR_TARGET"; then
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
16531 $as_echo "$LD_FOR_TARGET" >&6; }
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16534 $as_echo "no
" >&6; }
16539 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
16543 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
16545 if test $build = $target ; then
16548 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
16551 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
16555 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16561 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16562 if test -n "$with_build_time_tools"; then
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
16564 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
16565 if test -x $with_build_time_tools/lipo; then
16566 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
16567 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
16569 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16572 $as_echo "no
" >&6; }
16574 elif test $build != $host && test $have_gcc_for_target = yes; then
16575 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
16576 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
16577 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16580 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16581 # Extract the first word of "lipo
", so it can be a program name with args.
16582 set dummy lipo; ac_word=$2
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16584 $as_echo_n "checking
for $ac_word...
" >&6; }
16585 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
16586 $as_echo_n "(cached
) " >&6
16588 case $LIPO_FOR_TARGET in
16590 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
16593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16594 for as_dir in $gcc_cv_tool_dirs
16597 test -z "$as_dir" && as_dir=.
16598 for ac_exec_ext in '' $ac_executable_extensions; do
16599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16600 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16601 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16611 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16612 if test -n "$LIPO_FOR_TARGET"; then
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
16614 $as_echo "$LIPO_FOR_TARGET" >&6; }
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16617 $as_echo "no
" >&6; }
16622 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16625 if test -n "$LIPO_FOR_TARGET"; then
16626 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16627 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16628 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16631 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16632 for ncn_progname in lipo; do
16633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16634 set dummy ${ncn_progname}; ac_word=$2
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16636 $as_echo_n "checking
for $ac_word...
" >&6; }
16637 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16638 $as_echo_n "(cached
) " >&6
16640 if test -n "$LIPO_FOR_TARGET"; then
16641 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16644 for as_dir in $PATH
16647 test -z "$as_dir" && as_dir=.
16648 for ac_exec_ext in '' $ac_executable_extensions; do
16649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16650 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16651 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16660 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16661 if test -n "$LIPO_FOR_TARGET"; then
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
16663 $as_echo "$LIPO_FOR_TARGET" >&6; }
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16666 $as_echo "no
" >&6; }
16673 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
16674 for ncn_progname in lipo; do
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16676 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16677 if test -x $with_build_time_tools/${ncn_progname}; then
16678 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16680 $as_echo "yes" >&6; }
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16684 $as_echo "no
" >&6; }
16689 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
16690 for ncn_progname in lipo; do
16691 if test -n "$ncn_target_tool_prefix"; then
16692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16693 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16695 $as_echo_n "checking
for $ac_word...
" >&6; }
16696 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16697 $as_echo_n "(cached
) " >&6
16699 if test -n "$LIPO_FOR_TARGET"; then
16700 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16703 for as_dir in $PATH
16706 test -z "$as_dir" && as_dir=.
16707 for ac_exec_ext in '' $ac_executable_extensions; do
16708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16709 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16710 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16719 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16720 if test -n "$LIPO_FOR_TARGET"; then
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
16722 $as_echo "$LIPO_FOR_TARGET" >&6; }
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16725 $as_echo "no
" >&6; }
16730 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
16731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16732 set dummy ${ncn_progname}; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16734 $as_echo_n "checking
for $ac_word...
" >&6; }
16735 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16736 $as_echo_n "(cached
) " >&6
16738 if test -n "$LIPO_FOR_TARGET"; then
16739 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $PATH
16745 test -z "$as_dir" && as_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16748 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16749 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16758 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16759 if test -n "$LIPO_FOR_TARGET"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
16761 $as_echo "$LIPO_FOR_TARGET" >&6; }
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16764 $as_echo "no
" >&6; }
16769 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
16773 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
16775 if test $build = $target ; then
16776 LIPO_FOR_TARGET="$2"
16778 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
16781 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
16785 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16791 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16792 if test -n "$with_build_time_tools"; then
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
16794 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
16795 if test -x $with_build_time_tools/nm; then
16796 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
16797 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
16799 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16802 $as_echo "no
" >&6; }
16804 elif test $build != $host && test $have_gcc_for_target = yes; then
16805 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
16806 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
16807 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16810 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16811 # Extract the first word of "nm
", so it can be a program name with args.
16812 set dummy nm; ac_word=$2
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16814 $as_echo_n "checking
for $ac_word...
" >&6; }
16815 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
16816 $as_echo_n "(cached
) " >&6
16818 case $NM_FOR_TARGET in
16820 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
16823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16824 for as_dir in $gcc_cv_tool_dirs
16827 test -z "$as_dir" && as_dir=.
16828 for ac_exec_ext in '' $ac_executable_extensions; do
16829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16830 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16831 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16841 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16842 if test -n "$NM_FOR_TARGET"; then
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16844 $as_echo "$NM_FOR_TARGET" >&6; }
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16847 $as_echo "no
" >&6; }
16852 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16855 if test -n "$NM_FOR_TARGET"; then
16856 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
16857 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16858 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16861 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16862 for ncn_progname in nm; do
16863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16864 set dummy ${ncn_progname}; ac_word=$2
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16866 $as_echo_n "checking
for $ac_word...
" >&6; }
16867 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16868 $as_echo_n "(cached
) " >&6
16870 if test -n "$NM_FOR_TARGET"; then
16871 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16874 for as_dir in $PATH
16877 test -z "$as_dir" && as_dir=.
16878 for ac_exec_ext in '' $ac_executable_extensions; do
16879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16880 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16890 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16891 if test -n "$NM_FOR_TARGET"; then
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16893 $as_echo "$NM_FOR_TARGET" >&6; }
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16896 $as_echo "no
" >&6; }
16903 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
16904 for ncn_progname in nm; do
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16906 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16907 if test -x $with_build_time_tools/${ncn_progname}; then
16908 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16910 $as_echo "yes" >&6; }
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16914 $as_echo "no
" >&6; }
16919 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
16920 for ncn_progname in nm; do
16921 if test -n "$ncn_target_tool_prefix"; then
16922 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16923 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16925 $as_echo_n "checking
for $ac_word...
" >&6; }
16926 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16927 $as_echo_n "(cached
) " >&6
16929 if test -n "$NM_FOR_TARGET"; then
16930 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16933 for as_dir in $PATH
16936 test -z "$as_dir" && as_dir=.
16937 for ac_exec_ext in '' $ac_executable_extensions; do
16938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16939 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16940 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16949 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16950 if test -n "$NM_FOR_TARGET"; then
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16952 $as_echo "$NM_FOR_TARGET" >&6; }
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16955 $as_echo "no
" >&6; }
16960 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
16961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16962 set dummy ${ncn_progname}; ac_word=$2
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16964 $as_echo_n "checking
for $ac_word...
" >&6; }
16965 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16966 $as_echo_n "(cached
) " >&6
16968 if test -n "$NM_FOR_TARGET"; then
16969 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16972 for as_dir in $PATH
16975 test -z "$as_dir" && as_dir=.
16976 for ac_exec_ext in '' $ac_executable_extensions; do
16977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16978 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16979 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16988 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16989 if test -n "$NM_FOR_TARGET"; then
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16991 $as_echo "$NM_FOR_TARGET" >&6; }
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16994 $as_echo "no
" >&6; }
16999 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
17003 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
17005 if test $build = $target ; then
17008 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
17011 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
17015 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
17021 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17022 if test -n "$with_build_time_tools"; then
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
17024 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
17025 if test -x $with_build_time_tools/objcopy; then
17026 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
17027 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
17029 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17032 $as_echo "no
" >&6; }
17034 elif test $build != $host && test $have_gcc_for_target = yes; then
17035 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
17036 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
17037 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17040 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17041 # Extract the first word of "objcopy
", so it can be a program name with args.
17042 set dummy objcopy; ac_word=$2
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17044 $as_echo_n "checking
for $ac_word...
" >&6; }
17045 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
17046 $as_echo_n "(cached
) " >&6
17048 case $OBJCOPY_FOR_TARGET in
17050 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
17053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17054 for as_dir in $gcc_cv_tool_dirs
17057 test -z "$as_dir" && as_dir=.
17058 for ac_exec_ext in '' $ac_executable_extensions; do
17059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17060 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17071 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17072 if test -n "$OBJCOPY_FOR_TARGET"; then
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
17074 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17077 $as_echo "no
" >&6; }
17082 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17085 if test -n "$OBJCOPY_FOR_TARGET"; then
17086 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17087 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17088 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17091 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17092 for ncn_progname in objcopy; do
17093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17094 set dummy ${ncn_progname}; ac_word=$2
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17096 $as_echo_n "checking
for $ac_word...
" >&6; }
17097 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17098 $as_echo_n "(cached
) " >&6
17100 if test -n "$OBJCOPY_FOR_TARGET"; then
17101 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17104 for as_dir in $PATH
17107 test -z "$as_dir" && as_dir=.
17108 for ac_exec_ext in '' $ac_executable_extensions; do
17109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17110 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17111 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17120 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17121 if test -n "$OBJCOPY_FOR_TARGET"; then
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
17123 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17126 $as_echo "no
" >&6; }
17133 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
17134 for ncn_progname in objcopy; do
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17136 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17137 if test -x $with_build_time_tools/${ncn_progname}; then
17138 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17140 $as_echo "yes" >&6; }
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17144 $as_echo "no
" >&6; }
17149 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17150 for ncn_progname in objcopy; do
17151 if test -n "$ncn_target_tool_prefix"; then
17152 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17153 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17155 $as_echo_n "checking
for $ac_word...
" >&6; }
17156 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17157 $as_echo_n "(cached
) " >&6
17159 if test -n "$OBJCOPY_FOR_TARGET"; then
17160 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163 for as_dir in $PATH
17166 test -z "$as_dir" && as_dir=.
17167 for ac_exec_ext in '' $ac_executable_extensions; do
17168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17169 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17170 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17179 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17180 if test -n "$OBJCOPY_FOR_TARGET"; then
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
17182 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17185 $as_echo "no
" >&6; }
17190 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
17191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17192 set dummy ${ncn_progname}; ac_word=$2
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17194 $as_echo_n "checking
for $ac_word...
" >&6; }
17195 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17196 $as_echo_n "(cached
) " >&6
17198 if test -n "$OBJCOPY_FOR_TARGET"; then
17199 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17202 for as_dir in $PATH
17205 test -z "$as_dir" && as_dir=.
17206 for ac_exec_ext in '' $ac_executable_extensions; do
17207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17208 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17218 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17219 if test -n "$OBJCOPY_FOR_TARGET"; then
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
17221 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17224 $as_echo "no
" >&6; }
17229 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
17233 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
17235 if test $build = $target ; then
17236 OBJCOPY_FOR_TARGET="$2"
17238 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
17241 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
17245 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17251 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17252 if test -n "$with_build_time_tools"; then
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
17254 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
17255 if test -x $with_build_time_tools/objdump; then
17256 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
17257 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
17259 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17262 $as_echo "no
" >&6; }
17264 elif test $build != $host && test $have_gcc_for_target = yes; then
17265 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
17266 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
17267 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17270 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17271 # Extract the first word of "objdump
", so it can be a program name with args.
17272 set dummy objdump; ac_word=$2
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17274 $as_echo_n "checking
for $ac_word...
" >&6; }
17275 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
17276 $as_echo_n "(cached
) " >&6
17278 case $OBJDUMP_FOR_TARGET in
17280 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
17283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17284 for as_dir in $gcc_cv_tool_dirs
17287 test -z "$as_dir" && as_dir=.
17288 for ac_exec_ext in '' $ac_executable_extensions; do
17289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17290 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17291 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17301 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17302 if test -n "$OBJDUMP_FOR_TARGET"; then
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
17304 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17307 $as_echo "no
" >&6; }
17312 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17315 if test -n "$OBJDUMP_FOR_TARGET"; then
17316 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17317 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17318 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17321 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17322 for ncn_progname in objdump; do
17323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17324 set dummy ${ncn_progname}; ac_word=$2
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17326 $as_echo_n "checking
for $ac_word...
" >&6; }
17327 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17328 $as_echo_n "(cached
) " >&6
17330 if test -n "$OBJDUMP_FOR_TARGET"; then
17331 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17334 for as_dir in $PATH
17337 test -z "$as_dir" && as_dir=.
17338 for ac_exec_ext in '' $ac_executable_extensions; do
17339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17340 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17341 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17350 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17351 if test -n "$OBJDUMP_FOR_TARGET"; then
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
17353 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17356 $as_echo "no
" >&6; }
17363 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17364 for ncn_progname in objdump; do
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17366 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17367 if test -x $with_build_time_tools/${ncn_progname}; then
17368 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17370 $as_echo "yes" >&6; }
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17374 $as_echo "no
" >&6; }
17379 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17380 for ncn_progname in objdump; do
17381 if test -n "$ncn_target_tool_prefix"; then
17382 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17383 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17385 $as_echo_n "checking
for $ac_word...
" >&6; }
17386 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17387 $as_echo_n "(cached
) " >&6
17389 if test -n "$OBJDUMP_FOR_TARGET"; then
17390 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17393 for as_dir in $PATH
17396 test -z "$as_dir" && as_dir=.
17397 for ac_exec_ext in '' $ac_executable_extensions; do
17398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17399 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17400 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17409 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17410 if test -n "$OBJDUMP_FOR_TARGET"; then
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
17412 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17415 $as_echo "no
" >&6; }
17420 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
17421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17422 set dummy ${ncn_progname}; ac_word=$2
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17424 $as_echo_n "checking
for $ac_word...
" >&6; }
17425 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17426 $as_echo_n "(cached
) " >&6
17428 if test -n "$OBJDUMP_FOR_TARGET"; then
17429 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17432 for as_dir in $PATH
17435 test -z "$as_dir" && as_dir=.
17436 for ac_exec_ext in '' $ac_executable_extensions; do
17437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17438 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17439 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17448 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17449 if test -n "$OBJDUMP_FOR_TARGET"; then
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
17451 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17454 $as_echo "no
" >&6; }
17459 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
17463 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
17465 if test $build = $target ; then
17466 OBJDUMP_FOR_TARGET="$2"
17468 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17471 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
17475 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17481 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17482 if test -n "$with_build_time_tools"; then
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
17484 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
17485 if test -x $with_build_time_tools/otool; then
17486 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
17487 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
17489 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17492 $as_echo "no
" >&6; }
17494 elif test $build != $host && test $have_gcc_for_target = yes; then
17495 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
17496 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
17497 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17500 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17501 # Extract the first word of "otool
", so it can be a program name with args.
17502 set dummy otool; ac_word=$2
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17504 $as_echo_n "checking
for $ac_word...
" >&6; }
17505 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
17506 $as_echo_n "(cached
) " >&6
17508 case $OTOOL_FOR_TARGET in
17510 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
17513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17514 for as_dir in $gcc_cv_tool_dirs
17517 test -z "$as_dir" && as_dir=.
17518 for ac_exec_ext in '' $ac_executable_extensions; do
17519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17520 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17521 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17531 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17532 if test -n "$OTOOL_FOR_TARGET"; then
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
17534 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17537 $as_echo "no
" >&6; }
17542 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17545 if test -n "$OTOOL_FOR_TARGET"; then
17546 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17547 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17548 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17551 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17552 for ncn_progname in otool; do
17553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17554 set dummy ${ncn_progname}; ac_word=$2
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17556 $as_echo_n "checking
for $ac_word...
" >&6; }
17557 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17558 $as_echo_n "(cached
) " >&6
17560 if test -n "$OTOOL_FOR_TARGET"; then
17561 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17564 for as_dir in $PATH
17567 test -z "$as_dir" && as_dir=.
17568 for ac_exec_ext in '' $ac_executable_extensions; do
17569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17570 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17571 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17580 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17581 if test -n "$OTOOL_FOR_TARGET"; then
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
17583 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17586 $as_echo "no
" >&6; }
17593 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
17594 for ncn_progname in otool; do
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17596 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17597 if test -x $with_build_time_tools/${ncn_progname}; then
17598 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17600 $as_echo "yes" >&6; }
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17604 $as_echo "no
" >&6; }
17609 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17610 for ncn_progname in otool; do
17611 if test -n "$ncn_target_tool_prefix"; then
17612 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17613 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17615 $as_echo_n "checking
for $ac_word...
" >&6; }
17616 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17617 $as_echo_n "(cached
) " >&6
17619 if test -n "$OTOOL_FOR_TARGET"; then
17620 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17623 for as_dir in $PATH
17626 test -z "$as_dir" && as_dir=.
17627 for ac_exec_ext in '' $ac_executable_extensions; do
17628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17629 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17630 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17639 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17640 if test -n "$OTOOL_FOR_TARGET"; then
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
17642 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17645 $as_echo "no
" >&6; }
17650 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
17651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17652 set dummy ${ncn_progname}; ac_word=$2
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17654 $as_echo_n "checking
for $ac_word...
" >&6; }
17655 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17656 $as_echo_n "(cached
) " >&6
17658 if test -n "$OTOOL_FOR_TARGET"; then
17659 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17662 for as_dir in $PATH
17665 test -z "$as_dir" && as_dir=.
17666 for ac_exec_ext in '' $ac_executable_extensions; do
17667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17668 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17669 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17678 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17679 if test -n "$OTOOL_FOR_TARGET"; then
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
17681 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17684 $as_echo "no
" >&6; }
17689 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
17693 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
17695 if test $build = $target ; then
17696 OTOOL_FOR_TARGET="$2"
17698 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
17701 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
17705 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17711 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17712 if test -n "$with_build_time_tools"; then
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
17714 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
17715 if test -x $with_build_time_tools/ranlib; then
17716 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
17717 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
17719 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17722 $as_echo "no
" >&6; }
17724 elif test $build != $host && test $have_gcc_for_target = yes; then
17725 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
17726 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
17727 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17730 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17731 # Extract the first word of "ranlib
", so it can be a program name with args.
17732 set dummy ranlib; ac_word=$2
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17734 $as_echo_n "checking
for $ac_word...
" >&6; }
17735 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
17736 $as_echo_n "(cached
) " >&6
17738 case $RANLIB_FOR_TARGET in
17740 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
17743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17744 for as_dir in $gcc_cv_tool_dirs
17747 test -z "$as_dir" && as_dir=.
17748 for ac_exec_ext in '' $ac_executable_extensions; do
17749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17750 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17751 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17761 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17762 if test -n "$RANLIB_FOR_TARGET"; then
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17764 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17767 $as_echo "no
" >&6; }
17772 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17775 if test -n "$RANLIB_FOR_TARGET"; then
17776 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17777 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17778 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17781 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17782 for ncn_progname in ranlib; do
17783 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17784 set dummy ${ncn_progname}; ac_word=$2
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17786 $as_echo_n "checking
for $ac_word...
" >&6; }
17787 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17788 $as_echo_n "(cached
) " >&6
17790 if test -n "$RANLIB_FOR_TARGET"; then
17791 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17794 for as_dir in $PATH
17797 test -z "$as_dir" && as_dir=.
17798 for ac_exec_ext in '' $ac_executable_extensions; do
17799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17800 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17801 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17810 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17811 if test -n "$RANLIB_FOR_TARGET"; then
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17813 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17816 $as_echo "no
" >&6; }
17823 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
17824 for ncn_progname in ranlib; do
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17826 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17827 if test -x $with_build_time_tools/${ncn_progname}; then
17828 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17830 $as_echo "yes" >&6; }
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17834 $as_echo "no
" >&6; }
17839 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17840 for ncn_progname in ranlib; do
17841 if test -n "$ncn_target_tool_prefix"; then
17842 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17843 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17845 $as_echo_n "checking
for $ac_word...
" >&6; }
17846 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17847 $as_echo_n "(cached
) " >&6
17849 if test -n "$RANLIB_FOR_TARGET"; then
17850 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17853 for as_dir in $PATH
17856 test -z "$as_dir" && as_dir=.
17857 for ac_exec_ext in '' $ac_executable_extensions; do
17858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17859 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17860 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17869 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17870 if test -n "$RANLIB_FOR_TARGET"; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17872 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17875 $as_echo "no
" >&6; }
17880 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
17881 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17882 set dummy ${ncn_progname}; ac_word=$2
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17884 $as_echo_n "checking
for $ac_word...
" >&6; }
17885 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17886 $as_echo_n "(cached
) " >&6
17888 if test -n "$RANLIB_FOR_TARGET"; then
17889 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17892 for as_dir in $PATH
17895 test -z "$as_dir" && as_dir=.
17896 for ac_exec_ext in '' $ac_executable_extensions; do
17897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17898 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17899 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17908 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17909 if test -n "$RANLIB_FOR_TARGET"; then
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17911 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17914 $as_echo "no
" >&6; }
17919 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
17923 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
17925 if test $build = $target ; then
17926 RANLIB_FOR_TARGET="$2"
17928 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
17931 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
17935 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17941 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17942 if test -n "$with_build_time_tools"; then
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
17944 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
17945 if test -x $with_build_time_tools/readelf; then
17946 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
17947 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
17949 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17952 $as_echo "no
" >&6; }
17954 elif test $build != $host && test $have_gcc_for_target = yes; then
17955 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
17956 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
17957 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17960 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17961 # Extract the first word of "readelf
", so it can be a program name with args.
17962 set dummy readelf; ac_word=$2
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17964 $as_echo_n "checking
for $ac_word...
" >&6; }
17965 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
17966 $as_echo_n "(cached
) " >&6
17968 case $READELF_FOR_TARGET in
17970 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
17973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17974 for as_dir in $gcc_cv_tool_dirs
17977 test -z "$as_dir" && as_dir=.
17978 for ac_exec_ext in '' $ac_executable_extensions; do
17979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17980 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17981 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17991 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17992 if test -n "$READELF_FOR_TARGET"; then
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17994 $as_echo "$READELF_FOR_TARGET" >&6; }
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17997 $as_echo "no
" >&6; }
18002 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18005 if test -n "$READELF_FOR_TARGET"; then
18006 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
18007 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18008 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18011 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18012 for ncn_progname in readelf; do
18013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18014 set dummy ${ncn_progname}; ac_word=$2
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18016 $as_echo_n "checking
for $ac_word...
" >&6; }
18017 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18018 $as_echo_n "(cached
) " >&6
18020 if test -n "$READELF_FOR_TARGET"; then
18021 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18024 for as_dir in $PATH
18027 test -z "$as_dir" && as_dir=.
18028 for ac_exec_ext in '' $ac_executable_extensions; do
18029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18030 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18031 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18040 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18041 if test -n "$READELF_FOR_TARGET"; then
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
18043 $as_echo "$READELF_FOR_TARGET" >&6; }
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18046 $as_echo "no
" >&6; }
18053 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
18054 for ncn_progname in readelf; do
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
18056 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
18057 if test -x $with_build_time_tools/${ncn_progname}; then
18058 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
18060 $as_echo "yes" >&6; }
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18064 $as_echo "no
" >&6; }
18069 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
18070 for ncn_progname in readelf; do
18071 if test -n "$ncn_target_tool_prefix"; then
18072 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18073 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18075 $as_echo_n "checking
for $ac_word...
" >&6; }
18076 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18077 $as_echo_n "(cached
) " >&6
18079 if test -n "$READELF_FOR_TARGET"; then
18080 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18083 for as_dir in $PATH
18086 test -z "$as_dir" && as_dir=.
18087 for ac_exec_ext in '' $ac_executable_extensions; do
18088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18089 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18090 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18099 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18100 if test -n "$READELF_FOR_TARGET"; then
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
18102 $as_echo "$READELF_FOR_TARGET" >&6; }
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18105 $as_echo "no
" >&6; }
18110 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
18111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18112 set dummy ${ncn_progname}; ac_word=$2
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18114 $as_echo_n "checking
for $ac_word...
" >&6; }
18115 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18116 $as_echo_n "(cached
) " >&6
18118 if test -n "$READELF_FOR_TARGET"; then
18119 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18122 for as_dir in $PATH
18125 test -z "$as_dir" && as_dir=.
18126 for ac_exec_ext in '' $ac_executable_extensions; do
18127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18128 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18129 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18138 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18139 if test -n "$READELF_FOR_TARGET"; then
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
18141 $as_echo "$READELF_FOR_TARGET" >&6; }
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18144 $as_echo "no
" >&6; }
18149 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
18153 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
18155 if test $build = $target ; then
18156 READELF_FOR_TARGET="$2"
18158 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
18161 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
18165 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
18171 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18172 if test -n "$with_build_time_tools"; then
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
18174 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
18175 if test -x $with_build_time_tools/strip; then
18176 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
18177 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
18179 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18182 $as_echo "no
" >&6; }
18184 elif test $build != $host && test $have_gcc_for_target = yes; then
18185 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
18186 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
18187 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18190 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18191 # Extract the first word of "strip
", so it can be a program name with args.
18192 set dummy strip; ac_word=$2
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18194 $as_echo_n "checking
for $ac_word...
" >&6; }
18195 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
18196 $as_echo_n "(cached
) " >&6
18198 case $STRIP_FOR_TARGET in
18200 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
18203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18204 for as_dir in $gcc_cv_tool_dirs
18207 test -z "$as_dir" && as_dir=.
18208 for ac_exec_ext in '' $ac_executable_extensions; do
18209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18210 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18211 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18221 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18222 if test -n "$STRIP_FOR_TARGET"; then
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
18224 $as_echo "$STRIP_FOR_TARGET" >&6; }
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18227 $as_echo "no
" >&6; }
18232 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18235 if test -n "$STRIP_FOR_TARGET"; then
18236 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18237 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18238 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18241 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18242 for ncn_progname in strip; do
18243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18244 set dummy ${ncn_progname}; ac_word=$2
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18246 $as_echo_n "checking
for $ac_word...
" >&6; }
18247 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18248 $as_echo_n "(cached
) " >&6
18250 if test -n "$STRIP_FOR_TARGET"; then
18251 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18254 for as_dir in $PATH
18257 test -z "$as_dir" && as_dir=.
18258 for ac_exec_ext in '' $ac_executable_extensions; do
18259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18260 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18261 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18270 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18271 if test -n "$STRIP_FOR_TARGET"; then
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
18273 $as_echo "$STRIP_FOR_TARGET" >&6; }
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18276 $as_echo "no
" >&6; }
18283 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
18284 for ncn_progname in strip; do
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
18286 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
18287 if test -x $with_build_time_tools/${ncn_progname}; then
18288 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
18290 $as_echo "yes" >&6; }
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18294 $as_echo "no
" >&6; }
18299 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
18300 for ncn_progname in strip; do
18301 if test -n "$ncn_target_tool_prefix"; then
18302 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18303 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18305 $as_echo_n "checking
for $ac_word...
" >&6; }
18306 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18307 $as_echo_n "(cached
) " >&6
18309 if test -n "$STRIP_FOR_TARGET"; then
18310 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18313 for as_dir in $PATH
18316 test -z "$as_dir" && as_dir=.
18317 for ac_exec_ext in '' $ac_executable_extensions; do
18318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18319 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18320 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18329 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18330 if test -n "$STRIP_FOR_TARGET"; then
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
18332 $as_echo "$STRIP_FOR_TARGET" >&6; }
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18335 $as_echo "no
" >&6; }
18340 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
18341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18342 set dummy ${ncn_progname}; ac_word=$2
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18344 $as_echo_n "checking
for $ac_word...
" >&6; }
18345 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18346 $as_echo_n "(cached
) " >&6
18348 if test -n "$STRIP_FOR_TARGET"; then
18349 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18352 for as_dir in $PATH
18355 test -z "$as_dir" && as_dir=.
18356 for ac_exec_ext in '' $ac_executable_extensions; do
18357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18358 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18359 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18368 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18369 if test -n "$STRIP_FOR_TARGET"; then
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
18371 $as_echo "$STRIP_FOR_TARGET" >&6; }
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18374 $as_echo "no
" >&6; }
18379 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
18383 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
18385 if test $build = $target ; then
18386 STRIP_FOR_TARGET="$2"
18388 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
18391 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
18395 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18401 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18402 if test -n "$with_build_time_tools"; then
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
18404 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
18405 if test -x $with_build_time_tools/windres; then
18406 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
18407 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
18409 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18412 $as_echo "no
" >&6; }
18414 elif test $build != $host && test $have_gcc_for_target = yes; then
18415 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
18416 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
18417 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18420 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18421 # Extract the first word of "windres
", so it can be a program name with args.
18422 set dummy windres; ac_word=$2
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18424 $as_echo_n "checking
for $ac_word...
" >&6; }
18425 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
18426 $as_echo_n "(cached
) " >&6
18428 case $WINDRES_FOR_TARGET in
18430 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
18433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18434 for as_dir in $gcc_cv_tool_dirs
18437 test -z "$as_dir" && as_dir=.
18438 for ac_exec_ext in '' $ac_executable_extensions; do
18439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18440 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18441 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18451 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18452 if test -n "$WINDRES_FOR_TARGET"; then
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
18454 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18457 $as_echo "no
" >&6; }
18462 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18465 if test -n "$WINDRES_FOR_TARGET"; then
18466 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18467 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18468 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18471 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18472 for ncn_progname in windres; do
18473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18474 set dummy ${ncn_progname}; ac_word=$2
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18476 $as_echo_n "checking
for $ac_word...
" >&6; }
18477 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18478 $as_echo_n "(cached
) " >&6
18480 if test -n "$WINDRES_FOR_TARGET"; then
18481 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484 for as_dir in $PATH
18487 test -z "$as_dir" && as_dir=.
18488 for ac_exec_ext in '' $ac_executable_extensions; do
18489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18490 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18491 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18500 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18501 if test -n "$WINDRES_FOR_TARGET"; then
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
18503 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18506 $as_echo "no
" >&6; }
18513 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
18514 for ncn_progname in windres; do
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
18516 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
18517 if test -x $with_build_time_tools/${ncn_progname}; then
18518 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
18520 $as_echo "yes" >&6; }
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18524 $as_echo "no
" >&6; }
18529 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18530 for ncn_progname in windres; do
18531 if test -n "$ncn_target_tool_prefix"; then
18532 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18533 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18535 $as_echo_n "checking
for $ac_word...
" >&6; }
18536 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18537 $as_echo_n "(cached
) " >&6
18539 if test -n "$WINDRES_FOR_TARGET"; then
18540 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18543 for as_dir in $PATH
18546 test -z "$as_dir" && as_dir=.
18547 for ac_exec_ext in '' $ac_executable_extensions; do
18548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18549 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18550 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18559 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18560 if test -n "$WINDRES_FOR_TARGET"; then
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
18562 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18565 $as_echo "no
" >&6; }
18570 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
18571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18572 set dummy ${ncn_progname}; ac_word=$2
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18574 $as_echo_n "checking
for $ac_word...
" >&6; }
18575 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18576 $as_echo_n "(cached
) " >&6
18578 if test -n "$WINDRES_FOR_TARGET"; then
18579 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18582 for as_dir in $PATH
18585 test -z "$as_dir" && as_dir=.
18586 for ac_exec_ext in '' $ac_executable_extensions; do
18587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18588 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18589 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18598 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18599 if test -n "$WINDRES_FOR_TARGET"; then
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
18601 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18604 $as_echo "no
" >&6; }
18609 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
18613 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
18615 if test $build = $target ; then
18616 WINDRES_FOR_TARGET="$2"
18618 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
18621 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
18625 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18631 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18632 if test -n "$with_build_time_tools"; then
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
18634 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
18635 if test -x $with_build_time_tools/windmc; then
18636 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
18637 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
18639 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18642 $as_echo "no
" >&6; }
18644 elif test $build != $host && test $have_gcc_for_target = yes; then
18645 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
18646 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
18647 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18650 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18651 # Extract the first word of "windmc
", so it can be a program name with args.
18652 set dummy windmc; ac_word=$2
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18654 $as_echo_n "checking
for $ac_word...
" >&6; }
18655 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
18656 $as_echo_n "(cached
) " >&6
18658 case $WINDMC_FOR_TARGET in
18660 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
18663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18664 for as_dir in $gcc_cv_tool_dirs
18667 test -z "$as_dir" && as_dir=.
18668 for ac_exec_ext in '' $ac_executable_extensions; do
18669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18670 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18671 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18681 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18682 if test -n "$WINDMC_FOR_TARGET"; then
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
18684 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18687 $as_echo "no
" >&6; }
18692 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18695 if test -n "$WINDMC_FOR_TARGET"; then
18696 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18697 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18698 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18701 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18702 for ncn_progname in windmc; do
18703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18704 set dummy ${ncn_progname}; ac_word=$2
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18706 $as_echo_n "checking
for $ac_word...
" >&6; }
18707 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18708 $as_echo_n "(cached
) " >&6
18710 if test -n "$WINDMC_FOR_TARGET"; then
18711 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18714 for as_dir in $PATH
18717 test -z "$as_dir" && as_dir=.
18718 for ac_exec_ext in '' $ac_executable_extensions; do
18719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18720 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18721 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18730 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18731 if test -n "$WINDMC_FOR_TARGET"; then
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
18733 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18736 $as_echo "no
" >&6; }
18743 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
18744 for ncn_progname in windmc; do
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
18746 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
18747 if test -x $with_build_time_tools/${ncn_progname}; then
18748 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
18750 $as_echo "yes" >&6; }
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18754 $as_echo "no
" >&6; }
18759 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18760 for ncn_progname in windmc; do
18761 if test -n "$ncn_target_tool_prefix"; then
18762 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18763 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18765 $as_echo_n "checking
for $ac_word...
" >&6; }
18766 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18767 $as_echo_n "(cached
) " >&6
18769 if test -n "$WINDMC_FOR_TARGET"; then
18770 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18773 for as_dir in $PATH
18776 test -z "$as_dir" && as_dir=.
18777 for ac_exec_ext in '' $ac_executable_extensions; do
18778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18779 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18780 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18789 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18790 if test -n "$WINDMC_FOR_TARGET"; then
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
18792 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18795 $as_echo "no
" >&6; }
18800 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
18801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18802 set dummy ${ncn_progname}; ac_word=$2
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18804 $as_echo_n "checking
for $ac_word...
" >&6; }
18805 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18806 $as_echo_n "(cached
) " >&6
18808 if test -n "$WINDMC_FOR_TARGET"; then
18809 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18812 for as_dir in $PATH
18815 test -z "$as_dir" && as_dir=.
18816 for ac_exec_ext in '' $ac_executable_extensions; do
18817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18818 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18819 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18828 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18829 if test -n "$WINDMC_FOR_TARGET"; then
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
18831 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18834 $as_echo "no
" >&6; }
18839 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
18843 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
18845 if test $build = $target ; then
18846 WINDMC_FOR_TARGET="$2"
18848 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
18851 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
18855 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18859 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
18862 $as_echo_n "checking where to
find the target
ar...
" >&6; }
18863 if test "x
${build}" != "x
${host}" ; then
18864 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
18865 # We already found the complete path
18866 ac_dir=`dirname $AR_FOR_TARGET`
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18868 $as_echo "pre-installed
in $ac_dir" >&6; }
18870 # Canadian cross, just use what we found
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18872 $as_echo "pre-installed
" >&6; }
18876 case " ${configdirs} " in
18881 if test $ok = yes; then
18882 # An in-tree tool is available and we can use it
18883 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18885 $as_echo "just compiled
" >&6; }
18886 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
18887 # We already found the complete path
18888 ac_dir=`dirname $AR_FOR_TARGET`
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18890 $as_echo "pre-installed
in $ac_dir" >&6; }
18891 elif test "x
$target" = "x
$host"; then
18892 # We can use an host tool
18893 AR_FOR_TARGET='$(AR)'
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18895 $as_echo "host tool
" >&6; }
18897 # We need a cross tool
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18899 $as_echo "pre-installed
" >&6; }
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
18904 $as_echo_n "checking where to
find the target as...
" >&6; }
18905 if test "x
${build}" != "x
${host}" ; then
18906 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
18907 # We already found the complete path
18908 ac_dir=`dirname $AS_FOR_TARGET`
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18910 $as_echo "pre-installed
in $ac_dir" >&6; }
18912 # Canadian cross, just use what we found
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18914 $as_echo "pre-installed
" >&6; }
18918 case " ${configdirs} " in
18923 if test $ok = yes; then
18924 # An in-tree tool is available and we can use it
18925 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18927 $as_echo "just compiled
" >&6; }
18928 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
18929 # We already found the complete path
18930 ac_dir=`dirname $AS_FOR_TARGET`
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18932 $as_echo "pre-installed
in $ac_dir" >&6; }
18933 elif test "x
$target" = "x
$host"; then
18934 # We can use an host tool
18935 AS_FOR_TARGET='$(AS)'
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18937 $as_echo "host tool
" >&6; }
18939 # We need a cross tool
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18941 $as_echo "pre-installed
" >&6; }
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
18946 $as_echo_n "checking where to
find the target cc...
" >&6; }
18947 if test "x
${build}" != "x
${host}" ; then
18948 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
18949 # We already found the complete path
18950 ac_dir=`dirname $CC_FOR_TARGET`
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18952 $as_echo "pre-installed
in $ac_dir" >&6; }
18954 # Canadian cross, just use what we found
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18956 $as_echo "pre-installed
" >&6; }
18960 case " ${configdirs} " in
18965 if test $ok = yes; then
18966 # An in-tree tool is available and we can use it
18967 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18969 $as_echo "just compiled
" >&6; }
18970 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
18971 # We already found the complete path
18972 ac_dir=`dirname $CC_FOR_TARGET`
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18974 $as_echo "pre-installed
in $ac_dir" >&6; }
18975 elif test "x
$target" = "x
$host"; then
18976 # We can use an host tool
18977 CC_FOR_TARGET='$(CC)'
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18979 $as_echo "host tool
" >&6; }
18981 # We need a cross tool
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18983 $as_echo "pre-installed
" >&6; }
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
18988 $as_echo_n "checking where to
find the target c
++...
" >&6; }
18989 if test "x
${build}" != "x
${host}" ; then
18990 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
18991 # We already found the complete path
18992 ac_dir=`dirname $CXX_FOR_TARGET`
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18994 $as_echo "pre-installed
in $ac_dir" >&6; }
18996 # Canadian cross, just use what we found
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18998 $as_echo "pre-installed
" >&6; }
19002 case " ${configdirs} " in
19006 case ,${enable_languages}, in
19010 if test $ok = yes; then
19011 # An in-tree tool is available and we can use it
19012 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'
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19014 $as_echo "just compiled
" >&6; }
19015 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
19016 # We already found the complete path
19017 ac_dir=`dirname $CXX_FOR_TARGET`
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19019 $as_echo "pre-installed
in $ac_dir" >&6; }
19020 elif test "x
$target" = "x
$host"; then
19021 # We can use an host tool
19022 CXX_FOR_TARGET='$(CXX)'
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19024 $as_echo "host tool
" >&6; }
19026 # We need a cross tool
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19028 $as_echo "pre-installed
" >&6; }
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
19033 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
19034 if test "x
${build}" != "x
${host}" ; then
19035 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
19036 # We already found the complete path
19037 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19039 $as_echo "pre-installed
in $ac_dir" >&6; }
19041 # Canadian cross, just use what we found
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19043 $as_echo "pre-installed
" >&6; }
19047 case " ${configdirs} " in
19051 case ,${enable_languages}, in
19055 if test $ok = yes; then
19056 # An in-tree tool is available and we can use it
19057 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'
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19059 $as_echo "just compiled
" >&6; }
19060 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
19061 # We already found the complete path
19062 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19064 $as_echo "pre-installed
in $ac_dir" >&6; }
19065 elif test "x
$target" = "x
$host"; then
19066 # We can use an host tool
19067 RAW_CXX_FOR_TARGET='$(CXX)'
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19069 $as_echo "host tool
" >&6; }
19071 # We need a cross tool
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19073 $as_echo "pre-installed
" >&6; }
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
19078 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
19079 if test "x
${build}" != "x
${host}" ; then
19080 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
19081 # We already found the complete path
19082 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19084 $as_echo "pre-installed
in $ac_dir" >&6; }
19086 # Canadian cross, just use what we found
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19088 $as_echo "pre-installed
" >&6; }
19092 case " ${configdirs} " in
19097 if test $ok = yes; then
19098 # An in-tree tool is available and we can use it
19099 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19101 $as_echo "just compiled
" >&6; }
19102 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
19103 # We already found the complete path
19104 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19106 $as_echo "pre-installed
in $ac_dir" >&6; }
19107 elif test "x
$target" = "x
$host"; then
19108 # We can use an host tool
19109 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19111 $as_echo "host tool
" >&6; }
19113 # We need a cross tool
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19115 $as_echo "pre-installed
" >&6; }
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
19120 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
19121 if test "x
${build}" != "x
${host}" ; then
19122 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
19123 # We already found the complete path
19124 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19126 $as_echo "pre-installed
in $ac_dir" >&6; }
19128 # Canadian cross, just use what we found
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19130 $as_echo "pre-installed
" >&6; }
19133 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
19134 # We already found the complete path
19135 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19137 $as_echo "pre-installed
in $ac_dir" >&6; }
19138 elif test "x
$target" = "x
$host"; then
19139 # We can use an host tool
19140 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19142 $as_echo "host tool
" >&6; }
19144 # We need a cross tool
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19146 $as_echo "pre-installed
" >&6; }
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
19151 $as_echo_n "checking where to
find the target gcc...
" >&6; }
19152 if test "x
${build}" != "x
${host}" ; then
19153 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
19154 # We already found the complete path
19155 ac_dir=`dirname $GCC_FOR_TARGET`
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19157 $as_echo "pre-installed
in $ac_dir" >&6; }
19159 # Canadian cross, just use what we found
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19161 $as_echo "pre-installed
" >&6; }
19165 case " ${configdirs} " in
19170 if test $ok = yes; then
19171 # An in-tree tool is available and we can use it
19172 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19174 $as_echo "just compiled
" >&6; }
19175 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
19176 # We already found the complete path
19177 ac_dir=`dirname $GCC_FOR_TARGET`
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19179 $as_echo "pre-installed
in $ac_dir" >&6; }
19180 elif test "x
$target" = "x
$host"; then
19181 # We can use an host tool
19182 GCC_FOR_TARGET='$()'
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19184 $as_echo "host tool
" >&6; }
19186 # We need a cross tool
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19188 $as_echo "pre-installed
" >&6; }
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
19193 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
19194 if test "x
${build}" != "x
${host}" ; then
19195 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
19196 # We already found the complete path
19197 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19199 $as_echo "pre-installed
in $ac_dir" >&6; }
19201 # Canadian cross, just use what we found
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19203 $as_echo "pre-installed
" >&6; }
19207 case " ${configdirs} " in
19211 case ,${enable_languages}, in
19215 if test $ok = yes; then
19216 # An in-tree tool is available and we can use it
19217 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19219 $as_echo "just compiled
" >&6; }
19220 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
19221 # We already found the complete path
19222 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19224 $as_echo "pre-installed
in $ac_dir" >&6; }
19225 elif test "x
$target" = "x
$host"; then
19226 # We can use an host tool
19227 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19229 $as_echo "host tool
" >&6; }
19231 # We need a cross tool
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19233 $as_echo "pre-installed
" >&6; }
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
19238 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
19239 if test "x
${build}" != "x
${host}" ; then
19240 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
19241 # We already found the complete path
19242 ac_dir=`dirname $GOC_FOR_TARGET`
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19244 $as_echo "pre-installed
in $ac_dir" >&6; }
19246 # Canadian cross, just use what we found
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19248 $as_echo "pre-installed
" >&6; }
19252 case " ${configdirs} " in
19256 case ,${enable_languages}, in
19260 if test $ok = yes; then
19261 # An in-tree tool is available and we can use it
19262 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19264 $as_echo "just compiled
" >&6; }
19265 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
19266 # We already found the complete path
19267 ac_dir=`dirname $GOC_FOR_TARGET`
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19269 $as_echo "pre-installed
in $ac_dir" >&6; }
19270 elif test "x
$target" = "x
$host"; then
19271 # We can use an host tool
19272 GOC_FOR_TARGET='$(GOC)'
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19274 $as_echo "host tool
" >&6; }
19276 # We need a cross tool
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19278 $as_echo "pre-installed
" >&6; }
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
19283 $as_echo_n "checking where to
find the target gdc...
" >&6; }
19284 if test "x
${build}" != "x
${host}" ; then
19285 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
19286 # We already found the complete path
19287 ac_dir=`dirname $GDC_FOR_TARGET`
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19289 $as_echo "pre-installed
in $ac_dir" >&6; }
19291 # Canadian cross, just use what we found
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19293 $as_echo "pre-installed
" >&6; }
19297 case " ${configdirs} " in
19301 case ,${enable_languages}, in
19305 if test $ok = yes; then
19306 # An in-tree tool is available and we can use it
19307 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19309 $as_echo "just compiled
" >&6; }
19310 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
19311 # We already found the complete path
19312 ac_dir=`dirname $GDC_FOR_TARGET`
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19314 $as_echo "pre-installed
in $ac_dir" >&6; }
19315 elif test "x
$target" = "x
$host"; then
19316 # We can use an host tool
19317 GDC_FOR_TARGET='$(GDC)'
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19319 $as_echo "host tool
" >&6; }
19321 # We need a cross tool
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19323 $as_echo "pre-installed
" >&6; }
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gm2
" >&5
19328 $as_echo_n "checking where to
find the target gm2...
" >&6; }
19329 if test "x
${build}" != "x
${host}" ; then
19330 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
19331 # We already found the complete path
19332 ac_dir=`dirname $GM2_FOR_TARGET`
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19334 $as_echo "pre-installed
in $ac_dir" >&6; }
19336 # Canadian cross, just use what we found
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19338 $as_echo "pre-installed
" >&6; }
19342 case " ${configdirs} " in
19346 case ,${enable_languages}, in
19350 if test $ok = yes; then
19351 # An in-tree tool is available and we can use it
19352 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19354 $as_echo "just compiled
" >&6; }
19355 elif expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
19356 # We already found the complete path
19357 ac_dir=`dirname $GM2_FOR_TARGET`
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19359 $as_echo "pre-installed
in $ac_dir" >&6; }
19360 elif test "x
$target" = "x
$host"; then
19361 # We can use an host tool
19362 GM2_FOR_TARGET='$(GM2)'
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19364 $as_echo "host tool
" >&6; }
19366 # We need a cross tool
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19368 $as_echo "pre-installed
" >&6; }
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
19373 $as_echo_n "checking where to
find the target ld...
" >&6; }
19374 if test "x
${build}" != "x
${host}" ; then
19375 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
19376 # We already found the complete path
19377 ac_dir=`dirname $LD_FOR_TARGET`
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19379 $as_echo "pre-installed
in $ac_dir" >&6; }
19381 # Canadian cross, just use what we found
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19383 $as_echo "pre-installed
" >&6; }
19387 case " ${configdirs} " in
19392 if test $ok = yes; then
19393 # An in-tree tool is available and we can use it
19394 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19396 $as_echo "just compiled
" >&6; }
19397 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
19398 # We already found the complete path
19399 ac_dir=`dirname $LD_FOR_TARGET`
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19401 $as_echo "pre-installed
in $ac_dir" >&6; }
19402 elif test "x
$target" = "x
$host"; then
19403 # We can use an host tool
19404 LD_FOR_TARGET='$(LD)'
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19406 $as_echo "host tool
" >&6; }
19408 # We need a cross tool
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19410 $as_echo "pre-installed
" >&6; }
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
19415 $as_echo_n "checking where to
find the target lipo...
" >&6; }
19416 if test "x
${build}" != "x
${host}" ; then
19417 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
19418 # We already found the complete path
19419 ac_dir=`dirname $LIPO_FOR_TARGET`
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19421 $as_echo "pre-installed
in $ac_dir" >&6; }
19423 # Canadian cross, just use what we found
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19425 $as_echo "pre-installed
" >&6; }
19428 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
19429 # We already found the complete path
19430 ac_dir=`dirname $LIPO_FOR_TARGET`
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19432 $as_echo "pre-installed
in $ac_dir" >&6; }
19433 elif test "x
$target" = "x
$host"; then
19434 # We can use an host tool
19435 LIPO_FOR_TARGET='$(LIPO)'
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19437 $as_echo "host tool
" >&6; }
19439 # We need a cross tool
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19441 $as_echo "pre-installed
" >&6; }
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
19446 $as_echo_n "checking where to
find the target nm...
" >&6; }
19447 if test "x
${build}" != "x
${host}" ; then
19448 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
19449 # We already found the complete path
19450 ac_dir=`dirname $NM_FOR_TARGET`
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19452 $as_echo "pre-installed
in $ac_dir" >&6; }
19454 # Canadian cross, just use what we found
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19456 $as_echo "pre-installed
" >&6; }
19460 case " ${configdirs} " in
19465 if test $ok = yes; then
19466 # An in-tree tool is available and we can use it
19467 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19469 $as_echo "just compiled
" >&6; }
19470 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
19471 # We already found the complete path
19472 ac_dir=`dirname $NM_FOR_TARGET`
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19474 $as_echo "pre-installed
in $ac_dir" >&6; }
19475 elif test "x
$target" = "x
$host"; then
19476 # We can use an host tool
19477 NM_FOR_TARGET='$(NM)'
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19479 $as_echo "host tool
" >&6; }
19481 # We need a cross tool
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19483 $as_echo "pre-installed
" >&6; }
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
19488 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
19489 if test "x
${build}" != "x
${host}" ; then
19490 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
19491 # We already found the complete path
19492 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19494 $as_echo "pre-installed
in $ac_dir" >&6; }
19496 # Canadian cross, just use what we found
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19498 $as_echo "pre-installed
" >&6; }
19502 case " ${configdirs} " in
19507 if test $ok = yes; then
19508 # An in-tree tool is available and we can use it
19509 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19511 $as_echo "just compiled
" >&6; }
19512 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
19513 # We already found the complete path
19514 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19516 $as_echo "pre-installed
in $ac_dir" >&6; }
19517 elif test "x
$target" = "x
$host"; then
19518 # We can use an host tool
19519 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19521 $as_echo "host tool
" >&6; }
19523 # We need a cross tool
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19525 $as_echo "pre-installed
" >&6; }
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
19530 $as_echo_n "checking where to
find the target objdump...
" >&6; }
19531 if test "x
${build}" != "x
${host}" ; then
19532 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
19533 # We already found the complete path
19534 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19536 $as_echo "pre-installed
in $ac_dir" >&6; }
19538 # Canadian cross, just use what we found
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19540 $as_echo "pre-installed
" >&6; }
19544 case " ${configdirs} " in
19549 if test $ok = yes; then
19550 # An in-tree tool is available and we can use it
19551 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19553 $as_echo "just compiled
" >&6; }
19554 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
19555 # We already found the complete path
19556 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19558 $as_echo "pre-installed
in $ac_dir" >&6; }
19559 elif test "x
$target" = "x
$host"; then
19560 # We can use an host tool
19561 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19563 $as_echo "host tool
" >&6; }
19565 # We need a cross tool
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19567 $as_echo "pre-installed
" >&6; }
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
19572 $as_echo_n "checking where to
find the target otool...
" >&6; }
19573 if test "x
${build}" != "x
${host}" ; then
19574 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
19575 # We already found the complete path
19576 ac_dir=`dirname $OTOOL_FOR_TARGET`
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19578 $as_echo "pre-installed
in $ac_dir" >&6; }
19580 # Canadian cross, just use what we found
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19582 $as_echo "pre-installed
" >&6; }
19585 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
19586 # We already found the complete path
19587 ac_dir=`dirname $OTOOL_FOR_TARGET`
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19589 $as_echo "pre-installed
in $ac_dir" >&6; }
19590 elif test "x
$target" = "x
$host"; then
19591 # We can use an host tool
19592 OTOOL_FOR_TARGET='$(OTOOL)'
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19594 $as_echo "host tool
" >&6; }
19596 # We need a cross tool
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19598 $as_echo "pre-installed
" >&6; }
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
19603 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
19604 if test "x
${build}" != "x
${host}" ; then
19605 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
19606 # We already found the complete path
19607 ac_dir=`dirname $RANLIB_FOR_TARGET`
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19609 $as_echo "pre-installed
in $ac_dir" >&6; }
19611 # Canadian cross, just use what we found
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19613 $as_echo "pre-installed
" >&6; }
19617 case " ${configdirs} " in
19622 if test $ok = yes; then
19623 # An in-tree tool is available and we can use it
19624 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19626 $as_echo "just compiled
" >&6; }
19627 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
19628 # We already found the complete path
19629 ac_dir=`dirname $RANLIB_FOR_TARGET`
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19631 $as_echo "pre-installed
in $ac_dir" >&6; }
19632 elif test "x
$target" = "x
$host"; then
19633 # We can use an host tool
19634 RANLIB_FOR_TARGET='$(RANLIB)'
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19636 $as_echo "host tool
" >&6; }
19638 # We need a cross tool
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19640 $as_echo "pre-installed
" >&6; }
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
19645 $as_echo_n "checking where to
find the target readelf...
" >&6; }
19646 if test "x
${build}" != "x
${host}" ; then
19647 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
19648 # We already found the complete path
19649 ac_dir=`dirname $READELF_FOR_TARGET`
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19651 $as_echo "pre-installed
in $ac_dir" >&6; }
19653 # Canadian cross, just use what we found
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19655 $as_echo "pre-installed
" >&6; }
19659 case " ${configdirs} " in
19664 if test $ok = yes; then
19665 # An in-tree tool is available and we can use it
19666 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19668 $as_echo "just compiled
" >&6; }
19669 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
19670 # We already found the complete path
19671 ac_dir=`dirname $READELF_FOR_TARGET`
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19673 $as_echo "pre-installed
in $ac_dir" >&6; }
19674 elif test "x
$target" = "x
$host"; then
19675 # We can use an host tool
19676 READELF_FOR_TARGET='$(READELF)'
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19678 $as_echo "host tool
" >&6; }
19680 # We need a cross tool
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19682 $as_echo "pre-installed
" >&6; }
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
19687 $as_echo_n "checking where to
find the target strip...
" >&6; }
19688 if test "x
${build}" != "x
${host}" ; then
19689 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
19690 # We already found the complete path
19691 ac_dir=`dirname $STRIP_FOR_TARGET`
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19693 $as_echo "pre-installed
in $ac_dir" >&6; }
19695 # Canadian cross, just use what we found
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19697 $as_echo "pre-installed
" >&6; }
19701 case " ${configdirs} " in
19706 if test $ok = yes; then
19707 # An in-tree tool is available and we can use it
19708 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19710 $as_echo "just compiled
" >&6; }
19711 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
19712 # We already found the complete path
19713 ac_dir=`dirname $STRIP_FOR_TARGET`
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19715 $as_echo "pre-installed
in $ac_dir" >&6; }
19716 elif test "x
$target" = "x
$host"; then
19717 # We can use an host tool
19718 STRIP_FOR_TARGET='$(STRIP)'
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19720 $as_echo "host tool
" >&6; }
19722 # We need a cross tool
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19724 $as_echo "pre-installed
" >&6; }
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
19729 $as_echo_n "checking where to
find the target windres...
" >&6; }
19730 if test "x
${build}" != "x
${host}" ; then
19731 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
19732 # We already found the complete path
19733 ac_dir=`dirname $WINDRES_FOR_TARGET`
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19735 $as_echo "pre-installed
in $ac_dir" >&6; }
19737 # Canadian cross, just use what we found
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19739 $as_echo "pre-installed
" >&6; }
19743 case " ${configdirs} " in
19748 if test $ok = yes; then
19749 # An in-tree tool is available and we can use it
19750 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19752 $as_echo "just compiled
" >&6; }
19753 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
19754 # We already found the complete path
19755 ac_dir=`dirname $WINDRES_FOR_TARGET`
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19757 $as_echo "pre-installed
in $ac_dir" >&6; }
19758 elif test "x
$target" = "x
$host"; then
19759 # We can use an host tool
19760 WINDRES_FOR_TARGET='$(WINDRES)'
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19762 $as_echo "host tool
" >&6; }
19764 # We need a cross tool
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19766 $as_echo "pre-installed
" >&6; }
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
19771 $as_echo_n "checking where to
find the target windmc...
" >&6; }
19772 if test "x
${build}" != "x
${host}" ; then
19773 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
19774 # We already found the complete path
19775 ac_dir=`dirname $WINDMC_FOR_TARGET`
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19777 $as_echo "pre-installed
in $ac_dir" >&6; }
19779 # Canadian cross, just use what we found
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19781 $as_echo "pre-installed
" >&6; }
19785 case " ${configdirs} " in
19790 if test $ok = yes; then
19791 # An in-tree tool is available and we can use it
19792 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19794 $as_echo "just compiled
" >&6; }
19795 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
19796 # We already found the complete path
19797 ac_dir=`dirname $WINDMC_FOR_TARGET`
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19799 $as_echo "pre-installed
in $ac_dir" >&6; }
19800 elif test "x
$target" = "x
$host"; then
19801 # We can use an host tool
19802 WINDMC_FOR_TARGET='$(WINDMC)'
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19804 $as_echo "host tool
" >&6; }
19806 # We need a cross tool
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19808 $as_echo "pre-installed
" >&6; }
19816 # Certain tools may need extra flags.
19817 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
19818 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
19819 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
19821 # When building target libraries, except in a Canadian cross, we use
19822 # the same toolchain as the compiler we just built.
19823 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
19824 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
19825 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
19826 if test $host = $build; then
19827 case " $configdirs " in
19829 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
19830 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
19831 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
19841 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
19842 # Check whether --enable-maintainer-mode was given.
19843 if test "${enable_maintainer_mode+set}" = set; then :
19844 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19846 USE_MAINTAINER_MODE=no
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
19850 $as_echo "$USE_MAINTAINER_MODE" >&6; }
19853 if test "$USE_MAINTAINER_MODE" = yes; then
19854 MAINTAINER_MODE_TRUE=
19855 MAINTAINER_MODE_FALSE='#'
19857 MAINTAINER_MODE_TRUE='#'
19858 MAINTAINER_MODE_FALSE=
19860 MAINT=$MAINTAINER_MODE_TRUE
19862 # ---------------------
19863 # GCC bootstrap support
19864 # ---------------------
19866 # Stage specific cflags for build.
19871 yes) stage1_cflags="-g -Wa,-J" ;;
19872 *) stage1_cflags="-g -J" ;;
19878 # Enable --enable-checking in stage1 of the compiler.
19879 # Check whether --enable-stage1-checking was given.
19880 if test "${enable_stage1_checking+set}" = set; then :
19881 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
19883 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
19884 # For --disable-checking or implicit --enable-checking=release, avoid
19885 # setting --enable-checking=gc in the default stage1 checking for LTO
19886 # bootstraps. See PR62077.
19887 case $BUILD_CONFIG in
19889 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
19891 stage1_checking=--enable-checking=yes,types;;
19893 if test "x
$enable_checking" = x && \
19894 test -d ${srcdir}/gcc && \
19895 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
19896 stage1_checking=--enable-checking=yes,types,extra
19899 stage1_checking=--enable-checking=$enable_checking,types
19905 # Enable -Werror in bootstrap stage2 and later.
19906 # Check whether --enable-werror was given.
19907 if test "${enable_werror+set}" = set; then :
19908 enableval=$enable_werror;
19909 case ${enable_werror} in
19910 yes) stage2_werror_flag="--enable-werror-always" ;;
19911 *) stage2_werror_flag="" ;;
19916 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
19917 case $BUILD_CONFIG in
19919 stage2_werror_flag="--enable-werror-always" ;;
19921 stage2_werror_flag="--enable-werror-always" ;;
19930 # Specify what files to not compare during bootstrap.
19932 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
19933 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
19934 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
19935 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
19937 hppa*64*-*-hpux*) ;;
19938 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
19942 ac_config_files="$ac_config_files Makefile
"
19944 cat >confcache <<\_ACEOF
19945 # This file is a shell script that caches the results of configure
19946 # tests run on this system so they can be shared between configure
19947 # scripts and configure runs, see configure's option --config-cache.
19948 # It is not useful on other systems. If it contains results you don't
19949 # want to keep, you may remove or edit it.
19951 # config.status only pays attention to the cache file if you give it
19952 # the --recheck option to rerun configure.
19954 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19955 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19956 # following values.
19960 # The following way of writing the cache mishandles newlines in values,
19961 # but we know of no workaround that is simple, portable, and efficient.
19962 # So, we kill variables containing newlines.
19963 # Ultrix sh set writes to stderr and can't be redirected directly,
19964 # and sets the high bit in the cache file unless we assign to the vars.
19966 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19967 eval ac_val=\$$ac_var
19971 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
19972 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
19975 _ | IFS | as_nl) ;; #(
19976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19977 *) { eval $ac_var=; unset $ac_var;} ;;
19983 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19984 *${as_nl}ac_space=\ *)
19985 # `set' does not quote correctly, so add quotes: double-quote
19986 # substitution turns \\\\ into \\, and sed turns \\ into \.
19989 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
19992 # `set' quotes correctly as required by POSIX, so do not add quotes.
19993 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
20002 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20004 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20006 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20007 if test -w "$cache_file"; then
20008 if test "x
$cache_file" != "x
/dev
/null
"; then
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
20010 $as_echo "$as_me: updating cache
$cache_file" >&6;}
20011 if test ! -f "$cache_file" || test -h "$cache_file"; then
20012 cat confcache >"$cache_file"
20014 case $cache_file in #(
20016 mv -f confcache "$cache_file"$$ &&
20017 mv -f "$cache_file"$$ "$cache_file" ;; #(
20019 mv -f confcache "$cache_file" ;;
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
20025 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
20030 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
20031 # Let make expand exec_prefix.
20032 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
20034 # Transform confdefs.h into DEFS.
20035 # Protect against shell expansion while executing Makefile rules.
20036 # Protect against Makefile macro expansion.
20038 # If the first sed substitution is executed (which looks for macros that
20039 # take arguments), then branch to the quote section. Otherwise,
20040 # look for a macro that doesn't take arguments.
20050 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20052 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20056 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
20069 DEFS=`sed -n "$ac_script" confdefs.h`
20075 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20076 # 1. Remove the extension, and $U if already installed.
20077 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
20078 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20079 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20080 # will be set to the directory where LIBOBJS objects are built.
20081 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20082 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
20084 LIBOBJS=$ac_libobjs
20086 LTLIBOBJS=$ac_ltlibobjs
20090 : "${CONFIG_STATUS=./config.status}"
20092 ac_clean_files_save=$ac_clean_files
20093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20095 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20097 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20099 # Generated by $as_me.
20100 # Run this file to recreate the current configuration.
20101 # Compiler output produced by configure, useful for debugging
20102 # configure, is in config.log if it exists.
20105 ac_cs_recheck=false
20108 SHELL=\${CONFIG_SHELL-$SHELL}
20111 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20112 ## -------------------- ##
20113 ## M4sh Initialization. ##
20114 ## -------------------- ##
20116 # Be more Bourne compatible
20117 DUALCASE=1; export DUALCASE # for MKS sh
20118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20122 # is contrary to our usage. Disable this feature.
20123 alias -g '${1+"$@"}'='"$@"'
20124 setopt NO_GLOB_SUBST
20126 case `(set -o) 2>/dev/null` in #(
20138 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20139 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20140 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
20141 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20142 # Prefer a ksh shell builtin over an external printf program on Solaris,
20143 # but without wasting forks for bash or zsh.
20144 if test -z "$BASH_VERSION$ZSH_VERSION" \
20145 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
20146 as_echo
='print -r --'
20147 as_echo_n
='print -rn --'
20148 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
20149 as_echo
='printf %s\n'
20150 as_echo_n
='printf %s'
20152 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20153 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
20154 as_echo_n
='/usr/ucb/echo -n'
20156 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
20157 as_echo_n_body
='eval
20161 expr "X$arg" : "X\\(.*\\)$as_nl";
20162 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20164 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20166 export as_echo_n_body
20167 as_echo_n
='sh -c $as_echo_n_body as_echo'
20169 export as_echo_body
20170 as_echo
='sh -c $as_echo_body as_echo'
20173 # The user is always right.
20174 if test "${PATH_SEPARATOR+set}" != set; then
20176 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
20177 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
20184 # We need space, tab and new line, in precisely that order. Quoting is
20185 # there to prevent editors from complaining about space-tab.
20186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20187 # splitting by setting IFS to empty value.)
20190 # Find who we are. Look in the path if we contain no directory separator.
20193 *[\\/]* ) as_myself
=$0 ;;
20194 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20195 for as_dir
in $PATH
20198 test -z "$as_dir" && as_dir
=.
20199 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20205 # We did not find ourselves, most probably we were run as `sh COMMAND'
20206 # in which case we are not to be found in the path.
20207 if test "x$as_myself" = x
; then
20210 if test ! -f "$as_myself"; then
20211 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20215 # Unset variables that we do not need and which cause bugs (e.g. in
20216 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20217 # suppresses any "Segmentation fault" message there. '((' could
20218 # trigger a bug in pdksh 5.2.14.
20219 for as_var
in BASH_ENV ENV MAIL MAILPATH
20220 do eval test x\
${$as_var+set} = xset \
20221 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20234 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20237 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20238 # ----------------------------------------
20239 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20240 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20241 # script with STATUS, using 1 if that was 0.
20244 as_status
=$1; test $as_status -eq 0 && as_status
=1
20246 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20247 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20249 $as_echo "$as_me: error: $2" >&2
20250 as_fn_exit
$as_status
20254 # as_fn_set_status STATUS
20255 # -----------------------
20256 # Set $? to STATUS, without forking.
20257 as_fn_set_status
()
20260 } # as_fn_set_status
20262 # as_fn_exit STATUS
20263 # -----------------
20264 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20268 as_fn_set_status
$1
20274 # Portably unset VAR.
20277 { eval $1=; unset $1;}
20279 as_unset
=as_fn_unset
20280 # as_fn_append VAR VALUE
20281 # ----------------------
20282 # Append the text in VALUE to the end of the definition contained in VAR. Take
20283 # advantage of any shell optimizations that allow amortized linear growth over
20284 # repeated appends, instead of the typical quadratic growth present in naive
20286 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20287 eval 'as_fn_append ()
20298 # as_fn_arith ARG...
20299 # ------------------
20300 # Perform arithmetic evaluation on the ARGs, and store the result in the
20301 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20302 # must be portable across $(()) and expr.
20303 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20304 eval 'as_fn_arith ()
20311 as_val
=`expr "$@" || test $? -eq 1`
20316 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20317 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20323 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20324 as_basename
=basename
20329 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20335 as_me
=`$as_basename -- "$0" ||
20336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20337 X"$0" : 'X\(//\)$' \| \
20338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20340 sed '/^.*\/\([^/][^/]*\)\/*$/{
20354 # Avoid depending upon Character Ranges.
20355 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20356 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20357 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20358 as_cr_digits
='0123456789'
20359 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20361 ECHO_C
= ECHO_N
= ECHO_T
=
20362 case `echo -n x` in #(((((
20364 case `echo 'xy\c'` in
20365 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20367 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20374 rm -f conf$$ conf$$.exe conf$$.
file
20375 if test -d conf$$.dir
; then
20376 rm -f conf$$.dir
/conf$$.
file
20379 mkdir conf$$.dir
2>/dev
/null
20381 if (echo >conf$$.
file) 2>/dev
/null
; then
20382 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20384 # ... but there are two gotchas:
20385 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20386 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20387 # In both cases, we have to default to `cp -pR'.
20388 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20390 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20398 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20399 rmdir conf$$.dir
2>/dev
/null
20404 # Create "$as_dir" as a directory, including parents if necessary.
20409 -*) as_dir
=.
/$as_dir;;
20411 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20415 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20416 *) as_qdir
=$as_dir;;
20418 as_dirs
="'$as_qdir' $as_dirs"
20419 as_dir
=`$as_dirname -- "$as_dir" ||
20420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20421 X"$as_dir" : 'X\(//\)[^/]' \| \
20422 X"$as_dir" : 'X\(//\)$' \| \
20423 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20424 $as_echo X"$as_dir" |
20425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20429 /^X\(\/\/\)[^/].*/{
20442 test -d "$as_dir" && break
20444 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20445 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20449 if mkdir
-p .
2>/dev
/null
; then
20450 as_mkdir_p
='mkdir -p "$as_dir"'
20452 test -d .
/-p && rmdir .
/-p
20457 # as_fn_executable_p FILE
20458 # -----------------------
20459 # Test if FILE is an executable regular file.
20460 as_fn_executable_p
()
20462 test -f "$1" && test -x "$1"
20463 } # as_fn_executable_p
20464 as_test_x
='test -x'
20465 as_executable_p
=as_fn_executable_p
20467 # Sed expression to map a string onto a valid CPP name.
20468 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20470 # Sed expression to map a string onto a valid variable name.
20471 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20475 ## ----------------------------------- ##
20476 ## Main body of $CONFIG_STATUS script. ##
20477 ## ----------------------------------- ##
20479 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20482 # Save the log message, to keep $0 and so on meaningful, and to
20483 # report actual input values of CONFIG_FILES etc. instead of their
20484 # values after options handling.
20486 This file was extended by $as_me, which was
20487 generated by GNU Autoconf 2.69. Invocation command line was
20489 CONFIG_FILES = $CONFIG_FILES
20490 CONFIG_HEADERS = $CONFIG_HEADERS
20491 CONFIG_LINKS = $CONFIG_LINKS
20492 CONFIG_COMMANDS = $CONFIG_COMMANDS
20495 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20500 case $ac_config_files in *"
20501 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20507 # Files that config.status was made for.
20508 config_files="$ac_config_files"
20512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20514 \`$as_me' instantiates files and other configuration actions
20515 from templates according to the current configuration. Unless the files
20516 and actions are specified as TAGs, all are instantiated by default.
20518 Usage: $0 [OPTION]... [TAG]...
20520 -h, --help print this help, then exit
20521 -V, --version print version number and configuration settings, then exit
20522 --config print configuration, then exit
20523 -q, --quiet, --silent
20524 do not print progress messages
20525 -d, --debug don't remove temporary files
20526 --recheck update $as_me by reconfiguring in the same conditions
20527 --file=FILE[:TEMPLATE]
20528 instantiate the configuration file FILE
20530 Configuration files:
20533 Report bugs to the package provider."
20536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20537 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20540 configured by $0, generated by GNU Autoconf 2.69,
20541 with options \\"\$ac_cs_config\\"
20543 Copyright (C) 2012 Free Software Foundation, Inc.
20544 This config.status script is free software; the Free Software Foundation
20545 gives unlimited permission to copy, distribute and modify it."
20551 test -n "\$AWK" || AWK=awk
20554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20555 # The default lists apply if the user does not specify any file.
20561 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20562 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20566 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20578 # Handling of the options.
20579 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20581 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20582 $as_echo "$ac_cs_version"; exit ;;
20583 --config |
--confi |
--conf |
--con |
--co |
--c )
20584 $as_echo "$ac_cs_config"; exit ;;
20585 --debug |
--debu |
--deb |
--de |
--d |
-d )
20587 --file |
--fil |
--fi |
--f )
20590 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20591 '') as_fn_error $?
"missing file argument" ;;
20593 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20594 ac_need_defaults
=false
;;
20595 --he |
--h |
--help |
--hel |
-h )
20596 $as_echo "$ac_cs_usage"; exit ;;
20597 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20598 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20601 # This is an error.
20602 -*) as_fn_error $?
"unrecognized option: \`$1'
20603 Try \`$0 --help' for more information." ;;
20605 *) as_fn_append ac_config_targets
" $1"
20606 ac_need_defaults
=false
;;
20612 ac_configure_extra_args
=
20614 if $ac_cs_silent; then
20616 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20621 if \$ac_cs_recheck; then
20622 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20624 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20625 CONFIG_SHELL='$SHELL'
20626 export CONFIG_SHELL
20631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20635 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20636 ## Running $as_me. ##
20642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20646 extrasub_build="$extrasub_build"
20647 extrasub_host="$extrasub_host"
20648 extrasub_target="$extrasub_target"
20652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20654 # Handling of arguments.
20655 for ac_config_target
in $ac_config_targets
20657 case $ac_config_target in
20658 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20660 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20665 # If the user did not use the arguments to specify the items to instantiate,
20666 # then the envvar interface is used. Set only those that are not.
20667 # We use the long form for the default assignment because of an extremely
20668 # bizarre bug on SunOS 4.1.3.
20669 if $ac_need_defaults; then
20670 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20673 # Have a temporary directory for convenience. Make it in the build tree
20674 # simply because there is no reason against having it here, and in addition,
20675 # creating and moving files from /tmp can sometimes cause problems.
20676 # Hook for its removal unless debugging.
20677 # Note that there is a small window in which the directory will not be cleaned:
20678 # after its creation but before its name has been assigned to `$tmp'.
20682 trap 'exit_status=$?
20683 : "${ac_tmp:=$tmp}"
20684 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20686 trap 'as_fn_exit 1' 1 2 13 15
20688 # Create a (secure) tmp directory for tmp files.
20691 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20695 tmp
=.
/conf$$
-$RANDOM
20696 (umask 077 && mkdir
"$tmp")
20697 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20700 # Set up the scripts for CONFIG_FILES section.
20701 # No need to generate them if there are no CONFIG_FILES.
20702 # This happens for instance with `./config.status config.h'.
20703 if test -n "$CONFIG_FILES"; then
20705 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20706 ac_cs_awk_getline
=:
20707 ac_cs_awk_pipe_init
=
20708 ac_cs_awk_read_file
='
20709 while ((getline aline < (F[key])) > 0)
20712 ac_cs_awk_pipe_fini
=
20714 ac_cs_awk_getline
=false
20715 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20716 ac_cs_awk_read_file
='
20718 print "cat " F[key] " &&"
20719 '$ac_cs_awk_pipe_init
20720 # The final `:' finishes the AND list.
20721 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20723 ac_cr
=`echo X | tr X '\015'`
20724 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20725 # But we know of no other shell where ac_cr would be empty at this
20726 # point, so we can use a bashism as a fallback.
20727 if test "x$ac_cr" = x
; then
20728 eval ac_cr
=\$
\'\\r
\'
20730 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20731 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20734 ac_cs_awk_cr
=$ac_cr
20737 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20740 # Create commands to substitute file output variables.
20742 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20743 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20744 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20747 } >conf$
$files.sh
&&
20748 . .
/conf$
$files.sh ||
20749 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20750 rm -f conf$
$files.sh
20753 echo "cat >conf$$subs.awk <<_ACEOF" &&
20754 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20756 } >conf$$subs.sh ||
20757 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20758 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20760 for ac_last_try in false false false false false :; do
20761 . ./conf$$subs.sh ||
20762 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20764 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20765 if test $ac_delim_n = $ac_delim_num; then
20767 elif $ac_last_try; then
20768 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20770 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20773 rm -f conf$$subs.sh
20775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20776 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20780 s/^/S["/; s
/!.
*/"]=/
20790 s/\(.\{148\}\)..*/\1/
20792 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20797 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20804 s/\(.\{148\}\)..*/\1/
20806 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20810 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20815 ' <conf$$subs.awk | sed '
20820 ' >>$CONFIG_STATUS || ac_write_fail=1
20821 rm -f conf$$subs.awk
20822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20824 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20825 for (key in S) S_is_set[key] = 1
20827 \$ac_cs_awk_pipe_init
20831 nfields = split(line, field, "@
")
20833 len = length(field[1])
20834 for (i = 2; i < nfields; i++) {
20836 keylen = length(key)
20837 if (S_is_set[key]) {
20839 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20840 len += length(value) + length(field[++i])
20845 if (nfields == 3 && !substed) {
20847 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20848 \$ac_cs_awk_read_file
20854 \$ac_cs_awk_pipe_fini
20857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20858 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20859 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20862 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20863 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20866 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20867 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20868 # trailing colons and then remove the whole line if VPATH becomes empty
20869 # (actually we leave an empty line to preserve line numbers).
20870 if test "x
$srcdir" = x.; then
20871 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20890 fi # test -n "$CONFIG_FILES"
20893 eval set X " :F
$CONFIG_FILES "
20898 :[FHLC]) ac_mode=$ac_tag; continue;;
20900 case $ac_mode$ac_tag in
20902 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
20903 :[FH]-) ac_tag=-:-;;
20904 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20921 -) ac_f="$ac_tmp/stdin";;
20922 *) # Look for the file first in the build tree, then in the source tree
20923 # (if the path is not absolute). The absolute path cannot be DOS-style,
20924 # because $ac_f cannot contain `:'.
20928 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20930 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20932 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
20933 as_fn_append ac_file_inputs " '$ac_f'"
20936 # Let's still pretend it is `configure' which instantiates (i.e., don't
20937 # use $as_me), people would be surprised to read:
20938 # /* config.h. Generated by config.status. */
20939 configure_input='Generated from '`
20940 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20942 if test x"$ac_file" != x-; then
20943 configure_input="$ac_file.
$configure_input"
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
20945 $as_echo "$as_me: creating
$ac_file" >&6;}
20947 # Neutralize special characters interpreted by sed in replacement strings.
20948 case $configure_input in #(
20949 *\&* | *\|* | *\\* )
20950 ac_sed_conf_input=`$as_echo "$configure_input" |
20951 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20952 *) ac_sed_conf_input=$configure_input;;
20956 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
20957 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
20962 ac_dir=`$as_dirname -- "$ac_file" ||
20963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20964 X"$ac_file" : 'X\(//\)[^/]' \| \
20965 X"$ac_file" : 'X\(//\)$' \| \
20966 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20967 $as_echo X"$ac_file" |
20968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20972 /^X\(\/\/\)[^/].*/{
20985 as_dir="$ac_dir"; as_fn_mkdir_p
20989 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20991 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20992 # A "..
" for each directory in $ac_dir_suffix.
20993 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20994 case $ac_top_builddir_sub in
20995 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20996 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20999 ac_abs_top_builddir=$ac_pwd
21000 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21001 # for backward compatibility:
21002 ac_top_builddir=$ac_top_build_prefix
21005 .) # We are building in place.
21007 ac_top_srcdir=$ac_top_builddir_sub
21008 ac_abs_top_srcdir=$ac_pwd ;;
21009 [\\/]* | ?:[\\/]* ) # Absolute name.
21010 ac_srcdir=$srcdir$ac_dir_suffix;
21011 ac_top_srcdir=$srcdir
21012 ac_abs_top_srcdir=$srcdir ;;
21013 *) # Relative name.
21014 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21015 ac_top_srcdir=$ac_top_build_prefix$srcdir
21016 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21018 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21028 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21029 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21034 # If the template does not know about datarootdir, expand it.
21035 # FIXME: This hack should be removed a few years after 2.60.
21036 ac_datarootdir_hack=; ac_datarootdir_seen=
21047 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
21048 *datarootdir*) ac_datarootdir_seen=yes;;
21049 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
21051 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
21053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21054 ac_datarootdir_hack='
21055 s&@datadir@&$datadir&g
21056 s&@docdir@&$docdir&g
21057 s&@infodir@&$infodir&g
21058 s&@localedir@&$localedir&g
21059 s&@mandir@&$mandir&g
21060 s&\\\${datarootdir}&$datarootdir&g' ;;
21064 # Neutralize VPATH when `$srcdir' = `.'.
21065 # Shell code in configure.ac might set extrasub.
21066 # FIXME: do we really want to maintain this feature?
21067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21068 ac_sed_extra="$ac_vpsub
21071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21073 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21074 s|@configure_input@|
$ac_sed_conf_input|
;t t
21075 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21076 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21077 s
&@srcdir@
&$ac_srcdir&;t t
21078 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21079 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21080 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21081 s
&@builddir@
&$ac_builddir&;t t
21082 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21083 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21084 s
&@INSTALL@
&$ac_INSTALL&;t t
21085 $ac_datarootdir_hack
21087 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21088 if $ac_cs_awk_getline; then
21089 $AWK -f "$ac_tmp/subs.
awk"
21091 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21093 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21095 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21096 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21097 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21098 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21100 which seems to be undefined. Please make sure it is defined" >&5
21101 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21102 which seems to be undefined. Please make sure it is defined" >&2;}
21104 rm -f "$ac_tmp/stdin"
21106 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21107 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21117 case $ac_file$ac_mode in
21118 "Makefile":F) sed "$extrasub_build" Makefile |
21119 sed "$extrasub_host" |
21120 sed "$extrasub_target" > mf$$
21121 mv -f mf$$ Makefile ;;
21129 ac_clean_files=$ac_clean_files_save
21131 test $ac_write_fail = 0 ||
21132 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21135 # configure is writing to config.log, and then calls config.status.
21136 # config.status does its own redirection, appending to config.log.
21137 # Unfortunately, on DOS this fails, as config.log is still kept open
21138 # by configure, so config.status won't be able to
write to it
; its
21139 # output is simply discarded. So we exec the FD to /dev/null,
21140 # effectively closing config.log, so it can be properly (re)opened and
21141 # appended to by config.status. When coming back to configure, we
21142 # need to make the FD available again.
21143 if test "$no_create" != yes; then
21145 ac_config_status_args
=
21146 test "$silent" = yes &&
21147 ac_config_status_args
="$ac_config_status_args --quiet"
21149 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21151 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21152 # would make configure fail if this is the last instruction.
21153 $ac_cs_success || as_fn_exit
1
21155 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21157 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}