2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="move-if-change"
586 enable_option_checking
=no
587 ac_subst_vars
='LTLIBOBJS
594 MAINTAINER_MODE_FALSE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
686 DEBUG_PREFIX_CFLAGS_FOR_TARGET
687 SYSROOT_CFLAGS_FOR_TARGET
689 extra_host_zlib_configure_flags
690 extra_host_libiberty_configure_flags
697 extra_linker_plugin_flags
698 extra_linker_plugin_configure_flags
705 extra_isl_gmp_configure_flags
706 extra_mpc_mpfr_configure_flags
707 extra_mpc_gmp_configure_flags
708 extra_mpfr_configure_flags
757 TOPLEVEL_CONFIGURE_ARGUMENTS
785 program_transform_name
796 ac_subst_files
='serialization_dependencies
802 enable_option_checking
806 enable_as_accelerator_for
807 enable_offload_targets
808 enable_offload_defaulted
812 enable_compressed_debug_sections
813 enable_default_compressed_debug_sections_algorithm
816 enable_libquadmath_support
833 with_static_standard_libraries
840 enable_isl_version_check
842 enable_linker_plugin_configure_flags
843 enable_linker_plugin_flags
846 enable_stage1_languages
849 with_target_bdw_gc_include
850 with_target_bdw_gc_lib
851 with_gcc_major_version_only
853 with_debug_prefix_map
856 enable_serial_configure
857 with_build_time_tools
858 enable_maintainer_mode
859 enable_stage1_checking
862 ac_precious_vars
='build_alias
915 # Initialize some variables set by options.
917 ac_init_version
=false
918 ac_unrecognized_opts
=
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
929 program_transform_name
=s
,x
,x
,
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir
='${exec_prefix}/bin'
944 sbindir
='${exec_prefix}/sbin'
945 libexecdir
='${exec_prefix}/libexec'
946 datarootdir
='${prefix}/share'
947 datadir
='${datarootdir}'
948 sysconfdir
='${prefix}/etc'
949 sharedstatedir
='${prefix}/com'
950 localstatedir
='${prefix}/var'
951 includedir
='${prefix}/include'
952 oldincludedir
='/usr/include'
953 docdir
='${datarootdir}/doc/${PACKAGE}'
954 infodir
='${datarootdir}/info'
959 libdir
='${exec_prefix}/lib'
960 localedir
='${datarootdir}/locale'
961 mandir
='${datarootdir}/man'
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\
$ac_option
975 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980 # Accept the important Cygnus configure options, so we can diagnose typos.
982 case $ac_dashdash$ac_option in
986 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
988 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
991 -build |
--build |
--buil |
--bui |
--bu)
992 ac_prev
=build_alias
;;
993 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
994 build_alias
=$ac_optarg ;;
996 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
997 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
998 ac_prev
=cache_file
;;
999 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1000 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1001 cache_file
=$ac_optarg ;;
1003 --config-cache |
-C)
1004 cache_file
=config.cache
;;
1006 -datadir |
--datadir |
--datadi |
--datad)
1008 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1009 datadir
=$ac_optarg ;;
1011 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1012 |
--dataroo |
--dataro |
--datar)
1013 ac_prev
=datarootdir
;;
1014 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1015 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1016 datarootdir
=$ac_optarg ;;
1018 -disable-* |
--disable-*)
1019 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1022 as_fn_error $?
"invalid feature name: $ac_useropt"
1023 ac_useropt_orig
=$ac_useropt
1024 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_
$ac_useropt"
1029 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030 ac_unrecognized_sep
=', ';;
1032 eval enable_
$ac_useropt=no
;;
1034 -docdir |
--docdir |
--docdi |
--doc |
--do)
1036 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1037 docdir
=$ac_optarg ;;
1039 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1041 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1042 dvidir
=$ac_optarg ;;
1044 -enable-* |
--enable-*)
1045 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1048 as_fn_error $?
"invalid feature name: $ac_useropt"
1049 ac_useropt_orig
=$ac_useropt
1050 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_
$ac_useropt"
1055 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep
=', ';;
1058 eval enable_
$ac_useropt=\
$ac_optarg ;;
1060 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1061 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1062 |
--exec |
--exe |
--ex)
1063 ac_prev
=exec_prefix
;;
1064 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1065 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1066 |
--exec=* |
--exe=* |
--ex=*)
1067 exec_prefix
=$ac_optarg ;;
1069 -gas |
--gas |
--ga |
--g)
1070 # Obsolete; use --with-gas.
1073 -help |
--help |
--hel |
--he |
-h)
1074 ac_init_help
=long
;;
1075 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1076 ac_init_help
=recursive
;;
1077 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1078 ac_init_help
=short
;;
1080 -host |
--host |
--hos |
--ho)
1081 ac_prev
=host_alias
;;
1082 -host=* |
--host=* |
--hos=* |
--ho=*)
1083 host_alias
=$ac_optarg ;;
1085 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1087 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1089 htmldir
=$ac_optarg ;;
1091 -includedir |
--includedir |
--includedi |
--included |
--include \
1092 |
--includ |
--inclu |
--incl |
--inc)
1093 ac_prev
=includedir
;;
1094 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1095 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1096 includedir
=$ac_optarg ;;
1098 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1100 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1101 infodir
=$ac_optarg ;;
1103 -libdir |
--libdir |
--libdi |
--libd)
1105 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1106 libdir
=$ac_optarg ;;
1108 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1109 |
--libexe |
--libex |
--libe)
1110 ac_prev
=libexecdir
;;
1111 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1112 |
--libexe=* |
--libex=* |
--libe=*)
1113 libexecdir
=$ac_optarg ;;
1115 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1116 ac_prev
=localedir
;;
1117 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1118 localedir
=$ac_optarg ;;
1120 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1121 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1122 ac_prev
=localstatedir
;;
1123 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1124 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1125 localstatedir
=$ac_optarg ;;
1127 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1129 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1130 mandir
=$ac_optarg ;;
1132 -nfp |
--nfp |
--nf)
1133 # Obsolete; use --without-fp.
1136 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1137 |
--no-cr |
--no-c |
-n)
1140 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1141 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1144 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1145 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1146 |
--oldin |
--oldi |
--old |
--ol |
--o)
1147 ac_prev
=oldincludedir
;;
1148 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1149 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1150 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1151 oldincludedir
=$ac_optarg ;;
1153 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1155 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1156 prefix
=$ac_optarg ;;
1158 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1159 |
--program-pre |
--program-pr |
--program-p)
1160 ac_prev
=program_prefix
;;
1161 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1162 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1163 program_prefix
=$ac_optarg ;;
1165 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1166 |
--program-suf |
--program-su |
--program-s)
1167 ac_prev
=program_suffix
;;
1168 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1169 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1170 program_suffix
=$ac_optarg ;;
1172 -program-transform-name |
--program-transform-name \
1173 |
--program-transform-nam |
--program-transform-na \
1174 |
--program-transform-n |
--program-transform- \
1175 |
--program-transform |
--program-transfor \
1176 |
--program-transfo |
--program-transf \
1177 |
--program-trans |
--program-tran \
1178 |
--progr-tra |
--program-tr |
--program-t)
1179 ac_prev
=program_transform_name
;;
1180 -program-transform-name=* |
--program-transform-name=* \
1181 |
--program-transform-nam=* |
--program-transform-na=* \
1182 |
--program-transform-n=* |
--program-transform-=* \
1183 |
--program-transform=* |
--program-transfor=* \
1184 |
--program-transfo=* |
--program-transf=* \
1185 |
--program-trans=* |
--program-tran=* \
1186 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1187 program_transform_name
=$ac_optarg ;;
1189 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1191 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1192 pdfdir
=$ac_optarg ;;
1194 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1196 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1199 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1200 |
-silent |
--silent |
--silen |
--sile |
--sil)
1203 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1205 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1207 sbindir
=$ac_optarg ;;
1209 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1210 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1211 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1213 ac_prev
=sharedstatedir
;;
1214 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1215 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1216 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1218 sharedstatedir
=$ac_optarg ;;
1220 -site |
--site |
--sit)
1222 -site=* |
--site=* |
--sit=*)
1225 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1227 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1228 srcdir
=$ac_optarg ;;
1230 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1231 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1232 ac_prev
=sysconfdir
;;
1233 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1234 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1235 sysconfdir
=$ac_optarg ;;
1237 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1238 ac_prev
=target_alias
;;
1239 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1240 target_alias
=$ac_optarg ;;
1242 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1245 -version |
--version |
--versio |
--versi |
--vers |
-V)
1246 ac_init_version
=: ;;
1249 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1252 as_fn_error $?
"invalid package name: $ac_useropt"
1253 ac_useropt_orig
=$ac_useropt
1254 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1259 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260 ac_unrecognized_sep
=', ';;
1262 eval with_
$ac_useropt=\
$ac_optarg ;;
1264 -without-* |
--without-*)
1265 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1268 as_fn_error $?
"invalid package name: $ac_useropt"
1269 ac_useropt_orig
=$ac_useropt
1270 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1275 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276 ac_unrecognized_sep
=', ';;
1278 eval with_
$ac_useropt=no
;;
1281 # Obsolete; use --with-x.
1284 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1285 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1286 ac_prev
=x_includes
;;
1287 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1288 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1289 x_includes
=$ac_optarg ;;
1291 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1292 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1293 ac_prev
=x_libraries
;;
1294 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1295 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1296 x_libraries
=$ac_optarg ;;
1298 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1299 Try \`$0 --help' for more information"
1303 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 case $ac_envvar in #(
1306 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1307 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1309 eval $ac_envvar=\
$ac_optarg
1310 export $ac_envvar ;;
1313 # FIXME: should be removed in autoconf 3.0.
1314 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1316 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323 if test -n "$ac_prev"; then
1324 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1325 as_fn_error $?
"missing argument to $ac_option"
1328 if test -n "$ac_unrecognized_opts"; then
1329 case $enable_option_checking in
1331 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1332 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336 # Check all directory arguments for consistency.
1337 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1342 eval ac_val
=\$
$ac_var
1343 # Remove trailing slashes.
1346 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347 eval $ac_var=\
$ac_val;;
1349 # Be sure to have absolute directory names.
1351 [\\/$
]* | ?
:[\\/]* ) continue;;
1352 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1354 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1362 target
=$target_alias
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x
; then
1366 if test "x$build_alias" = x
; then
1367 cross_compiling
=maybe
1368 elif test "x$build_alias" != "x$host_alias"; then
1374 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1376 test "$silent" = yes && exec 6>/dev
/null
1379 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di
=`ls -di .` &&
1381 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1382 as_fn_error $?
"working directory cannot be determined"
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 as_fn_error $?
"pwd does not report name of working directory"
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389 ac_srcdir_defaulted
=yes
1390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir
=`$as_dirname -- "$as_myself" ||
1392 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393 X"$as_myself" : 'X\(//\)[^/]' \| \
1394 X"$as_myself" : 'X\(//\)$' \| \
1395 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396 $as_echo X"$as_myself" |
1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1419 ac_srcdir_defaulted
=no
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1423 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1425 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1437 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 as_fn_error $?
"path to source, $srcdir, contains spaces"
1444 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1446 for ac_var
in $ac_precious_vars; do
1447 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1449 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1460 \`configure' configures this package to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking ...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1518 --program-prefix=PREFIX prepend PREFIX to installed program names
1519 --program-suffix=SUFFIX append SUFFIX to installed program names
1520 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1523 --build=BUILD configure
for building on BUILD
[guessed
]
1524 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1525 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1529 if test -n "$ac_init_help"; then
1534 --disable-option-checking ignore unrecognized
--enable/--with options
1535 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1536 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1537 --enable-as-accelerator-for=ARG
1538 build as offload target compiler. Specify offload
1540 --enable-offload-targets=LIST
1541 enable offloading to devices from comma-separated
1542 LIST of TARGET
[=DIR
]. Use optional path to
find
1543 offload target compiler during the build
1544 --enable-offload-defaulted
1545 If enabled
, configured but not installed offload compilers and
1546 libgomp plugins are silently ignored. Useful
for distribution
1547 compilers where those are
in separate optional packages.
1549 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1550 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1551 --enable-gprofng[=ARG
] build gprofng
[ARG
={yes,no
}]
1552 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1553 Enable compressed debug sections
for gas
, gold or ld
1555 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1556 Default compression algorithm
for
1557 --enable-compressed-debug-sections.
1558 --enable-year2038 enable support
for timestamps past the year
2038
1559 --disable-libquadmath do not build libquadmath directory
1560 --disable-libquadmath-support
1561 disable libquadmath support
for Fortran
1562 --enable-libada build libada directory
1563 --enable-libgm2 build libgm2 directory
1564 --enable-libssp build libssp directory
1565 --disable-libstdcxx do not build libstdc
++-v3 directory
1566 --enable-bootstrap enable bootstrapping
[yes if native build
]
1567 --enable-pgo-build[=lto
]
1568 enable the PGO build
1569 --disable-isl-version-check
1570 disable check
for isl version
1571 --enable-lto enable link
time optimization support
1572 --enable-linker-plugin-configure-flags=FLAGS
1573 additional flags
for configuring linker plugins
1575 --enable-linker-plugin-flags=FLAGS
1576 additional flags
for configuring and building linker
1578 --enable-host-pie build position independent
host executables
1579 --enable-host-shared build
host code as shared libraries
1580 --enable-stage1-languages[=all
]
1581 choose additional languages to build during stage1.
1582 Mostly useful
for compiler development
1583 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1585 --enable-vtable-verify Enable vtable verification feature
1586 --enable-serial-[{host,target,build}-]configure
1587 force sequential configuration of sub-packages for
1588 the host, target or build machine, or all
1590 --enable-maintainer-mode
1591 enable make rules and dependencies not useful (and
1592 sometimes confusing) to the casual installer
1593 --enable-stage1-checking[=all]
1594 choose additional checking for stage1 of the
1596 --enable-werror enable -Werror in bootstrap stage2 and later
1599 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1600 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1601 --with-build-libsubdir=DIR Directory where to find libraries for build system
1602 --with-system-zlib use installed libz
1603 --with-zstd Support zstd compressed debug sections
1605 --with-mpc=PATH specify prefix directory for installed MPC package.
1606 Equivalent to --with-mpc-include=PATH/include plus
1607 --with-mpc-lib=PATH/lib
1608 --with-mpc-include=PATH specify directory for installed MPC include files
1609 --with-mpc-lib=PATH specify directory for the installed MPC library
1610 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1611 Equivalent to --with-mpfr-include=PATH/include plus
1612 --with-mpfr-lib=PATH/lib
1613 --with-mpfr-include=PATH
1614 specify directory for installed MPFR include files
1615 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1616 --with-gmp=PATH specify prefix directory for the installed GMP
1617 package. Equivalent to
1618 --with-gmp-include=PATH/include plus
1619 --with-gmp-lib=PATH/lib
1620 --with-gmp-include=PATH specify directory for installed GMP include files
1621 --with-gmp-lib=PATH specify directory for the installed GMP library
1622 --with-stage1-libs=LIBS libraries for stage1
1623 --with-static-standard-libraries
1624 use -static-libstdc++ and -static-libgcc
1626 --with-stage1-ldflags=FLAGS
1627 linker flags for stage1
1628 --with-boot-libs=LIBS libraries for stage2 and later
1629 --with-boot-ldflags=FLAGS
1630 linker flags for stage2 and later
1631 --with-isl=PATH Specify prefix directory for the installed isl
1632 package. Equivalent to
1633 --with-isl-include=PATH/include plus
1634 --with-isl-lib=PATH/lib
1635 --with-isl-include=PATH Specify directory for installed isl include files
1636 --with-isl-lib=PATH Specify the directory for the installed isl library
1637 --with-target-bdw-gc=PATHLIST
1638 specify prefix directory for installed bdw-gc
1639 package. Equivalent to
1640 --with-target-bdw-gc-include=PATH/include plus
1641 --with-target-bdw-gc-lib=PATH/lib
1642 --with-target-bdw-gc-include=PATHLIST
1643 specify directories for installed bdw-gc include
1645 --with-target-bdw-gc-lib=PATHLIST
1646 specify directories for installed bdw-gc library
1647 --with-gcc-major-version-only
1648 use only GCC major number in filesystem paths
1649 --with-build-sysroot=SYSROOT
1650 use sysroot as the system root during the build
1651 --with-debug-prefix-map='A
=B C
=D ...
'
1652 map A to B, C to D ... in debug information
1653 --with-build-config='NAME NAME2...
'
1654 use config/NAME.mk build configuration
1655 --with-build-time-tools=PATH
1656 use given path to find target tools during the build
1658 Some influential environment variables:
1659 CC C compiler command
1660 CFLAGS C compiler flags
1661 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1662 nonstandard directory <lib dir>
1663 LIBS libraries to pass to the linker, e.g. -l<library>
1664 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1665 you have headers in a nonstandard directory <include dir>
1666 CXX C++ compiler command
1667 CXXFLAGS C++ compiler flags
1669 additional configure arguments for build directories
1671 additional configure arguments for host directories
1673 additional configure arguments for target directories
1676 DLLTOOL DLLTOOL for the host
1677 DSYMUTIL DSYMUTIL for the host
1679 LIPO LIPO for the host
1681 RANLIB RANLIB for the host
1682 STRIP STRIP for the host
1683 WINDRES WINDRES for the host
1684 WINDMC WINDMC for the host
1685 OBJCOPY OBJCOPY for the host
1686 OBJDUMP OBJDUMP for the host
1687 OTOOL OTOOL for the host
1688 READELF READELF for the host
1696 GFORTRAN for the target
1708 DLLTOOL for the target
1710 DSYMUTIL for the target
1718 OBJCOPY for the target
1720 OBJDUMP for the target
1722 OTOOL for the target
1724 RANLIB for the target
1726 READELF for the target
1728 STRIP for the target
1730 WINDRES for the target
1732 WINDMC for the target
1734 Use these variables to override the choices made by `configure' or to
help
1735 it to
find libraries and programs with nonstandard names
/locations.
1737 Report bugs to the package provider.
1742 if test "$ac_init_help" = "recursive"; then
1743 # If there are subdirs, report their specific --help.
1744 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1745 test -d "$ac_dir" ||
1746 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1751 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1753 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1754 # A ".." for each directory in $ac_dir_suffix.
1755 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1756 case $ac_top_builddir_sub in
1757 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1758 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1761 ac_abs_top_builddir
=$ac_pwd
1762 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1763 # for backward compatibility:
1764 ac_top_builddir
=$ac_top_build_prefix
1767 .
) # We are building in place.
1769 ac_top_srcdir
=$ac_top_builddir_sub
1770 ac_abs_top_srcdir
=$ac_pwd ;;
1771 [\\/]* | ?
:[\\/]* ) # Absolute name.
1772 ac_srcdir
=$srcdir$ac_dir_suffix;
1773 ac_top_srcdir
=$srcdir
1774 ac_abs_top_srcdir
=$srcdir ;;
1776 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1777 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1778 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1780 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1782 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1783 # Check for guested configure.
1784 if test -f "$ac_srcdir/configure.gnu"; then
1786 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1787 elif test -f "$ac_srcdir/configure"; then
1789 $SHELL "$ac_srcdir/configure" --help=recursive
1791 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1793 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1797 test -n "$ac_init_help" && exit $ac_status
1798 if $ac_init_version; then
1801 generated by GNU Autoconf
2.69
1803 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1804 This configure
script is free software
; the Free Software Foundation
1805 gives unlimited permission to copy
, distribute and modify it.
1810 ## ------------------------ ##
1811 ## Autoconf initialization. ##
1812 ## ------------------------ ##
1814 # ac_fn_c_try_compile LINENO
1815 # --------------------------
1816 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_compile
()
1819 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1820 rm -f conftest.
$ac_objext
1821 if { { ac_try
="$ac_compile"
1823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_compile") 2>conftest.err
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest.$ac_objext; then :
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1850 } # ac_fn_c_try_compile
1852 # ac_fn_cxx_try_compile LINENO
1853 # ----------------------------
1854 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_cxx_try_compile ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 rm -f conftest.$ac_objext
1859 if { { ac_try="$ac_compile"
1861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1862 *) ac_try_echo
=$ac_try;;
1864 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_compile") 2>conftest.err
1868 if test -s conftest.err
; then
1869 grep -v '^ *+' conftest.err
>conftest.er1
1870 cat conftest.er1
>&5
1871 mv -f conftest.er1 conftest.err
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && {
1875 test -z "$ac_cxx_werror_flag" ||
1876 test ! -s conftest.err
1877 } && test -s conftest.
$ac_objext; then :
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.
$ac_ext >&5
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status
$ac_retval
1888 } # ac_fn_cxx_try_compile
1890 # ac_fn_cxx_try_link LINENO
1891 # -------------------------
1892 # Try to link conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_cxx_try_link
()
1895 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1896 rm -f conftest.
$ac_objext conftest
$ac_exeext
1897 if { { ac_try
="$ac_link"
1899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_link") 2>conftest.err
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest$ac_exeext && {
1916 test "$cross_compiling" = yes ||
1917 test -x conftest$ac_exeext
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1926 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928 # interfere with the next link command; also delete a directory that is
1929 # left behind by Apple's compiler. We do this before executing the actions.
1930 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
1934 } # ac_fn_cxx_try_link
1936 # ac_fn_c_try_link LINENO
1937 # -----------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded.
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 rm -f conftest.$ac_objext conftest$ac_exeext
1943 if { { ac_try="$ac_link"
1945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1946 *) ac_try_echo
=$ac_try;;
1948 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>conftest.err
1952 if test -s conftest.err
; then
1953 grep -v '^ *+' conftest.err
>conftest.er1
1954 cat conftest.er1
>&5
1955 mv -f conftest.er1 conftest.err
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && {
1959 test -z "$ac_c_werror_flag" ||
1960 test ! -s conftest.err
1961 } && test -s conftest
$ac_exeext && {
1962 test "$cross_compiling" = yes ||
1963 test -x conftest
$ac_exeext
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.
$ac_ext >&5
1972 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1973 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1974 # interfere with the next link command; also delete a directory that is
1975 # left behind by Apple's compiler. We do this before executing the actions.
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status
$ac_retval
1980 } # ac_fn_c_try_link
1981 cat >config.log
<<_ACEOF
1982 This file contains any messages produced by compilers while
1983 running configure, to aid debugging if configure makes a mistake.
1985 It was created by $as_me, which was
1986 generated by GNU Autoconf 2.69. Invocation command line was
1998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2010 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir
=.
2022 $as_echo "PATH: $as_dir"
2038 # Keep a trace of the command line.
2039 # Strip out --no-create and --no-recursion so they do not pile up.
2040 # Strip out --silent because we don't want to record it for future runs.
2041 # Also quote any args containing shell meta-characters.
2042 # Make two passes to allow for proper duplicate-argument suppression.
2046 ac_must_keep_next
=false
2052 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2053 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2054 |
-silent |
--silent |
--silen |
--sile |
--sil)
2057 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2060 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2062 as_fn_append ac_configure_args1
" '$ac_arg'"
2063 if test $ac_must_keep_next = true
; then
2064 ac_must_keep_next
=false
# Got value, back to normal.
2067 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2068 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2069 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2070 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2071 case "$ac_configure_args0 " in
2072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2075 -* ) ac_must_keep_next
=true
;;
2078 as_fn_append ac_configure_args
" '$ac_arg'"
2083 { ac_configure_args0
=; unset ac_configure_args0
;}
2084 { ac_configure_args1
=; unset ac_configure_args1
;}
2086 # When interrupted or exit'd, cleanup temporary files, and complete
2087 # config.log. We remove comments because anyway the quotes in there
2088 # would cause problems or look ugly.
2089 # WARNING: Use '\'' to represent an apostrophe within the trap.
2090 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2091 trap 'exit_status=$?
2092 # Save into config.log some information that might help in debugging.
2096 $as_echo "## ---------------- ##
2097 ## Cache variables. ##
2098 ## ---------------- ##"
2100 # The following way of writing the cache mishandles newlines in values,
2102 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2103 eval ac_val=\$$ac_var
2107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2108 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2111 _ | IFS | as_nl) ;; #(
2112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2113 *) { eval $ac_var=; unset $ac_var;} ;;
2118 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2119 *${as_nl}ac_space=\ *)
2121 "s/'\''/'\''\\\\'\'''\''/g;
2122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2132 $as_echo "## ----------------- ##
2133 ## Output variables. ##
2134 ## ----------------- ##"
2136 for ac_var in $ac_subst_vars
2138 eval ac_val=\$$ac_var
2140 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 $as_echo "$ac_var='\''$ac_val'\''"
2146 if test -n "$ac_subst_files"; then
2147 $as_echo "## ------------------- ##
2148 ## File substitutions. ##
2149 ## ------------------- ##"
2151 for ac_var
in $ac_subst_files
2153 eval ac_val
=\$
$ac_var
2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 $as_echo "$ac_var='\''$ac_val'\''"
2162 if test -s confdefs.h; then
2163 $as_echo "## ----------- ##
2170 test "$ac_signal" != 0 &&
2171 $as_echo "$as_me: caught signal $ac_signal"
2172 $as_echo "$as_me: exit $exit_status"
2174 rm -f core *.core core.conftest.* &&
2175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2178 for ac_signal
in 1 2 13 15; do
2179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2184 rm -f -r conftest
* confdefs.h
2186 $as_echo "/* confdefs.h */" > confdefs.h
2188 # Predefined preprocessor variables.
2190 cat >>confdefs.h
<<_ACEOF
2191 #define PACKAGE_NAME "$PACKAGE_NAME"
2194 cat >>confdefs.h
<<_ACEOF
2195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2198 cat >>confdefs.h
<<_ACEOF
2199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2202 cat >>confdefs.h
<<_ACEOF
2203 #define PACKAGE_STRING "$PACKAGE_STRING"
2206 cat >>confdefs.h
<<_ACEOF
2207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2210 cat >>confdefs.h
<<_ACEOF
2211 #define PACKAGE_URL "$PACKAGE_URL"
2215 # Let the site file select an alternate cache file if it wants to.
2216 # Prefer an explicitly selected file to automatically selected ones.
2219 if test -n "$CONFIG_SITE"; then
2220 # We do not want a PATH search for config.site.
2221 case $CONFIG_SITE in #((
2222 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2223 */*) ac_site_file1
=$CONFIG_SITE;;
2224 *) ac_site_file1
=.
/$CONFIG_SITE;;
2226 elif test "x$prefix" != xNONE
; then
2227 ac_site_file1
=$prefix/share
/config.site
2228 ac_site_file2
=$prefix/etc
/config.site
2230 ac_site_file1
=$ac_default_prefix/share
/config.site
2231 ac_site_file2
=$ac_default_prefix/etc
/config.site
2233 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2235 test "x$ac_site_file" = xNONE
&& continue
2236 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2238 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2239 sed 's/^/| /' "$ac_site_file" >&5
2241 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 as_fn_error $?
"failed to load site script $ac_site_file
2244 See \`config.log' for more details" "$LINENO" 5; }
2248 if test -r "$cache_file"; then
2249 # Some versions of bash will fail to source /dev/null (special files
2250 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2251 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2253 $as_echo "$as_me: loading cache $cache_file" >&6;}
2255 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2256 *) .
"./$cache_file";;
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2261 $as_echo "$as_me: creating cache $cache_file" >&6;}
2265 # Check that the precious variables saved in the cache have kept the same
2267 ac_cache_corrupted
=false
2268 for ac_var
in $ac_precious_vars; do
2269 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2270 eval ac_new_set
=\
$ac_env_${ac_var}_set
2271 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2272 eval ac_new_val
=\
$ac_env_${ac_var}_value
2273 case $ac_old_set,$ac_new_set in
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2276 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2277 ac_cache_corrupted
=: ;;
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2280 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2281 ac_cache_corrupted
=: ;;
2284 if test "x$ac_old_val" != "x$ac_new_val"; then
2285 # differences in whitespace do not lead to failure.
2286 ac_old_val_w
=`echo x $ac_old_val`
2287 ac_new_val_w
=`echo x $ac_new_val`
2288 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2290 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2291 ac_cache_corrupted
=:
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2294 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2295 eval $ac_var=\
$ac_old_val
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2298 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2300 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2303 # Pass precious variables to config.status.
2304 if test "$ac_new_set" = set; then
2306 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2307 *) ac_arg
=$ac_var=$ac_new_val ;;
2309 case " $ac_configure_args " in
2310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2311 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2315 if $ac_cache_corrupted; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2319 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2320 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2322 ## -------------------- ##
2323 ## Main body of script. ##
2324 ## -------------------- ##
2327 ac_cpp
='$CPP $CPPFLAGS'
2328 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2329 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2330 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2340 # if PWD already has a value, it is probably wrong.
2341 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2343 # Export original configure arguments for use by sub-configures.
2344 # Quote arguments with shell meta charatcers.
2345 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2346 set -- "$progname" "$@"
2350 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2351 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2352 # if the argument is of the form -foo=baz, quote the baz part only
2353 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2356 # Add the quoted argument to the list.
2357 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2359 if test "$silent" = yes; then
2360 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2362 # Remove the initial space we just introduced and, as these will be
2363 # expanded by make, quote '$'.
2364 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2367 # Find the build, host, and target systems.
2369 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2370 if test -f "$ac_dir/install-sh"; then
2372 ac_install_sh
="$ac_aux_dir/install-sh -c"
2374 elif test -f "$ac_dir/install.sh"; then
2376 ac_install_sh
="$ac_aux_dir/install.sh -c"
2378 elif test -f "$ac_dir/shtool"; then
2380 ac_install_sh
="$ac_aux_dir/shtool install -c"
2384 if test -z "$ac_aux_dir"; then
2385 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2388 # These three variables are undocumented and unsupported,
2389 # and are intended to be withdrawn in a future Autoconf release.
2390 # They can cause serious problems if a builder's source tree is in a directory
2391 # whose full name contains unusual characters.
2392 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2393 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2394 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2397 # Make sure we can run config.sub.
2398 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2399 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2402 $as_echo_n "checking build system type... " >&6; }
2403 if ${ac_cv_build+:} false
; then :
2404 $as_echo_n "(cached) " >&6
2406 ac_build_alias
=$build_alias
2407 test "x$ac_build_alias" = x
&&
2408 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2409 test "x$ac_build_alias" = x
&&
2410 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2411 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2412 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2416 $as_echo "$ac_cv_build" >&6; }
2417 case $ac_cv_build in
2419 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2422 ac_save_IFS
=$IFS; IFS
='-'
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2432 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2435 case ${build_alias} in
2436 "") build_noncanonical
=${build} ;;
2437 *) build_noncanonical
=${build_alias} ;;
2442 case ${host_alias} in
2443 "") host_noncanonical
=${build_noncanonical} ;;
2444 *) host_noncanonical
=${host_alias} ;;
2449 case ${target_alias} in
2450 "") target_noncanonical
=${host_noncanonical} ;;
2451 *) target_noncanonical
=${target_alias} ;;
2457 test "$host_noncanonical" = "$target_noncanonical" &&
2458 test "$program_prefix$program_suffix$program_transform_name" = \
2460 program_transform_name
=s
,y
,y
,
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2463 $as_echo_n "checking host system type... " >&6; }
2464 if ${ac_cv_host+:} false
; then :
2465 $as_echo_n "(cached) " >&6
2467 if test "x$host_alias" = x
; then
2468 ac_cv_host
=$ac_cv_build
2470 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2471 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2476 $as_echo "$ac_cv_host" >&6; }
2479 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2482 ac_save_IFS
=$IFS; IFS
='-'
2488 # Remember, the first character of IFS is used to create $*,
2489 # except with old shells:
2492 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2496 $as_echo_n "checking target system type... " >&6; }
2497 if ${ac_cv_target+:} false
; then :
2498 $as_echo_n "(cached) " >&6
2500 if test "x$target_alias" = x
; then
2501 ac_cv_target
=$ac_cv_host
2503 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2504 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2509 $as_echo "$ac_cv_target" >&6; }
2510 case $ac_cv_target in
2512 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2514 target
=$ac_cv_target
2515 ac_save_IFS
=$IFS; IFS
='-'
2521 # Remember, the first character of IFS is used to create $*,
2522 # except with old shells:
2525 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2528 # The aliases save the names the user supplied, while $host etc.
2529 # will get canonicalized.
2530 test -n "$target_alias" &&
2531 test "$program_prefix$program_suffix$program_transform_name" = \
2533 program_prefix
=${target_alias}-
2535 test "$program_prefix" != NONE
&&
2536 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2537 # Use a double $ so make ignores it.
2538 test "$program_suffix" != NONE
&&
2539 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2540 # Double any \ or $.
2541 # By default was `s,x,x', remove it if useless.
2542 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2543 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2547 # Get 'install' or 'install-sh' and its variants.
2548 # Find a good install program. We prefer a C program (faster),
2549 # so one script is as good as another. But avoid the broken or
2550 # incompatible versions:
2551 # SysV /etc/install, /usr/sbin/install
2552 # SunOS /usr/etc/install
2553 # IRIX /sbin/install
2555 # AmigaOS /C/install, which installs bootblocks on floppy discs
2556 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2557 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2558 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2559 # OS/2's system install, which has a completely different semantic
2560 # ./install, which can be erroneously created by make from ./install.sh.
2561 # Reject install programs that cannot install multiple files.
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2563 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2564 if test -z "$INSTALL"; then
2565 if ${ac_cv_path_install+:} false
; then :
2566 $as_echo_n "(cached) " >&6
2568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir
=.
2573 # Account for people who put trailing slashes in PATH elements.
2574 case $as_dir/ in #((
2575 .
/ | .
// |
/[cC
]/* | \
2576 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2577 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2580 # OSF1 and SCO ODT 3.0 have their own names for install.
2581 # Don't use installbsd from OSF since it installs stuff as root
2583 for ac_prog
in ginstall scoinst
install; do
2584 for ac_exec_ext
in '' $ac_executable_extensions; do
2585 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2586 if test $ac_prog = install &&
2587 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2588 # AIX install. It has an incompatible calling convention.
2590 elif test $ac_prog = install &&
2591 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2592 # program-specific install script used by HP pwplus--don't use.
2595 rm -rf conftest.one conftest.two conftest.dir
2596 echo one
> conftest.one
2597 echo two
> conftest.two
2599 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2600 test -s conftest.one
&& test -s conftest.two
&&
2601 test -s conftest.dir
/conftest.one
&&
2602 test -s conftest.dir
/conftest.two
2604 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2617 rm -rf conftest.one conftest.two conftest.dir
2620 if test "${ac_cv_path_install+set}" = set; then
2621 INSTALL
=$ac_cv_path_install
2623 # As a last resort, use the slow shell script. Don't cache a
2624 # value for INSTALL within a source directory, because that will
2625 # break other packages using the cache if that directory is
2626 # removed, or if the value is a relative name.
2627 INSTALL
=$ac_install_sh
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2631 $as_echo "$INSTALL" >&6; }
2633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2634 # It thinks the first close brace ends the variable substitution.
2635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2637 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2639 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2642 $as_echo_n "checking whether ln works... " >&6; }
2643 if ${acx_cv_prog_LN+:} false
; then :
2644 $as_echo_n "(cached) " >&6
2646 rm -f conftestdata_t
2647 echo >conftestdata_f
2648 if ln conftestdata_f conftestdata_t
2>/dev
/null
2654 rm -f conftestdata_f conftestdata_t
2657 if test $acx_cv_prog_LN = no
; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2660 $as_echo "no, using $LN" >&6; }
2662 LN
="$acx_cv_prog_LN"
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2664 $as_echo "yes" >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2668 $as_echo_n "checking whether ln -s works... " >&6; }
2670 if test "$LN_S" = "ln -s"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2672 $as_echo "yes" >&6; }
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2675 $as_echo "no, using $LN_S" >&6; }
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2679 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2680 if ${ac_cv_path_SED+:} false
; then :
2681 $as_echo_n "(cached) " >&6
2683 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2684 for ac_i
in 1 2 3 4 5 6 7; do
2685 ac_script
="$ac_script$as_nl$ac_script"
2687 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2688 { ac_script
=; unset ac_script
;}
2689 if test -z "$SED"; then
2690 ac_path_SED_found
=false
2691 # Loop through the user's path and test for each of PROGNAME-LIST
2692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir
=.
2697 for ac_prog
in sed gsed
; do
2698 for ac_exec_ext
in '' $ac_executable_extensions; do
2699 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2700 as_fn_executable_p
"$ac_path_SED" ||
continue
2701 # Check for GNU ac_path_SED and select it if it is found.
2702 # Check for GNU $ac_path_SED
2703 case `"$ac_path_SED" --version 2>&1` in
2705 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2708 $as_echo_n 0123456789 >"conftest.in"
2711 cat "conftest.in" "conftest.in" >"conftest.tmp"
2712 mv "conftest.tmp" "conftest.in"
2713 cp "conftest.in" "conftest.nl"
2714 $as_echo '' >> "conftest.nl"
2715 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2716 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2717 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2718 if test $ac_count -gt ${ac_path_SED_max-0}; then
2719 # Best one so far, save it but keep looking for a better one
2720 ac_cv_path_SED
="$ac_path_SED"
2721 ac_path_SED_max
=$ac_count
2723 # 10*(2^10) chars as input seems more than enough
2724 test $ac_count -gt 10 && break
2726 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2729 $ac_path_SED_found && break 3
2734 if test -z "$ac_cv_path_SED"; then
2735 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2743 $as_echo "$ac_cv_path_SED" >&6; }
2744 SED
="$ac_cv_path_SED"
2747 for ac_prog
in gawk mawk nawk
awk
2749 # Extract the first word of "$ac_prog", so it can be a program name with args.
2750 set dummy
$ac_prog; ac_word
=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if ${ac_cv_prog_AWK+:} false
; then :
2754 $as_echo_n "(cached) " >&6
2756 if test -n "$AWK"; then
2757 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir
=.
2764 for ac_exec_ext
in '' $ac_executable_extensions; do
2765 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_AWK
="$ac_prog"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 if test -n "$AWK"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2779 $as_echo "$AWK" >&6; }
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2786 test -n "$AWK" && break
2790 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2792 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2794 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2795 INSTALL
="${srcpwd}/install-sh -c"
2798 # Set srcdir to "." if that's what it is.
2799 # This is important for multilib support.
2801 if test "${pwd}" = "${srcpwd}" ; then
2809 ### To add a new directory to the tree, first choose whether it is a target
2810 ### or a host dependent tool. Then put it into the appropriate list
2811 ### (library or tools, host or target), doing a dependency sort.
2813 # Subdirs will be configured in the order listed in build_configdirs,
2814 # configdirs, or target_configdirs; see the serialization section below.
2816 # Dependency sorting is only needed when *configuration* must be done in
2817 # a particular order. In all cases a dependency should be specified in
2818 # the Makefile, whether or not it's implicitly specified here.
2820 # Double entries in build_configdirs, configdirs, or target_configdirs may
2821 # cause circular dependencies and break everything horribly.
2823 # these library is used by various programs built for the build
2826 build_libs
="build-libiberty build-libcpp"
2828 # these tools are built for the build environment
2829 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2831 # these libraries are used by various programs built for the host environment
2833 host_libs
="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2835 # these tools are built for the host environment
2836 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2837 # know that we are building the simulator.
2838 # binutils, gas and ld appear in that order because it makes sense to run
2839 # "make check" in that particular order.
2840 # If --enable-gold is used, "gold" may replace "ld".
2841 host_tools
="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
2843 # these libraries are built for the target environment, and are built after
2844 # the host libraries and the host tools (which may be a cross compiler)
2845 # Note that libiberty is not a target library.
2846 target_libraries
="target-libgcc \
2847 target-libbacktrace \
2853 target-libstdc++-v3 \
2854 target-libsanitizer \
2857 target-libquadmath \
2858 target-libgfortran \
2868 # these tools are built using the target libraries, and are intended to
2869 # run only in the target environment
2871 # note: any program that *uses* libraries that are in the "target_libraries"
2872 # list belongs in this list.
2874 target_tools
="target-rda"
2876 ################################################################################
2878 ## All tools belong in one of the four categories, and are assigned above
2879 ## We assign ${configdirs} this way to remove all embedded newlines. This
2880 ## is important because configure will choke if they ever get through.
2881 ## ${configdirs} is directories we build using the host tools.
2882 ## ${target_configdirs} is directories we build using the target tools.
2883 configdirs
=`echo ${host_libs} ${host_tools}`
2884 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2885 build_configdirs
=`echo ${build_libs} ${build_tools}`
2889 ################################################################################
2891 srcname
="gnu development package"
2893 # This gets set non-empty for some net releases of packages.
2896 # Define is_cross_compiler to save on calls to 'test'.
2898 if test x
"${host}" = x
"${target}" ; then
2899 is_cross_compiler
=no
2901 is_cross_compiler
=yes
2904 # Find the build and target subdir names.
2906 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2907 # have matching libraries, they should use host libraries: Makefile.tpl
2908 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2909 # However, they still use the build modules, because the corresponding
2910 # host modules (e.g. bison) are only built for the host when bootstrap
2912 # - build_subdir is where we find build modules, and never changes.
2913 # - build_libsubdir is where we find build libraries, and can be overridden.
2915 # Prefix 'build-' so this never conflicts with target_subdir.
2916 build_subdir
="build-${build_noncanonical}"
2918 # Check whether --with-build-libsubdir was given.
2919 if test "${with_build_libsubdir+set}" = set; then :
2920 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2922 build_libsubdir
="$build_subdir"
2925 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2926 if ( test $srcdir = .
&& test -d gcc
) \
2927 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2928 host_subdir
="host-${host_noncanonical}"
2933 target_subdir
=${target_noncanonical}
2935 # Be sure to cover against remnants of an in-tree build.
2936 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2937 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2938 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2941 # Skipdirs are removed silently.
2943 # Noconfigdirs are removed loudly.
2947 # Make sure we don't let GNU ld be added if we didn't want it.
2948 if test x
$with_gnu_ld = xno
; then
2950 noconfigdirs
="$noconfigdirs ld gold"
2954 # Make sure we don't let GNU as be added if we didn't want it.
2955 if test x
$with_gnu_as = xno
; then
2957 noconfigdirs
="$noconfigdirs gas"
2962 # Check whether --with-system-zlib was given.
2963 if test "${with_system_zlib+set}" = set; then :
2964 withval
=$with_system_zlib;
2967 # Make sure we don't let ZLIB be added if we didn't want it.
2968 if test x
$with_system_zlib = xyes
; then
2969 use_included_zlib
=no
2970 noconfigdirs
="$noconfigdirs zlib"
2973 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2975 if test x
$with_system_readline = xyes
; then
2976 noconfigdirs
="$noconfigdirs readline"
2980 # Check whether --with-zstd was given.
2981 if test "${with_zstd+set}" = set; then :
2986 # some tools are so dependent upon X11 that if we're not building with X,
2987 # it's not even worth trying to configure, much less build, that tool.
2990 yes |
"") ;; # the default value for this tree is that X11 is available
2992 skipdirs
="${skipdirs} tk itcl libgui"
2993 # We won't be able to build gdbtk without X.
2996 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2999 # Some are only suitable for cross toolchains.
3000 # Remove these if host=target.
3001 cross_only
="target-libgloss target-newlib target-opcodes"
3003 case $is_cross_compiler in
3004 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
3007 # If both --with-headers and --with-libs are specified, default to
3009 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
3010 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
3011 if test x
"${with_newlib}" = x
; then
3016 # Recognize --with-newlib/--without-newlib.
3017 case ${with_newlib} in
3018 no
) skipdirs
="${skipdirs} target-newlib" ;;
3019 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3022 # Check whether --enable-as-accelerator-for was given.
3023 if test "${enable_as_accelerator_for+set}" = set; then :
3024 enableval
=$enable_as_accelerator_for;
3028 # Check whether --enable-offload-targets was given.
3029 if test "${enable_offload_targets+set}" = set; then :
3030 enableval
=$enable_offload_targets;
3031 if test x
"$enable_offload_targets" = x
; then
3032 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3036 enable_offload_targets
=
3040 # Check whether --enable-offload-defaulted was given.
3041 if test "${enable_offload_defaulted+set}" = set; then :
3042 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3044 enable_offload_defaulted
=
3048 # Handle --enable-gold, --enable-ld.
3049 # --disable-gold [--enable-ld]
3050 # Build only ld. Default option.
3051 # --enable-gold [--enable-ld]
3052 # Build both gold and ld. Install gold as "ld.gold", install ld
3053 # as "ld.bfd" and "ld".
3054 # --enable-gold=default [--enable-ld]
3055 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3056 # install ld as "ld.bfd".
3057 # --enable-gold[=default] --disable-ld
3058 # Build only gold, which is then installed as both "ld.gold" and "ld".
3059 # --enable-gold --enable-ld=default
3060 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3062 # In other words, ld is default
3063 # --enable-gold=default --enable-ld=default
3067 # Check whether --enable-gold was given.
3068 if test "${enable_gold+set}" = set; then :
3069 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3074 case "${ENABLE_GOLD}" in
3076 # Check for ELF target.
3079 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3080 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3081 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3082 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl* |
*-*-haiku*)
3084 *-*-linux*aout
* |
*-*-linux*oldld
*)
3092 if test "$is_elf" = "yes"; then
3093 # Check for target supported by gold.
3095 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3096 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3097 configdirs
="$configdirs gold"
3098 if test x
${ENABLE_GOLD} = xdefault
; then
3109 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3113 # Check whether --enable-ld was given.
3114 if test "${enable_ld+set}" = set; then :
3115 enableval
=$enable_ld; ENABLE_LD
=$enableval
3121 case "${ENABLE_LD}" in
3123 if test x
${default_ld} != x
; then
3124 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3130 if test x
${ENABLE_GOLD} != xyes
; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3132 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3134 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3137 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3141 # Check whether --enable-gprofng was given.
3142 if test "${enable_gprofng+set}" = set; then :
3143 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3148 if test "$enable_gprofng" = "yes"; then
3150 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux*)
3151 configdirs
="$configdirs gprofng"
3158 # Decide the default method for compressing debug sections.
3159 # Provide a configure time option to override our default.
3160 # Check whether --enable-compressed_debug_sections was given.
3161 if test "${enable_compressed_debug_sections+set}" = set; then :
3162 enableval
=$enable_compressed_debug_sections;
3163 if test x
"$enable_compressed_debug_sections" = xyes
; then
3164 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3168 enable_compressed_debug_sections
=
3172 # Select default compression algorithm.
3173 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3174 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3175 enableval
=$enable_default_compressed_debug_sections_algorithm;
3177 default_compressed_debug_sections_algorithm
=
3181 # Configure extra directories which are host specific
3185 configdirs
="$configdirs libtermcap" ;;
3188 # A target can indicate whether a language isn't supported for some reason.
3189 # Only spaces may be used in this macro; not newlines or tabs.
3190 unsupported_languages
=
3192 # Remove more programs from consideration, based on the host or
3193 # target this usually means that a port of the program doesn't
3197 i
[3456789]86-*-msdosdjgpp*)
3198 noconfigdirs
="$noconfigdirs tcl tk itcl"
3202 # Default to --disable-year2038 until we can handle differences between
3203 # projects that use gnulib (which understands year 2038) and projects that
3204 # do not (like BFD).
3205 # Check whether --enable-year2038 was given.
3206 if test "${enable_year2038+set}" = set; then :
3207 enableval
=$enable_year2038; ENABLE_YEAR2038
=$enableval
3213 if test "${ENABLE_YEAR2038}" = "no" ; then
3217 # Check whether --enable-libquadmath was given.
3218 if test "${enable_libquadmath+set}" = set; then :
3219 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3221 ENABLE_LIBQUADMATH
=yes
3224 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3225 noconfigdirs
="$noconfigdirs target-libquadmath"
3229 # Check whether --enable-libquadmath-support was given.
3230 if test "${enable_libquadmath_support+set}" = set; then :
3231 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3233 ENABLE_LIBQUADMATH_SUPPORT
=yes
3236 enable_libquadmath_support
=
3237 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3238 enable_libquadmath_support
=no
3242 # Check whether --enable-libada was given.
3243 if test "${enable_libada+set}" = set; then :
3244 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3249 if test "${ENABLE_LIBADA}" != "yes" ; then
3250 noconfigdirs
="$noconfigdirs gnattools"
3253 # Check whether --enable-libgm2 was given.
3254 if test "${enable_libgm2+set}" = set; then :
3255 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3260 if test "${ENABLE_LIBGM2}" != "yes" ; then
3261 noconfigdirs
="$noconfigdirs gm2tools"
3264 # Check whether --enable-libssp was given.
3265 if test "${enable_libssp+set}" = set; then :
3266 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3272 # Check whether --enable-libstdcxx was given.
3273 if test "${enable_libstdcxx+set}" = set; then :
3274 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3276 ENABLE_LIBSTDCXX
=default
3279 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3280 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3283 # Enable libgomp by default on hosted POSIX systems, and a few others.
3284 if test x
$enable_libgomp = x
; then
3286 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3288 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3290 *-*-solaris2* |
*-*-hpux11*)
3292 *-*-darwin* |
*-*-aix*)
3294 nvptx
*-*-* | amdgcn
*-*-*)
3297 noconfigdirs
="$noconfigdirs target-libgomp"
3302 # Disable libatomic on unsupported systems.
3303 if test -d ${srcdir}/libatomic
; then
3304 if test x
$enable_libatomic = x
; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3306 $as_echo_n "checking for libatomic support... " >&6; }
3307 if (srcdir
=${srcdir}/libatomic
; \
3308 .
${srcdir}/configure.tgt
; \
3309 test -n "$UNSUPPORTED")
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 noconfigdirs
="$noconfigdirs target-libatomic"
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3321 # Disable libitm on unsupported systems.
3322 if test -d ${srcdir}/libitm
; then
3323 if test x
$enable_libitm = x
; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3325 $as_echo_n "checking for libitm support... " >&6; }
3326 if (srcdir
=${srcdir}/libitm
; \
3327 .
${srcdir}/configure.tgt
; \
3328 test -n "$UNSUPPORTED")
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 noconfigdirs
="$noconfigdirs target-libitm"
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3340 # Disable libsanitizer on unsupported systems.
3341 if test -d ${srcdir}/libsanitizer
; then
3342 if test x
$enable_libsanitizer = x
; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3344 $as_echo_n "checking for libsanitizer support... " >&6; }
3345 if (srcdir
=${srcdir}/libsanitizer
; \
3346 .
${srcdir}/configure.tgt
; \
3347 test -n "$UNSUPPORTED")
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 noconfigdirs
="$noconfigdirs target-libsanitizer"
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354 $as_echo "yes" >&6; }
3359 # Disable libvtv on unsupported systems.
3360 if test -d ${srcdir}/libvtv
; then
3361 if test x
$enable_libvtv = x
; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3363 $as_echo_n "checking for libvtv support... " >&6; }
3364 if (srcdir
=${srcdir}/libvtv
; \
3365 .
${srcdir}/configure.tgt
; \
3366 test "$VTV_SUPPORTED" != "yes")
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 noconfigdirs
="$noconfigdirs target-libvtv"
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373 $as_echo "yes" >&6; }
3378 # Disable libquadmath for some systems.
3381 noconfigdirs
="$noconfigdirs target-libquadmath"
3383 # libquadmath is unused on AIX and libquadmath build process use of
3384 # LD_LIBRARY_PATH can break AIX bootstrap.
3385 powerpc-
*-aix* | rs6000-
*-aix*)
3386 noconfigdirs
="$noconfigdirs target-libquadmath"
3390 # Disable libssp for some systems.
3393 # No hosted I/O support.
3394 noconfigdirs
="$noconfigdirs target-libssp"
3397 noconfigdirs
="$noconfigdirs target-libssp"
3399 powerpc-
*-aix* | rs6000-
*-aix*)
3400 noconfigdirs
="$noconfigdirs target-libssp"
3403 # No hosted I/O support.
3404 noconfigdirs
="$noconfigdirs target-libssp"
3407 # libssp uses a misaligned load to trigger a fault, but the RL78
3408 # doesn't fault for those - instead, it gives a build-time error
3409 # for explicit misaligned loads.
3410 noconfigdirs
="$noconfigdirs target-libssp"
3413 # No hosted I/O support.
3414 noconfigdirs
="$noconfigdirs target-libssp"
3418 # Disable libstdc++-v3 for some systems.
3419 # Allow user to override this if they pass --enable-libstdcxx
3420 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3423 # VxWorks uses the Dinkumware C++ library.
3424 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3427 # Not ported/fails to build when using newlib.
3428 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3431 # the C++ libraries don't build on top of CE's C libraries
3432 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3435 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3438 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3441 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3446 # Disable C++ on systems where it is known to not work.
3447 # For testing, you can override this with --enable-languages=c++.
3448 case ,${enable_languages}, in
3454 unsupported_languages
="$unsupported_languages c++"
3460 # Disable Objc on systems where it is known to not work.
3461 # For testing, you can override this with --enable-languages=objc.
3462 case ,${enable_languages}, in
3468 unsupported_languages
="$unsupported_languages objc"
3474 # Disable D on systems where it is known to not work.
3475 # For testing, you can override this with --enable-languages=d.
3476 case ,${enable_languages}, in
3482 unsupported_languages
="$unsupported_languages d"
3488 # Disable libphobos on unsupported systems.
3489 # For testing, you can override this with --enable-libphobos.
3490 if test -d ${srcdir}/libphobos
; then
3491 if test x
$enable_libphobos = x
; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3493 $as_echo_n "checking for libphobos support... " >&6; }
3494 if (srcdir
=${srcdir}/libphobos
; \
3495 .
${srcdir}/configure.tgt
; \
3496 test "$LIBPHOBOS_SUPPORTED" != "yes")
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3500 noconfigdirs
="$noconfigdirs target-libphobos"
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3503 $as_echo "yes" >&6; }
3508 # Disable Fortran for some systems.
3511 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3512 unsupported_languages
="$unsupported_languages fortran"
3515 unsupported_languages
="$unsupported_languages fortran"
3519 # Disable libffi for some systems.
3523 i
[3456789]86-*-darwin*)
3525 x86_64-
*-darwin[912]*)
3528 noconfigdirs
="$noconfigdirs target-libffi"
3531 noconfigdirs
="$noconfigdirs target-libffi"
3534 noconfigdirs
="$noconfigdirs target-libffi"
3537 noconfigdirs
="$noconfigdirs target-libffi"
3540 noconfigdirs
="$noconfigdirs target-libffi"
3543 noconfigdirs
="$noconfigdirs target-libffi"
3546 noconfigdirs
="$noconfigdirs target-libffi"
3548 aarch64
*-*-freebsd*)
3549 noconfigdirs
="$noconfigdirs target-libffi"
3552 noconfigdirs
="$noconfigdirs target-libffi"
3555 noconfigdirs
="$noconfigdirs target-libffi"
3558 noconfigdirs
="$noconfigdirs target-libffi"
3561 noconfigdirs
="$noconfigdirs target-libffi"
3564 noconfigdirs
="$noconfigdirs target-libffi"
3566 cris-
*-* | crisv32-
*-*)
3570 *) # See PR46792 regarding target-libffi.
3571 noconfigdirs
="$noconfigdirs target-libffi";;
3575 noconfigdirs
="$noconfigdirs target-libffi"
3580 noconfigdirs
="$noconfigdirs target-libffi"
3583 noconfigdirs
="$noconfigdirs target-libffi"
3585 i
[3456789]86-w64-mingw*)
3586 noconfigdirs
="$noconfigdirs target-libffi"
3588 i
[3456789]86-*-mingw*)
3589 noconfigdirs
="$noconfigdirs target-libffi"
3592 noconfigdirs
="$noconfigdirs target-libffi"
3595 noconfigdirs
="$noconfigdirs target-libffi"
3602 noconfigdirs
="$noconfigdirs target-libffi"
3605 noconfigdirs
="$noconfigdirs target-libffi"
3609 # Disable the go frontend on systems where it is known to not work. Please keep
3610 # this in sync with contrib/config-list.mk.
3612 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3613 unsupported_languages
="$unsupported_languages go"
3617 # Only allow gdbserver on some systems.
3618 if test -d ${srcdir}/gdbserver
; then
3619 if test x
$enable_gdbserver = x
; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3621 $as_echo_n "checking for gdbserver support... " >&6; }
3622 if (srcdir
=${srcdir}/gdbserver
; \
3623 .
${srcdir}/configure.srv
; \
3624 test -n "$UNSUPPORTED")
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 noconfigdirs
="$noconfigdirs gdbserver"
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3631 $as_echo "yes" >&6; }
3636 # Disable libgo for some systems where it is known to not work.
3637 # For testing, you can easily override this with --enable-libgo.
3638 if test x
$enable_libgo = x
; then
3642 noconfigdirs
="$noconfigdirs target-libgo"
3644 *-*-cygwin* |
*-*-mingw*)
3645 noconfigdirs
="$noconfigdirs target-libgo"
3648 noconfigdirs
="$noconfigdirs target-libgo"
3653 # Default libgloss CPU subdirectory.
3654 libgloss_dir
="$target_cpu"
3657 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3661 libgloss_dir
=aarch64
3666 cris-
*-* | crisv32-
*-*)
3676 libgloss_dir
=loongarch
3678 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3679 libgloss_dir
=m68hc11
3681 m68
*-*-* | fido-
*-*)
3698 # Disable newlib and libgloss for various target OSes.
3701 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3703 i
[3456789]86-*-linux*)
3704 # This section makes it possible to build newlib natively on linux.
3705 # If we are using a cross compiler then don't configure newlib.
3706 if test x
${is_cross_compiler} != xno
; then
3707 noconfigdirs
="$noconfigdirs target-newlib"
3709 noconfigdirs
="$noconfigdirs target-libgloss"
3710 # If we are not using a cross compiler, do configure newlib.
3711 # Note however, that newlib will only be configured in this situation
3712 # if the --with-newlib option has been given, because otherwise
3713 # 'target-newlib' will appear in skipdirs.
3715 i
[3456789]86-*-rdos*)
3716 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3718 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3719 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3722 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3725 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3728 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3731 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3734 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3737 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3740 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3742 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3743 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3746 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3749 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3752 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3755 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3758 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3761 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3764 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3772 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3773 noconfigdirs
="$noconfigdirs sim target-rda"
3778 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3779 noconfigdirs
="$noconfigdirs sim target-rda"
3782 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3783 noconfigdirs
="$noconfigdirs sim target-rda"
3785 i
[3456789]86-*-darwin*)
3786 noconfigdirs
="$noconfigdirs ld gprof"
3787 noconfigdirs
="$noconfigdirs sim target-rda"
3789 x86_64-
*-darwin[912]*)
3790 noconfigdirs
="$noconfigdirs ld gas gprof"
3791 noconfigdirs
="$noconfigdirs sim target-rda"
3794 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3795 noconfigdirs
="$noconfigdirs sim target-rda"
3800 if test "x$with_gmp" = x \
3801 && ! test -d ${srcdir}/gmp \
3802 && test -f /usr
/local
/include
/gmp.h
; then
3807 # Remove unsupported stuff on all kaOS configurations.
3808 noconfigdirs
="$noconfigdirs target-libgloss"
3815 noconfigdirs
="$noconfigdirs target-libgloss"
3818 noconfigdirs
="$noconfigdirs target-libgloss"
3820 # The tpf target doesn't support gdb yet.
3822 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3825 noconfigdirs
="$noconfigdirs target-rda"
3830 # ld works, but does not support shared libraries.
3831 # gas doesn't generate exception information.
3832 noconfigdirs
="$noconfigdirs gas ld"
3835 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3838 # newlib is not 64 bit ready
3839 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3842 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3844 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3845 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3848 noconfigdirs
="$noconfigdirs sim"
3851 noconfigdirs
="$noconfigdirs target-libgloss"
3854 noconfigdirs
="$noconfigdirs ld target-libgloss"
3857 if test x
${with_avrlibc} != xno
; then
3858 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3861 c4x-
*-* | tic4x-
*-*)
3862 noconfigdirs
="$noconfigdirs target-libgloss"
3865 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3868 noconfigdirs
="$noconfigdirs target-libgloss"
3871 noconfigdirs
="$noconfigdirs gdb"
3874 noconfigdirs
="$noconfigdirs gdb"
3877 noconfigdirs
="$noconfigdirs target-rda gprof"
3880 noconfigdirs
="$noconfigdirs"
3883 noconfigdirs
="$noconfigdirs target-libgloss"
3886 noconfigdirs
="$noconfigdirs target-libgloss"
3888 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3891 noconfigdirs
="$noconfigdirs gdb"
3894 noconfigdirs
="$noconfigdirs gdb ld"
3902 hppa
*-*-openbsd* | \
3908 noconfigdirs
="$noconfigdirs ld"
3911 noconfigdirs
="$noconfigdirs gdb"
3914 # No gdb support yet.
3915 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3918 # No ld support yet.
3919 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3922 # No ld support yet.
3923 noconfigdirs
="$noconfigdirs libgui itcl ld"
3925 i
[3456789]86-w64-mingw*)
3927 i
[3456789]86-*-mingw*)
3928 target_configdirs
="$target_configdirs target-winsup"
3931 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3932 noconfigdirs
="$noconfigdirs target-libgloss"
3933 # always build newlib if winsup directory is present.
3934 if test -d "$srcdir/winsup/cygwin"; then
3935 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3936 elif test -d "$srcdir/newlib"; then
3937 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3941 noconfigdirs
="$noconfigdirs target-libgloss"
3943 i
[3456789]86-*-sco3.2v5
*)
3944 # The linker does not yet know about weak symbols in COFF,
3945 # and is not configured to handle mixed ELF and COFF.
3946 noconfigdirs
="$noconfigdirs ld target-libgloss"
3948 i
[3456789]86-*-sco*)
3949 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3951 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3952 noconfigdirs
="$noconfigdirs target-libgloss"
3954 i
[3456789]86-*-sysv4*)
3955 noconfigdirs
="$noconfigdirs target-libgloss"
3957 i
[3456789]86-*-beos*)
3958 noconfigdirs
="$noconfigdirs gdb"
3960 i
[3456789]86-*-rdos*)
3961 noconfigdirs
="$noconfigdirs gdb"
3964 noconfigdirs
="$noconfigdirs gdb"
3967 noconfigdirs
="$noconfigdirs sim"
3970 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3971 noconfigdirs
="$noconfigdirs $target_libraries"
3974 noconfigdirs
="$noconfigdirs gdb gprof"
3977 # copied from rs6000-*-* entry
3978 noconfigdirs
="$noconfigdirs gprof"
3980 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3981 target_configdirs
="$target_configdirs target-winsup"
3982 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3983 # always build newlib.
3984 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3986 # This is temporary until we can link against shared libraries
3987 powerpcle-
*-solaris*)
3988 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3991 noconfigdirs
="$noconfigdirs gdb"
3994 noconfigdirs
="$noconfigdirs gprof"
3997 noconfigdirs
="$noconfigdirs gprof"
4000 noconfigdirs
="$noconfigdirs gprof"
4003 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
4006 noconfigdirs
="$noconfigdirs gprof"
4008 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4009 if test x
$with_newlib = xyes
; then
4010 noconfigdirs
="$noconfigdirs gprof"
4014 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4017 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4020 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4024 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4025 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4026 noconfigdirs
="$noconfigdirs ld gas gprof"
4029 noconfigdirs
="$noconfigdirs gprof"
4032 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4039 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4043 if test x
${is_cross_compiler} = xno
; then
4048 noconfigdirs
="$noconfigdirs sim"
4050 tilepro
*-*-* | tilegx
*-*-*)
4051 noconfigdirs
="$noconfigdirs sim"
4054 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4057 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4060 noconfigdirs
="$noconfigdirs ld"
4062 loongarch
*-*-linux*)
4065 noconfigdirs
="$noconfigdirs gprof"
4069 # If we aren't building newlib, then don't build libgloss, since libgloss
4070 # depends upon some newlib header files.
4071 case "${noconfigdirs}" in
4072 *target-libgloss
*) ;;
4073 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4076 # Work in distributions that contain no compiler tools, like Autoconf.
4077 host_makefile_frag
=/dev
/null
4078 if test -d ${srcdir}/config
; then
4080 i
[3456789]86-*-msdosdjgpp*)
4081 host_makefile_frag
="config/mh-djgpp"
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4086 $as_echo_n "checking to see if cat works as expected... " >&6; }
4087 echo a
>cygwin-cat-check
4088 if test `cat cygwin-cat-check` = a
; then
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4091 $as_echo "yes" >&6; }
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4096 as_fn_error $?
"The cat command does not ignore carriage return characters.
4097 Please either mount the build directory in binary mode or run the following
4098 commands before running any configure script:
4104 host_makefile_frag
="config/mh-cygwin"
4107 host_makefile_frag
="config/mh-mingw"
4110 host_makefile_frag
="config/mh-alpha-linux"
4113 host_makefile_frag
="config/mh-pa"
4116 host_makefile_frag
="config/mh-pa"
4118 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4119 host_makefile_frag
="config/mh-darwin"
4122 host_makefile_frag
="config/mh-ppc-aix"
4125 host_makefile_frag
="config/mh-ppc-aix"
4130 if test "${build}" != "${host}" ; then
4131 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4132 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4133 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4134 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4135 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4136 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4137 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4138 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4139 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4140 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4141 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4142 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4143 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4144 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4145 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4147 AR_FOR_BUILD
="\$(AR)"
4148 AS_FOR_BUILD
="\$(AS)"
4149 CC_FOR_BUILD
="\$(CC)"
4150 CXX_FOR_BUILD
="\$(CXX)"
4151 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4152 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4153 GOC_FOR_BUILD
="\$(GOC)"
4154 GDC_FOR_BUILD
="\$(GDC)"
4155 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4156 LD_FOR_BUILD
="\$(LD)"
4157 NM_FOR_BUILD
="\$(NM)"
4158 RANLIB_FOR_BUILD
="\$(RANLIB)"
4159 WINDRES_FOR_BUILD
="\$(WINDRES)"
4160 WINDMC_FOR_BUILD
="\$(WINDMC)"
4164 ac_cpp
='$CPP $CPPFLAGS'
4165 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4168 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4170 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if ${ac_cv_prog_CC+:} false
; then :
4174 $as_echo_n "(cached) " >&6
4176 if test -n "$CC"; then
4177 ac_cv_prog_CC
="$CC" # Let the user override the test.
4179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir
=.
4184 for ac_exec_ext
in '' $ac_executable_extensions; do
4185 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4186 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 if test -n "$CC"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4199 $as_echo "$CC" >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4207 if test -z "$ac_cv_prog_CC"; then
4209 # Extract the first word of "gcc", so it can be a program name with args.
4210 set dummy gcc
; ac_word
=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4214 $as_echo_n "(cached) " >&6
4216 if test -n "$ac_ct_CC"; then
4217 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4223 test -z "$as_dir" && as_dir
=.
4224 for ac_exec_ext
in '' $ac_executable_extensions; do
4225 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_ac_ct_CC
="gcc"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4237 if test -n "$ac_ct_CC"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4239 $as_echo "$ac_ct_CC" >&6; }
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4245 if test "x$ac_ct_CC" = x
; then
4248 case $cross_compiling:$ac_tool_warned in
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252 ac_tool_warned
=yes ;;
4260 if test -z "$CC"; then
4261 if test -n "$ac_tool_prefix"; then
4262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4263 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_CC+:} false
; then :
4267 $as_echo_n "(cached) " >&6
4269 if test -n "$CC"; then
4270 ac_cv_prog_CC
="$CC" # Let the user override the test.
4272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir
=.
4277 for ac_exec_ext
in '' $ac_executable_extensions; do
4278 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 if test -n "$CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292 $as_echo "$CC" >&6; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4301 if test -z "$CC"; then
4302 # Extract the first word of "cc", so it can be a program name with args.
4303 set dummy cc
; ac_word
=$2
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if ${ac_cv_prog_CC+:} false
; then :
4307 $as_echo_n "(cached) " >&6
4309 if test -n "$CC"; then
4310 ac_cv_prog_CC
="$CC" # Let the user override the test.
4313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir
=.
4318 for ac_exec_ext
in '' $ac_executable_extensions; do
4319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4320 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4321 ac_prog_rejected
=yes
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 if test $ac_prog_rejected = yes; then
4333 # We found a bogon in the path, so make sure we never use it.
4334 set dummy
$ac_cv_prog_CC
4336 if test $# != 0; then
4337 # We chose a different compiler from the bogus one.
4338 # However, it has the same basename, so the bogon will be chosen
4339 # first if we set CC to just the basename; use the full file name.
4341 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4347 if test -n "$CC"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349 $as_echo "$CC" >&6; }
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4357 if test -z "$CC"; then
4358 if test -n "$ac_tool_prefix"; then
4359 for ac_prog
in cl.exe
4361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4362 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_prog_CC+:} false
; then :
4366 $as_echo_n "(cached) " >&6
4368 if test -n "$CC"; then
4369 ac_cv_prog_CC
="$CC" # Let the user override the test.
4371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4375 test -z "$as_dir" && as_dir
=.
4376 for ac_exec_ext
in '' $ac_executable_extensions; do
4377 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4378 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 if test -n "$CC"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4391 $as_echo "$CC" >&6; }
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4398 test -n "$CC" && break
4401 if test -z "$CC"; then
4403 for ac_prog
in cl.exe
4405 # Extract the first word of "$ac_prog", so it can be a program name with args.
4406 set dummy
$ac_prog; ac_word
=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4410 $as_echo_n "(cached) " >&6
4412 if test -n "$ac_ct_CC"; then
4413 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4419 test -z "$as_dir" && as_dir
=.
4420 for ac_exec_ext
in '' $ac_executable_extensions; do
4421 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4422 ac_cv_prog_ac_ct_CC
="$ac_prog"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4433 if test -n "$ac_ct_CC"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4435 $as_echo "$ac_ct_CC" >&6; }
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4442 test -n "$ac_ct_CC" && break
4445 if test "x$ac_ct_CC" = x
; then
4448 case $cross_compiling:$ac_tool_warned in
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452 ac_tool_warned
=yes ;;
4461 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4463 as_fn_error $?
"no acceptable C compiler found in \$PATH
4464 See \`config.log' for more details" "$LINENO" 5; }
4466 # Provide some information about the compiler.
4467 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4470 for ac_option
in --version -v -V -qversion; do
4471 { { ac_try
="$ac_compiler $ac_option >&5"
4473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477 $as_echo "$ac_try_echo"; } >&5
4478 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4480 if test -s conftest.err; then
4482 ... rest of stderr output deleted ...
4483 10q' conftest.err >conftest.er1
4484 cat conftest.er1 >&5
4486 rm -f conftest.er1 conftest.err
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4502 ac_clean_files_save=$ac_clean_files
4503 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4504 # Try to create an executable without -o first, disregard a.out.
4505 # It will help us diagnose broken compilers, and finding out an intuition
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4508 $as_echo_n "checking whether the C compiler works... " >&6; }
4509 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4511 # The possible output files:
4512 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4515 for ac_file in $ac_files
4518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4519 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4524 if { { ac_try="$ac_link_default"
4526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4527 *) ac_try_echo
=$ac_try;;
4529 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_link_default") 2>&5
4533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534 test $ac_status = 0; }; then :
4535 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4536 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4537 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4538 # so that the user can short-circuit this test for compilers unknown to
4540 for ac_file
in $ac_files ''
4542 test -f "$ac_file" ||
continue
4544 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4547 # We found the default executable, but exeext='' is most
4551 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4553 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4555 # We set ac_cv_exeext here because the later test for it is not
4556 # safe: cross compilers may not add the suffix if given an `-o'
4557 # argument, so we may need to know it at that point already.
4558 # Even if this section looks crufty: it has the advantage of
4565 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4570 if test -z "$ac_file"; then :
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4573 $as_echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.
$ac_ext >&5
4576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error
77 "C compiler cannot create executables
4579 See \`config.log' for more details" "$LINENO" 5; }
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4582 $as_echo "yes" >&6; }
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4585 $as_echo_n "checking for C compiler default output file name... " >&6; }
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4587 $as_echo "$ac_file" >&6; }
4588 ac_exeext
=$ac_cv_exeext
4590 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4591 ac_clean_files
=$ac_clean_files_save
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4593 $as_echo_n "checking for suffix of executables... " >&6; }
4594 if { { ac_try
="$ac_link"
4596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4600 $as_echo "$ac_try_echo"; } >&5
4601 (eval "$ac_link") 2>&5
4603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4604 test $ac_status = 0; }; then :
4605 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4606 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4607 # work properly (i.e., refer to `conftest.exe'), while it won't with
4609 for ac_file
in conftest.exe conftest conftest.
*; do
4610 test -f "$ac_file" ||
continue
4612 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4613 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4621 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4622 See \`config.log' for more details" "$LINENO" 5; }
4624 rm -f conftest conftest
$ac_cv_exeext
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4626 $as_echo "$ac_cv_exeext" >&6; }
4628 rm -f conftest.
$ac_ext
4629 EXEEXT
=$ac_cv_exeext
4631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4637 FILE *f = fopen ("conftest.out", "w");
4638 return ferror (f) || fclose (f) != 0;
4644 ac_clean_files
="$ac_clean_files conftest.out"
4645 # Check that the compiler produces executables we can run. If not, either
4646 # the compiler is broken, or we cross compile.
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4648 $as_echo_n "checking whether we are cross compiling... " >&6; }
4649 if test "$cross_compiling" != yes; then
4650 { { ac_try
="$ac_link"
4652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4656 $as_echo "$ac_try_echo"; } >&5
4657 (eval "$ac_link") 2>&5
4659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4660 test $ac_status = 0; }
4661 if { ac_try='./conftest$ac_cv_exeext'
4662 { { case "(($ac_try" in
4663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4664 *) ac_try_echo
=$ac_try;;
4666 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4667 $as_echo "$ac_try_echo"; } >&5
4668 (eval "$ac_try") 2>&5
4670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671 test $ac_status = 0; }; }; then
4674 if test "$cross_compiling" = maybe
; then
4677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4679 as_fn_error $?
"cannot run C compiled programs.
4680 If you meant to cross compile, use \`--host'.
4681 See \`config.log' for more details" "$LINENO" 5; }
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4686 $as_echo "$cross_compiling" >&6; }
4688 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4689 ac_clean_files
=$ac_clean_files_save
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4691 $as_echo_n "checking for suffix of object files... " >&6; }
4692 if ${ac_cv_objext+:} false
; then :
4693 $as_echo_n "(cached) " >&6
4695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4706 rm -f conftest.o conftest.obj
4707 if { { ac_try
="$ac_compile"
4709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4713 $as_echo "$ac_try_echo"; } >&5
4714 (eval "$ac_compile") 2>&5
4716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717 test $ac_status = 0; }; then :
4718 for ac_file in conftest.o conftest.obj conftest.*; do
4719 test -f "$ac_file" || continue;
4721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4727 $as_echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4732 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4733 See \
`config.log' for more details" "$LINENO" 5; }
4735 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4738 $as_echo "$ac_cv_objext" >&6; }
4739 OBJEXT=$ac_cv_objext
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4742 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4743 if ${ac_cv_c_compiler_gnu+:} false; then :
4744 $as_echo_n "(cached) " >&6
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4760 if ac_fn_c_try_compile "$LINENO"; then :
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4770 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4771 if test $ac_compiler_gnu = yes; then
4776 ac_test_CFLAGS=${CFLAGS+set}
4777 ac_save_CFLAGS=$CFLAGS
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4779 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4780 if ${ac_cv_prog_cc_g+:} false; then :
4781 $as_echo_n "(cached) " >&6
4783 ac_save_c_werror_flag=$ac_c_werror_flag
4784 ac_c_werror_flag=yes
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4798 if ac_fn_c_try_compile "$LINENO"; then :
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4813 if ac_fn_c_try_compile "$LINENO"; then :
4816 ac_c_werror_flag=$ac_save_c_werror_flag
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4829 if ac_fn_c_try_compile "$LINENO"; then :
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 ac_c_werror_flag=$ac_save_c_werror_flag
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4840 $as_echo "$ac_cv_prog_cc_g" >&6; }
4841 if test "$ac_test_CFLAGS" = set; then
4842 CFLAGS=$ac_save_CFLAGS
4843 elif test $ac_cv_prog_cc_g = yes; then
4844 if test "$GCC" = yes; then
4850 if test "$GCC" = yes; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4857 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4858 if ${ac_cv_prog_cc_c89+:} false; then :
4859 $as_echo_n "(cached) " >&6
4861 ac_cv_prog_cc_c89=no
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4869 struct buf { int x; };
4870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4871 static char *e (p, i)
4877 static char *f (char * (*g) (char **, int), char **p, ...)
4882 s = g (p, va_arg (v,int));
4887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4888 function prototypes and stuff, but not '\xHH' hex character constants.
4889 These don't provoke an error unfortunately, instead are silently treated
4890 as 'x'. The following induces an error, until -std is added to get
4891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4892 array size at least. It's necessary to write '\x00'==0 to get something
4893 that's true only with -std. */
4894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4896 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4897 inside strings and character constants. */
4899 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4901 int test (int i, double x);
4902 struct s1 {int (*f) (int a);};
4903 struct s2 {int (*f) (double a);};
4904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4910 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4915 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4918 CC="$ac_save_CC $ac_arg"
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920 ac_cv_prog_cc_c89=$ac_arg
4922 rm -f core conftest.err conftest.$ac_objext
4923 test "x$ac_cv_prog_cc_c89" != "xno" && break
4925 rm -f conftest.$ac_ext
4930 case "x$ac_cv_prog_cc_c89" in
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4933 $as_echo "none needed" >&6; } ;;
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4936 $as_echo "unsupported" >&6; } ;;
4938 CC="$CC $ac_cv_prog_cc_c89"
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4942 if test "x$ac_cv_prog_cc_c89" != xno; then :
4947 ac_cpp='$CPP $CPPFLAGS'
4948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4953 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4954 if ${ac_cv_prog_cc_c99+:} false; then :
4955 $as_echo_n "(cached) " >&6
4957 ac_cv_prog_cc_c99=no
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4962 #include <stdbool.h>
4967 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4968 #define debug(...) fprintf (stderr, __VA_ARGS__)
4969 #define showlist(...) puts (#__VA_ARGS__)
4970 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4972 test_varargs_macros (void)
4977 debug ("X = %d\n", x);
4978 showlist (The first, second, and third items.);
4979 report (x>y, "x is %d but y is %d", x, y);
4982 // Check long long types.
4983 #define BIG64 18446744073709551615ull
4984 #define BIG32 4294967295ul
4985 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4987 your preprocessor is broken;
4991 your preprocessor is broken;
4993 static long long int bignum = -9223372036854775807LL;
4994 static unsigned long long int ubignum = BIG64;
4996 struct incomplete_array
5004 const wchar_t *name;
5008 typedef const char *ccp;
5011 test_restrict (ccp restrict text)
5013 // See if C++-style comments work.
5014 // Iterate through items via the restricted pointer.
5015 // Also check for declarations in for loops.
5016 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5021 // Check varargs and va_copy.
5023 test_varargs (const char *format, ...)
5026 va_start (args, format);
5028 va_copy (args_copy, args);
5039 str = va_arg (args_copy, const char *);
5042 number = va_arg (args_copy, int);
5045 fnumber = va_arg (args_copy, double);
5060 _Bool success = false;
5063 if (test_restrict ("String literal") == 0)
5065 char *restrict newvar = "Another string";
5068 test_varargs ("s, d' f .", "string", 65, 34.234);
5069 test_varargs_macros ();
5071 // Check flexible array members.
5072 struct incomplete_array *ia =
5073 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5075 for (int i = 0; i < ia->datasize; ++i)
5076 ia->data[i] = i * 1.234;
5078 // Check named initializers.
5079 struct named_init ni = {
5081 .name = L"Test wide string",
5082 .average = 543.34343,
5087 int dynamic_array[ni.number];
5088 dynamic_array[ni.number - 1] = 543;
5090 // work around unused variable warnings
5091 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5092 || dynamic_array[ni.number - 1] != 543);
5098 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5100 CC="$ac_save_CC $ac_arg"
5101 if ac_fn_c_try_compile "$LINENO"; then :
5102 ac_cv_prog_cc_c99=$ac_arg
5104 rm -f core conftest.err conftest.$ac_objext
5105 test "x$ac_cv_prog_cc_c99" != "xno" && break
5107 rm -f conftest.$ac_ext
5112 case "x$ac_cv_prog_cc_c99" in
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5115 $as_echo "none needed" >&6; } ;;
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5118 $as_echo "unsupported" >&6; } ;;
5120 CC="$CC $ac_cv_prog_cc_c99"
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5122 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5124 if test "x$ac_cv_prog_cc_c99" != xno; then :
5130 ac_cpp='$CXXCPP $CPPFLAGS'
5131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5134 if test -z "$CXX"; then
5135 if test -n "$CCC"; then
5138 if test -n "$ac_tool_prefix"; then
5139 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if ${ac_cv_prog_CXX+:} false; then :
5146 $as_echo_n "(cached) " >&6
5148 if test -n "$CXX"; then
5149 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 if test -n "$CXX"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5171 $as_echo "$CXX" >&6; }
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5178 test -n "$CXX" && break
5181 if test -z "$CXX"; then
5183 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5185 # Extract the first word of "$ac_prog", so it can be a program name with args.
5186 set dummy $ac_prog; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5190 $as_echo_n "(cached) " >&6
5192 if test -n "$ac_ct_CXX"; then
5193 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_CXX="$ac_prog"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5213 if test -n "$ac_ct_CXX"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5215 $as_echo "$ac_ct_CXX" >&6; }
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5222 test -n "$ac_ct_CXX" && break
5225 if test "x$ac_ct_CXX" = x; then
5228 case $cross_compiling:$ac_tool_warned in
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232 ac_tool_warned=yes ;;
5240 # Provide some information about the compiler.
5241 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5244 for ac_option in --version -v -V -qversion; do
5245 { { ac_try="$ac_compiler $ac_option >&5"
5247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5248 *) ac_try_echo
=$ac_try;;
5250 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5251 $as_echo "$ac_try_echo"; } >&5
5252 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5254 if test -s conftest.err
; then
5256 ... rest of stderr output deleted ...
5257 10q' conftest.err
>conftest.er1
5258 cat conftest.er1
>&5
5260 rm -f conftest.er1 conftest.err
5261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5262 test $ac_status = 0; }
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5266 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5267 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5268 $as_echo_n "(cached) " >&6
5270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5284 if ac_fn_cxx_try_compile
"$LINENO"; then :
5289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5290 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5294 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5295 if test $ac_compiler_gnu = yes; then
5300 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5301 ac_save_CXXFLAGS
=$CXXFLAGS
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5303 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5304 if ${ac_cv_prog_cxx_g+:} false
; then :
5305 $as_echo_n "(cached) " >&6
5307 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5308 ac_cxx_werror_flag
=yes
5311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5322 if ac_fn_cxx_try_compile
"$LINENO"; then :
5323 ac_cv_prog_cxx_g
=yes
5326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5337 if ac_fn_cxx_try_compile
"$LINENO"; then :
5340 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5353 if ac_fn_cxx_try_compile
"$LINENO"; then :
5354 ac_cv_prog_cxx_g
=yes
5356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5361 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5364 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5365 if test "$ac_test_CXXFLAGS" = set; then
5366 CXXFLAGS
=$ac_save_CXXFLAGS
5367 elif test $ac_cv_prog_cxx_g = yes; then
5368 if test "$GXX" = yes; then
5374 if test "$GXX" = yes; then
5381 ac_cpp
='$CPP $CPPFLAGS'
5382 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5387 # We must set the default linker to the linker used by gcc for the correct
5388 # operation of libtool. If LD is not defined and we are using gcc, try to
5389 # set the LD default to the ld used by gcc.
5390 if test -z "$LD"; then
5391 if test "$GCC" = yes; then
5394 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5396 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5398 case $gcc_prog_ld in
5399 # Accept absolute paths.
5400 [\\/]* |
[A-Za-z
]:[\\/]*)
5401 LD
="$gcc_prog_ld" ;;
5406 # Check whether -static-libstdc++ -static-libgcc is supported.
5408 if test "$GCC" = yes; then
5409 saved_LDFLAGS
="$LDFLAGS"
5411 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5413 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5415 ac_cpp
='$CXXCPP $CPPFLAGS'
5416 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5424 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5425 #error -static-libstdc++ not implemented
5429 if ac_fn_cxx_try_link
"$LINENO"; then :
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5431 $as_echo "yes" >&6; }; have_static_libs
=yes
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5436 rm -f core conftest.err conftest.
$ac_objext \
5437 conftest
$ac_exeext conftest.
$ac_ext
5439 ac_cpp
='$CPP $CPPFLAGS'
5440 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5445 LDFLAGS
="$saved_LDFLAGS"
5451 if test -n "$ac_tool_prefix"; then
5452 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5453 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_GNATBIND+:} false
; then :
5457 $as_echo_n "(cached) " >&6
5459 if test -n "$GNATBIND"; then
5460 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir
=.
5467 for ac_exec_ext
in '' $ac_executable_extensions; do
5468 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 GNATBIND
=$ac_cv_prog_GNATBIND
5480 if test -n "$GNATBIND"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5482 $as_echo "$GNATBIND" >&6; }
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5490 if test -z "$ac_cv_prog_GNATBIND"; then
5491 ac_ct_GNATBIND
=$GNATBIND
5492 # Extract the first word of "gnatbind", so it can be a program name with args.
5493 set dummy gnatbind
; ac_word
=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5497 $as_echo_n "(cached) " >&6
5499 if test -n "$ac_ct_GNATBIND"; then
5500 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir
=.
5507 for ac_exec_ext
in '' $ac_executable_extensions; do
5508 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5520 if test -n "$ac_ct_GNATBIND"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5522 $as_echo "$ac_ct_GNATBIND" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5528 if test "x$ac_ct_GNATBIND" = x
; then
5531 case $cross_compiling:$ac_tool_warned in
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5535 ac_tool_warned
=yes ;;
5537 GNATBIND
=$ac_ct_GNATBIND
5540 GNATBIND
="$ac_cv_prog_GNATBIND"
5543 if test -n "$ac_tool_prefix"; then
5544 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5545 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5549 $as_echo_n "(cached) " >&6
5551 if test -n "$GNATMAKE"; then
5552 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5558 test -z "$as_dir" && as_dir
=.
5559 for ac_exec_ext
in '' $ac_executable_extensions; do
5560 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 GNATMAKE
=$ac_cv_prog_GNATMAKE
5572 if test -n "$GNATMAKE"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5574 $as_echo "$GNATMAKE" >&6; }
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5582 if test -z "$ac_cv_prog_GNATMAKE"; then
5583 ac_ct_GNATMAKE
=$GNATMAKE
5584 # Extract the first word of "gnatmake", so it can be a program name with args.
5585 set dummy gnatmake
; ac_word
=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5589 $as_echo_n "(cached) " >&6
5591 if test -n "$ac_ct_GNATMAKE"; then
5592 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5598 test -z "$as_dir" && as_dir
=.
5599 for ac_exec_ext
in '' $ac_executable_extensions; do
5600 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5612 if test -n "$ac_ct_GNATMAKE"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5614 $as_echo "$ac_ct_GNATMAKE" >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5620 if test "x$ac_ct_GNATMAKE" = x
; then
5623 case $cross_compiling:$ac_tool_warned in
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627 ac_tool_warned
=yes ;;
5629 GNATMAKE
=$ac_ct_GNATMAKE
5632 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5636 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5637 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5638 $as_echo_n "(cached) " >&6
5640 cat >conftest.adb
<<EOF
5641 pragma Warnings (Off);
5643 pragma Warnings (On);
5644 use type System.CRTL.int64;
5645 procedure conftest is begin null; end conftest;
5647 acx_cv_cc_gcc_supports_ada
=no
5648 # There is a bug in old released versions of GCC which causes the
5649 # driver to exit successfully when the appropriate language module
5650 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5651 # Therefore we must check for the error message as well as an
5652 # unsuccessful exit.
5653 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5654 # given a .adb file, but produce no object file. So we must check
5655 # if an object file was really produced to guard against this.
5656 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5657 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5658 acx_cv_cc_gcc_supports_ada
=yes
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5663 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5665 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5673 if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5675 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_GDC+:} false
; then :
5679 $as_echo_n "(cached) " >&6
5681 if test -n "$GDC"; then
5682 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5688 test -z "$as_dir" && as_dir
=.
5689 for ac_exec_ext
in '' $ac_executable_extensions; do
5690 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 if test -n "$GDC"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5704 $as_echo "$GDC" >&6; }
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5712 if test -z "$ac_cv_prog_GDC"; then
5714 # Extract the first word of "gdc", so it can be a program name with args.
5715 set dummy gdc
; ac_word
=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5719 $as_echo_n "(cached) " >&6
5721 if test -n "$ac_ct_GDC"; then
5722 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5728 test -z "$as_dir" && as_dir
=.
5729 for ac_exec_ext
in '' $ac_executable_extensions; do
5730 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_ac_ct_GDC
="gdc"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5742 if test -n "$ac_ct_GDC"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5744 $as_echo "$ac_ct_GDC" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5750 if test "x$ac_ct_GDC" = x
; then
5753 case $cross_compiling:$ac_tool_warned in
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5757 ac_tool_warned
=yes ;;
5762 GDC
="$ac_cv_prog_GDC"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5766 $as_echo_n "checking whether the D compiler works... " >&6; }
5767 if ${acx_cv_d_compiler_works+:} false
; then :
5768 $as_echo_n "(cached) " >&6
5770 cat >conftest.d
<<EOF
5771 module conftest; int main() { return 0; }
5773 acx_cv_d_compiler_works
=no
5774 if test "x$GDC" != xno
; then
5775 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5776 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5777 acx_cv_d_compiler_works
=yes
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5783 $as_echo "$acx_cv_d_compiler_works" >&6; }
5784 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5790 for ac_prog
in cargo
5792 # Extract the first word of "$ac_prog", so it can be a program name with args.
5793 set dummy
$ac_prog; ac_word
=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_CARGO+:} false
; then :
5797 $as_echo_n "(cached) " >&6
5799 if test -n "$CARGO"; then
5800 ac_cv_prog_CARGO
="$CARGO" # Let the user override the test.
5802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir
=.
5807 for ac_exec_ext
in '' $ac_executable_extensions; do
5808 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_CARGO
="$ac_prog"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 CARGO
=$ac_cv_prog_CARGO
5820 if test -n "$CARGO"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5822 $as_echo "$CARGO" >&6; }
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5829 test -n "$CARGO" && break
5831 test -n "$CARGO" || CARGO
="no"
5833 if test "x$CARGO" != xno
; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5839 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5840 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5841 $as_echo_n "(cached) " >&6
5845 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5846 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5847 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5850 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5853 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5854 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5857 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5864 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5865 do_compare
="$gcc_cv_prog_cmp_skip"
5869 # Check whether --enable-bootstrap was given.
5870 if test "${enable_bootstrap+set}" = set; then :
5871 enableval
=$enable_bootstrap;
5873 enable_bootstrap
=default
5877 # Issue errors and warnings for invalid/strange bootstrap combinations.
5878 if test -r $srcdir/gcc
/configure
; then
5884 case "$have_compiler:$host:$target:$enable_bootstrap" in
5887 # Default behavior. Enable bootstrap if we have a compiler
5888 # and we are in a native configuration.
5889 yes:$build:$build:default
)
5890 enable_bootstrap
=yes ;;
5893 enable_bootstrap
=no
;;
5895 # We have a compiler and we are in a native configuration, bootstrap is ok
5896 yes:$build:$build:yes)
5899 # Other configurations, but we have a compiler. Assume the user knows
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5903 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5906 # No compiler: if they passed --enable-bootstrap explicitly, fail
5908 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5910 # Fail if wrong command line
5912 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5916 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5917 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5918 # require C++11 (or higher).
5919 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5920 CXX
="$CXX -std=c++11"
5921 elif test "$have_compiler" = yes; then
5922 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5924 ac_cpp
='$CXXCPP $CPPFLAGS'
5925 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5926 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5927 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5931 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5932 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5933 $as_echo_n "(cached) " >&6
5935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5939 // If the compiler admits that it is not ready for C++11, why torture it?
5940 // Hopefully, this will speed up the test.
5944 #error "This is not a C++ compiler"
5946 #elif __cplusplus < 201103L
5948 #error "This is not a C++11 compiler"
5955 namespace test_static_assert
5958 template <typename T>
5961 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5966 namespace test_final_override
5975 struct Derived : public Base
5977 virtual ~Derived() override {}
5978 virtual void f() override {}
5983 namespace test_double_right_angle_brackets
5986 template < typename T >
5989 typedef check<void> single_type;
5990 typedef check<check<void>> double_type;
5991 typedef check<check<check<void>>> triple_type;
5992 typedef check<check<check<check<void>>>> quadruple_type;
5996 namespace test_decltype
6009 namespace test_type_deduction
6012 template < typename T1, typename T2 >
6015 static const bool value = false;
6018 template < typename T >
6019 struct is_same<T, T>
6021 static const bool value = true;
6024 template < typename T1, typename T2 >
6026 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6032 test(const int c, volatile int v)
6034 static_assert(is_same<int, decltype(0)>::value == true, "");
6035 static_assert(is_same<int, decltype(c)>::value == false, "");
6036 static_assert(is_same<int, decltype(v)>::value == false, "");
6039 auto sumi = ac + av + 'x';
6040 auto sumf = ac + av + 1.0;
6041 static_assert(is_same<int, decltype(ac)>::value == true, "");
6042 static_assert(is_same<int, decltype(av)>::value == true, "");
6043 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6044 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6045 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6046 return (sumf > 0.0) ? sumi : add(c, v);
6051 namespace test_noexcept
6054 int f() { return 0; }
6055 int g() noexcept { return 0; }
6057 static_assert(noexcept(f()) == false, "");
6058 static_assert(noexcept(g()) == true, "");
6062 namespace test_constexpr
6065 template < typename CharT >
6066 unsigned long constexpr
6067 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6069 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6072 template < typename CharT >
6073 unsigned long constexpr
6074 strlen_c(const CharT *const s) noexcept
6076 return strlen_c_r(s, 0UL);
6079 static_assert(strlen_c("") == 0UL, "");
6080 static_assert(strlen_c("1") == 1UL, "");
6081 static_assert(strlen_c("example") == 7UL, "");
6082 static_assert(strlen_c("another\0example") == 7UL, "");
6086 namespace test_rvalue_references
6092 static constexpr int value = N;
6095 answer<1> f(int&) { return answer<1>(); }
6096 answer<2> f(const int&) { return answer<2>(); }
6097 answer<3> f(int&&) { return answer<3>(); }
6104 static_assert(decltype(f(i))::value == 1, "");
6105 static_assert(decltype(f(c))::value == 2, "");
6106 static_assert(decltype(f(0))::value == 3, "");
6111 namespace test_uniform_initialization
6116 static const int zero {};
6117 static const int one {1};
6120 static_assert(test::zero == 0, "");
6121 static_assert(test::one == 1, "");
6125 namespace test_lambdas
6131 auto lambda1 = [](){};
6132 auto lambda2 = lambda1;
6140 auto a = [](int i, int j){ return i + j; }(1, 2);
6141 auto b = []() -> int { return '0'; }();
6142 auto c = [=](){ return a + b; }();
6143 auto d = [&](){ return c; }();
6144 auto e = [a, &b](int x) mutable {
6145 const auto identity = [](int y){ return y; };
6146 for (auto i = 0; i < a; ++i)
6148 return x + identity(a + b);
6150 return a + b + c + d + e;
6156 const auto nullary = [](){ return 0; };
6157 const auto unary = [](int x){ return x; };
6158 using nullary_t = decltype(nullary);
6159 using unary_t = decltype(unary);
6160 const auto higher1st = [](nullary_t f){ return f(); };
6161 const auto higher2nd = [unary](nullary_t f1){
6162 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6164 return higher1st(nullary) + higher2nd(nullary)(unary);
6169 namespace test_variadic_templates
6175 template <int N0, int... N1toN>
6176 struct sum<N0, N1toN...>
6178 static constexpr auto value = N0 + sum<N1toN...>::value;
6184 static constexpr auto value = 0;
6187 static_assert(sum<>::value == 0, "");
6188 static_assert(sum<1>::value == 1, "");
6189 static_assert(sum<23>::value == 23, "");
6190 static_assert(sum<1, 2>::value == 3, "");
6191 static_assert(sum<5, 5, 11>::value == 21, "");
6192 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6196 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6197 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6199 namespace test_template_alias_sfinae
6204 template<typename T>
6205 using member = typename T::member_type;
6207 template<typename T>
6210 template<typename T>
6211 void func(member<T>*) {}
6215 void test() { func<foo>(0); }
6219 } // namespace cxx11
6221 #endif // __cplusplus >= 201103L
6226 if ac_fn_cxx_try_compile
"$LINENO"; then :
6227 ax_cv_cxx_compile_cxx11
=yes
6229 ax_cv_cxx_compile_cxx11
=no
6231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6234 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6235 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6239 if test x
$ac_success = xno
; then
6240 for alternative
in ${ax_cxx_compile_alternatives}; do
6241 switch
="-std=gnu++${alternative}"
6242 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6244 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6245 if eval \
${$cachevar+:} false
; then :
6246 $as_echo_n "(cached) " >&6
6250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6254 // If the compiler admits that it is not ready for C++11, why torture it?
6255 // Hopefully, this will speed up the test.
6259 #error "This is not a C++ compiler"
6261 #elif __cplusplus < 201103L
6263 #error "This is not a C++11 compiler"
6270 namespace test_static_assert
6273 template <typename T>
6276 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6281 namespace test_final_override
6290 struct Derived : public Base
6292 virtual ~Derived() override {}
6293 virtual void f() override {}
6298 namespace test_double_right_angle_brackets
6301 template < typename T >
6304 typedef check<void> single_type;
6305 typedef check<check<void>> double_type;
6306 typedef check<check<check<void>>> triple_type;
6307 typedef check<check<check<check<void>>>> quadruple_type;
6311 namespace test_decltype
6324 namespace test_type_deduction
6327 template < typename T1, typename T2 >
6330 static const bool value = false;
6333 template < typename T >
6334 struct is_same<T, T>
6336 static const bool value = true;
6339 template < typename T1, typename T2 >
6341 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6347 test(const int c, volatile int v)
6349 static_assert(is_same<int, decltype(0)>::value == true, "");
6350 static_assert(is_same<int, decltype(c)>::value == false, "");
6351 static_assert(is_same<int, decltype(v)>::value == false, "");
6354 auto sumi = ac + av + 'x';
6355 auto sumf = ac + av + 1.0;
6356 static_assert(is_same<int, decltype(ac)>::value == true, "");
6357 static_assert(is_same<int, decltype(av)>::value == true, "");
6358 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6359 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6360 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6361 return (sumf > 0.0) ? sumi : add(c, v);
6366 namespace test_noexcept
6369 int f() { return 0; }
6370 int g() noexcept { return 0; }
6372 static_assert(noexcept(f()) == false, "");
6373 static_assert(noexcept(g()) == true, "");
6377 namespace test_constexpr
6380 template < typename CharT >
6381 unsigned long constexpr
6382 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6384 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6387 template < typename CharT >
6388 unsigned long constexpr
6389 strlen_c(const CharT *const s) noexcept
6391 return strlen_c_r(s, 0UL);
6394 static_assert(strlen_c("") == 0UL, "");
6395 static_assert(strlen_c("1") == 1UL, "");
6396 static_assert(strlen_c("example") == 7UL, "");
6397 static_assert(strlen_c("another\0example") == 7UL, "");
6401 namespace test_rvalue_references
6407 static constexpr int value = N;
6410 answer<1> f(int&) { return answer<1>(); }
6411 answer<2> f(const int&) { return answer<2>(); }
6412 answer<3> f(int&&) { return answer<3>(); }
6419 static_assert(decltype(f(i))::value == 1, "");
6420 static_assert(decltype(f(c))::value == 2, "");
6421 static_assert(decltype(f(0))::value == 3, "");
6426 namespace test_uniform_initialization
6431 static const int zero {};
6432 static const int one {1};
6435 static_assert(test::zero == 0, "");
6436 static_assert(test::one == 1, "");
6440 namespace test_lambdas
6446 auto lambda1 = [](){};
6447 auto lambda2 = lambda1;
6455 auto a = [](int i, int j){ return i + j; }(1, 2);
6456 auto b = []() -> int { return '0'; }();
6457 auto c = [=](){ return a + b; }();
6458 auto d = [&](){ return c; }();
6459 auto e = [a, &b](int x) mutable {
6460 const auto identity = [](int y){ return y; };
6461 for (auto i = 0; i < a; ++i)
6463 return x + identity(a + b);
6465 return a + b + c + d + e;
6471 const auto nullary = [](){ return 0; };
6472 const auto unary = [](int x){ return x; };
6473 using nullary_t = decltype(nullary);
6474 using unary_t = decltype(unary);
6475 const auto higher1st = [](nullary_t f){ return f(); };
6476 const auto higher2nd = [unary](nullary_t f1){
6477 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6479 return higher1st(nullary) + higher2nd(nullary)(unary);
6484 namespace test_variadic_templates
6490 template <int N0, int... N1toN>
6491 struct sum<N0, N1toN...>
6493 static constexpr auto value = N0 + sum<N1toN...>::value;
6499 static constexpr auto value = 0;
6502 static_assert(sum<>::value == 0, "");
6503 static_assert(sum<1>::value == 1, "");
6504 static_assert(sum<23>::value == 23, "");
6505 static_assert(sum<1, 2>::value == 3, "");
6506 static_assert(sum<5, 5, 11>::value == 21, "");
6507 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6511 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6512 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6514 namespace test_template_alias_sfinae
6519 template<typename T>
6520 using member = typename T::member_type;
6522 template<typename T>
6525 template<typename T>
6526 void func(member<T>*) {}
6530 void test() { func<foo>(0); }
6534 } // namespace cxx11
6536 #endif // __cplusplus >= 201103L
6541 if ac_fn_cxx_try_compile
"$LINENO"; then :
6546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6549 eval ac_res
=\$
$cachevar
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6551 $as_echo "$ac_res" >&6; }
6552 if eval test x\$
$cachevar = xyes
; then
6554 if test -n "$CXXCPP" ; then
6555 CXXCPP
="$CXXCPP $switch"
6563 if test x
$ac_success = xno
; then
6564 for alternative
in ${ax_cxx_compile_alternatives}; do
6565 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6566 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6568 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6569 if eval \${$cachevar+:} false; then :
6570 $as_echo_n "(cached
) " >&6
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6578 // If the compiler admits that it is not ready for C++11, why torture it?
6579 // Hopefully, this will speed up the test.
6583 #error "This is not a C
++ compiler
"
6585 #elif __cplusplus < 201103L
6587 #error "This is not a C
++11 compiler
"
6594 namespace test_static_assert
6597 template <typename T>
6600 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6605 namespace test_final_override
6614 struct Derived : public Base
6616 virtual ~Derived() override {}
6617 virtual void f() override {}
6622 namespace test_double_right_angle_brackets
6625 template < typename T >
6628 typedef check<void> single_type;
6629 typedef check<check<void>> double_type;
6630 typedef check<check<check<void>>> triple_type;
6631 typedef check<check<check<check<void>>>> quadruple_type;
6635 namespace test_decltype
6648 namespace test_type_deduction
6651 template < typename T1, typename T2 >
6654 static const bool value = false;
6657 template < typename T >
6658 struct is_same<T, T>
6660 static const bool value = true;
6663 template < typename T1, typename T2 >
6665 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6671 test(const int c, volatile int v)
6673 static_assert(is_same<int, decltype(0)>::value == true, "");
6674 static_assert(is_same<int, decltype(c)>::value == false, "");
6675 static_assert(is_same<int, decltype(v)>::value == false, "");
6678 auto sumi = ac + av + 'x';
6679 auto sumf = ac + av + 1.0;
6680 static_assert(is_same<int, decltype(ac)>::value == true, "");
6681 static_assert(is_same<int, decltype(av)>::value == true, "");
6682 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6683 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6684 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6685 return (sumf > 0.0) ? sumi : add(c, v);
6690 namespace test_noexcept
6693 int f() { return 0; }
6694 int g() noexcept { return 0; }
6696 static_assert(noexcept(f()) == false, "");
6697 static_assert(noexcept(g()) == true, "");
6701 namespace test_constexpr
6704 template < typename CharT >
6705 unsigned long constexpr
6706 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6708 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6711 template < typename CharT >
6712 unsigned long constexpr
6713 strlen_c(const CharT *const s) noexcept
6715 return strlen_c_r(s, 0UL);
6718 static_assert(strlen_c("") == 0UL, "");
6719 static_assert(strlen_c("1") == 1UL, "");
6720 static_assert(strlen_c("example
") == 7UL, "");
6721 static_assert(strlen_c("another\
0example
") == 7UL, "");
6725 namespace test_rvalue_references
6731 static constexpr int value = N;
6734 answer<1> f(int&) { return answer<1>(); }
6735 answer<2> f(const int&) { return answer<2>(); }
6736 answer<3> f(int&&) { return answer<3>(); }
6743 static_assert(decltype(f(i))::value == 1, "");
6744 static_assert(decltype(f(c))::value == 2, "");
6745 static_assert(decltype(f(0))::value == 3, "");
6750 namespace test_uniform_initialization
6755 static const int zero {};
6756 static const int one {1};
6759 static_assert(test::zero == 0, "");
6760 static_assert(test::one == 1, "");
6764 namespace test_lambdas
6770 auto lambda1 = [](){};
6771 auto lambda2 = lambda1;
6779 auto a = [](int i, int j){ return i + j; }(1, 2);
6780 auto b = []() -> int { return '0'; }();
6781 auto c = [=](){ return a + b; }();
6782 auto d = [&](){ return c; }();
6783 auto e = [a, &b](int x) mutable {
6784 const auto identity = [](int y){ return y; };
6785 for (auto i = 0; i < a; ++i)
6787 return x + identity(a + b);
6789 return a + b + c + d + e;
6795 const auto nullary = [](){ return 0; };
6796 const auto unary = [](int x){ return x; };
6797 using nullary_t = decltype(nullary);
6798 using unary_t = decltype(unary);
6799 const auto higher1st = [](nullary_t f){ return f(); };
6800 const auto higher2nd = [unary](nullary_t f1){
6801 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6803 return higher1st(nullary) + higher2nd(nullary)(unary);
6808 namespace test_variadic_templates
6814 template <int N0, int... N1toN>
6815 struct sum<N0, N1toN...>
6817 static constexpr auto value = N0 + sum<N1toN...>::value;
6823 static constexpr auto value = 0;
6826 static_assert(sum<>::value == 0, "");
6827 static_assert(sum<1>::value == 1, "");
6828 static_assert(sum<23>::value == 23, "");
6829 static_assert(sum<1, 2>::value == 3, "");
6830 static_assert(sum<5, 5, 11>::value == 21, "");
6831 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6835 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6836 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6838 namespace test_template_alias_sfinae
6843 template<typename T>
6844 using member = typename T::member_type;
6846 template<typename T>
6849 template<typename T>
6850 void func(member<T>*) {}
6854 void test() { func<foo>(0); }
6858 } // namespace cxx11
6860 #endif // __cplusplus >= 201103L
6865 if ac_fn_cxx_try_compile "$LINENO"; then :
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 eval ac_res=\$$cachevar
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6875 $as_echo "$ac_res" >&6; }
6876 if eval test x\$$cachevar = xyes; then
6878 if test -n "$CXXCPP" ; then
6879 CXXCPP="$CXXCPP $switch"
6885 if test x$ac_success = xyes; then
6892 ac_cpp='$CPP $CPPFLAGS'
6893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6897 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6898 if test x$ac_success = xno; then
6899 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6902 if test x$ac_success = xno; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6905 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6909 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6915 if test "${build}" != "${host}"; then
6916 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6918 ac_cpp
='$CXXCPP $CPPFLAGS'
6919 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6920 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6921 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6923 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6924 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6925 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6926 CXX
="$CXX_FOR_BUILD"
6927 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6928 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6930 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6931 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6932 $as_echo_n "(cached) " >&6
6934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6938 // If the compiler admits that it is not ready for C++11, why torture it?
6939 // Hopefully, this will speed up the test.
6943 #error "This is not a C++ compiler"
6945 #elif __cplusplus < 201103L
6947 #error "This is not a C++11 compiler"
6954 namespace test_static_assert
6957 template <typename T>
6960 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6965 namespace test_final_override
6974 struct Derived : public Base
6976 virtual ~Derived() override {}
6977 virtual void f() override {}
6982 namespace test_double_right_angle_brackets
6985 template < typename T >
6988 typedef check<void> single_type;
6989 typedef check<check<void>> double_type;
6990 typedef check<check<check<void>>> triple_type;
6991 typedef check<check<check<check<void>>>> quadruple_type;
6995 namespace test_decltype
7008 namespace test_type_deduction
7011 template < typename T1, typename T2 >
7014 static const bool value = false;
7017 template < typename T >
7018 struct is_same<T, T>
7020 static const bool value = true;
7023 template < typename T1, typename T2 >
7025 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7031 test(const int c, volatile int v)
7033 static_assert(is_same<int, decltype(0)>::value == true, "");
7034 static_assert(is_same<int, decltype(c)>::value == false, "");
7035 static_assert(is_same<int, decltype(v)>::value == false, "");
7038 auto sumi = ac + av + 'x';
7039 auto sumf = ac + av + 1.0;
7040 static_assert(is_same<int, decltype(ac)>::value == true, "");
7041 static_assert(is_same<int, decltype(av)>::value == true, "");
7042 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7043 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7044 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7045 return (sumf > 0.0) ? sumi : add(c, v);
7050 namespace test_noexcept
7053 int f() { return 0; }
7054 int g() noexcept { return 0; }
7056 static_assert(noexcept(f()) == false, "");
7057 static_assert(noexcept(g()) == true, "");
7061 namespace test_constexpr
7064 template < typename CharT >
7065 unsigned long constexpr
7066 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7068 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7071 template < typename CharT >
7072 unsigned long constexpr
7073 strlen_c(const CharT *const s) noexcept
7075 return strlen_c_r(s, 0UL);
7078 static_assert(strlen_c("") == 0UL, "");
7079 static_assert(strlen_c("1") == 1UL, "");
7080 static_assert(strlen_c("example") == 7UL, "");
7081 static_assert(strlen_c("another\0example") == 7UL, "");
7085 namespace test_rvalue_references
7091 static constexpr int value = N;
7094 answer<1> f(int&) { return answer<1>(); }
7095 answer<2> f(const int&) { return answer<2>(); }
7096 answer<3> f(int&&) { return answer<3>(); }
7103 static_assert(decltype(f(i))::value == 1, "");
7104 static_assert(decltype(f(c))::value == 2, "");
7105 static_assert(decltype(f(0))::value == 3, "");
7110 namespace test_uniform_initialization
7115 static const int zero {};
7116 static const int one {1};
7119 static_assert(test::zero == 0, "");
7120 static_assert(test::one == 1, "");
7124 namespace test_lambdas
7130 auto lambda1 = [](){};
7131 auto lambda2 = lambda1;
7139 auto a = [](int i, int j){ return i + j; }(1, 2);
7140 auto b = []() -> int { return '0'; }();
7141 auto c = [=](){ return a + b; }();
7142 auto d = [&](){ return c; }();
7143 auto e = [a, &b](int x) mutable {
7144 const auto identity = [](int y){ return y; };
7145 for (auto i = 0; i < a; ++i)
7147 return x + identity(a + b);
7149 return a + b + c + d + e;
7155 const auto nullary = [](){ return 0; };
7156 const auto unary = [](int x){ return x; };
7157 using nullary_t = decltype(nullary);
7158 using unary_t = decltype(unary);
7159 const auto higher1st = [](nullary_t f){ return f(); };
7160 const auto higher2nd = [unary](nullary_t f1){
7161 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7163 return higher1st(nullary) + higher2nd(nullary)(unary);
7168 namespace test_variadic_templates
7174 template <int N0, int... N1toN>
7175 struct sum<N0, N1toN...>
7177 static constexpr auto value = N0 + sum<N1toN...>::value;
7183 static constexpr auto value = 0;
7186 static_assert(sum<>::value == 0, "");
7187 static_assert(sum<1>::value == 1, "");
7188 static_assert(sum<23>::value == 23, "");
7189 static_assert(sum<1, 2>::value == 3, "");
7190 static_assert(sum<5, 5, 11>::value == 21, "");
7191 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7195 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7196 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7198 namespace test_template_alias_sfinae
7203 template<typename T>
7204 using member = typename T::member_type;
7206 template<typename T>
7209 template<typename T>
7210 void func(member<T>*) {}
7214 void test() { func<foo>(0); }
7218 } // namespace cxx11
7220 #endif // __cplusplus >= 201103L
7225 if ac_fn_cxx_try_compile
"$LINENO"; then :
7226 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7228 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7233 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7234 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7238 if test x
$ac_success = xno
; then
7239 for alternative
in ${ax_cxx_compile_alternatives}; do
7240 switch
="-std=gnu++${alternative}"
7241 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7243 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7244 if eval \
${$cachevar+:} false
; then :
7245 $as_echo_n "(cached) " >&6
7249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7253 // If the compiler admits that it is not ready for C++11, why torture it?
7254 // Hopefully, this will speed up the test.
7258 #error "This is not a C++ compiler"
7260 #elif __cplusplus < 201103L
7262 #error "This is not a C++11 compiler"
7269 namespace test_static_assert
7272 template <typename T>
7275 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7280 namespace test_final_override
7289 struct Derived : public Base
7291 virtual ~Derived() override {}
7292 virtual void f() override {}
7297 namespace test_double_right_angle_brackets
7300 template < typename T >
7303 typedef check<void> single_type;
7304 typedef check<check<void>> double_type;
7305 typedef check<check<check<void>>> triple_type;
7306 typedef check<check<check<check<void>>>> quadruple_type;
7310 namespace test_decltype
7323 namespace test_type_deduction
7326 template < typename T1, typename T2 >
7329 static const bool value = false;
7332 template < typename T >
7333 struct is_same<T, T>
7335 static const bool value = true;
7338 template < typename T1, typename T2 >
7340 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7346 test(const int c, volatile int v)
7348 static_assert(is_same<int, decltype(0)>::value == true, "");
7349 static_assert(is_same<int, decltype(c)>::value == false, "");
7350 static_assert(is_same<int, decltype(v)>::value == false, "");
7353 auto sumi = ac + av + 'x';
7354 auto sumf = ac + av + 1.0;
7355 static_assert(is_same<int, decltype(ac)>::value == true, "");
7356 static_assert(is_same<int, decltype(av)>::value == true, "");
7357 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7358 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7359 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7360 return (sumf > 0.0) ? sumi : add(c, v);
7365 namespace test_noexcept
7368 int f() { return 0; }
7369 int g() noexcept { return 0; }
7371 static_assert(noexcept(f()) == false, "");
7372 static_assert(noexcept(g()) == true, "");
7376 namespace test_constexpr
7379 template < typename CharT >
7380 unsigned long constexpr
7381 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7383 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7386 template < typename CharT >
7387 unsigned long constexpr
7388 strlen_c(const CharT *const s) noexcept
7390 return strlen_c_r(s, 0UL);
7393 static_assert(strlen_c("") == 0UL, "");
7394 static_assert(strlen_c("1") == 1UL, "");
7395 static_assert(strlen_c("example") == 7UL, "");
7396 static_assert(strlen_c("another\0example") == 7UL, "");
7400 namespace test_rvalue_references
7406 static constexpr int value = N;
7409 answer<1> f(int&) { return answer<1>(); }
7410 answer<2> f(const int&) { return answer<2>(); }
7411 answer<3> f(int&&) { return answer<3>(); }
7418 static_assert(decltype(f(i))::value == 1, "");
7419 static_assert(decltype(f(c))::value == 2, "");
7420 static_assert(decltype(f(0))::value == 3, "");
7425 namespace test_uniform_initialization
7430 static const int zero {};
7431 static const int one {1};
7434 static_assert(test::zero == 0, "");
7435 static_assert(test::one == 1, "");
7439 namespace test_lambdas
7445 auto lambda1 = [](){};
7446 auto lambda2 = lambda1;
7454 auto a = [](int i, int j){ return i + j; }(1, 2);
7455 auto b = []() -> int { return '0'; }();
7456 auto c = [=](){ return a + b; }();
7457 auto d = [&](){ return c; }();
7458 auto e = [a, &b](int x) mutable {
7459 const auto identity = [](int y){ return y; };
7460 for (auto i = 0; i < a; ++i)
7462 return x + identity(a + b);
7464 return a + b + c + d + e;
7470 const auto nullary = [](){ return 0; };
7471 const auto unary = [](int x){ return x; };
7472 using nullary_t = decltype(nullary);
7473 using unary_t = decltype(unary);
7474 const auto higher1st = [](nullary_t f){ return f(); };
7475 const auto higher2nd = [unary](nullary_t f1){
7476 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7478 return higher1st(nullary) + higher2nd(nullary)(unary);
7483 namespace test_variadic_templates
7489 template <int N0, int... N1toN>
7490 struct sum<N0, N1toN...>
7492 static constexpr auto value = N0 + sum<N1toN...>::value;
7498 static constexpr auto value = 0;
7501 static_assert(sum<>::value == 0, "");
7502 static_assert(sum<1>::value == 1, "");
7503 static_assert(sum<23>::value == 23, "");
7504 static_assert(sum<1, 2>::value == 3, "");
7505 static_assert(sum<5, 5, 11>::value == 21, "");
7506 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7510 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7511 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7513 namespace test_template_alias_sfinae
7518 template<typename T>
7519 using member = typename T::member_type;
7521 template<typename T>
7524 template<typename T>
7525 void func(member<T>*) {}
7529 void test() { func<foo>(0); }
7533 } // namespace cxx11
7535 #endif // __cplusplus >= 201103L
7540 if ac_fn_cxx_try_compile
"$LINENO"; then :
7545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7548 eval ac_res
=\$
$cachevar
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7550 $as_echo "$ac_res" >&6; }
7551 if eval test x\$
$cachevar = xyes
; then
7553 if test -n "$CXXCPP" ; then
7554 CXXCPP
="$CXXCPP $switch"
7562 if test x
$ac_success = xno
; then
7563 for alternative
in ${ax_cxx_compile_alternatives}; do
7564 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7565 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7567 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7568 if eval \${$cachevar+:} false; then :
7569 $as_echo_n "(cached
) " >&6
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7577 // If the compiler admits that it is not ready for C++11, why torture it?
7578 // Hopefully, this will speed up the test.
7582 #error "This is not a C
++ compiler
"
7584 #elif __cplusplus < 201103L
7586 #error "This is not a C
++11 compiler
"
7593 namespace test_static_assert
7596 template <typename T>
7599 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7604 namespace test_final_override
7613 struct Derived : public Base
7615 virtual ~Derived() override {}
7616 virtual void f() override {}
7621 namespace test_double_right_angle_brackets
7624 template < typename T >
7627 typedef check<void> single_type;
7628 typedef check<check<void>> double_type;
7629 typedef check<check<check<void>>> triple_type;
7630 typedef check<check<check<check<void>>>> quadruple_type;
7634 namespace test_decltype
7647 namespace test_type_deduction
7650 template < typename T1, typename T2 >
7653 static const bool value = false;
7656 template < typename T >
7657 struct is_same<T, T>
7659 static const bool value = true;
7662 template < typename T1, typename T2 >
7664 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7670 test(const int c, volatile int v)
7672 static_assert(is_same<int, decltype(0)>::value == true, "");
7673 static_assert(is_same<int, decltype(c)>::value == false, "");
7674 static_assert(is_same<int, decltype(v)>::value == false, "");
7677 auto sumi = ac + av + 'x';
7678 auto sumf = ac + av + 1.0;
7679 static_assert(is_same<int, decltype(ac)>::value == true, "");
7680 static_assert(is_same<int, decltype(av)>::value == true, "");
7681 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7682 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7683 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7684 return (sumf > 0.0) ? sumi : add(c, v);
7689 namespace test_noexcept
7692 int f() { return 0; }
7693 int g() noexcept { return 0; }
7695 static_assert(noexcept(f()) == false, "");
7696 static_assert(noexcept(g()) == true, "");
7700 namespace test_constexpr
7703 template < typename CharT >
7704 unsigned long constexpr
7705 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7707 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7710 template < typename CharT >
7711 unsigned long constexpr
7712 strlen_c(const CharT *const s) noexcept
7714 return strlen_c_r(s, 0UL);
7717 static_assert(strlen_c("") == 0UL, "");
7718 static_assert(strlen_c("1") == 1UL, "");
7719 static_assert(strlen_c("example
") == 7UL, "");
7720 static_assert(strlen_c("another\
0example
") == 7UL, "");
7724 namespace test_rvalue_references
7730 static constexpr int value = N;
7733 answer<1> f(int&) { return answer<1>(); }
7734 answer<2> f(const int&) { return answer<2>(); }
7735 answer<3> f(int&&) { return answer<3>(); }
7742 static_assert(decltype(f(i))::value == 1, "");
7743 static_assert(decltype(f(c))::value == 2, "");
7744 static_assert(decltype(f(0))::value == 3, "");
7749 namespace test_uniform_initialization
7754 static const int zero {};
7755 static const int one {1};
7758 static_assert(test::zero == 0, "");
7759 static_assert(test::one == 1, "");
7763 namespace test_lambdas
7769 auto lambda1 = [](){};
7770 auto lambda2 = lambda1;
7778 auto a = [](int i, int j){ return i + j; }(1, 2);
7779 auto b = []() -> int { return '0'; }();
7780 auto c = [=](){ return a + b; }();
7781 auto d = [&](){ return c; }();
7782 auto e = [a, &b](int x) mutable {
7783 const auto identity = [](int y){ return y; };
7784 for (auto i = 0; i < a; ++i)
7786 return x + identity(a + b);
7788 return a + b + c + d + e;
7794 const auto nullary = [](){ return 0; };
7795 const auto unary = [](int x){ return x; };
7796 using nullary_t = decltype(nullary);
7797 using unary_t = decltype(unary);
7798 const auto higher1st = [](nullary_t f){ return f(); };
7799 const auto higher2nd = [unary](nullary_t f1){
7800 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7802 return higher1st(nullary) + higher2nd(nullary)(unary);
7807 namespace test_variadic_templates
7813 template <int N0, int... N1toN>
7814 struct sum<N0, N1toN...>
7816 static constexpr auto value = N0 + sum<N1toN...>::value;
7822 static constexpr auto value = 0;
7825 static_assert(sum<>::value == 0, "");
7826 static_assert(sum<1>::value == 1, "");
7827 static_assert(sum<23>::value == 23, "");
7828 static_assert(sum<1, 2>::value == 3, "");
7829 static_assert(sum<5, 5, 11>::value == 21, "");
7830 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7834 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7835 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7837 namespace test_template_alias_sfinae
7842 template<typename T>
7843 using member = typename T::member_type;
7845 template<typename T>
7848 template<typename T>
7849 void func(member<T>*) {}
7853 void test() { func<foo>(0); }
7857 } // namespace cxx11
7859 #endif // __cplusplus >= 201103L
7864 if ac_fn_cxx_try_compile "$LINENO"; then :
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 eval ac_res=\$$cachevar
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7874 $as_echo "$ac_res" >&6; }
7875 if eval test x\$$cachevar = xyes; then
7877 if test -n "$CXXCPP" ; then
7878 CXXCPP="$CXXCPP $switch"
7884 if test x$ac_success = xyes; then
7889 CXX_FOR_BUILD="$CXX"
7890 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7891 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7892 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7893 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7894 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7901 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7902 if test x$ac_success = xno; then
7903 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7906 if test x$ac_success = xno; then
7907 HAVE_CXX11_FOR_BUILD=0
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7909 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7911 HAVE_CXX11_FOR_BUILD=1
7913 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7921 # Check whether --enable-pgo-build was given.
7922 if test "${enable_pgo_build+set}" = set; then :
7923 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7929 # Issue errors and warnings for invalid/strange PGO build combinations.
7930 case "$have_compiler:$host:$target:$enable_pgo_build" in
7933 # Allow the PGO build only if we aren't building a compiler and
7934 # we are in a native configuration.
7935 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7937 # Disallow the PGO bootstrap if we are building a compiler.
7938 yes:*:*:yes |
yes:*:*:lto
)
7939 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7942 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7946 if test "$enable_pgo_build" != "no"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7948 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7949 old_CFLAGS
="$CFLAGS"
7950 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7951 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7957 if ac_fn_c_try_compile
"$LINENO"; then :
7960 PGO_BUILD_GEN_CFLAGS
=
7962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7963 CFLAGS
="$old_CFLAGS"
7964 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7966 $as_echo "yes" >&6; }
7967 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7974 if test "$enable_pgo_build" = "lto"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7976 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7977 old_CFLAGS
="$CFLAGS"
7978 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7979 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7984 if ac_fn_c_try_compile
"$LINENO"; then :
7987 PGO_BUILD_LTO_CFLAGS
=
7989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7990 CFLAGS
="$old_CFLAGS"
7991 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7993 $as_echo "yes" >&6; }
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7998 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8006 # Used for setting $lt_cv_objdir
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8008 $as_echo_n "checking for objdir... " >&6; }
8009 if ${lt_cv_objdir+:} false
; then :
8010 $as_echo_n "(cached) " >&6
8012 rm -f .libs
2>/dev
/null
8013 mkdir .libs
2>/dev
/null
8014 if test -d .libs
; then
8017 # MS-DOS does not allow filenames that begin with a dot.
8020 rmdir .libs
2>/dev
/null
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8023 $as_echo "$lt_cv_objdir" >&6; }
8024 objdir
=$lt_cv_objdir
8030 cat >>confdefs.h
<<_ACEOF
8031 #define LT_OBJDIR "$lt_cv_objdir/"
8036 # Check for GMP, MPFR and MPC
8039 if test -d ${srcdir}/gcc
; then
8043 if test -d ${srcdir}/gdb
; then
8044 if test "x$enable_gdb" != xno
; then
8049 gmplibs
="-lmpfr -lgmp"
8050 if test x
"$require_mpc" = "xyes" ; then
8051 gmplibs
="-lmpc $gmplibs"
8056 # Specify a location for mpc
8057 # check for this first so it ends up on the link line before mpfr.
8059 # Check whether --with-mpc was given.
8060 if test "${with_mpc+set}" = set; then :
8065 # Check whether --with-mpc-include was given.
8066 if test "${with_mpc_include+set}" = set; then :
8067 withval
=$with_mpc_include;
8071 # Check whether --with-mpc-lib was given.
8072 if test "${with_mpc_lib+set}" = set; then :
8073 withval
=$with_mpc_lib;
8077 if test "x$with_mpc" != x
; then
8078 gmplibs
="-L$with_mpc/lib $gmplibs"
8079 gmpinc
="-I$with_mpc/include $gmpinc"
8081 if test "x$with_mpc_include" != x
; then
8082 gmpinc
="-I$with_mpc_include $gmpinc"
8084 if test "x$with_mpc_lib" != x
; then
8085 gmplibs
="-L$with_mpc_lib $gmplibs"
8087 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
8088 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8089 gmpinc
='-I$$s/mpc/src '"$gmpinc"
8090 # Do not test the mpc version. Assume that it is sufficient, since
8091 # it is in the source tree, and the library has not been built yet
8092 # but it would be included on the link line in the version check below
8093 # hence making the test fail.
8097 # Specify a location for mpfr
8098 # check for this first so it ends up on the link line before gmp.
8100 # Check whether --with-mpfr was given.
8101 if test "${with_mpfr+set}" = set; then :
8106 # Check whether --with-mpfr-include was given.
8107 if test "${with_mpfr_include+set}" = set; then :
8108 withval
=$with_mpfr_include;
8112 # Check whether --with-mpfr-lib was given.
8113 if test "${with_mpfr_lib+set}" = set; then :
8114 withval
=$with_mpfr_lib;
8118 if test "x$with_mpfr" != x
; then
8119 gmplibs
="-L$with_mpfr/lib $gmplibs"
8120 gmpinc
="-I$with_mpfr/include $gmpinc"
8122 if test "x$with_mpfr_include" != x
; then
8123 gmpinc
="-I$with_mpfr_include $gmpinc"
8125 if test "x$with_mpfr_lib" != x
; then
8126 gmplibs
="-L$with_mpfr_lib $gmplibs"
8128 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8129 # MPFR v3.1.0 moved the sources into a src sub-directory.
8130 if ! test -d ${srcdir}/mpfr
/src
; then
8131 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8133 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8134 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8135 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8136 # Do not test the mpfr version. Assume that it is sufficient, since
8137 # it is in the source tree, and the library has not been built yet
8138 # but it would be included on the link line in the version check below
8139 # hence making the test fail.
8143 # Specify a location for gmp
8145 # Check whether --with-gmp was given.
8146 if test "${with_gmp+set}" = set; then :
8151 # Check whether --with-gmp-include was given.
8152 if test "${with_gmp_include+set}" = set; then :
8153 withval
=$with_gmp_include;
8157 # Check whether --with-gmp-lib was given.
8158 if test "${with_gmp_lib+set}" = set; then :
8159 withval
=$with_gmp_lib;
8164 if test "x$with_gmp" != x
; then
8165 gmplibs
="-L$with_gmp/lib $gmplibs"
8166 gmpinc
="-I$with_gmp/include $gmpinc"
8168 if test "x$with_gmp_include" != x
; then
8169 gmpinc
="-I$with_gmp_include $gmpinc"
8171 if test "x$with_gmp_lib" != x
; then
8172 gmplibs
="-L$with_gmp_lib $gmplibs"
8174 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8175 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8176 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8177 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8178 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8179 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8180 # Do not test the gmp version. Assume that it is sufficient, since
8181 # it is in the source tree, and the library has not been built yet
8182 # but it would be included on the link line in the version check below
8183 # hence making the test fail.
8187 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8189 saved_CFLAGS
="$CFLAGS"
8190 CFLAGS
="$CFLAGS $gmpinc"
8191 # Check for the recommended and required versions of GMP.
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8193 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8201 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8202 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8203 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8211 if ac_fn_c_try_compile
"$LINENO"; then :
8212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8219 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8220 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8221 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8229 if ac_fn_c_try_compile
"$LINENO"; then :
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8231 $as_echo "yes" >&6; }
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8234 $as_echo "buggy but acceptable" >&6; }
8236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }; have_gmp
=no
8241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8243 # If we have GMP, check the MPFR version.
8244 if test x
"$have_gmp" = xyes
; then
8245 # Check for the recommended and required versions of MPFR.
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8247 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8256 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8264 if ac_fn_c_try_compile
"$LINENO"; then :
8265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8273 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8281 if ac_fn_c_try_compile
"$LINENO"; then :
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8283 $as_echo "yes" >&6; }
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8286 $as_echo "buggy but acceptable" >&6; }
8288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }; have_gmp
=no
8293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8296 # Check for the MPC header version.
8297 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8298 # Check for the recommended and required versions of MPC.
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8300 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8308 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8316 if ac_fn_c_try_compile
"$LINENO"; then :
8317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8324 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8332 if ac_fn_c_try_compile
"$LINENO"; then :
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8334 $as_echo "yes" >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8337 $as_echo "buggy but acceptable" >&6; }
8339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }; have_gmp
=no
8344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8347 # Now check the MPFR library.
8348 if test x
"$have_gmp" = xyes
; then
8350 LIBS
="$LIBS $gmplibs"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8352 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8365 mpfr_atan2 (n, n, x, MPFR_RNDN);
8366 mpfr_erfc (n, x, MPFR_RNDN);
8367 mpfr_subnormalize (x, t, MPFR_RNDN);
8375 if ac_fn_c_try_link
"$LINENO"; then :
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8377 $as_echo "yes" >&6; }
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }; have_gmp
=no
8382 rm -f core conftest.err conftest.
$ac_objext \
8383 conftest
$ac_exeext conftest.
$ac_ext
8387 # Now check the MPC library
8388 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8390 LIBS
="$LIBS $gmplibs"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8392 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8402 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8403 mpc_cosh (c, c, MPC_RNDNN);
8404 mpc_pow (c, c, c, MPC_RNDNN);
8405 mpc_acosh (c, c, MPC_RNDNN);
8412 if ac_fn_c_try_link
"$LINENO"; then :
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8414 $as_echo "yes" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }; have_gmp
=no
8419 rm -f core conftest.err conftest.
$ac_objext \
8420 conftest
$ac_exeext conftest.
$ac_ext
8424 CFLAGS
="$saved_CFLAGS"
8426 # The library versions listed in the error message below should match
8427 # the HARD-minimums enforced above.
8428 if test x
$have_gmp != xyes
; then
8429 if test -d ${srcdir}/gcc
; then
8430 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8431 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8432 their locations. Source code for these libraries can be found at
8433 their respective hosting sites as well as at
8434 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8435 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8436 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8437 make sure that you have installed both the libraries and the header
8438 files. They may be located in separate packages." "$LINENO" 5
8440 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8441 Try the --with-gmp and/or --with-mpfr options to specify
8442 their locations. If you obtained GMP and/or MPFR from a vendor
8443 distribution package, make sure that you have installed both the libraries
8444 and the header files. They may be located in separate packages." "$LINENO" 5
8449 # Flags needed for both GMP, MPFR and/or MPC.
8457 # Libraries to use for stage1 or when not bootstrapping.
8459 # Check whether --with-stage1-libs was given.
8460 if test "${with_stage1_libs+set}" = set; then :
8461 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8464 stage1_libs
=$withval
8472 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8473 # default is yes if gcc is being built; no otherwise. The reason for
8474 # this default is that gdb is sometimes linked against GNU Source
8475 # Highlight, which is a shared library that uses C++ exceptions. In
8476 # this case, -static-libstdc++ will cause crashes.
8478 # Check whether --with-static-standard-libraries was given.
8479 if test "${with_static_standard_libraries+set}" = set; then :
8480 withval
=$with_static_standard_libraries;
8482 with_static_standard_libraries
=auto
8485 if test "$with_static_standard_libraries" = auto
; then
8486 with_static_standard_libraries
=$have_compiler
8489 # Linker flags to use for stage1 or when not bootstrapping.
8491 # Check whether --with-stage1-ldflags was given.
8492 if test "${with_stage1_ldflags+set}" = set; then :
8493 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8496 stage1_ldflags
=$withval
8500 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8501 # if supported. But if the user explicitly specified the libraries to use,
8502 # trust that they are doing what they want.
8503 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8504 -a "$have_static_libs" = yes; then
8505 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8511 # Libraries to use for stage2 and later builds.
8513 # Check whether --with-boot-libs was given.
8514 if test "${with_boot_libs+set}" = set; then :
8515 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8518 poststage1_libs
=$withval
8526 # Linker flags to use for stage2 and later builds.
8528 # Check whether --with-boot-ldflags was given.
8529 if test "${with_boot_ldflags+set}" = set; then :
8530 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8533 poststage1_ldflags
=$withval
8537 # In stages 2 and 3, default to linking libstdc++ and libgcc
8538 # statically. But if the user explicitly specified the libraries to
8539 # use, trust that they are doing what they want.
8540 if test "$poststage1_libs" = ""; then
8541 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8546 *-darwin2* |
*-darwin1[56789]*)
8547 # For these versions, we default to using embedded rpaths.
8548 if test "x$enable_darwin_at_rpath" != "xno"; then
8549 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
8553 # For these versions, we only use embedded rpaths on demand.
8554 if test "x$enable_darwin_at_rpath" = "xyes"; then
8555 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
8561 # GCC GRAPHITE dependency isl.
8562 # Basic setup is inlined here, actual checks are in config/isl.m4
8565 # Check whether --with-isl was given.
8566 if test "${with_isl+set}" = set; then :
8571 # Treat --without-isl as a request to disable
8572 # GRAPHITE support and skip all following checks.
8573 if test "x$with_isl" != "xno"; then
8577 # Check whether --with-isl-include was given.
8578 if test "${with_isl_include+set}" = set; then :
8579 withval
=$with_isl_include;
8583 # Check whether --with-isl-lib was given.
8584 if test "${with_isl_lib+set}" = set; then :
8585 withval
=$with_isl_lib;
8589 # Check whether --enable-isl-version-check was given.
8590 if test "${enable_isl_version_check+set}" = set; then :
8591 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8593 ENABLE_ISL_CHECK
=yes
8597 # Initialize isllibs and islinc.
8606 isllibs
="-L$with_isl/lib"
8607 islinc
="-I$with_isl/include"
8610 if test "x${with_isl_include}" != x
; then
8611 islinc
="-I$with_isl_include"
8613 if test "x${with_isl_lib}" != x
; then
8614 isllibs
="-L$with_isl_lib"
8616 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8617 && test -d ${srcdir}/isl
; then
8618 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8619 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8622 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8625 isllibs
="${isllibs} -lisl"
8629 if test "${ENABLE_ISL_CHECK}" = yes ; then
8630 _isl_saved_CFLAGS
=$CFLAGS
8631 _isl_saved_LDFLAGS
=$LDFLAGS
8632 _isl_saved_LIBS
=$LIBS
8634 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8635 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8636 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8639 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 #include <isl/schedule.h>
8646 isl_options_set_schedule_serialize_sccs (NULL, 0);
8651 if ac_fn_c_try_link
"$LINENO"; then :
8656 rm -f core conftest.err conftest.
$ac_objext \
8657 conftest
$ac_exeext conftest.
$ac_ext
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8659 $as_echo "$gcc_cv_isl" >&6; }
8661 if test "${gcc_cv_isl}" = no
; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8663 $as_echo "required isl version is 0.15 or later" >&6; }
8666 CFLAGS
=$_isl_saved_CFLAGS
8667 LDFLAGS
=$_isl_saved_LDFLAGS
8668 LIBS
=$_isl_saved_LIBS
8676 if test "x${with_isl}" = xno
; then
8677 graphite_requested
=no
8678 elif test "x${with_isl}" != x \
8679 ||
test "x${with_isl_include}" != x \
8680 ||
test "x${with_isl_lib}" != x
; then
8681 graphite_requested
=yes
8683 graphite_requested
=no
8688 if test "${gcc_cv_isl}" = no
; then
8693 if test "${graphite_requested}" = yes \
8694 && test "x${isllibs}" = x \
8695 && test "x${islinc}" = x
; then
8697 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8703 # If the isl check failed, disable builds of in-tree variant of isl
8704 if test "x$with_isl" = xno ||
8705 test "x$gcc_cv_isl" = xno
; then
8706 noconfigdirs
="$noconfigdirs isl"
8713 # Check for LTO support.
8714 # Check whether --enable-lto was given.
8715 if test "${enable_lto+set}" = set; then :
8716 enableval
=$enable_lto; enable_lto
=$enableval
8718 enable_lto
=yes; default_enable_lto
=yes
8727 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8728 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8729 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8738 if test $target_elf = yes; then :
8739 # ELF platforms build the lto-plugin always.
8740 build_lto_plugin
=yes
8743 if test x
"$default_enable_lto" = x
"yes" ; then
8745 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8746 # On other non-ELF platforms, LTO has yet to be validated.
8750 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8751 # It would also be nice to check the binutils support, but we don't
8752 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8753 # warn during gcc/ subconfigure; unless you're bootstrapping with
8754 # -flto it won't be needed until after installation anyway.
8756 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8757 *) if test x
"$enable_lto" = x
"yes"; then
8758 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8763 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8764 # Build it unless LTO was explicitly disabled.
8766 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8773 # Check whether --enable-linker-plugin-configure-flags was given.
8774 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8775 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8777 extra_linker_plugin_configure_flags
=
8781 # Check whether --enable-linker-plugin-flags was given.
8782 if test "${enable_linker_plugin_flags+set}" = set; then :
8783 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8785 extra_linker_plugin_flags
=
8790 # Handle --enable-host-pie
8791 # If host PIE executables are the default (or must be forced on) for some host,
8792 # we must pass that configuration to the gcc directory.
8794 # Check whether --enable-host-pie was given.
8795 if test "${enable_host_pie+set}" = set; then :
8796 enableval
=$enable_host_pie; host_pie
=$enableval
8799 if test x
$host_pie != xyes
; then
8800 # for Darwin20+ this is required.
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8802 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8804 gcc_host_pie
=--enable-host-pie
8811 # Default to PIE (mandatory for aarch64).
8813 gcc_host_pie
=--enable-host-pie
8823 # Enable --enable-host-shared.
8824 # Checked early to determine whether jit is an 'all' language
8825 # Check whether --enable-host-shared was given.
8826 if test "${enable_host_shared+set}" = set; then :
8827 enableval
=$enable_host_shared; host_shared
=$enableval
8829 x86_64-
*-darwin* | aarch64-
*-darwin*)
8830 if test x
$host_shared != xyes
; then
8831 # PIC is the default, and actually cannot be switched off.
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8833 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8837 if test x
$host_pie = xyes
-a x
$host_shared != xyes
; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8839 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8846 # 64B x86_64 and Aarch64 Darwin default to PIC.
8847 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8848 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8849 *-*-darwin*) host_shared
=$host_pie ;;
8857 if test x
$host_shared = xyes
; then
8860 # Since host shared is the default for 64b Darwin, and also enabled for
8861 # host_pie, ensure that we present the PIE flag when host_pie is active.
8862 if test x
$host_pie = xyes
; then
8870 elif test x
$host_pie = xyes
; then
8878 # If we are building PIC/PIE host executables, and we are building dependent
8879 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8882 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8883 host_libs_picflag
='--with-pic'
8887 # By default, C and C++ are the only stage 1 languages.
8888 stage1_languages
=,c
,
8890 # Target libraries that we bootstrap.
8891 bootstrap_target_libs
=,target-libgcc
,
8893 # Figure out what language subdirectories are present.
8894 # Look if the user specified --enable-languages="..."; if not, use
8895 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8897 # NB: embedded tabs in this IF block -- do not untabify
8898 if test -d ${srcdir}/gcc
; then
8899 if test x
"${enable_languages+set}" != xset
; then
8900 if test x
"${LANGUAGES+set}" = xset
; then
8901 enable_languages
="${LANGUAGES}"
8902 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8904 enable_languages
=default
8907 if test x
"${enable_languages}" = x ||
8908 test x
"${enable_languages}" = xyes
;
8910 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8914 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8916 # 'f95' is the old name for the 'fortran' language. We issue a warning
8917 # and make the substitution.
8918 case ,${enable_languages}, in
8920 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8921 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8925 # If bootstrapping, C++ must be enabled.
8926 case ",$enable_languages,:$enable_bootstrap" in
8929 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8930 enable_languages
="${enable_languages},c++"
8932 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8937 # First scan to see if an enabled language requires some other language.
8938 # We assume that a given config-lang.in will list all the language
8939 # front ends it requires, even if some are required indirectly.
8940 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8941 case ${lang_frag} in
8943 # The odd quoting in the next line works around
8944 # an apparent bug in bash 1.12 on linux.
8945 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8947 # From the config-lang.in, get $language, $lang_requires, and
8948 # $lang_requires_boot_languages.
8951 lang_requires_boot_languages
=
8952 # set srcdir during sourcing lang_frag to the gcc dir.
8953 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8954 # polutes this shell
8955 saved_srcdir
=${srcdir}
8956 srcdir
=${srcdir}/gcc .
${lang_frag}
8957 srcdir
=${saved_srcdir}
8958 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8959 case ,${enable_languages}, in
8964 echo " \`$other' language required by \`$language'; enabling" 1>&2
8965 enable_languages
="${enable_languages},${other}"
8969 for other
in ${lang_requires_boot_languages} ; do
8970 if test "$other" != "c"; then
8971 case ,${enable_stage1_languages}, in
8976 case ,${enable_languages}, in
8978 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8979 enable_stage1_languages
="$enable_stage1_languages,${other}"
8990 new_enable_languages
=,c
,
8992 # If LTO is enabled, add the LTO front end.
8993 if test "$enable_lto" = "yes" ; then
8994 case ,${enable_languages}, in
8996 *) enable_languages
="${enable_languages},lto" ;;
8998 if test "${build_lto_plugin}" = "yes" ; then
8999 configdirs
="$configdirs lto-plugin"
9003 # If we're building an offloading compiler, add the LTO front end.
9004 if test x
"$enable_as_accelerator_for" != x
; then
9005 case ,${enable_languages}, in
9007 *) enable_languages
="${enable_languages},lto" ;;
9011 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9012 potential_languages
=,c
,
9014 enabled_target_libs
=
9015 disabled_target_libs
=
9017 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
9018 case ${lang_frag} in
9020 # The odd quoting in the next line works around
9021 # an apparent bug in bash 1.12 on linux.
9022 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
9024 # From the config-lang.in, get $language, $target_libs,
9025 # $lang_dirs, $boot_language, and $build_by_default
9031 build_by_default
=yes
9032 # set srcdir during sourcing. See above about save & restore
9033 saved_srcdir
=${srcdir}
9034 srcdir
=${srcdir}/gcc .
${lang_frag}
9035 srcdir
=${saved_srcdir}
9036 if test x
${language} = x
; then
9037 echo "${lang_frag} doesn't set \$language." 1>&2
9041 if test "$language" = "c++"; then
9046 # C is always enabled, so no need to add it again
9047 if test "$language" != "c"; then
9048 case ,${enable_languages}, in
9050 # Language was explicitly selected; include it
9054 # All languages are enabled
9058 # 'default' was selected, select it if it is a default language
9059 add_this_lang
=${build_by_default}
9064 # Disable languages that need other directories if these aren't available.
9065 for i
in $subdir_requires; do
9066 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9067 case ${add_this_lang} in
9069 # Specifically requested language; tell them.
9070 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9074 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9075 add_this_lang
=unsupported
9079 add_this_lang
=unsupported
9084 # Disable Ada if no preexisting GNAT is available.
9085 case ${add_this_lang}:${language}:${have_gnat} in
9087 # Specifically requested language; tell them.
9088 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9092 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9093 add_this_lang
=unsupported
9097 add_this_lang
=unsupported
9101 # Disable D if no preexisting GDC is available.
9102 case ${add_this_lang}:${language}:${have_gdc} in
9104 # Specifically requested language; tell them.
9105 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9109 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9110 add_this_lang
=unsupported
9114 add_this_lang
=unsupported
9118 # Disable jit if -enable-host-shared not specified
9119 # but not if building for Mingw. All code in Windows
9120 # is position independent code (PIC).
9124 case ${add_this_lang}:${language}:${host_shared} in
9126 # PR jit/64780: explicitly specify --enable-host-shared
9128 Enabling language \"jit\" requires --enable-host-shared.
9130 --enable-host-shared typically slows the rest of the compiler down by
9131 a few %, so you must explicitly enable it.
9133 If you want to build both the jit and the regular compiler, it is often
9134 best to do this via two separate configure/builds, in separate
9135 directories, to avoid imposing the performance cost of
9136 --enable-host-shared on the regular compiler." "$LINENO" 5
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9140 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9141 add_this_lang
=unsupported
9145 add_this_lang
=unsupported
9151 # Disable Rust if cargo is unavailable.
9152 case ${add_this_lang}:${language}:${have_cargo} in
9154 # Specifically requested language; tell them.
9155 as_fn_error $?
"cargo is required to build $language" "$LINENO" 5
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
9159 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
9160 add_this_lang
=unsupported
9164 add_this_lang
=unsupported
9169 # Disable a language that is unsupported by the target.
9170 case "${add_this_lang}: $unsupported_languages " in
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9175 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9176 add_this_lang
=unsupported
9180 case $add_this_lang in
9182 # Remove language-dependent dirs.
9183 disabled_target_libs
="$disabled_target_libs $target_libs"
9184 noconfigdirs
="$noconfigdirs $lang_dirs"
9187 # Remove language-dependent dirs; still show language as supported.
9188 disabled_target_libs
="$disabled_target_libs $target_libs"
9189 noconfigdirs
="$noconfigdirs $lang_dirs"
9190 potential_languages
="${potential_languages}${language},"
9193 new_enable_languages
="${new_enable_languages}${language},"
9194 potential_languages
="${potential_languages}${language},"
9195 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9196 enabled_target_libs
="$enabled_target_libs $target_libs"
9197 case "${boot_language}:,$enable_stage1_languages," in
9198 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9199 # Add to (comma-separated) list of stage 1 languages.
9200 case ",$stage1_languages," in
9201 *,$language,* |
,yes, |
,all
,) ;;
9202 *) stage1_languages
="${stage1_languages}${language}," ;;
9204 # We need to bootstrap any supporting libraries.
9205 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9214 # Add target libraries which are only needed for disabled languages
9216 if test -n "$disabled_target_libs"; then
9217 for dir
in $disabled_target_libs; do
9218 case " $enabled_target_libs " in
9220 *) noconfigdirs
="$noconfigdirs $dir" ;;
9225 # Check whether --enable-stage1-languages was given.
9226 if test "${enable_stage1_languages+set}" = set; then :
9227 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9229 # Set it to something that will have no effect in the loop below
9230 enable_stage1_languages
=c
;;
9232 enable_stage1_languages
=`echo $new_enable_languages | \
9233 sed -e "s/^,//" -e "s/,$//" ` ;;
9235 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9236 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9239 # Add "good" languages from enable_stage1_languages to stage1_languages,
9240 # while "bad" languages go in missing_languages. Leave no duplicates.
9241 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9242 case $potential_languages in
9244 case $stage1_languages in
9246 *) stage1_languages
="$stage1_languages$i," ;;
9249 case $missing_languages in
9251 *) missing_languages
="$missing_languages$i," ;;
9258 # Remove leading/trailing commas that were added for simplicity
9259 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9260 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9261 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9262 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9264 if test "x$missing_languages" != x
; then
9266 The following requested languages could not be built: ${missing_languages}
9267 Supported languages are: ${potential_languages}" "$LINENO" 5
9269 if test "x$new_enable_languages" != "x$enable_languages"; then
9270 echo The following languages will be built
: ${new_enable_languages}
9271 enable_languages
="$new_enable_languages"
9275 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9278 # Handle --disable-<component> generically.
9279 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9280 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9281 varname
=`echo $dirname | sed -e s/+/_/g`
9282 if eval test x\
${enable_${varname}} "=" xno
; then
9283 noconfigdirs
="$noconfigdirs $dir"
9287 # Check for Boehm's garbage collector
9288 # Check whether --enable-objc-gc was given.
9289 if test "${enable_objc_gc+set}" = set; then :
9290 enableval
=$enable_objc_gc;
9294 # Check whether --with-target-bdw-gc was given.
9295 if test "${with_target_bdw_gc+set}" = set; then :
9296 withval
=$with_target_bdw_gc;
9300 # Check whether --with-target-bdw-gc-include was given.
9301 if test "${with_target_bdw_gc_include+set}" = set; then :
9302 withval
=$with_target_bdw_gc_include;
9306 # Check whether --with-target-bdw-gc-lib was given.
9307 if test "${with_target_bdw_gc_lib+set}" = set; then :
9308 withval
=$with_target_bdw_gc_lib;
9312 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9314 $as_echo_n "checking for bdw garbage collector... " >&6; }
9315 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9317 $as_echo "using bdw-gc in default locations" >&6; }
9319 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9320 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9321 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9322 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9325 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9330 # Disable libitm, libsanitizer, libvtv if we're not building C++
9331 case ,${enable_languages}, in
9333 # Disable libitm, libsanitizer if we're not building libstdc++
9334 case "${noconfigdirs}" in
9335 *target-libstdc
++-v3*)
9336 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9342 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9346 case ,${enable_languages}, in
9348 case " ${noconfigdirs} " in
9349 *\ target-libstdc
++-v3\
*)
9350 # Disable target libgrust if we're not building target libstdc++.
9351 noconfigdirs
="$noconfigdirs target-libgrust"
9357 # If gcc/ is not in the source tree then we'll not be building a
9358 # target compiler, assume in that case we don't want to build any
9359 # target libraries or tools.
9361 # This was added primarily for the benefit for binutils-gdb who reuse
9362 # this configure script, but don't always have target tools available.
9363 if test ! -d ${srcdir}/gcc
; then
9364 skipdirs
="${skipdirs} ${target_configdirs}"
9367 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9368 # $build_configdirs and $target_configdirs.
9369 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9372 for dir
in .
$skipdirs $noconfigdirs ; do
9373 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9374 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9375 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9376 if test -r $srcdir/$dirname/configure
; then
9377 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9380 notsupp
="$notsupp $dir"
9384 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9385 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9386 if test -r $srcdir/$dirname/configure
; then
9387 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9390 notsupp
="$notsupp $dir"
9394 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9395 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9396 if test -r $srcdir/$dirname/configure
; then
9397 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9400 notsupp
="$notsupp $dir"
9406 # Quietly strip out all directories which aren't configurable in this tree.
9407 # This relies on all configurable subdirectories being autoconfiscated, which
9409 build_configdirs_all
="$build_configdirs"
9411 for i
in ${build_configdirs_all} ; do
9412 j
=`echo $i | sed -e s/build-//g`
9413 if test -f ${srcdir}/$j/configure
; then
9414 build_configdirs
="${build_configdirs} $i"
9418 configdirs_all
="$configdirs"
9420 for i
in ${configdirs_all} ; do
9421 if test -f ${srcdir}/$i/configure
; then
9422 configdirs
="${configdirs} $i"
9426 target_configdirs_all
="$target_configdirs"
9428 for i
in ${target_configdirs_all} ; do
9429 j
=`echo $i | sed -e s/target-//g`
9430 if test -f ${srcdir}/$j/configure
; then
9431 target_configdirs
="${target_configdirs} $i"
9435 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9436 # so we have to add it after the preceding checks.
9437 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9439 case " $configdirs " in
9441 # If we can build libiberty, we can also build libiberty-linker-plugin.
9442 configdirs
="$configdirs libiberty-linker-plugin"
9443 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9444 --with-libiberty=../libiberty-linker-plugin";;
9446 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9450 # Sometimes we have special requirements for the host libiberty.
9451 extra_host_libiberty_configure_flags
=
9452 case " $configdirs " in
9453 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9454 # When these are to be built as shared libraries, the same applies to
9456 extra_host_libiberty_configure_flags
=--enable-shared
9461 # Sometimes we have special requirements for the host zlib.
9462 extra_host_zlib_configure_flags
=
9463 case " $configdirs " in
9465 # When bfd is to be built as a shared library, the same applies to
9467 if test "$enable_shared" = "yes"; then
9468 extra_host_zlib_configure_flags
=--enable-host-shared
9474 # Produce a warning message for the subdirs we can't configure.
9475 # This isn't especially interesting in the Cygnus tree, but in the individual
9476 # FSF releases, it's important to let people know when their machine isn't
9477 # supported by the one or two programs in a package.
9479 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9480 # If $appdirs is non-empty, at least one of those directories must still
9481 # be configured, or we error out. (E.g., if the gas release supports a
9482 # specified target in some subdirs but not the gas subdir, we shouldn't
9483 # pretend that all is well.)
9484 if test -n "$appdirs" ; then
9485 for dir
in $appdirs ; do
9486 if test -r $dir/Makefile.
in ; then
9487 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9491 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9497 if test -n "$appdirs" ; then
9498 echo "*** This configuration is not supported by this package." 1>&2
9502 # Okay, some application will build, or we don't care to check. Still
9503 # notify of subdirs not getting built.
9504 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9505 echo " ${notsupp}" 1>&2
9506 echo " (Any other directories should still work fine.)" 1>&2
9514 # To find our prefix, in gcc_cv_tool_prefix.
9516 # The user is always right.
9517 if test "${PATH_SEPARATOR+set}" != set; then
9518 echo "#! /bin/sh" >conf$$.sh
9519 echo "exit 0" >>conf$$.sh
9521 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9530 get_gcc_base_ver
="cat"
9532 # Check whether --with-gcc-major-version-only was given.
9533 if test "${with_gcc_major_version_only+set}" = set; then :
9534 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9535 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9545 if test "x$exec_prefix" = xNONE
; then
9546 if test "x$prefix" = xNONE
; then
9547 gcc_cv_tool_prefix
=$ac_default_prefix
9549 gcc_cv_tool_prefix
=$prefix
9552 gcc_cv_tool_prefix
=$exec_prefix
9555 # If there is no compiler in the tree, use the PATH only. In any
9556 # case, if there is no compiler in the tree nobody should use
9557 # AS_FOR_TARGET and LD_FOR_TARGET.
9558 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9559 if test x
$with_gcc_major_version_only = xyes
; then
9560 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9562 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9564 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9565 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9566 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9567 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9568 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9569 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9574 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9575 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9583 # Check whether --with-build-sysroot was given.
9584 if test "${with_build_sysroot+set}" = set; then :
9585 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9586 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9589 SYSROOT_CFLAGS_FOR_TARGET
=
9595 # Check whether --with-debug-prefix-map was given.
9596 if test "${with_debug_prefix_map+set}" = set; then :
9597 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9598 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9599 for debug_map
in $withval; do
9600 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9604 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9609 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9610 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9611 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9612 # We want to ensure that TARGET libraries (which we know are built with
9613 # gcc) are built with "-O2 -g", so include those options when setting
9614 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9615 if test "x$CFLAGS_FOR_TARGET" = x
; then
9616 if test "x${is_cross_compiler}" = xyes
; then
9617 CFLAGS_FOR_TARGET
="-g -O2"
9619 CFLAGS_FOR_TARGET
=$CFLAGS
9622 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9625 *" -g "* |
*" -g3 "*) ;;
9626 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9632 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9633 if test "x${is_cross_compiler}" = xyes
; then
9634 CXXFLAGS_FOR_TARGET
="-g -O2"
9636 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9637 case " $CXXFLAGS " in
9639 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9641 case " $CXXFLAGS " in
9642 *" -g "* |
*" -g3 "*) ;;
9643 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9651 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9652 # the named directory are copied to $(tooldir)/sys-include.
9653 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9654 if test x
${is_cross_compiler} = xno
; then
9655 echo 1>&2 '***' --with-headers is only supported when cross compiling
9658 if test x
"${with_headers}" != xyes
; then
9659 x
=${gcc_cv_tool_prefix}
9660 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9664 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9665 # the name directories are copied to $(tooldir)/lib. Multiple directories
9667 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9668 if test x
${is_cross_compiler} = xno
; then
9669 echo 1>&2 '***' --with-libs is only supported when cross compiling
9672 if test x
"${with_libs}" != xyes
; then
9673 # Copy the libraries in reverse order, so that files in the first named
9674 # library override files in subsequent libraries.
9675 x
=${gcc_cv_tool_prefix}
9676 for l
in ${with_libs}; do
9677 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9682 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9684 # This is done by determining whether or not the appropriate directory
9685 # is available, and by checking whether or not specific configurations
9686 # have requested that this magic not happen.
9688 # The command line options always override the explicit settings in
9689 # configure.ac, and the settings in configure.ac override this magic.
9691 # If the default for a toolchain is to use GNU as and ld, and you don't
9692 # want to do that, then you should use the --without-gnu-as and
9693 # --without-gnu-ld options for the configure script. Similarly, if
9694 # the default is to use the included zlib and you don't want to do that,
9695 # you should use the --with-system-zlib option for the configure script.
9697 if test x
${use_gnu_as} = x
&&
9698 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9700 extra_host_args
="$extra_host_args --with-gnu-as"
9703 if test x
${use_gnu_ld} = x
&&
9704 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9706 extra_host_args
="$extra_host_args --with-gnu-ld"
9709 if test x
${use_included_zlib} = x
&&
9710 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9713 with_system_zlib
=yes
9714 extra_host_args
="$extra_host_args --with-system-zlib"
9717 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9718 # can detect this case.
9720 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9722 extra_host_args
="$extra_host_args --with-newlib"
9725 # Handle ${copy_dirs}
9726 set fnord
${copy_dirs}
9728 while test $# != 0 ; do
9729 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9732 echo Copying
$1 to
$2
9734 # Use the install script to create the directory and all required
9735 # parent directories.
9736 if test -d $2 ; then
9740 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9743 # Copy the directory, assuming we have tar.
9744 # FIXME: Should we use B in the second tar? Not all systems support it.
9745 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9747 # It is the responsibility of the user to correctly adjust all
9748 # symlinks. If somebody can figure out how to handle them correctly
9749 # here, feel free to add the code.
9756 # Determine a target-dependent exec_prefix that the installed
9757 # gcc will search in. Keep this list sorted by triplet, with
9758 # the *-*-osname triplets last.
9761 i
[34567]86-pc-msdosdjgpp*)
9762 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9767 md_exec_prefix
=/usr
/ccs
/bin
9771 extra_arflags_for_target
=
9772 extra_nmflags_for_target
=
9773 extra_ranlibflags_for_target
=
9774 target_makefile_frag
=/dev
/null
9777 target_makefile_frag
="config/mt-spu"
9779 loongarch
*-*linux
* | loongarch
*-*gnu
*)
9780 target_makefile_frag
="config/mt-loongarch-gnu"
9783 target_makefile_frag
="config/mt-loongarch-elf"
9785 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9786 target_makefile_frag
="config/mt-sde"
9788 mipsisa
*-*-elfoabi*)
9789 target_makefile_frag
="config/mt-mips-elfoabi"
9791 mips
*-*-*linux
* | mips
*-*-gnu*)
9792 target_makefile_frag
="config/mt-mips-gnu"
9795 target_makefile_frag
="config/mt-nios2-elf"
9798 target_makefile_frag
="config/mt-android"
9800 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9801 target_makefile_frag
="config/mt-gnu"
9803 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9804 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9805 # commands to handle both 32-bit and 64-bit objects. These flags are
9806 # harmless if we're using GNU nm or ar.
9807 extra_arflags_for_target
=" -X32_64"
9808 extra_nmflags_for_target
=" -B -X32_64"
9812 alphaieee_frag
=/dev
/null
9815 # This just makes sure to use the -mieee option to build target libs.
9816 # This should probably be set individually by each library.
9817 alphaieee_frag
="config/mt-alphaieee"
9821 # If --enable-target-optspace always use -Os instead of -O2 to build
9822 # the target libraries, similarly if it is not specified, use -Os
9823 # on selected platforms.
9824 ospace_frag
=/dev
/null
9825 case "${enable_target_optspace}:${target}" in
9827 ospace_frag
="config/mt-ospace"
9830 ospace_frag
="config/mt-d30v"
9832 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9833 ospace_frag
="config/mt-ospace"
9838 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9842 # Some systems (e.g., one of the i386-aix systems the gas testers are
9843 # using) don't handle "\$" correctly, so don't use it here.
9844 tooldir
='${exec_prefix}'/${target_noncanonical}
9845 build_tooldir
=${tooldir}
9847 # Create a .gdbinit file which runs the one in srcdir
9848 # and tells GDB to look there for source files.
9850 if test -r ${srcdir}/.gdbinit
; then
9853 *) cat > .
/.gdbinit
<<EOF
9857 source ${srcdir}/.gdbinit
9863 # Make sure that the compiler is able to generate an executable. If it
9864 # can't, we are probably in trouble. We don't care whether we can run the
9865 # executable--we might be using a cross compiler--we only care whether it
9866 # can be created. At this point the main configure script has set CC.
9868 echo "int main () { return 0; }" > conftest.c
9869 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9870 if test $?
= 0 ; then
9871 if test -s conftest ||
test -s conftest.exe
; then
9877 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9878 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9885 # Decide which environment variable is used to find dynamic libraries.
9887 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9888 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9889 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9890 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9893 # On systems where the dynamic library environment variable is PATH,
9894 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9895 # built executables to PATH.
9896 if test "$RPATH_ENVVAR" = PATH
; then
9897 GCC_SHLIB_SUBDIR
=/shlib
9902 # Adjust the toplevel makefile according to whether bootstrap was selected.
9903 case $enable_bootstrap in
9905 bootstrap_suffix
=bootstrap
9906 BUILD_CONFIG
=bootstrap-debug
9909 bootstrap_suffix
=no-bootstrap
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9915 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9918 # Check whether --with-build-config was given.
9919 if test "${with_build_config+set}" = set; then :
9920 withval
=$with_build_config; case $with_build_config in
9921 yes) with_build_config
= ;;
9922 no
) with_build_config
= BUILD_CONFIG
= ;;
9927 if test "x${with_build_config}" != x
; then
9928 BUILD_CONFIG
=$with_build_config
9930 case $BUILD_CONFIG in
9932 if echo "int f (void) { return 0; }" > conftest.c
&&
9933 ${CC} -c conftest.c
&&
9934 mv conftest.o conftest.o.g0
&&
9935 ${CC} -c -g conftest.c
&&
9936 mv conftest.o conftest.o.g
&&
9937 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9942 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9947 $as_echo "$BUILD_CONFIG" >&6; }
9950 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9952 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9953 # Check whether --enable-vtable-verify was given.
9954 if test "${enable_vtable_verify+set}" = set; then :
9955 enableval
=$enable_vtable_verify; case "$enableval" in
9956 yes) enable_vtable_verify
=yes ;;
9957 no
) enable_vtable_verify
=no
;;
9958 *) enable_vtable_verify
=no
;;
9961 enable_vtable_verify
=no
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9965 $as_echo "$enable_vtable_verify" >&6; }
9967 # Record target_configdirs and the configure arguments for target and
9968 # build configuration in Makefile.
9969 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9970 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9971 bootstrap_fixincludes
=no
9973 # If we are building libgomp, bootstrap it.
9974 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9975 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9978 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9979 # or bootstrap-ubsan, bootstrap it.
9980 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9981 case "$BUILD_CONFIG" in
9982 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9983 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9984 bootstrap_fixincludes
=yes
9989 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9990 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9991 test "$enable_vtable_verify" != no
; then
9992 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9995 # If we are building libatomic and the list of enabled languages includes the
9996 # D frontend, bootstrap it.
9997 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9998 case ,${enable_languages}, in
10000 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
10005 # Determine whether gdb needs tk/tcl or not.
10006 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
10007 # and in that case we want gdb to be built without tk. Ugh!
10008 # In fact I believe gdb is the *only* package directly dependent on tk,
10009 # so we should be able to put the 'maybe's in unconditionally and
10010 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
10011 # 100% sure that that's safe though.
10013 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
10014 case "$enable_gdbtk" in
10018 GDB_TK
="${gdb_tk}" ;;
10020 # Only add the dependency on gdbtk when GDBtk is part of the gdb
10021 # distro. Eventually someone will fix this and move Insight, nee
10022 # gdbtk to a separate directory.
10023 if test -d ${srcdir}/gdb
/gdbtk
; then
10030 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
10031 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
10033 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
10034 # else does, only include them if one of these is built. The Makefile
10035 # provides the ordering, so it's enough here to add to the list.
10036 case " ${configdirs} " in
10038 configdirs
="${configdirs} gnulib gdbsupport"
10041 configdirs
="${configdirs} gnulib gdbsupport"
10044 configdirs
="${configdirs} gnulib"
10048 # Strip out unwanted targets.
10050 # While at that, we remove Makefiles if we were started for recursive
10051 # configuration, so that the top-level Makefile reconfigures them,
10052 # like we used to do when configure itself was recursive.
10054 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
10055 # but now we're fixing up the Makefile ourselves with the additional
10056 # commands passed to AC_CONFIG_FILES. Use separate variables
10057 # extrasub-{build,host,target} not because there is any reason to split
10058 # the substitutions up that way, but only to remain below the limit of
10059 # 99 commands in a script, for HP-UX sed.
10061 # Do not nest @if/@endif or @unless/@endunless pairs, because
10062 # configure will not warn you at all.
10064 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
10065 yes:yes:*\ gold\
*:*,c
++,*) ;;
10066 yes:yes:*\ gold\
*:*)
10067 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
10072 for module
in ${build_configdirs} ; do
10073 if test -z "${no_recursion}" \
10074 && test -f ${build_subdir}/${module}/Makefile
; then
10075 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
10076 rm -f ${build_subdir}/${module}/Makefile
10078 extrasub_build
="$extrasub_build
10079 /^@if build-$module\$/d
10080 /^@endif build-$module\$/d
10081 /^@unless build-$module\$/,/^@endunless build-$module\$/d
10082 /^@if build-$module-$bootstrap_suffix\$/d
10083 /^@endif build-$module-$bootstrap_suffix\$/d
10084 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
10087 for module
in ${configdirs} ; do
10088 if test -z "${no_recursion}"; then
10089 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
10090 if test -f ${file}; then
10091 echo 1>&2 "*** removing ${file} to force reconfigure"
10096 case ${module},${bootstrap_fixincludes} in
10097 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
10098 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
10100 extrasub_host
="$extrasub_host
10102 /^@endif $module\$/d
10103 /^@unless $module\$/,/^@endunless $module\$/d
10104 /^@if $module-$host_bootstrap_suffix\$/d
10105 /^@endif $module-$host_bootstrap_suffix\$/d
10106 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
10109 for module
in ${target_configdirs} ; do
10110 if test -z "${no_recursion}" \
10111 && test -f ${target_subdir}/${module}/Makefile
; then
10112 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
10113 rm -f ${target_subdir}/${module}/Makefile
10116 # We only bootstrap target libraries listed in bootstrap_target_libs.
10117 case $bootstrap_target_libs in
10118 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
10119 *) target_bootstrap_suffix
=no-bootstrap
;;
10122 extrasub_target
="$extrasub_target
10123 /^@if target-$module\$/d
10124 /^@endif target-$module\$/d
10125 /^@unless target-$module\$/,/^@endunless target-$module\$/d
10126 /^@if target-$module-$target_bootstrap_suffix\$/d
10127 /^@endif target-$module-$target_bootstrap_suffix\$/d
10128 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
10131 # Do the final fixup along with target modules.
10132 extrasub_target
="$extrasub_target
10133 /^@if /,/^@endif /d
10137 if test "$enable_pgo_build" != "no"; then
10138 extrasub_build
="$extrasub_build
10139 /^@if pgo-build\$/d
10140 /^@endif pgo-build\$/d"
10143 # Create the serialization dependencies. This uses a temporary file.
10145 # Check whether --enable-serial-configure was given.
10146 if test "${enable_serial_configure+set}" = set; then :
10147 enableval
=$enable_serial_configure;
10151 case ${enable_serial_configure} in
10153 enable_serial_build_configure
=yes
10154 enable_serial_host_configure
=yes
10155 enable_serial_target_configure
=yes
10159 # These force 'configure's to be done one at a time, to avoid problems
10160 # with contention over a shared config.cache.
10162 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
10163 echo '# serdep.tmp' > serdep.tmp
10166 test "x${enable_serial_build_configure}" = xyes
&&
10167 for item
in ${build_configdirs} ; do
10170 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
10175 test "x${enable_serial_host_configure}" = xyes
&&
10176 for item
in ${configdirs} ; do
10179 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
10184 test "x${enable_serial_target_configure}" = xyes
&&
10185 for item
in ${target_configdirs} ; do
10188 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
10192 serialization_dependencies
=serdep.tmp
10195 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10196 # target, nonopt, and variable assignments. These are the ones we
10197 # might not want to pass down to subconfigures. The exception being
10198 # --cache-file=/dev/null, which is used to turn off the use of cache
10199 # files altogether, and which should be passed on to subconfigures.
10200 # Also strip program-prefix, program-suffix, and program-transform-name,
10201 # so that we can pass down a consistent program-transform-name.
10207 eval "set -- $ac_configure_args"
10210 if test X
"$skip_next" = X
"yes"; then
10214 if test X
"$keep_next" = X
"yes"; then
10217 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10219 hbaseargs
="$hbaseargs '$ac_arg'"
10220 bbaseargs
="$bbaseargs '$ac_arg'"
10221 tbaseargs
="$tbaseargs '$ac_arg'"
10226 # Handle separated arguments. Based on the logic generated by
10229 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10230 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10231 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10232 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10247 --with-* |
--without-*)
10248 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10252 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10255 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10258 lib
=`echo "$libopt" | sed 's,[-_]prefix$,,'`
10261 lib
=`echo "$libopt" | sed 's,[-_]type$,,'`
10270 mpc | mpfr | gmp | isl
)
10271 # If we're processing --with-$lib, --with-$lib-include or
10272 # --with-$lib-lib, for one of the libs above, and target is
10273 # different from host, don't pass the current argument to any
10274 # target library's configure.
10275 if test x
$is_cross_compiler = xyes
; then
10279 libintl | libiconv
)
10280 # We don't want libintl (and co.) in anything but the host arguments.
10289 --cache-file=/dev
/null | \
10290 -cache-file=/dev
/null
)
10291 # Handled here to avoid the test to skip args below.
10292 hbaseargs
="$hbaseargs '$ac_arg'"
10293 bbaseargs
="$bbaseargs '$ac_arg'"
10294 tbaseargs
="$tbaseargs '$ac_arg'"
10295 # Assert: $separate_arg should always be no.
10296 keep_next
=$separate_arg
10312 -program-prefix* | \
10313 -program-suffix* | \
10314 -program-transform-name* )
10315 skip_next
=$separate_arg
10319 # An option. Add it.
10322 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10324 hbaseargs
="$hbaseargs '$ac_arg'"
10325 if test X
"$skip_barg" = Xno
; then
10326 bbaseargs
="$bbaseargs '$ac_arg'"
10328 if test X
"$skip_targ" = Xno
; then
10329 tbaseargs
="$tbaseargs '$ac_arg'"
10331 keep_next
=$separate_arg
10334 # Either a variable assignment, or a nonopt (triplet). Don't
10335 # pass it down; let the Makefile handle this.
10340 # Remove the initial space we just introduced and, as these will be
10341 # expanded by make, quote '$'.
10342 hbaseargs
=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10343 bbaseargs
=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10345 # Add in --program-transform-name, after --program-prefix and
10346 # --program-suffix have been applied to it. Autoconf has already
10347 # doubled dollar signs and backslashes in program_transform_name; we want
10348 # the backslashes un-doubled, and then the entire thing wrapped in single
10349 # quotes, because this will be expanded first by make and then by the shell.
10350 # Also, because we want to override the logic in subdir configure scripts to
10351 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10352 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10353 ${program_transform_name}
10355 gcc_transform_name
=`cat conftestsed.out`
10356 rm -f conftestsed.out
10357 hbaseargs
="$hbaseargs --program-transform-name='${gcc_transform_name}'"
10358 bbaseargs
="$bbaseargs --program-transform-name='${gcc_transform_name}'"
10359 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10360 if test "$silent" = yes; then
10361 bbaseargs
="$bbaseargs --silent"
10362 hbaseargs
="$hbaseargs --silent"
10363 tbaseargs
="$tbaseargs --silent"
10366 bbaseargs
="$bbaseargs --disable-option-checking"
10367 hbaseargs
="$hbaseargs --disable-option-checking"
10368 tbaseargs
="$tbaseargs --disable-option-checking"
10370 if test "$enable_year2038" = no
; then
10371 baseargs
="$baseargs --disable-year2038"
10372 tbaseargs
="$tbaseargs --disable-year2038"
10375 # Record and document user additions to sub configure arguments.
10380 # For the build-side libraries, we just need to pretend we're native,
10381 # and not use the same cache file. Multilibs are neither needed nor
10382 # desired. We can't even use the same cache file for all build-side
10383 # libraries, as they're compiled differently; some with C, some with
10384 # C++ or with different feature-enabling options.
10385 build_configargs
="$build_configargs --cache-file=./config.cache ${bbaseargs}"
10387 # For host modules, accept cache file option, or specification as blank.
10388 case "${cache_file}" in
10390 cache_file_option
="" ;;
10391 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10392 cache_file_option
="--cache-file=${cache_file}" ;;
10394 cache_file_option
="--cache-file=../${cache_file}" ;;
10397 # Host dirs don't like to share a cache file either, horribly enough.
10398 # This seems to be due to autoconf 2.5x stupidity.
10399 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
10401 target_configargs
="$target_configargs ${tbaseargs}"
10403 # Passing a --with-cross-host argument lets the target libraries know
10404 # whether they are being built with a cross-compiler or being built
10405 # native. However, it would be better to use other mechanisms to make the
10406 # sorts of decisions they want to make on this basis. Please consider
10407 # this option to be deprecated. FIXME.
10408 if test x
${is_cross_compiler} = xyes
; then
10409 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10412 # Special user-friendly check for native x86_64-linux build, if
10413 # multilib is not explicitly enabled.
10414 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10415 x86_64-
*linux
*:yes:$build:$build:)
10416 # Make sure we have a development environment that handles 32-bit
10418 echo "int main () { return 0; }" > conftest.c
10419 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10420 if test $?
= 0 ; then
10421 if test -s conftest ||
test -s conftest.exe
; then
10426 if test x
${dev64} != xyes
; then
10427 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
10432 # Default to --enable-multilib.
10433 if test x
${enable_multilib} = x
; then
10434 target_configargs
="--enable-multilib ${target_configargs}"
10437 # Pass --with-newlib if appropriate. Note that target_configdirs has
10438 # changed from the earlier setting of with_newlib.
10439 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10440 target_configargs
="--with-newlib ${target_configargs}"
10443 # Different target subdirs use different values of certain variables
10444 # (notably CXX). Worse, multilibs use *lots* of different values.
10445 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10446 # it doesn't automatically accept command-line overrides of them.
10447 # This means it's not safe for target subdirs to share a cache file,
10448 # which is disgusting, but there you have it. Hopefully this can be
10449 # fixed in future. It's still worthwhile to use a cache file for each
10450 # directory. I think.
10452 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10453 # We need to pass --target, as newer autoconf's requires consistency
10454 # for target_alias and gcc doesn't manage it consistently.
10455 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10458 case " $target_configdirs " in
10460 case " $target_configargs " in
10461 *" --with-newlib "*)
10464 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10468 # If we're not building GCC, don't discard standard headers.
10469 if test -d ${srcdir}/gcc
; then
10470 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10472 if test "${build}" != "${host}"; then
10473 # On Canadian crosses, CC_FOR_TARGET will have already been set
10474 # by `configure', so we won't have an opportunity to add -Bgcc/
10475 # to it. This is right: we don't want to search that directory
10476 # for binaries, but we want the header files in there, so add
10478 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10480 # Someone might think of using the pre-installed headers on
10481 # Canadian crosses, in case the installed compiler is not fully
10482 # compatible with the compiler being built. In this case, it
10483 # would be better to flag an error than risking having
10484 # incompatible object files being constructed. We can't
10485 # guarantee that an error will be flagged, but let's hope the
10486 # compiler will do it, when presented with incompatible header
10491 case "${target}-${is_cross_compiler}" in
10492 i
[3456789]86-*-linux*-no)
10493 # Here host == target, so we don't need to build gcc,
10494 # so we don't want to discard standard headers.
10495 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10498 # If we're building newlib, use its generic headers last, but search
10499 # for any libc-related directories first (so make it the last -B
10501 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10503 # If we're building libgloss, find the startup file, simulator library
10504 # and linker script.
10505 case " $target_configdirs " in
10507 # Look for startup file, simulator library and maybe linker script.
10508 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10509 # Look for libnosys.a in case the target needs it.
10510 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10511 # Most targets have the linker script in the source directory.
10512 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10523 x86_64-
*mingw
* |
*-w64-mingw*)
10524 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10525 # however, use a symlink named 'mingw' in ${prefix} .
10526 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10529 # MinGW can't be handled as Cygwin above since it does not use newlib.
10530 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'
10534 # Allow the user to override the flags for
10535 # our build compiler if desired.
10536 if test x
"${build}" = x
"${host}" ; then
10537 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10538 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10539 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10540 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10543 # On Canadian crosses, we'll be searching the right directories for
10544 # the previously-installed cross compiler, so don't bother to add
10545 # flags for directories within the install tree of the compiler
10546 # being built; programs in there won't even run.
10547 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10548 # Search for pre-installed headers if nothing else fits.
10549 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10552 if test "x
${use_gnu_ld}" = x &&
10553 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10554 # Arrange for us to find uninstalled linker scripts.
10555 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10558 # Search for other target-specific linker scripts and such.
10559 case "${target}" in
10561 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10563 # The VxWorks support for shared libraries is getting in
10564 # incrementally. Make sure it doesn't get activated implicitly:
10566 if test "${enable_shared-unset}" = unset ; then
10568 # So the build of libraries knows ...
10569 target_configargs="${target_configargs} --disable-shared"
10571 host_configargs="${host_configargs} --disable-shared"
10576 # Makefile fragments.
10577 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10579 eval fragval=\$$frag
10580 if test $fragval != /dev/null; then
10581 eval $frag=${srcdir}/$fragval
10589 # Miscellanea: directories, flags, etc.
10598 # Build module lists & subconfigure args.
10602 # Host module lists & subconfigure args.
10607 # Target module lists & subconfigure args.
10632 # Generate default definitions for YACC, M4, LEX and other programs that run
10633 # on the build machine. These are used if the Makefile can't locate these
10634 # programs in objdir.
10635 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10637 for ac_prog in 'bison -y' byacc yacc
10639 # Extract the first word of "$ac_prog", so it can be a program name with args.
10640 set dummy $ac_prog; ac_word=$2
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10642 $as_echo_n "checking
for $ac_word...
" >&6; }
10643 if ${ac_cv_prog_YACC+:} false; then :
10644 $as_echo_n "(cached
) " >&6
10646 if test -n "$YACC"; then
10647 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650 for as_dir in $PATH
10653 test -z "$as_dir" && as_dir=.
10654 for ac_exec_ext in '' $ac_executable_extensions; do
10655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10656 ac_cv_prog_YACC="$ac_prog"
10657 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10666 YACC=$ac_cv_prog_YACC
10667 if test -n "$YACC"; then
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10669 $as_echo "$YACC" >&6; }
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10672 $as_echo "no
" >&6; }
10676 test -n "$YACC" && break
10678 test -n "$YACC" || YACC="$MISSING bison
-y"
10680 case " $build_configdirs " in
10681 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10684 for ac_prog in bison
10686 # Extract the first word of "$ac_prog", so it can be a program name with args.
10687 set dummy $ac_prog; ac_word=$2
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10689 $as_echo_n "checking
for $ac_word...
" >&6; }
10690 if ${ac_cv_prog_BISON+:} false; then :
10691 $as_echo_n "(cached
) " >&6
10693 if test -n "$BISON"; then
10694 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697 for as_dir in $PATH
10700 test -z "$as_dir" && as_dir=.
10701 for ac_exec_ext in '' $ac_executable_extensions; do
10702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10703 ac_cv_prog_BISON="$ac_prog"
10704 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10713 BISON=$ac_cv_prog_BISON
10714 if test -n "$BISON"; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10716 $as_echo "$BISON" >&6; }
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10719 $as_echo "no
" >&6; }
10723 test -n "$BISON" && break
10725 test -n "$BISON" || BISON="$MISSING bison
"
10727 case " $build_configdirs " in
10728 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10731 for ac_prog in gm4 gnum4 m4
10733 # Extract the first word of "$ac_prog", so it can be a program name with args.
10734 set dummy $ac_prog; ac_word=$2
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10736 $as_echo_n "checking
for $ac_word...
" >&6; }
10737 if ${ac_cv_prog_M4+:} false; then :
10738 $as_echo_n "(cached
) " >&6
10740 if test -n "$M4"; then
10741 ac_cv_prog_M4="$M4" # Let the user override the test.
10743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744 for as_dir in $PATH
10747 test -z "$as_dir" && as_dir=.
10748 for ac_exec_ext in '' $ac_executable_extensions; do
10749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10750 ac_cv_prog_M4="$ac_prog"
10751 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10761 if test -n "$M4"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10763 $as_echo "$M4" >&6; }
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10766 $as_echo "no
" >&6; }
10770 test -n "$M4" && break
10772 test -n "$M4" || M4="$MISSING m4"
10774 case " $build_configdirs " in
10775 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10778 for ac_prog in flex lex
10780 # Extract the first word of "$ac_prog", so it can be a program name with args.
10781 set dummy $ac_prog; ac_word=$2
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10783 $as_echo_n "checking
for $ac_word...
" >&6; }
10784 if ${ac_cv_prog_LEX+:} false; then :
10785 $as_echo_n "(cached
) " >&6
10787 if test -n "$LEX"; then
10788 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791 for as_dir in $PATH
10794 test -z "$as_dir" && as_dir=.
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10797 ac_cv_prog_LEX="$ac_prog"
10798 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10807 LEX=$ac_cv_prog_LEX
10808 if test -n "$LEX"; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10810 $as_echo "$LEX" >&6; }
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10813 $as_echo "no
" >&6; }
10817 test -n "$LEX" && break
10819 test -n "$LEX" || LEX="$MISSING flex
"
10821 case " $build_configdirs " in
10822 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10823 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10826 for ac_prog in flex
10828 # Extract the first word of "$ac_prog", so it can be a program name with args.
10829 set dummy $ac_prog; ac_word=$2
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10831 $as_echo_n "checking
for $ac_word...
" >&6; }
10832 if ${ac_cv_prog_FLEX+:} false; then :
10833 $as_echo_n "(cached
) " >&6
10835 if test -n "$FLEX"; then
10836 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in $PATH
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10845 ac_cv_prog_FLEX="$ac_prog"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10855 FLEX=$ac_cv_prog_FLEX
10856 if test -n "$FLEX"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10858 $as_echo "$FLEX" >&6; }
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10861 $as_echo "no
" >&6; }
10865 test -n "$FLEX" && break
10867 test -n "$FLEX" || FLEX="$MISSING flex
"
10869 case " $build_configdirs " in
10870 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10873 for ac_prog in makeinfo
10875 # Extract the first word of "$ac_prog", so it can be a program name with args.
10876 set dummy $ac_prog; ac_word=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10878 $as_echo_n "checking
for $ac_word...
" >&6; }
10879 if ${ac_cv_prog_MAKEINFO+:} false; then :
10880 $as_echo_n "(cached
) " >&6
10882 if test -n "$MAKEINFO"; then
10883 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in $PATH
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10892 ac_cv_prog_MAKEINFO="$ac_prog"
10893 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10902 MAKEINFO=$ac_cv_prog_MAKEINFO
10903 if test -n "$MAKEINFO"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10905 $as_echo "$MAKEINFO" >&6; }
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10908 $as_echo "no
" >&6; }
10912 test -n "$MAKEINFO" && break
10914 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10916 case " $build_configdirs " in
10917 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10920 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10921 # higher, else we use the "missing
" dummy.
10922 if ${MAKEINFO} --version \
10923 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10926 MAKEINFO="$MISSING makeinfo
"
10932 # FIXME: expect and dejagnu may become build tools?
10934 for ac_prog in expect
10936 # Extract the first word of "$ac_prog", so it can be a program name with args.
10937 set dummy $ac_prog; ac_word=$2
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10939 $as_echo_n "checking
for $ac_word...
" >&6; }
10940 if ${ac_cv_prog_EXPECT+:} false; then :
10941 $as_echo_n "(cached
) " >&6
10943 if test -n "$EXPECT"; then
10944 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947 for as_dir in $PATH
10950 test -z "$as_dir" && as_dir=.
10951 for ac_exec_ext in '' $ac_executable_extensions; do
10952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10953 ac_cv_prog_EXPECT="$ac_prog"
10954 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10963 EXPECT=$ac_cv_prog_EXPECT
10964 if test -n "$EXPECT"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10966 $as_echo "$EXPECT" >&6; }
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10969 $as_echo "no
" >&6; }
10973 test -n "$EXPECT" && break
10975 test -n "$EXPECT" || EXPECT="expect
"
10977 case " $configdirs " in
10979 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10983 for ac_prog in runtest
10985 # Extract the first word of "$ac_prog", so it can be a program name with args.
10986 set dummy $ac_prog; ac_word=$2
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10988 $as_echo_n "checking
for $ac_word...
" >&6; }
10989 if ${ac_cv_prog_RUNTEST+:} false; then :
10990 $as_echo_n "(cached
) " >&6
10992 if test -n "$RUNTEST"; then
10993 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11002 ac_cv_prog_RUNTEST="$ac_prog"
11003 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11012 RUNTEST=$ac_cv_prog_RUNTEST
11013 if test -n "$RUNTEST"; then
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
11015 $as_echo "$RUNTEST" >&6; }
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11018 $as_echo "no
" >&6; }
11022 test -n "$RUNTEST" && break
11024 test -n "$RUNTEST" || RUNTEST="runtest
"
11026 case " $configdirs " in
11028 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
11035 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
11036 ncn_target_tool_prefix=
11037 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
11041 if test -n "$AR"; then
11043 elif test -n "$ac_cv_prog_AR"; then
11047 if test -n "$ac_cv_prog_AR"; then
11048 for ncn_progname in ar; do
11049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11050 set dummy ${ncn_progname}; ac_word=$2
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11052 $as_echo_n "checking
for $ac_word...
" >&6; }
11053 if ${ac_cv_prog_AR+:} false; then :
11054 $as_echo_n "(cached
) " >&6
11056 if test -n "$AR"; then
11057 ac_cv_prog_AR="$AR" # Let the user override the test.
11059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060 for as_dir in $PATH
11063 test -z "$as_dir" && as_dir=.
11064 for ac_exec_ext in '' $ac_executable_extensions; do
11065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11066 ac_cv_prog_AR="${ncn_progname}"
11067 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11077 if test -n "$AR"; then
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11079 $as_echo "$AR" >&6; }
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11082 $as_echo "no
" >&6; }
11089 for ncn_progname in ar; do
11090 if test -n "$ncn_tool_prefix"; then
11091 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11092 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11094 $as_echo_n "checking
for $ac_word...
" >&6; }
11095 if ${ac_cv_prog_AR+:} false; then :
11096 $as_echo_n "(cached
) " >&6
11098 if test -n "$AR"; then
11099 ac_cv_prog_AR="$AR" # Let the user override the test.
11101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102 for as_dir in $PATH
11105 test -z "$as_dir" && as_dir=.
11106 for ac_exec_ext in '' $ac_executable_extensions; do
11107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11108 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
11109 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11119 if test -n "$AR"; then
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11121 $as_echo "$AR" >&6; }
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11124 $as_echo "no
" >&6; }
11129 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11131 set dummy ${ncn_progname}; ac_word=$2
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11133 $as_echo_n "checking
for $ac_word...
" >&6; }
11134 if ${ac_cv_prog_AR+:} false; then :
11135 $as_echo_n "(cached
) " >&6
11137 if test -n "$AR"; then
11138 ac_cv_prog_AR="$AR" # Let the user override the test.
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $PATH
11144 test -z "$as_dir" && as_dir=.
11145 for ac_exec_ext in '' $ac_executable_extensions; do
11146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11147 ac_cv_prog_AR="${ncn_progname}"
11148 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11158 if test -n "$AR"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11160 $as_echo "$AR" >&6; }
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11163 $as_echo "no
" >&6; }
11168 test -n "$ac_cv_prog_AR" && break
11171 if test -z "$ac_cv_prog_AR" ; then
11173 if test $build = $host ; then
11176 AR="${ncn_tool_prefix}$2"
11182 if test -n "$AS"; then
11184 elif test -n "$ac_cv_prog_AS"; then
11188 if test -n "$ac_cv_prog_AS"; then
11189 for ncn_progname in as; do
11190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11191 set dummy ${ncn_progname}; ac_word=$2
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11193 $as_echo_n "checking
for $ac_word...
" >&6; }
11194 if ${ac_cv_prog_AS+:} false; then :
11195 $as_echo_n "(cached
) " >&6
11197 if test -n "$AS"; then
11198 ac_cv_prog_AS="$AS" # Let the user override the test.
11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11204 test -z "$as_dir" && as_dir=.
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11207 ac_cv_prog_AS="${ncn_progname}"
11208 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11218 if test -n "$AS"; then
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11220 $as_echo "$AS" >&6; }
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11223 $as_echo "no
" >&6; }
11230 for ncn_progname in as; do
11231 if test -n "$ncn_tool_prefix"; then
11232 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11233 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11235 $as_echo_n "checking
for $ac_word...
" >&6; }
11236 if ${ac_cv_prog_AS+:} false; then :
11237 $as_echo_n "(cached
) " >&6
11239 if test -n "$AS"; then
11240 ac_cv_prog_AS="$AS" # Let the user override the test.
11242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 for as_dir in $PATH
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
11248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11249 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11250 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11260 if test -n "$AS"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11262 $as_echo "$AS" >&6; }
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11265 $as_echo "no
" >&6; }
11270 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11272 set dummy ${ncn_progname}; ac_word=$2
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11274 $as_echo_n "checking
for $ac_word...
" >&6; }
11275 if ${ac_cv_prog_AS+:} false; then :
11276 $as_echo_n "(cached
) " >&6
11278 if test -n "$AS"; then
11279 ac_cv_prog_AS="$AS" # Let the user override the test.
11281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11282 for as_dir in $PATH
11285 test -z "$as_dir" && as_dir=.
11286 for ac_exec_ext in '' $ac_executable_extensions; do
11287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11288 ac_cv_prog_AS="${ncn_progname}"
11289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11299 if test -n "$AS"; then
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11301 $as_echo "$AS" >&6; }
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11304 $as_echo "no
" >&6; }
11309 test -n "$ac_cv_prog_AS" && break
11312 if test -z "$ac_cv_prog_AS" ; then
11314 if test $build = $host ; then
11317 AS="${ncn_tool_prefix}$2"
11323 if test -n "$DLLTOOL"; then
11324 ac_cv_prog_DLLTOOL=$DLLTOOL
11325 elif test -n "$ac_cv_prog_DLLTOOL"; then
11326 DLLTOOL=$ac_cv_prog_DLLTOOL
11329 if test -n "$ac_cv_prog_DLLTOOL"; then
11330 for ncn_progname in dlltool; do
11331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11332 set dummy ${ncn_progname}; ac_word=$2
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11334 $as_echo_n "checking
for $ac_word...
" >&6; }
11335 if ${ac_cv_prog_DLLTOOL+:} false; then :
11336 $as_echo_n "(cached
) " >&6
11338 if test -n "$DLLTOOL"; then
11339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in $PATH
11345 test -z "$as_dir" && as_dir=.
11346 for ac_exec_ext in '' $ac_executable_extensions; do
11347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11348 ac_cv_prog_DLLTOOL="${ncn_progname}"
11349 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11358 DLLTOOL=$ac_cv_prog_DLLTOOL
11359 if test -n "$DLLTOOL"; then
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11361 $as_echo "$DLLTOOL" >&6; }
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11364 $as_echo "no
" >&6; }
11371 for ncn_progname in dlltool; do
11372 if test -n "$ncn_tool_prefix"; then
11373 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11374 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11376 $as_echo_n "checking
for $ac_word...
" >&6; }
11377 if ${ac_cv_prog_DLLTOOL+:} false; then :
11378 $as_echo_n "(cached
) " >&6
11380 if test -n "$DLLTOOL"; then
11381 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11391 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11400 DLLTOOL=$ac_cv_prog_DLLTOOL
11401 if test -n "$DLLTOOL"; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11403 $as_echo "$DLLTOOL" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11406 $as_echo "no
" >&6; }
11411 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11413 set dummy ${ncn_progname}; ac_word=$2
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11415 $as_echo_n "checking
for $ac_word...
" >&6; }
11416 if ${ac_cv_prog_DLLTOOL+:} false; then :
11417 $as_echo_n "(cached
) " >&6
11419 if test -n "$DLLTOOL"; then
11420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11429 ac_cv_prog_DLLTOOL="${ncn_progname}"
11430 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11439 DLLTOOL=$ac_cv_prog_DLLTOOL
11440 if test -n "$DLLTOOL"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11442 $as_echo "$DLLTOOL" >&6; }
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11445 $as_echo "no
" >&6; }
11450 test -n "$ac_cv_prog_DLLTOOL" && break
11453 if test -z "$ac_cv_prog_DLLTOOL" ; then
11455 if test $build = $host ; then
11458 DLLTOOL="${ncn_tool_prefix}$2"
11464 if test -n "$DSYMUTIL"; then
11465 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11466 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11467 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11470 if test -n "$ac_cv_prog_DSYMUTIL"; then
11471 for ncn_progname in dsymutil; do
11472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11473 set dummy ${ncn_progname}; ac_word=$2
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11475 $as_echo_n "checking
for $ac_word...
" >&6; }
11476 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11477 $as_echo_n "(cached
) " >&6
11479 if test -n "$DSYMUTIL"; then
11480 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483 for as_dir in $PATH
11486 test -z "$as_dir" && as_dir=.
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11489 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11490 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11499 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11500 if test -n "$DSYMUTIL"; then
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11502 $as_echo "$DSYMUTIL" >&6; }
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11505 $as_echo "no
" >&6; }
11512 for ncn_progname in dsymutil; do
11513 if test -n "$ncn_tool_prefix"; then
11514 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11515 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11517 $as_echo_n "checking
for $ac_word...
" >&6; }
11518 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11519 $as_echo_n "(cached
) " >&6
11521 if test -n "$DSYMUTIL"; then
11522 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11532 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11541 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11542 if test -n "$DSYMUTIL"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11544 $as_echo "$DSYMUTIL" >&6; }
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11547 $as_echo "no
" >&6; }
11552 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11554 set dummy ${ncn_progname}; ac_word=$2
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11556 $as_echo_n "checking
for $ac_word...
" >&6; }
11557 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11558 $as_echo_n "(cached
) " >&6
11560 if test -n "$DSYMUTIL"; then
11561 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564 for as_dir in $PATH
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11570 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11571 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11580 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11581 if test -n "$DSYMUTIL"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11583 $as_echo "$DSYMUTIL" >&6; }
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11586 $as_echo "no
" >&6; }
11591 test -n "$ac_cv_prog_DSYMUTIL" && break
11594 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11596 if test $build = $host ; then
11599 DSYMUTIL="${ncn_tool_prefix}$2"
11605 if test -n "$LD"; then
11607 elif test -n "$ac_cv_prog_LD"; then
11611 if test -n "$ac_cv_prog_LD"; then
11612 for ncn_progname in ld; do
11613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11614 set dummy ${ncn_progname}; ac_word=$2
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11616 $as_echo_n "checking
for $ac_word...
" >&6; }
11617 if ${ac_cv_prog_LD+:} false; then :
11618 $as_echo_n "(cached
) " >&6
11620 if test -n "$LD"; then
11621 ac_cv_prog_LD="$LD" # Let the user override the test.
11623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624 for as_dir in $PATH
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11630 ac_cv_prog_LD="${ncn_progname}"
11631 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11641 if test -n "$LD"; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11643 $as_echo "$LD" >&6; }
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11646 $as_echo "no
" >&6; }
11653 for ncn_progname in ld; do
11654 if test -n "$ncn_tool_prefix"; then
11655 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11656 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11658 $as_echo_n "checking
for $ac_word...
" >&6; }
11659 if ${ac_cv_prog_LD+:} false; then :
11660 $as_echo_n "(cached
) " >&6
11662 if test -n "$LD"; then
11663 ac_cv_prog_LD="$LD" # Let the user override the test.
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11669 test -z "$as_dir" && as_dir=.
11670 for ac_exec_ext in '' $ac_executable_extensions; do
11671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11672 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11673 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11683 if test -n "$LD"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11685 $as_echo "$LD" >&6; }
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11688 $as_echo "no
" >&6; }
11693 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11695 set dummy ${ncn_progname}; 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_LD+:} false; then :
11699 $as_echo_n "(cached
) " >&6
11701 if test -n "$LD"; then
11702 ac_cv_prog_LD="$LD" # 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_LD="${ncn_progname}"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11722 if test -n "$LD"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11724 $as_echo "$LD" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11727 $as_echo "no
" >&6; }
11732 test -n "$ac_cv_prog_LD" && break
11735 if test -z "$ac_cv_prog_LD" ; then
11737 if test $build = $host ; then
11740 LD="${ncn_tool_prefix}$2"
11746 if test -n "$LIPO"; then
11747 ac_cv_prog_LIPO=$LIPO
11748 elif test -n "$ac_cv_prog_LIPO"; then
11749 LIPO=$ac_cv_prog_LIPO
11752 if test -n "$ac_cv_prog_LIPO"; then
11753 for ncn_progname in lipo; do
11754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11755 set dummy ${ncn_progname}; ac_word=$2
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11757 $as_echo_n "checking
for $ac_word...
" >&6; }
11758 if ${ac_cv_prog_LIPO+:} false; then :
11759 $as_echo_n "(cached
) " >&6
11761 if test -n "$LIPO"; then
11762 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765 for as_dir in $PATH
11768 test -z "$as_dir" && as_dir=.
11769 for ac_exec_ext in '' $ac_executable_extensions; do
11770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11771 ac_cv_prog_LIPO="${ncn_progname}"
11772 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11781 LIPO=$ac_cv_prog_LIPO
11782 if test -n "$LIPO"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11784 $as_echo "$LIPO" >&6; }
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11787 $as_echo "no
" >&6; }
11794 for ncn_progname in lipo; do
11795 if test -n "$ncn_tool_prefix"; then
11796 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11797 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11799 $as_echo_n "checking
for $ac_word...
" >&6; }
11800 if ${ac_cv_prog_LIPO+:} false; then :
11801 $as_echo_n "(cached
) " >&6
11803 if test -n "$LIPO"; then
11804 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in $PATH
11810 test -z "$as_dir" && as_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11813 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11823 LIPO=$ac_cv_prog_LIPO
11824 if test -n "$LIPO"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11826 $as_echo "$LIPO" >&6; }
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11829 $as_echo "no
" >&6; }
11834 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11836 set dummy ${ncn_progname}; ac_word=$2
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11838 $as_echo_n "checking
for $ac_word...
" >&6; }
11839 if ${ac_cv_prog_LIPO+:} false; then :
11840 $as_echo_n "(cached
) " >&6
11842 if test -n "$LIPO"; then
11843 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11849 test -z "$as_dir" && as_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11852 ac_cv_prog_LIPO="${ncn_progname}"
11853 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11862 LIPO=$ac_cv_prog_LIPO
11863 if test -n "$LIPO"; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11865 $as_echo "$LIPO" >&6; }
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11868 $as_echo "no
" >&6; }
11873 test -n "$ac_cv_prog_LIPO" && break
11876 if test -z "$ac_cv_prog_LIPO" ; then
11878 if test $build = $host ; then
11881 LIPO="${ncn_tool_prefix}$2"
11887 if test -n "$NM"; then
11889 elif test -n "$ac_cv_prog_NM"; then
11893 if test -n "$ac_cv_prog_NM"; then
11894 for ncn_progname in nm; do
11895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11896 set dummy ${ncn_progname}; ac_word=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11898 $as_echo_n "checking
for $ac_word...
" >&6; }
11899 if ${ac_cv_prog_NM+:} false; then :
11900 $as_echo_n "(cached
) " >&6
11902 if test -n "$NM"; then
11903 ac_cv_prog_NM="$NM" # Let the user override the test.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_prog_NM="${ncn_progname}"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11923 if test -n "$NM"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11925 $as_echo "$NM" >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11928 $as_echo "no
" >&6; }
11935 for ncn_progname in nm; do
11936 if test -n "$ncn_tool_prefix"; then
11937 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11938 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11940 $as_echo_n "checking
for $ac_word...
" >&6; }
11941 if ${ac_cv_prog_NM+:} false; then :
11942 $as_echo_n "(cached
) " >&6
11944 if test -n "$NM"; then
11945 ac_cv_prog_NM="$NM" # Let the user override the test.
11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948 for as_dir in $PATH
11951 test -z "$as_dir" && as_dir=.
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11954 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11955 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11965 if test -n "$NM"; then
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11967 $as_echo "$NM" >&6; }
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11970 $as_echo "no
" >&6; }
11975 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11977 set dummy ${ncn_progname}; ac_word=$2
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11979 $as_echo_n "checking
for $ac_word...
" >&6; }
11980 if ${ac_cv_prog_NM+:} false; then :
11981 $as_echo_n "(cached
) " >&6
11983 if test -n "$NM"; then
11984 ac_cv_prog_NM="$NM" # Let the user override the test.
11986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987 for as_dir in $PATH
11990 test -z "$as_dir" && as_dir=.
11991 for ac_exec_ext in '' $ac_executable_extensions; do
11992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11993 ac_cv_prog_NM="${ncn_progname}"
11994 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12004 if test -n "$NM"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12006 $as_echo "$NM" >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12009 $as_echo "no
" >&6; }
12014 test -n "$ac_cv_prog_NM" && break
12017 if test -z "$ac_cv_prog_NM" ; then
12019 if test $build = $host ; then
12022 NM="${ncn_tool_prefix}$2"
12028 if test -n "$RANLIB"; then
12029 ac_cv_prog_RANLIB=$RANLIB
12030 elif test -n "$ac_cv_prog_RANLIB"; then
12031 RANLIB=$ac_cv_prog_RANLIB
12034 if test -n "$ac_cv_prog_RANLIB"; then
12035 for ncn_progname in ranlib; do
12036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12037 set dummy ${ncn_progname}; ac_word=$2
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12039 $as_echo_n "checking
for $ac_word...
" >&6; }
12040 if ${ac_cv_prog_RANLIB+:} false; then :
12041 $as_echo_n "(cached
) " >&6
12043 if test -n "$RANLIB"; then
12044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047 for as_dir in $PATH
12050 test -z "$as_dir" && as_dir=.
12051 for ac_exec_ext in '' $ac_executable_extensions; do
12052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12053 ac_cv_prog_RANLIB="${ncn_progname}"
12054 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12063 RANLIB=$ac_cv_prog_RANLIB
12064 if test -n "$RANLIB"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12066 $as_echo "$RANLIB" >&6; }
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12069 $as_echo "no
" >&6; }
12076 for ncn_progname in ranlib; do
12077 if test -n "$ncn_tool_prefix"; then
12078 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12079 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12081 $as_echo_n "checking
for $ac_word...
" >&6; }
12082 if ${ac_cv_prog_RANLIB+:} false; then :
12083 $as_echo_n "(cached
) " >&6
12085 if test -n "$RANLIB"; then
12086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12092 test -z "$as_dir" && as_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12095 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
12096 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12105 RANLIB=$ac_cv_prog_RANLIB
12106 if test -n "$RANLIB"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12108 $as_echo "$RANLIB" >&6; }
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12111 $as_echo "no
" >&6; }
12116 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
12117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12118 set dummy ${ncn_progname}; ac_word=$2
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12120 $as_echo_n "checking
for $ac_word...
" >&6; }
12121 if ${ac_cv_prog_RANLIB+:} false; then :
12122 $as_echo_n "(cached
) " >&6
12124 if test -n "$RANLIB"; then
12125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128 for as_dir in $PATH
12131 test -z "$as_dir" && as_dir=.
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134 ac_cv_prog_RANLIB="${ncn_progname}"
12135 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12144 RANLIB=$ac_cv_prog_RANLIB
12145 if test -n "$RANLIB"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12147 $as_echo "$RANLIB" >&6; }
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12150 $as_echo "no
" >&6; }
12155 test -n "$ac_cv_prog_RANLIB" && break
12158 if test -z "$ac_cv_prog_RANLIB" ; then
12164 if test -n "$STRIP"; then
12165 ac_cv_prog_STRIP=$STRIP
12166 elif test -n "$ac_cv_prog_STRIP"; then
12167 STRIP=$ac_cv_prog_STRIP
12170 if test -n "$ac_cv_prog_STRIP"; then
12171 for ncn_progname in strip; do
12172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12173 set dummy ${ncn_progname}; ac_word=$2
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12175 $as_echo_n "checking
for $ac_word...
" >&6; }
12176 if ${ac_cv_prog_STRIP+:} false; then :
12177 $as_echo_n "(cached
) " >&6
12179 if test -n "$STRIP"; then
12180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183 for as_dir in $PATH
12186 test -z "$as_dir" && as_dir=.
12187 for ac_exec_ext in '' $ac_executable_extensions; do
12188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12189 ac_cv_prog_STRIP="${ncn_progname}"
12190 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12199 STRIP=$ac_cv_prog_STRIP
12200 if test -n "$STRIP"; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12202 $as_echo "$STRIP" >&6; }
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12205 $as_echo "no
" >&6; }
12212 for ncn_progname in strip; do
12213 if test -n "$ncn_tool_prefix"; then
12214 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12215 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12217 $as_echo_n "checking
for $ac_word...
" >&6; }
12218 if ${ac_cv_prog_STRIP+:} false; then :
12219 $as_echo_n "(cached
) " >&6
12221 if test -n "$STRIP"; then
12222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12228 test -z "$as_dir" && as_dir=.
12229 for ac_exec_ext in '' $ac_executable_extensions; do
12230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12231 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12232 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12241 STRIP=$ac_cv_prog_STRIP
12242 if test -n "$STRIP"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12244 $as_echo "$STRIP" >&6; }
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12247 $as_echo "no
" >&6; }
12252 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12254 set dummy ${ncn_progname}; ac_word=$2
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12256 $as_echo_n "checking
for $ac_word...
" >&6; }
12257 if ${ac_cv_prog_STRIP+:} false; then :
12258 $as_echo_n "(cached
) " >&6
12260 if test -n "$STRIP"; then
12261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264 for as_dir in $PATH
12267 test -z "$as_dir" && as_dir=.
12268 for ac_exec_ext in '' $ac_executable_extensions; do
12269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12270 ac_cv_prog_STRIP="${ncn_progname}"
12271 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12280 STRIP=$ac_cv_prog_STRIP
12281 if test -n "$STRIP"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12283 $as_echo "$STRIP" >&6; }
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12286 $as_echo "no
" >&6; }
12291 test -n "$ac_cv_prog_STRIP" && break
12294 if test -z "$ac_cv_prog_STRIP" ; then
12300 if test -n "$WINDRES"; then
12301 ac_cv_prog_WINDRES=$WINDRES
12302 elif test -n "$ac_cv_prog_WINDRES"; then
12303 WINDRES=$ac_cv_prog_WINDRES
12306 if test -n "$ac_cv_prog_WINDRES"; then
12307 for ncn_progname in windres; do
12308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12309 set dummy ${ncn_progname}; ac_word=$2
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12311 $as_echo_n "checking
for $ac_word...
" >&6; }
12312 if ${ac_cv_prog_WINDRES+:} false; then :
12313 $as_echo_n "(cached
) " >&6
12315 if test -n "$WINDRES"; then
12316 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12325 ac_cv_prog_WINDRES="${ncn_progname}"
12326 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12335 WINDRES=$ac_cv_prog_WINDRES
12336 if test -n "$WINDRES"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12338 $as_echo "$WINDRES" >&6; }
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12341 $as_echo "no
" >&6; }
12348 for ncn_progname in windres; do
12349 if test -n "$ncn_tool_prefix"; then
12350 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12351 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12353 $as_echo_n "checking
for $ac_word...
" >&6; }
12354 if ${ac_cv_prog_WINDRES+:} false; then :
12355 $as_echo_n "(cached
) " >&6
12357 if test -n "$WINDRES"; then
12358 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361 for as_dir in $PATH
12364 test -z "$as_dir" && as_dir=.
12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12367 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12368 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12377 WINDRES=$ac_cv_prog_WINDRES
12378 if test -n "$WINDRES"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12380 $as_echo "$WINDRES" >&6; }
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12383 $as_echo "no
" >&6; }
12388 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12390 set dummy ${ncn_progname}; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12392 $as_echo_n "checking
for $ac_word...
" >&6; }
12393 if ${ac_cv_prog_WINDRES+:} false; then :
12394 $as_echo_n "(cached
) " >&6
12396 if test -n "$WINDRES"; then
12397 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
12405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12406 ac_cv_prog_WINDRES="${ncn_progname}"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12416 WINDRES=$ac_cv_prog_WINDRES
12417 if test -n "$WINDRES"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12419 $as_echo "$WINDRES" >&6; }
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12422 $as_echo "no
" >&6; }
12427 test -n "$ac_cv_prog_WINDRES" && break
12430 if test -z "$ac_cv_prog_WINDRES" ; then
12432 if test $build = $host ; then
12435 WINDRES="${ncn_tool_prefix}$2"
12441 if test -n "$WINDMC"; then
12442 ac_cv_prog_WINDMC=$WINDMC
12443 elif test -n "$ac_cv_prog_WINDMC"; then
12444 WINDMC=$ac_cv_prog_WINDMC
12447 if test -n "$ac_cv_prog_WINDMC"; then
12448 for ncn_progname in windmc; do
12449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12450 set dummy ${ncn_progname}; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12452 $as_echo_n "checking
for $ac_word...
" >&6; }
12453 if ${ac_cv_prog_WINDMC+:} false; then :
12454 $as_echo_n "(cached
) " >&6
12456 if test -n "$WINDMC"; then
12457 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12463 test -z "$as_dir" && as_dir=.
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12466 ac_cv_prog_WINDMC="${ncn_progname}"
12467 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12476 WINDMC=$ac_cv_prog_WINDMC
12477 if test -n "$WINDMC"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12479 $as_echo "$WINDMC" >&6; }
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12482 $as_echo "no
" >&6; }
12489 for ncn_progname in windmc; do
12490 if test -n "$ncn_tool_prefix"; then
12491 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12492 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12494 $as_echo_n "checking
for $ac_word...
" >&6; }
12495 if ${ac_cv_prog_WINDMC+:} false; then :
12496 $as_echo_n "(cached
) " >&6
12498 if test -n "$WINDMC"; then
12499 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502 for as_dir in $PATH
12505 test -z "$as_dir" && as_dir=.
12506 for ac_exec_ext in '' $ac_executable_extensions; do
12507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12508 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12509 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12518 WINDMC=$ac_cv_prog_WINDMC
12519 if test -n "$WINDMC"; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12521 $as_echo "$WINDMC" >&6; }
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12524 $as_echo "no
" >&6; }
12529 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12531 set dummy ${ncn_progname}; ac_word=$2
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12533 $as_echo_n "checking
for $ac_word...
" >&6; }
12534 if ${ac_cv_prog_WINDMC+:} false; then :
12535 $as_echo_n "(cached
) " >&6
12537 if test -n "$WINDMC"; then
12538 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH
12544 test -z "$as_dir" && as_dir=.
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12547 ac_cv_prog_WINDMC="${ncn_progname}"
12548 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12557 WINDMC=$ac_cv_prog_WINDMC
12558 if test -n "$WINDMC"; then
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12560 $as_echo "$WINDMC" >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12563 $as_echo "no
" >&6; }
12568 test -n "$ac_cv_prog_WINDMC" && break
12571 if test -z "$ac_cv_prog_WINDMC" ; then
12573 if test $build = $host ; then
12576 WINDMC="${ncn_tool_prefix}$2"
12582 if test -n "$OBJCOPY"; then
12583 ac_cv_prog_OBJCOPY=$OBJCOPY
12584 elif test -n "$ac_cv_prog_OBJCOPY"; then
12585 OBJCOPY=$ac_cv_prog_OBJCOPY
12588 if test -n "$ac_cv_prog_OBJCOPY"; then
12589 for ncn_progname in objcopy; do
12590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12591 set dummy ${ncn_progname}; ac_word=$2
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12593 $as_echo_n "checking
for $ac_word...
" >&6; }
12594 if ${ac_cv_prog_OBJCOPY+:} false; then :
12595 $as_echo_n "(cached
) " >&6
12597 if test -n "$OBJCOPY"; then
12598 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12607 ac_cv_prog_OBJCOPY="${ncn_progname}"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12617 OBJCOPY=$ac_cv_prog_OBJCOPY
12618 if test -n "$OBJCOPY"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12620 $as_echo "$OBJCOPY" >&6; }
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12623 $as_echo "no
" >&6; }
12630 for ncn_progname in objcopy; do
12631 if test -n "$ncn_tool_prefix"; then
12632 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12633 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12635 $as_echo_n "checking
for $ac_word...
" >&6; }
12636 if ${ac_cv_prog_OBJCOPY+:} false; then :
12637 $as_echo_n "(cached
) " >&6
12639 if test -n "$OBJCOPY"; then
12640 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12643 for as_dir in $PATH
12646 test -z "$as_dir" && as_dir=.
12647 for ac_exec_ext in '' $ac_executable_extensions; do
12648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12649 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12650 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12659 OBJCOPY=$ac_cv_prog_OBJCOPY
12660 if test -n "$OBJCOPY"; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12662 $as_echo "$OBJCOPY" >&6; }
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12665 $as_echo "no
" >&6; }
12670 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12672 set dummy ${ncn_progname}; ac_word=$2
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12674 $as_echo_n "checking
for $ac_word...
" >&6; }
12675 if ${ac_cv_prog_OBJCOPY+:} false; then :
12676 $as_echo_n "(cached
) " >&6
12678 if test -n "$OBJCOPY"; then
12679 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682 for as_dir in $PATH
12685 test -z "$as_dir" && as_dir=.
12686 for ac_exec_ext in '' $ac_executable_extensions; do
12687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12688 ac_cv_prog_OBJCOPY="${ncn_progname}"
12689 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12698 OBJCOPY=$ac_cv_prog_OBJCOPY
12699 if test -n "$OBJCOPY"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12701 $as_echo "$OBJCOPY" >&6; }
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12704 $as_echo "no
" >&6; }
12709 test -n "$ac_cv_prog_OBJCOPY" && break
12712 if test -z "$ac_cv_prog_OBJCOPY" ; then
12714 if test $build = $host ; then
12717 OBJCOPY="${ncn_tool_prefix}$2"
12723 if test -n "$OBJDUMP"; then
12724 ac_cv_prog_OBJDUMP=$OBJDUMP
12725 elif test -n "$ac_cv_prog_OBJDUMP"; then
12726 OBJDUMP=$ac_cv_prog_OBJDUMP
12729 if test -n "$ac_cv_prog_OBJDUMP"; then
12730 for ncn_progname in objdump; do
12731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12732 set dummy ${ncn_progname}; ac_word=$2
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12734 $as_echo_n "checking
for $ac_word...
" >&6; }
12735 if ${ac_cv_prog_OBJDUMP+:} false; then :
12736 $as_echo_n "(cached
) " >&6
12738 if test -n "$OBJDUMP"; then
12739 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12748 ac_cv_prog_OBJDUMP="${ncn_progname}"
12749 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12758 OBJDUMP=$ac_cv_prog_OBJDUMP
12759 if test -n "$OBJDUMP"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12761 $as_echo "$OBJDUMP" >&6; }
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12764 $as_echo "no
" >&6; }
12771 for ncn_progname in objdump; do
12772 if test -n "$ncn_tool_prefix"; then
12773 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12774 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12776 $as_echo_n "checking
for $ac_word...
" >&6; }
12777 if ${ac_cv_prog_OBJDUMP+:} false; then :
12778 $as_echo_n "(cached
) " >&6
12780 if test -n "$OBJDUMP"; then
12781 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12790 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12800 OBJDUMP=$ac_cv_prog_OBJDUMP
12801 if test -n "$OBJDUMP"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12803 $as_echo "$OBJDUMP" >&6; }
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12806 $as_echo "no
" >&6; }
12811 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12813 set dummy ${ncn_progname}; ac_word=$2
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12815 $as_echo_n "checking
for $ac_word...
" >&6; }
12816 if ${ac_cv_prog_OBJDUMP+:} false; then :
12817 $as_echo_n "(cached
) " >&6
12819 if test -n "$OBJDUMP"; then
12820 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823 for as_dir in $PATH
12826 test -z "$as_dir" && as_dir=.
12827 for ac_exec_ext in '' $ac_executable_extensions; do
12828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12829 ac_cv_prog_OBJDUMP="${ncn_progname}"
12830 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12839 OBJDUMP=$ac_cv_prog_OBJDUMP
12840 if test -n "$OBJDUMP"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12842 $as_echo "$OBJDUMP" >&6; }
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12845 $as_echo "no
" >&6; }
12850 test -n "$ac_cv_prog_OBJDUMP" && break
12853 if test -z "$ac_cv_prog_OBJDUMP" ; then
12855 if test $build = $host ; then
12858 OBJDUMP="${ncn_tool_prefix}$2"
12864 if test -n "$OTOOL"; then
12865 ac_cv_prog_OTOOL=$OTOOL
12866 elif test -n "$ac_cv_prog_OTOOL"; then
12867 OTOOL=$ac_cv_prog_OTOOL
12870 if test -n "$ac_cv_prog_OTOOL"; then
12871 for ncn_progname in otool; do
12872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12873 set dummy ${ncn_progname}; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12875 $as_echo_n "checking
for $ac_word...
" >&6; }
12876 if ${ac_cv_prog_OTOOL+:} false; then :
12877 $as_echo_n "(cached
) " >&6
12879 if test -n "$OTOOL"; then
12880 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in $PATH
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12889 ac_cv_prog_OTOOL="${ncn_progname}"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12899 OTOOL=$ac_cv_prog_OTOOL
12900 if test -n "$OTOOL"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12902 $as_echo "$OTOOL" >&6; }
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12905 $as_echo "no
" >&6; }
12912 for ncn_progname in otool; do
12913 if test -n "$ncn_tool_prefix"; then
12914 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12915 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12917 $as_echo_n "checking
for $ac_word...
" >&6; }
12918 if ${ac_cv_prog_OTOOL+:} false; then :
12919 $as_echo_n "(cached
) " >&6
12921 if test -n "$OTOOL"; then
12922 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925 for as_dir in $PATH
12928 test -z "$as_dir" && as_dir=.
12929 for ac_exec_ext in '' $ac_executable_extensions; do
12930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12931 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12932 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12941 OTOOL=$ac_cv_prog_OTOOL
12942 if test -n "$OTOOL"; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12944 $as_echo "$OTOOL" >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12947 $as_echo "no
" >&6; }
12952 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12954 set dummy ${ncn_progname}; ac_word=$2
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12956 $as_echo_n "checking
for $ac_word...
" >&6; }
12957 if ${ac_cv_prog_OTOOL+:} false; then :
12958 $as_echo_n "(cached
) " >&6
12960 if test -n "$OTOOL"; then
12961 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12964 for as_dir in $PATH
12967 test -z "$as_dir" && as_dir=.
12968 for ac_exec_ext in '' $ac_executable_extensions; do
12969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12970 ac_cv_prog_OTOOL="${ncn_progname}"
12971 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12980 OTOOL=$ac_cv_prog_OTOOL
12981 if test -n "$OTOOL"; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12983 $as_echo "$OTOOL" >&6; }
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12986 $as_echo "no
" >&6; }
12991 test -n "$ac_cv_prog_OTOOL" && break
12994 if test -z "$ac_cv_prog_OTOOL" ; then
12996 if test $build = $host ; then
12999 OTOOL="${ncn_tool_prefix}$2"
13005 if test -n "$READELF"; then
13006 ac_cv_prog_READELF=$READELF
13007 elif test -n "$ac_cv_prog_READELF"; then
13008 READELF=$ac_cv_prog_READELF
13011 if test -n "$ac_cv_prog_READELF"; then
13012 for ncn_progname in readelf; do
13013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13014 set dummy ${ncn_progname}; ac_word=$2
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13016 $as_echo_n "checking
for $ac_word...
" >&6; }
13017 if ${ac_cv_prog_READELF+:} false; then :
13018 $as_echo_n "(cached
) " >&6
13020 if test -n "$READELF"; then
13021 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13027 test -z "$as_dir" && as_dir=.
13028 for ac_exec_ext in '' $ac_executable_extensions; do
13029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13030 ac_cv_prog_READELF="${ncn_progname}"
13031 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13040 READELF=$ac_cv_prog_READELF
13041 if test -n "$READELF"; then
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
13043 $as_echo "$READELF" >&6; }
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13046 $as_echo "no
" >&6; }
13053 for ncn_progname in readelf; do
13054 if test -n "$ncn_tool_prefix"; then
13055 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13056 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13058 $as_echo_n "checking
for $ac_word...
" >&6; }
13059 if ${ac_cv_prog_READELF+:} false; then :
13060 $as_echo_n "(cached
) " >&6
13062 if test -n "$READELF"; then
13063 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13069 test -z "$as_dir" && as_dir=.
13070 for ac_exec_ext in '' $ac_executable_extensions; do
13071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13072 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
13073 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13082 READELF=$ac_cv_prog_READELF
13083 if test -n "$READELF"; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
13085 $as_echo "$READELF" >&6; }
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13088 $as_echo "no
" >&6; }
13093 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
13094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13095 set dummy ${ncn_progname}; ac_word=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13097 $as_echo_n "checking
for $ac_word...
" >&6; }
13098 if ${ac_cv_prog_READELF+:} false; then :
13099 $as_echo_n "(cached
) " >&6
13101 if test -n "$READELF"; then
13102 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13108 test -z "$as_dir" && as_dir=.
13109 for ac_exec_ext in '' $ac_executable_extensions; do
13110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13111 ac_cv_prog_READELF="${ncn_progname}"
13112 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13121 READELF=$ac_cv_prog_READELF
13122 if test -n "$READELF"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
13124 $as_echo "$READELF" >&6; }
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13127 $as_echo "no
" >&6; }
13132 test -n "$ac_cv_prog_READELF" && break
13135 if test -z "$ac_cv_prog_READELF" ; then
13137 if test $build = $host ; then
13140 READELF="${ncn_tool_prefix}$2"
13150 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
13154 $as_echo_n "checking
for -plugin option...
" >&6; }
13156 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
13158 for plugin in $plugin_names; do
13159 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13160 if test x$plugin_so = x$plugin; then
13161 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13163 if test x$plugin_so != x$plugin; then
13164 plugin_option="--plugin $plugin_so"
13168 if test -n "$ac_tool_prefix"; then
13169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13170 set dummy ${ac_tool_prefix}ar; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13172 $as_echo_n "checking
for $ac_word...
" >&6; }
13173 if ${ac_cv_prog_AR+:} false; then :
13174 $as_echo_n "(cached
) " >&6
13176 if test -n "$AR"; then
13177 ac_cv_prog_AR="$AR" # Let the user override the test.
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13186 ac_cv_prog_AR="${ac_tool_prefix}ar"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13197 if test -n "$AR"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13199 $as_echo "$AR" >&6; }
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13202 $as_echo "no
" >&6; }
13207 if test -z "$ac_cv_prog_AR"; then
13209 # Extract the first word of "ar", so it can be a program name with args.
13210 set dummy ar; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13212 $as_echo_n "checking
for $ac_word...
" >&6; }
13213 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13214 $as_echo_n "(cached
) " >&6
13216 if test -n "$ac_ct_AR"; then
13217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13226 ac_cv_prog_ac_ct_AR="ar"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13237 if test -n "$ac_ct_AR"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13239 $as_echo "$ac_ct_AR" >&6; }
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13242 $as_echo "no
" >&6; }
13245 if test "x
$ac_ct_AR" = x; then
13248 case $cross_compiling:$ac_tool_warned in
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13251 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13252 ac_tool_warned=yes ;;
13257 AR="$ac_cv_prog_AR"
13260 if test "${AR}" = "" ; then
13261 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
13264 ${AR} $plugin_option rc conftest.a conftest.c
13265 if test "$?
" != 0; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
13267 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
13271 if test -n "$plugin_option"; then
13272 PLUGIN_OPTION="$plugin_option"
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
13274 $as_echo "$plugin_option" >&6; }
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13277 $as_echo "no
" >&6; }
13281 RANLIB_PLUGIN_OPTION=
13282 if test -n "$PLUGIN_OPTION"; then
13283 if $AR --help 2>&1 | grep -q "\
--plugin"; then
13284 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13286 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
13287 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13295 # Check whether --with-build-time-tools was given.
13296 if test "${with_build_time_tools+set}" = set; then :
13297 withval=$with_build_time_tools; case x"$withval" in
13300 with_build_time_tools=
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
13302 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
13306 with_build_time_tools=
13312 if test -n "$CC_FOR_TARGET"; then
13313 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13314 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13315 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13318 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13319 for ncn_progname in cc gcc; do
13320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13321 set dummy ${ncn_progname}; ac_word=$2
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13323 $as_echo_n "checking
for $ac_word...
" >&6; }
13324 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13325 $as_echo_n "(cached
) " >&6
13327 if test -n "$CC_FOR_TARGET"; then
13328 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331 for as_dir in $PATH
13334 test -z "$as_dir" && as_dir=.
13335 for ac_exec_ext in '' $ac_executable_extensions; do
13336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13337 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13338 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13347 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13348 if test -n "$CC_FOR_TARGET"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13350 $as_echo "$CC_FOR_TARGET" >&6; }
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13353 $as_echo "no
" >&6; }
13360 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13361 for ncn_progname in cc gcc; do
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13363 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13364 if test -x $with_build_time_tools/${ncn_progname}; then
13365 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13367 $as_echo "yes" >&6; }
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13371 $as_echo "no
" >&6; }
13376 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13377 for ncn_progname in cc gcc; do
13378 if test -n "$ncn_target_tool_prefix"; then
13379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13380 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13382 $as_echo_n "checking
for $ac_word...
" >&6; }
13383 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13384 $as_echo_n "(cached
) " >&6
13386 if test -n "$CC_FOR_TARGET"; then
13387 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13390 for as_dir in $PATH
13393 test -z "$as_dir" && as_dir=.
13394 for ac_exec_ext in '' $ac_executable_extensions; do
13395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13396 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13397 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13406 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13407 if test -n "$CC_FOR_TARGET"; then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13409 $as_echo "$CC_FOR_TARGET" >&6; }
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13412 $as_echo "no
" >&6; }
13417 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13419 set dummy ${ncn_progname}; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13421 $as_echo_n "checking
for $ac_word...
" >&6; }
13422 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13423 $as_echo_n "(cached
) " >&6
13425 if test -n "$CC_FOR_TARGET"; then
13426 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13432 test -z "$as_dir" && as_dir=.
13433 for ac_exec_ext in '' $ac_executable_extensions; do
13434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13435 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13436 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13445 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13446 if test -n "$CC_FOR_TARGET"; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13448 $as_echo "$CC_FOR_TARGET" >&6; }
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13451 $as_echo "no
" >&6; }
13456 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13460 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13462 if test $build = $target ; then
13465 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13468 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13473 if test -n "$CXX_FOR_TARGET"; then
13474 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13475 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13476 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13479 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13480 for ncn_progname in c++ g++ cxx gxx; do
13481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13482 set dummy ${ncn_progname}; ac_word=$2
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13484 $as_echo_n "checking
for $ac_word...
" >&6; }
13485 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13486 $as_echo_n "(cached
) " >&6
13488 if test -n "$CXX_FOR_TARGET"; then
13489 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13492 for as_dir in $PATH
13495 test -z "$as_dir" && as_dir=.
13496 for ac_exec_ext in '' $ac_executable_extensions; do
13497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13498 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13499 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13508 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13509 if test -n "$CXX_FOR_TARGET"; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13511 $as_echo "$CXX_FOR_TARGET" >&6; }
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13514 $as_echo "no
" >&6; }
13521 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13522 for ncn_progname in c++ g++ cxx gxx; do
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13524 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13525 if test -x $with_build_time_tools/${ncn_progname}; then
13526 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13528 $as_echo "yes" >&6; }
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13532 $as_echo "no
" >&6; }
13537 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13538 for ncn_progname in c++ g++ cxx gxx; do
13539 if test -n "$ncn_target_tool_prefix"; then
13540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13541 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13543 $as_echo_n "checking
for $ac_word...
" >&6; }
13544 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13545 $as_echo_n "(cached
) " >&6
13547 if test -n "$CXX_FOR_TARGET"; then
13548 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551 for as_dir in $PATH
13554 test -z "$as_dir" && as_dir=.
13555 for ac_exec_ext in '' $ac_executable_extensions; do
13556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13557 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13567 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13568 if test -n "$CXX_FOR_TARGET"; then
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13570 $as_echo "$CXX_FOR_TARGET" >&6; }
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13573 $as_echo "no
" >&6; }
13578 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13580 set dummy ${ncn_progname}; ac_word=$2
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13582 $as_echo_n "checking
for $ac_word...
" >&6; }
13583 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13584 $as_echo_n "(cached
) " >&6
13586 if test -n "$CXX_FOR_TARGET"; then
13587 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 for as_dir in $PATH
13593 test -z "$as_dir" && as_dir=.
13594 for ac_exec_ext in '' $ac_executable_extensions; do
13595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13596 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13597 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13606 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13607 if test -n "$CXX_FOR_TARGET"; then
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13609 $as_echo "$CXX_FOR_TARGET" >&6; }
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13612 $as_echo "no
" >&6; }
13617 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13621 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13622 set dummy c++ g++ cxx gxx
13623 if test $build = $target ; then
13624 CXX_FOR_TARGET="$2"
13626 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13629 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13634 if test -n "$GCC_FOR_TARGET"; then
13635 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13636 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13637 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13640 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13641 for ncn_progname in gcc; do
13642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13643 set dummy ${ncn_progname}; ac_word=$2
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13645 $as_echo_n "checking
for $ac_word...
" >&6; }
13646 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13647 $as_echo_n "(cached
) " >&6
13649 if test -n "$GCC_FOR_TARGET"; then
13650 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $PATH
13656 test -z "$as_dir" && as_dir=.
13657 for ac_exec_ext in '' $ac_executable_extensions; do
13658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13659 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13660 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13669 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13670 if test -n "$GCC_FOR_TARGET"; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13672 $as_echo "$GCC_FOR_TARGET" >&6; }
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13675 $as_echo "no
" >&6; }
13682 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13683 for ncn_progname in gcc; do
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13685 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13686 if test -x $with_build_time_tools/${ncn_progname}; then
13687 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13689 $as_echo "yes" >&6; }
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13693 $as_echo "no
" >&6; }
13698 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13699 for ncn_progname in gcc; do
13700 if test -n "$ncn_target_tool_prefix"; then
13701 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13702 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13704 $as_echo_n "checking
for $ac_word...
" >&6; }
13705 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13706 $as_echo_n "(cached
) " >&6
13708 if test -n "$GCC_FOR_TARGET"; then
13709 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712 for as_dir in $PATH
13715 test -z "$as_dir" && as_dir=.
13716 for ac_exec_ext in '' $ac_executable_extensions; do
13717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13718 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13719 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13728 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13729 if test -n "$GCC_FOR_TARGET"; then
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13731 $as_echo "$GCC_FOR_TARGET" >&6; }
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13734 $as_echo "no
" >&6; }
13739 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13740 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13741 set dummy ${ncn_progname}; ac_word=$2
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13743 $as_echo_n "checking
for $ac_word...
" >&6; }
13744 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13745 $as_echo_n "(cached
) " >&6
13747 if test -n "$GCC_FOR_TARGET"; then
13748 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13751 for as_dir in $PATH
13754 test -z "$as_dir" && as_dir=.
13755 for ac_exec_ext in '' $ac_executable_extensions; do
13756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13757 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13758 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13767 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13768 if test -n "$GCC_FOR_TARGET"; then
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13770 $as_echo "$GCC_FOR_TARGET" >&6; }
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13773 $as_echo "no
" >&6; }
13778 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13782 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13783 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13785 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13790 if test -n "$GFORTRAN_FOR_TARGET"; then
13791 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13792 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13793 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13796 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13797 for ncn_progname in gfortran; do
13798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13799 set dummy ${ncn_progname}; ac_word=$2
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13801 $as_echo_n "checking
for $ac_word...
" >&6; }
13802 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13803 $as_echo_n "(cached
) " >&6
13805 if test -n "$GFORTRAN_FOR_TARGET"; then
13806 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809 for as_dir in $PATH
13812 test -z "$as_dir" && as_dir=.
13813 for ac_exec_ext in '' $ac_executable_extensions; do
13814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13815 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13816 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13825 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13826 if test -n "$GFORTRAN_FOR_TARGET"; then
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13828 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13831 $as_echo "no
" >&6; }
13838 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13839 for ncn_progname in gfortran; do
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13841 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13842 if test -x $with_build_time_tools/${ncn_progname}; then
13843 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13845 $as_echo "yes" >&6; }
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13849 $as_echo "no
" >&6; }
13854 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13855 for ncn_progname in gfortran; do
13856 if test -n "$ncn_target_tool_prefix"; then
13857 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13858 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13860 $as_echo_n "checking
for $ac_word...
" >&6; }
13861 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13862 $as_echo_n "(cached
) " >&6
13864 if test -n "$GFORTRAN_FOR_TARGET"; then
13865 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868 for as_dir in $PATH
13871 test -z "$as_dir" && as_dir=.
13872 for ac_exec_ext in '' $ac_executable_extensions; do
13873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13874 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13875 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13884 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13885 if test -n "$GFORTRAN_FOR_TARGET"; then
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13887 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13890 $as_echo "no
" >&6; }
13895 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13897 set dummy ${ncn_progname}; ac_word=$2
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13899 $as_echo_n "checking
for $ac_word...
" >&6; }
13900 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13901 $as_echo_n "(cached
) " >&6
13903 if test -n "$GFORTRAN_FOR_TARGET"; then
13904 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13910 test -z "$as_dir" && as_dir=.
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13913 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13914 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13923 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13924 if test -n "$GFORTRAN_FOR_TARGET"; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13926 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13929 $as_echo "no
" >&6; }
13934 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13938 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13940 if test $build = $target ; then
13941 GFORTRAN_FOR_TARGET="$2"
13943 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13946 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13951 if test -n "$GOC_FOR_TARGET"; then
13952 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13953 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13954 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13957 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13958 for ncn_progname in gccgo; do
13959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13960 set dummy ${ncn_progname}; ac_word=$2
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13962 $as_echo_n "checking
for $ac_word...
" >&6; }
13963 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13964 $as_echo_n "(cached
) " >&6
13966 if test -n "$GOC_FOR_TARGET"; then
13967 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13970 for as_dir in $PATH
13973 test -z "$as_dir" && as_dir=.
13974 for ac_exec_ext in '' $ac_executable_extensions; do
13975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13976 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13977 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13986 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13987 if test -n "$GOC_FOR_TARGET"; then
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13989 $as_echo "$GOC_FOR_TARGET" >&6; }
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13992 $as_echo "no
" >&6; }
13999 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14000 for ncn_progname in gccgo; do
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14002 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14003 if test -x $with_build_time_tools/${ncn_progname}; then
14004 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14006 $as_echo "yes" >&6; }
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14010 $as_echo "no
" >&6; }
14015 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
14016 for ncn_progname in gccgo; do
14017 if test -n "$ncn_target_tool_prefix"; then
14018 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14019 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14021 $as_echo_n "checking
for $ac_word...
" >&6; }
14022 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14023 $as_echo_n "(cached
) " >&6
14025 if test -n "$GOC_FOR_TARGET"; then
14026 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14029 for as_dir in $PATH
14032 test -z "$as_dir" && as_dir=.
14033 for ac_exec_ext in '' $ac_executable_extensions; do
14034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14035 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14036 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14045 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14046 if test -n "$GOC_FOR_TARGET"; then
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
14048 $as_echo "$GOC_FOR_TARGET" >&6; }
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14051 $as_echo "no
" >&6; }
14056 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
14057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14058 set dummy ${ncn_progname}; ac_word=$2
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14060 $as_echo_n "checking
for $ac_word...
" >&6; }
14061 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14062 $as_echo_n "(cached
) " >&6
14064 if test -n "$GOC_FOR_TARGET"; then
14065 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $PATH
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14074 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14084 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14085 if test -n "$GOC_FOR_TARGET"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
14087 $as_echo "$GOC_FOR_TARGET" >&6; }
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14090 $as_echo "no
" >&6; }
14095 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
14099 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
14101 if test $build = $target ; then
14102 GOC_FOR_TARGET="$2"
14104 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14107 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
14112 if test -n "$GDC_FOR_TARGET"; then
14113 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
14114 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14115 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14118 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14119 for ncn_progname in gdc; do
14120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14121 set dummy ${ncn_progname}; ac_word=$2
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14123 $as_echo_n "checking
for $ac_word...
" >&6; }
14124 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14125 $as_echo_n "(cached
) " >&6
14127 if test -n "$GDC_FOR_TARGET"; then
14128 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14131 for as_dir in $PATH
14134 test -z "$as_dir" && as_dir=.
14135 for ac_exec_ext in '' $ac_executable_extensions; do
14136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14137 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14138 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14147 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14148 if test -n "$GDC_FOR_TARGET"; then
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14150 $as_echo "$GDC_FOR_TARGET" >&6; }
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14153 $as_echo "no
" >&6; }
14160 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14161 for ncn_progname in gdc; do
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14163 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14164 if test -x $with_build_time_tools/${ncn_progname}; then
14165 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14167 $as_echo "yes" >&6; }
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14171 $as_echo "no
" >&6; }
14176 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14177 for ncn_progname in gdc; do
14178 if test -n "$ncn_target_tool_prefix"; then
14179 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14180 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14182 $as_echo_n "checking
for $ac_word...
" >&6; }
14183 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14184 $as_echo_n "(cached
) " >&6
14186 if test -n "$GDC_FOR_TARGET"; then
14187 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14190 for as_dir in $PATH
14193 test -z "$as_dir" && as_dir=.
14194 for ac_exec_ext in '' $ac_executable_extensions; do
14195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14196 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14197 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14206 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14207 if test -n "$GDC_FOR_TARGET"; then
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14209 $as_echo "$GDC_FOR_TARGET" >&6; }
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14212 $as_echo "no
" >&6; }
14217 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14219 set dummy ${ncn_progname}; ac_word=$2
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14221 $as_echo_n "checking
for $ac_word...
" >&6; }
14222 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14223 $as_echo_n "(cached
) " >&6
14225 if test -n "$GDC_FOR_TARGET"; then
14226 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14229 for as_dir in $PATH
14232 test -z "$as_dir" && as_dir=.
14233 for ac_exec_ext in '' $ac_executable_extensions; do
14234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14235 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14236 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14245 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14246 if test -n "$GDC_FOR_TARGET"; then
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14248 $as_echo "$GDC_FOR_TARGET" >&6; }
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14251 $as_echo "no
" >&6; }
14256 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14260 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14262 if test $build = $target ; then
14263 GDC_FOR_TARGET="$2"
14265 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14268 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14273 if test -n "$GM2_FOR_TARGET"; then
14274 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14275 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14276 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14279 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14280 for ncn_progname in gm2; 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_GM2_FOR_TARGET+:} false; then :
14286 $as_echo_n "(cached
) " >&6
14288 if test -n "$GM2_FOR_TARGET"; then
14289 ac_cv_prog_GM2_FOR_TARGET="$GM2_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_GM2_FOR_TARGET="${ncn_progname}"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14308 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14309 if test -n "$GM2_FOR_TARGET"; then
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14311 $as_echo "$GM2_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_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14322 for ncn_progname in gm2; 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_GM2_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_GM2_FOR_TARGET"; then
14338 for ncn_progname in gm2; 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_GM2_FOR_TARGET+:} false; then :
14345 $as_echo_n "(cached
) " >&6
14347 if test -n "$GM2_FOR_TARGET"; then
14348 ac_cv_prog_GM2_FOR_TARGET="$GM2_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_GM2_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 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14368 if test -n "$GM2_FOR_TARGET"; then
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14370 $as_echo "$GM2_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_GM2_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_GM2_FOR_TARGET+:} false; then :
14384 $as_echo_n "(cached
) " >&6
14386 if test -n "$GM2_FOR_TARGET"; then
14387 ac_cv_prog_GM2_FOR_TARGET="$GM2_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_GM2_FOR_TARGET="${ncn_progname}"
14397 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14406 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14407 if test -n "$GM2_FOR_TARGET"; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14409 $as_echo "$GM2_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_GM2_FOR_TARGET" && break
14421 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14423 if test $build = $target ; then
14424 GM2_FOR_TARGET="$2"
14426 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14429 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14434 cat > conftest.c << \EOF
14439 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14440 have_gcc_for_target=yes
14442 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14443 have_gcc_for_target=no
14450 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14451 if test -n "$with_build_time_tools"; then
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14453 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14454 if test -x $with_build_time_tools/ar; then
14455 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14456 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14458 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14461 $as_echo "no
" >&6; }
14463 elif test $build != $host && test $have_gcc_for_target = yes; then
14464 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14465 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14466 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14469 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14470 # Extract the first word of "ar", so it can be a program name with args.
14471 set dummy ar; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14473 $as_echo_n "checking
for $ac_word...
" >&6; }
14474 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14475 $as_echo_n "(cached
) " >&6
14477 case $AR_FOR_TARGET in
14479 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483 for as_dir in $gcc_cv_tool_dirs
14486 test -z "$as_dir" && as_dir=.
14487 for ac_exec_ext in '' $ac_executable_extensions; do
14488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14489 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14490 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14500 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14501 if test -n "$AR_FOR_TARGET"; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14503 $as_echo "$AR_FOR_TARGET" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14506 $as_echo "no
" >&6; }
14511 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14514 if test -n "$AR_FOR_TARGET"; then
14515 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14516 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14517 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14520 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14521 for ncn_progname in ar; do
14522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14523 set dummy ${ncn_progname}; ac_word=$2
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14525 $as_echo_n "checking
for $ac_word...
" >&6; }
14526 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14527 $as_echo_n "(cached
) " >&6
14529 if test -n "$AR_FOR_TARGET"; then
14530 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14533 for as_dir in $PATH
14536 test -z "$as_dir" && as_dir=.
14537 for ac_exec_ext in '' $ac_executable_extensions; do
14538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14539 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14540 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14549 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14550 if test -n "$AR_FOR_TARGET"; then
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14552 $as_echo "$AR_FOR_TARGET" >&6; }
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14555 $as_echo "no
" >&6; }
14562 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14563 for ncn_progname in ar; do
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14565 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14566 if test -x $with_build_time_tools/${ncn_progname}; then
14567 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14569 $as_echo "yes" >&6; }
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14573 $as_echo "no
" >&6; }
14578 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14579 for ncn_progname in ar; do
14580 if test -n "$ncn_target_tool_prefix"; then
14581 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14582 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14584 $as_echo_n "checking
for $ac_word...
" >&6; }
14585 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14586 $as_echo_n "(cached
) " >&6
14588 if test -n "$AR_FOR_TARGET"; then
14589 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14592 for as_dir in $PATH
14595 test -z "$as_dir" && as_dir=.
14596 for ac_exec_ext in '' $ac_executable_extensions; do
14597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14598 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14599 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14608 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14609 if test -n "$AR_FOR_TARGET"; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14611 $as_echo "$AR_FOR_TARGET" >&6; }
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14614 $as_echo "no
" >&6; }
14619 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14621 set dummy ${ncn_progname}; ac_word=$2
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14623 $as_echo_n "checking
for $ac_word...
" >&6; }
14624 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14625 $as_echo_n "(cached
) " >&6
14627 if test -n "$AR_FOR_TARGET"; then
14628 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631 for as_dir in $PATH
14634 test -z "$as_dir" && as_dir=.
14635 for ac_exec_ext in '' $ac_executable_extensions; do
14636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14637 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14647 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14648 if test -n "$AR_FOR_TARGET"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14650 $as_echo "$AR_FOR_TARGET" >&6; }
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14653 $as_echo "no
" >&6; }
14658 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14662 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14664 if test $build = $target ; then
14667 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14670 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14674 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14680 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14681 if test -n "$with_build_time_tools"; then
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14683 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14684 if test -x $with_build_time_tools/as; then
14685 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14686 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14688 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14691 $as_echo "no
" >&6; }
14693 elif test $build != $host && test $have_gcc_for_target = yes; then
14694 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14695 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14696 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14699 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14700 # Extract the first word of "as
", so it can be a program name with args.
14701 set dummy as; ac_word=$2
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14703 $as_echo_n "checking
for $ac_word...
" >&6; }
14704 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14705 $as_echo_n "(cached
) " >&6
14707 case $AS_FOR_TARGET in
14709 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14713 for as_dir in $gcc_cv_tool_dirs
14716 test -z "$as_dir" && as_dir=.
14717 for ac_exec_ext in '' $ac_executable_extensions; do
14718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14719 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14720 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14730 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14731 if test -n "$AS_FOR_TARGET"; then
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14733 $as_echo "$AS_FOR_TARGET" >&6; }
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14736 $as_echo "no
" >&6; }
14741 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14744 if test -n "$AS_FOR_TARGET"; then
14745 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14746 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14747 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14750 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14751 for ncn_progname in as; do
14752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14753 set dummy ${ncn_progname}; ac_word=$2
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14755 $as_echo_n "checking
for $ac_word...
" >&6; }
14756 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14757 $as_echo_n "(cached
) " >&6
14759 if test -n "$AS_FOR_TARGET"; then
14760 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14763 for as_dir in $PATH
14766 test -z "$as_dir" && as_dir=.
14767 for ac_exec_ext in '' $ac_executable_extensions; do
14768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14769 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14770 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14779 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14780 if test -n "$AS_FOR_TARGET"; then
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14782 $as_echo "$AS_FOR_TARGET" >&6; }
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14785 $as_echo "no
" >&6; }
14792 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14793 for ncn_progname in as; do
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14795 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14796 if test -x $with_build_time_tools/${ncn_progname}; then
14797 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14799 $as_echo "yes" >&6; }
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14803 $as_echo "no
" >&6; }
14808 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14809 for ncn_progname in as; do
14810 if test -n "$ncn_target_tool_prefix"; then
14811 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14812 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14814 $as_echo_n "checking
for $ac_word...
" >&6; }
14815 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14816 $as_echo_n "(cached
) " >&6
14818 if test -n "$AS_FOR_TARGET"; then
14819 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14822 for as_dir in $PATH
14825 test -z "$as_dir" && as_dir=.
14826 for ac_exec_ext in '' $ac_executable_extensions; do
14827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14828 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14829 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14838 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14839 if test -n "$AS_FOR_TARGET"; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14841 $as_echo "$AS_FOR_TARGET" >&6; }
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14844 $as_echo "no
" >&6; }
14849 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14851 set dummy ${ncn_progname}; ac_word=$2
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14853 $as_echo_n "checking
for $ac_word...
" >&6; }
14854 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14855 $as_echo_n "(cached
) " >&6
14857 if test -n "$AS_FOR_TARGET"; then
14858 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14861 for as_dir in $PATH
14864 test -z "$as_dir" && as_dir=.
14865 for ac_exec_ext in '' $ac_executable_extensions; do
14866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14867 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14868 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14877 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14878 if test -n "$AS_FOR_TARGET"; then
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14880 $as_echo "$AS_FOR_TARGET" >&6; }
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14883 $as_echo "no
" >&6; }
14888 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14892 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14894 if test $build = $target ; then
14897 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14900 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14904 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14910 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14911 if test -n "$with_build_time_tools"; then
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14913 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14914 if test -x $with_build_time_tools/dlltool; then
14915 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14916 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14918 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14921 $as_echo "no
" >&6; }
14923 elif test $build != $host && test $have_gcc_for_target = yes; then
14924 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14925 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14926 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14929 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14930 # Extract the first word of "dlltool
", so it can be a program name with args.
14931 set dummy dlltool; ac_word=$2
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14933 $as_echo_n "checking
for $ac_word...
" >&6; }
14934 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14935 $as_echo_n "(cached
) " >&6
14937 case $DLLTOOL_FOR_TARGET in
14939 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14943 for as_dir in $gcc_cv_tool_dirs
14946 test -z "$as_dir" && as_dir=.
14947 for ac_exec_ext in '' $ac_executable_extensions; do
14948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14949 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14950 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14960 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14961 if test -n "$DLLTOOL_FOR_TARGET"; then
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14963 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14966 $as_echo "no
" >&6; }
14971 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14974 if test -n "$DLLTOOL_FOR_TARGET"; then
14975 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14976 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14977 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14980 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14981 for ncn_progname in dlltool; do
14982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14983 set dummy ${ncn_progname}; ac_word=$2
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14985 $as_echo_n "checking
for $ac_word...
" >&6; }
14986 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14987 $as_echo_n "(cached
) " >&6
14989 if test -n "$DLLTOOL_FOR_TARGET"; then
14990 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14993 for as_dir in $PATH
14996 test -z "$as_dir" && as_dir=.
14997 for ac_exec_ext in '' $ac_executable_extensions; do
14998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14999 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15000 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15009 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15010 if test -n "$DLLTOOL_FOR_TARGET"; then
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15012 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15015 $as_echo "no
" >&6; }
15022 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15023 for ncn_progname in dlltool; do
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15025 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15026 if test -x $with_build_time_tools/${ncn_progname}; then
15027 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15029 $as_echo "yes" >&6; }
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15033 $as_echo "no
" >&6; }
15038 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15039 for ncn_progname in dlltool; do
15040 if test -n "$ncn_target_tool_prefix"; then
15041 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15042 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15044 $as_echo_n "checking
for $ac_word...
" >&6; }
15045 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15046 $as_echo_n "(cached
) " >&6
15048 if test -n "$DLLTOOL_FOR_TARGET"; then
15049 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15052 for as_dir in $PATH
15055 test -z "$as_dir" && as_dir=.
15056 for ac_exec_ext in '' $ac_executable_extensions; do
15057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15058 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15059 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15068 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15069 if test -n "$DLLTOOL_FOR_TARGET"; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15071 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15074 $as_echo "no
" >&6; }
15079 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
15080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15081 set dummy ${ncn_progname}; ac_word=$2
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15083 $as_echo_n "checking
for $ac_word...
" >&6; }
15084 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15085 $as_echo_n "(cached
) " >&6
15087 if test -n "$DLLTOOL_FOR_TARGET"; then
15088 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15091 for as_dir in $PATH
15094 test -z "$as_dir" && as_dir=.
15095 for ac_exec_ext in '' $ac_executable_extensions; do
15096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15097 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15098 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15107 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15108 if test -n "$DLLTOOL_FOR_TARGET"; then
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15110 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15113 $as_echo "no
" >&6; }
15118 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15122 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15124 if test $build = $target ; then
15125 DLLTOOL_FOR_TARGET="$2"
15127 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15130 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
15134 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15140 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15141 if test -n "$with_build_time_tools"; then
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
15143 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
15144 if test -x $with_build_time_tools/dsymutil; then
15145 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15146 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15148 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15151 $as_echo "no
" >&6; }
15153 elif test $build != $host && test $have_gcc_for_target = yes; then
15154 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15155 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15156 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15159 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15160 # Extract the first word of "dsymutil
", so it can be a program name with args.
15161 set dummy dsymutil; ac_word=$2
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15163 $as_echo_n "checking
for $ac_word...
" >&6; }
15164 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15165 $as_echo_n "(cached
) " >&6
15167 case $DSYMUTIL_FOR_TARGET in
15169 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15173 for as_dir in $gcc_cv_tool_dirs
15176 test -z "$as_dir" && as_dir=.
15177 for ac_exec_ext in '' $ac_executable_extensions; do
15178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15179 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15180 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15190 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15191 if test -n "$DSYMUTIL_FOR_TARGET"; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15193 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15196 $as_echo "no
" >&6; }
15201 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15204 if test -n "$DSYMUTIL_FOR_TARGET"; then
15205 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15206 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15207 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15210 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15211 for ncn_progname in dsymutil; do
15212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15213 set dummy ${ncn_progname}; ac_word=$2
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15215 $as_echo_n "checking
for $ac_word...
" >&6; }
15216 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15217 $as_echo_n "(cached
) " >&6
15219 if test -n "$DSYMUTIL_FOR_TARGET"; then
15220 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15223 for as_dir in $PATH
15226 test -z "$as_dir" && as_dir=.
15227 for ac_exec_ext in '' $ac_executable_extensions; do
15228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15229 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15230 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15239 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15240 if test -n "$DSYMUTIL_FOR_TARGET"; then
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15242 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15245 $as_echo "no
" >&6; }
15252 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15253 for ncn_progname in dsymutil; do
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15255 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15256 if test -x $with_build_time_tools/${ncn_progname}; then
15257 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15259 $as_echo "yes" >&6; }
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15263 $as_echo "no
" >&6; }
15268 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15269 for ncn_progname in dsymutil; do
15270 if test -n "$ncn_target_tool_prefix"; then
15271 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15272 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15274 $as_echo_n "checking
for $ac_word...
" >&6; }
15275 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15276 $as_echo_n "(cached
) " >&6
15278 if test -n "$DSYMUTIL_FOR_TARGET"; then
15279 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15282 for as_dir in $PATH
15285 test -z "$as_dir" && as_dir=.
15286 for ac_exec_ext in '' $ac_executable_extensions; do
15287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15288 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15298 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15299 if test -n "$DSYMUTIL_FOR_TARGET"; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15301 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15304 $as_echo "no
" >&6; }
15309 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15311 set dummy ${ncn_progname}; ac_word=$2
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15313 $as_echo_n "checking
for $ac_word...
" >&6; }
15314 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15315 $as_echo_n "(cached
) " >&6
15317 if test -n "$DSYMUTIL_FOR_TARGET"; then
15318 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15321 for as_dir in $PATH
15324 test -z "$as_dir" && as_dir=.
15325 for ac_exec_ext in '' $ac_executable_extensions; do
15326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15327 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15328 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15337 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15338 if test -n "$DSYMUTIL_FOR_TARGET"; then
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15340 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15343 $as_echo "no
" >&6; }
15348 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15352 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15354 if test $build = $target ; then
15355 DSYMUTIL_FOR_TARGET="$2"
15357 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15360 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15364 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15370 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15371 if test -n "$with_build_time_tools"; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
15373 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
15374 if test -x $with_build_time_tools/ld; then
15375 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15376 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
15378 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15381 $as_echo "no
" >&6; }
15383 elif test $build != $host && test $have_gcc_for_target = yes; then
15384 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15385 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15386 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15389 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15390 # Extract the first word of "ld
", so it can be a program name with args.
15391 set dummy ld; ac_word=$2
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15393 $as_echo_n "checking
for $ac_word...
" >&6; }
15394 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15395 $as_echo_n "(cached
) " >&6
15397 case $LD_FOR_TARGET in
15399 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15403 for as_dir in $gcc_cv_tool_dirs
15406 test -z "$as_dir" && as_dir=.
15407 for ac_exec_ext in '' $ac_executable_extensions; do
15408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15409 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15410 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15420 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15421 if test -n "$LD_FOR_TARGET"; then
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15423 $as_echo "$LD_FOR_TARGET" >&6; }
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15426 $as_echo "no
" >&6; }
15431 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15434 if test -n "$LD_FOR_TARGET"; then
15435 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15436 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15437 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15440 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15441 for ncn_progname in ld; do
15442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15443 set dummy ${ncn_progname}; ac_word=$2
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15445 $as_echo_n "checking
for $ac_word...
" >&6; }
15446 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15447 $as_echo_n "(cached
) " >&6
15449 if test -n "$LD_FOR_TARGET"; then
15450 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15453 for as_dir in $PATH
15456 test -z "$as_dir" && as_dir=.
15457 for ac_exec_ext in '' $ac_executable_extensions; do
15458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15459 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15460 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15469 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15470 if test -n "$LD_FOR_TARGET"; then
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15472 $as_echo "$LD_FOR_TARGET" >&6; }
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15475 $as_echo "no
" >&6; }
15482 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15483 for ncn_progname in ld; do
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15485 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15486 if test -x $with_build_time_tools/${ncn_progname}; then
15487 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15489 $as_echo "yes" >&6; }
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15493 $as_echo "no
" >&6; }
15498 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15499 for ncn_progname in ld; do
15500 if test -n "$ncn_target_tool_prefix"; then
15501 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15502 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15504 $as_echo_n "checking
for $ac_word...
" >&6; }
15505 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15506 $as_echo_n "(cached
) " >&6
15508 if test -n "$LD_FOR_TARGET"; then
15509 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15512 for as_dir in $PATH
15515 test -z "$as_dir" && as_dir=.
15516 for ac_exec_ext in '' $ac_executable_extensions; do
15517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15518 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15519 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15528 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15529 if test -n "$LD_FOR_TARGET"; then
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15531 $as_echo "$LD_FOR_TARGET" >&6; }
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15534 $as_echo "no
" >&6; }
15539 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15541 set dummy ${ncn_progname}; ac_word=$2
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15543 $as_echo_n "checking
for $ac_word...
" >&6; }
15544 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15545 $as_echo_n "(cached
) " >&6
15547 if test -n "$LD_FOR_TARGET"; then
15548 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15551 for as_dir in $PATH
15554 test -z "$as_dir" && as_dir=.
15555 for ac_exec_ext in '' $ac_executable_extensions; do
15556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15557 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15567 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15568 if test -n "$LD_FOR_TARGET"; then
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15570 $as_echo "$LD_FOR_TARGET" >&6; }
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15573 $as_echo "no
" >&6; }
15578 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15582 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15584 if test $build = $target ; then
15587 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15590 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15594 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15600 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15601 if test -n "$with_build_time_tools"; then
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15603 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15604 if test -x $with_build_time_tools/lipo; then
15605 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15606 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15608 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15611 $as_echo "no
" >&6; }
15613 elif test $build != $host && test $have_gcc_for_target = yes; then
15614 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15615 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15616 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15619 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15620 # Extract the first word of "lipo
", so it can be a program name with args.
15621 set dummy lipo; ac_word=$2
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15623 $as_echo_n "checking
for $ac_word...
" >&6; }
15624 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15625 $as_echo_n "(cached
) " >&6
15627 case $LIPO_FOR_TARGET in
15629 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15633 for as_dir in $gcc_cv_tool_dirs
15636 test -z "$as_dir" && as_dir=.
15637 for ac_exec_ext in '' $ac_executable_extensions; do
15638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15639 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15640 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15650 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15651 if test -n "$LIPO_FOR_TARGET"; then
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15653 $as_echo "$LIPO_FOR_TARGET" >&6; }
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15656 $as_echo "no
" >&6; }
15661 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15664 if test -n "$LIPO_FOR_TARGET"; then
15665 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15666 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15667 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15670 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15671 for ncn_progname in lipo; do
15672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15673 set dummy ${ncn_progname}; ac_word=$2
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15675 $as_echo_n "checking
for $ac_word...
" >&6; }
15676 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15677 $as_echo_n "(cached
) " >&6
15679 if test -n "$LIPO_FOR_TARGET"; then
15680 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15683 for as_dir in $PATH
15686 test -z "$as_dir" && as_dir=.
15687 for ac_exec_ext in '' $ac_executable_extensions; do
15688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15689 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15690 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15699 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15700 if test -n "$LIPO_FOR_TARGET"; then
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15702 $as_echo "$LIPO_FOR_TARGET" >&6; }
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15705 $as_echo "no
" >&6; }
15712 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15713 for ncn_progname in lipo; do
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15715 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15716 if test -x $with_build_time_tools/${ncn_progname}; then
15717 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15719 $as_echo "yes" >&6; }
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15723 $as_echo "no
" >&6; }
15728 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15729 for ncn_progname in lipo; do
15730 if test -n "$ncn_target_tool_prefix"; then
15731 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15732 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15734 $as_echo_n "checking
for $ac_word...
" >&6; }
15735 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15736 $as_echo_n "(cached
) " >&6
15738 if test -n "$LIPO_FOR_TARGET"; then
15739 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15742 for as_dir in $PATH
15745 test -z "$as_dir" && as_dir=.
15746 for ac_exec_ext in '' $ac_executable_extensions; do
15747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15748 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15749 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15758 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15759 if test -n "$LIPO_FOR_TARGET"; then
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15761 $as_echo "$LIPO_FOR_TARGET" >&6; }
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15764 $as_echo "no
" >&6; }
15769 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15771 set dummy ${ncn_progname}; ac_word=$2
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15773 $as_echo_n "checking
for $ac_word...
" >&6; }
15774 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15775 $as_echo_n "(cached
) " >&6
15777 if test -n "$LIPO_FOR_TARGET"; then
15778 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15781 for as_dir in $PATH
15784 test -z "$as_dir" && as_dir=.
15785 for ac_exec_ext in '' $ac_executable_extensions; do
15786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15787 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15788 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15797 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15798 if test -n "$LIPO_FOR_TARGET"; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15800 $as_echo "$LIPO_FOR_TARGET" >&6; }
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15803 $as_echo "no
" >&6; }
15808 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15812 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15814 if test $build = $target ; then
15815 LIPO_FOR_TARGET="$2"
15817 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15820 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15824 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15830 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15831 if test -n "$with_build_time_tools"; then
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15833 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15834 if test -x $with_build_time_tools/nm; then
15835 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15836 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15838 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15841 $as_echo "no
" >&6; }
15843 elif test $build != $host && test $have_gcc_for_target = yes; then
15844 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15845 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15846 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15849 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15850 # Extract the first word of "nm
", so it can be a program name with args.
15851 set dummy nm; ac_word=$2
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15853 $as_echo_n "checking
for $ac_word...
" >&6; }
15854 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15855 $as_echo_n "(cached
) " >&6
15857 case $NM_FOR_TARGET in
15859 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15863 for as_dir in $gcc_cv_tool_dirs
15866 test -z "$as_dir" && as_dir=.
15867 for ac_exec_ext in '' $ac_executable_extensions; do
15868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15869 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15870 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15880 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15881 if test -n "$NM_FOR_TARGET"; then
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15883 $as_echo "$NM_FOR_TARGET" >&6; }
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15886 $as_echo "no
" >&6; }
15891 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15894 if test -n "$NM_FOR_TARGET"; then
15895 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15896 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15897 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15900 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15901 for ncn_progname in nm; do
15902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15903 set dummy ${ncn_progname}; ac_word=$2
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15905 $as_echo_n "checking
for $ac_word...
" >&6; }
15906 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15907 $as_echo_n "(cached
) " >&6
15909 if test -n "$NM_FOR_TARGET"; then
15910 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15913 for as_dir in $PATH
15916 test -z "$as_dir" && as_dir=.
15917 for ac_exec_ext in '' $ac_executable_extensions; do
15918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15919 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15920 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15929 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15930 if test -n "$NM_FOR_TARGET"; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15932 $as_echo "$NM_FOR_TARGET" >&6; }
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15935 $as_echo "no
" >&6; }
15942 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15943 for ncn_progname in nm; do
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15945 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15946 if test -x $with_build_time_tools/${ncn_progname}; then
15947 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15949 $as_echo "yes" >&6; }
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15953 $as_echo "no
" >&6; }
15958 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15959 for ncn_progname in nm; do
15960 if test -n "$ncn_target_tool_prefix"; then
15961 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15962 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15964 $as_echo_n "checking
for $ac_word...
" >&6; }
15965 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15966 $as_echo_n "(cached
) " >&6
15968 if test -n "$NM_FOR_TARGET"; then
15969 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15972 for as_dir in $PATH
15975 test -z "$as_dir" && as_dir=.
15976 for ac_exec_ext in '' $ac_executable_extensions; do
15977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15978 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15979 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15988 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15989 if test -n "$NM_FOR_TARGET"; then
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15991 $as_echo "$NM_FOR_TARGET" >&6; }
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15994 $as_echo "no
" >&6; }
15999 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
16000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16001 set dummy ${ncn_progname}; ac_word=$2
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16003 $as_echo_n "checking
for $ac_word...
" >&6; }
16004 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16005 $as_echo_n "(cached
) " >&6
16007 if test -n "$NM_FOR_TARGET"; then
16008 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16011 for as_dir in $PATH
16014 test -z "$as_dir" && as_dir=.
16015 for ac_exec_ext in '' $ac_executable_extensions; do
16016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16017 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16018 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16027 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16028 if test -n "$NM_FOR_TARGET"; then
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16030 $as_echo "$NM_FOR_TARGET" >&6; }
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16033 $as_echo "no
" >&6; }
16038 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
16042 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
16044 if test $build = $target ; then
16047 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
16050 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
16054 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16060 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16061 if test -n "$with_build_time_tools"; then
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
16063 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
16064 if test -x $with_build_time_tools/objcopy; then
16065 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
16066 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
16068 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16071 $as_echo "no
" >&6; }
16073 elif test $build != $host && test $have_gcc_for_target = yes; then
16074 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
16075 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
16076 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16079 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16080 # Extract the first word of "objcopy
", so it can be a program name with args.
16081 set dummy objcopy; ac_word=$2
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16083 $as_echo_n "checking
for $ac_word...
" >&6; }
16084 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
16085 $as_echo_n "(cached
) " >&6
16087 case $OBJCOPY_FOR_TARGET in
16089 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
16092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16093 for as_dir in $gcc_cv_tool_dirs
16096 test -z "$as_dir" && as_dir=.
16097 for ac_exec_ext in '' $ac_executable_extensions; do
16098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16099 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16100 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16110 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16111 if test -n "$OBJCOPY_FOR_TARGET"; then
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16113 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16116 $as_echo "no
" >&6; }
16121 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16124 if test -n "$OBJCOPY_FOR_TARGET"; then
16125 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16126 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16127 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16130 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16131 for ncn_progname in objcopy; do
16132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16133 set dummy ${ncn_progname}; ac_word=$2
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16135 $as_echo_n "checking
for $ac_word...
" >&6; }
16136 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16137 $as_echo_n "(cached
) " >&6
16139 if test -n "$OBJCOPY_FOR_TARGET"; then
16140 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16143 for as_dir in $PATH
16146 test -z "$as_dir" && as_dir=.
16147 for ac_exec_ext in '' $ac_executable_extensions; do
16148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16149 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16150 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16159 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16160 if test -n "$OBJCOPY_FOR_TARGET"; then
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16162 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16165 $as_echo "no
" >&6; }
16172 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16173 for ncn_progname in objcopy; do
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16175 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16176 if test -x $with_build_time_tools/${ncn_progname}; then
16177 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16179 $as_echo "yes" >&6; }
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16183 $as_echo "no
" >&6; }
16188 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16189 for ncn_progname in objcopy; do
16190 if test -n "$ncn_target_tool_prefix"; then
16191 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16192 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16194 $as_echo_n "checking
for $ac_word...
" >&6; }
16195 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16196 $as_echo_n "(cached
) " >&6
16198 if test -n "$OBJCOPY_FOR_TARGET"; then
16199 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16202 for as_dir in $PATH
16205 test -z "$as_dir" && as_dir=.
16206 for ac_exec_ext in '' $ac_executable_extensions; do
16207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16208 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16218 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16219 if test -n "$OBJCOPY_FOR_TARGET"; then
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16221 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16224 $as_echo "no
" >&6; }
16229 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16231 set dummy ${ncn_progname}; ac_word=$2
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16233 $as_echo_n "checking
for $ac_word...
" >&6; }
16234 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16235 $as_echo_n "(cached
) " >&6
16237 if test -n "$OBJCOPY_FOR_TARGET"; then
16238 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16241 for as_dir in $PATH
16244 test -z "$as_dir" && as_dir=.
16245 for ac_exec_ext in '' $ac_executable_extensions; do
16246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16247 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16248 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16257 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16258 if test -n "$OBJCOPY_FOR_TARGET"; then
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16260 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16263 $as_echo "no
" >&6; }
16268 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16272 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16274 if test $build = $target ; then
16275 OBJCOPY_FOR_TARGET="$2"
16277 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16280 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16284 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16290 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16291 if test -n "$with_build_time_tools"; then
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
16293 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
16294 if test -x $with_build_time_tools/objdump; then
16295 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16296 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16298 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16301 $as_echo "no
" >&6; }
16303 elif test $build != $host && test $have_gcc_for_target = yes; then
16304 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16305 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16306 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16309 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16310 # Extract the first word of "objdump
", so it can be a program name with args.
16311 set dummy objdump; ac_word=$2
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16313 $as_echo_n "checking
for $ac_word...
" >&6; }
16314 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16315 $as_echo_n "(cached
) " >&6
16317 case $OBJDUMP_FOR_TARGET in
16319 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16323 for as_dir in $gcc_cv_tool_dirs
16326 test -z "$as_dir" && as_dir=.
16327 for ac_exec_ext in '' $ac_executable_extensions; do
16328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16329 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16330 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16340 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16341 if test -n "$OBJDUMP_FOR_TARGET"; then
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16343 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16346 $as_echo "no
" >&6; }
16351 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16354 if test -n "$OBJDUMP_FOR_TARGET"; then
16355 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16356 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16357 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16360 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16361 for ncn_progname in objdump; do
16362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16363 set dummy ${ncn_progname}; ac_word=$2
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16365 $as_echo_n "checking
for $ac_word...
" >&6; }
16366 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16367 $as_echo_n "(cached
) " >&6
16369 if test -n "$OBJDUMP_FOR_TARGET"; then
16370 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16373 for as_dir in $PATH
16376 test -z "$as_dir" && as_dir=.
16377 for ac_exec_ext in '' $ac_executable_extensions; do
16378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16379 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16380 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16389 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16390 if test -n "$OBJDUMP_FOR_TARGET"; then
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16392 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16395 $as_echo "no
" >&6; }
16402 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16403 for ncn_progname in objdump; do
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16405 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16406 if test -x $with_build_time_tools/${ncn_progname}; then
16407 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16409 $as_echo "yes" >&6; }
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16413 $as_echo "no
" >&6; }
16418 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16419 for ncn_progname in objdump; do
16420 if test -n "$ncn_target_tool_prefix"; then
16421 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16422 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16424 $as_echo_n "checking
for $ac_word...
" >&6; }
16425 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16426 $as_echo_n "(cached
) " >&6
16428 if test -n "$OBJDUMP_FOR_TARGET"; then
16429 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16432 for as_dir in $PATH
16435 test -z "$as_dir" && as_dir=.
16436 for ac_exec_ext in '' $ac_executable_extensions; do
16437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16438 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16439 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16448 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16449 if test -n "$OBJDUMP_FOR_TARGET"; then
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16451 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16454 $as_echo "no
" >&6; }
16459 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16461 set dummy ${ncn_progname}; ac_word=$2
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16463 $as_echo_n "checking
for $ac_word...
" >&6; }
16464 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16465 $as_echo_n "(cached
) " >&6
16467 if test -n "$OBJDUMP_FOR_TARGET"; then
16468 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16471 for as_dir in $PATH
16474 test -z "$as_dir" && as_dir=.
16475 for ac_exec_ext in '' $ac_executable_extensions; do
16476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16477 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16478 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16487 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16488 if test -n "$OBJDUMP_FOR_TARGET"; then
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16490 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16493 $as_echo "no
" >&6; }
16498 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16502 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16504 if test $build = $target ; then
16505 OBJDUMP_FOR_TARGET="$2"
16507 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16510 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16514 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16520 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16521 if test -n "$with_build_time_tools"; then
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16523 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16524 if test -x $with_build_time_tools/otool; then
16525 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16526 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16528 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16531 $as_echo "no
" >&6; }
16533 elif test $build != $host && test $have_gcc_for_target = yes; then
16534 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16535 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16536 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16539 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16540 # Extract the first word of "otool
", so it can be a program name with args.
16541 set dummy otool; ac_word=$2
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16543 $as_echo_n "checking
for $ac_word...
" >&6; }
16544 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16545 $as_echo_n "(cached
) " >&6
16547 case $OTOOL_FOR_TARGET in
16549 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16553 for as_dir in $gcc_cv_tool_dirs
16556 test -z "$as_dir" && as_dir=.
16557 for ac_exec_ext in '' $ac_executable_extensions; do
16558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16559 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16560 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16570 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16571 if test -n "$OTOOL_FOR_TARGET"; then
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16573 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16576 $as_echo "no
" >&6; }
16581 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16584 if test -n "$OTOOL_FOR_TARGET"; then
16585 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16586 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16587 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16590 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16591 for ncn_progname in otool; do
16592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16593 set dummy ${ncn_progname}; ac_word=$2
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16595 $as_echo_n "checking
for $ac_word...
" >&6; }
16596 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16597 $as_echo_n "(cached
) " >&6
16599 if test -n "$OTOOL_FOR_TARGET"; then
16600 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16603 for as_dir in $PATH
16606 test -z "$as_dir" && as_dir=.
16607 for ac_exec_ext in '' $ac_executable_extensions; do
16608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16609 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16610 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16619 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16620 if test -n "$OTOOL_FOR_TARGET"; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16622 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16625 $as_echo "no
" >&6; }
16632 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16633 for ncn_progname in otool; do
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16635 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16636 if test -x $with_build_time_tools/${ncn_progname}; then
16637 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16639 $as_echo "yes" >&6; }
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16643 $as_echo "no
" >&6; }
16648 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16649 for ncn_progname in otool; do
16650 if test -n "$ncn_target_tool_prefix"; then
16651 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16652 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16654 $as_echo_n "checking
for $ac_word...
" >&6; }
16655 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16656 $as_echo_n "(cached
) " >&6
16658 if test -n "$OTOOL_FOR_TARGET"; then
16659 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16662 for as_dir in $PATH
16665 test -z "$as_dir" && as_dir=.
16666 for ac_exec_ext in '' $ac_executable_extensions; do
16667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16668 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16669 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16678 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16679 if test -n "$OTOOL_FOR_TARGET"; then
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16681 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16684 $as_echo "no
" >&6; }
16689 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16691 set dummy ${ncn_progname}; ac_word=$2
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16693 $as_echo_n "checking
for $ac_word...
" >&6; }
16694 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16695 $as_echo_n "(cached
) " >&6
16697 if test -n "$OTOOL_FOR_TARGET"; then
16698 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16701 for as_dir in $PATH
16704 test -z "$as_dir" && as_dir=.
16705 for ac_exec_ext in '' $ac_executable_extensions; do
16706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16707 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16717 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16718 if test -n "$OTOOL_FOR_TARGET"; then
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16720 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16723 $as_echo "no
" >&6; }
16728 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16732 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16734 if test $build = $target ; then
16735 OTOOL_FOR_TARGET="$2"
16737 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16740 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16744 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16750 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16751 if test -n "$with_build_time_tools"; then
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16753 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16754 if test -x $with_build_time_tools/ranlib; then
16755 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16756 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16758 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16761 $as_echo "no
" >&6; }
16763 elif test $build != $host && test $have_gcc_for_target = yes; then
16764 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16765 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16766 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16769 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16770 # Extract the first word of "ranlib
", so it can be a program name with args.
16771 set dummy ranlib; ac_word=$2
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16773 $as_echo_n "checking
for $ac_word...
" >&6; }
16774 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16775 $as_echo_n "(cached
) " >&6
16777 case $RANLIB_FOR_TARGET in
16779 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16783 for as_dir in $gcc_cv_tool_dirs
16786 test -z "$as_dir" && as_dir=.
16787 for ac_exec_ext in '' $ac_executable_extensions; do
16788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16789 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16790 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16800 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16801 if test -n "$RANLIB_FOR_TARGET"; then
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16803 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16806 $as_echo "no
" >&6; }
16811 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16814 if test -n "$RANLIB_FOR_TARGET"; then
16815 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16816 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16817 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16820 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16821 for ncn_progname in ranlib; do
16822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16823 set dummy ${ncn_progname}; ac_word=$2
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16825 $as_echo_n "checking
for $ac_word...
" >&6; }
16826 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16827 $as_echo_n "(cached
) " >&6
16829 if test -n "$RANLIB_FOR_TARGET"; then
16830 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16833 for as_dir in $PATH
16836 test -z "$as_dir" && as_dir=.
16837 for ac_exec_ext in '' $ac_executable_extensions; do
16838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16839 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16840 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16849 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16850 if test -n "$RANLIB_FOR_TARGET"; then
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16852 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16855 $as_echo "no
" >&6; }
16862 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16863 for ncn_progname in ranlib; do
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16865 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16866 if test -x $with_build_time_tools/${ncn_progname}; then
16867 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16869 $as_echo "yes" >&6; }
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16873 $as_echo "no
" >&6; }
16878 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16879 for ncn_progname in ranlib; do
16880 if test -n "$ncn_target_tool_prefix"; then
16881 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16882 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16884 $as_echo_n "checking
for $ac_word...
" >&6; }
16885 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16886 $as_echo_n "(cached
) " >&6
16888 if test -n "$RANLIB_FOR_TARGET"; then
16889 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16892 for as_dir in $PATH
16895 test -z "$as_dir" && as_dir=.
16896 for ac_exec_ext in '' $ac_executable_extensions; do
16897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16898 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16899 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16908 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16909 if test -n "$RANLIB_FOR_TARGET"; then
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16911 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16914 $as_echo "no
" >&6; }
16919 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16921 set dummy ${ncn_progname}; ac_word=$2
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16923 $as_echo_n "checking
for $ac_word...
" >&6; }
16924 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16925 $as_echo_n "(cached
) " >&6
16927 if test -n "$RANLIB_FOR_TARGET"; then
16928 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16931 for as_dir in $PATH
16934 test -z "$as_dir" && as_dir=.
16935 for ac_exec_ext in '' $ac_executable_extensions; do
16936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16937 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16938 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16947 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16948 if test -n "$RANLIB_FOR_TARGET"; then
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16950 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16953 $as_echo "no
" >&6; }
16958 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16962 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16964 if test $build = $target ; then
16965 RANLIB_FOR_TARGET="$2"
16967 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16970 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16974 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16980 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16981 if test -n "$with_build_time_tools"; then
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16983 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16984 if test -x $with_build_time_tools/readelf; then
16985 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16986 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16988 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16991 $as_echo "no
" >&6; }
16993 elif test $build != $host && test $have_gcc_for_target = yes; then
16994 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16995 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16996 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16999 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17000 # Extract the first word of "readelf
", so it can be a program name with args.
17001 set dummy readelf; ac_word=$2
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17003 $as_echo_n "checking
for $ac_word...
" >&6; }
17004 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
17005 $as_echo_n "(cached
) " >&6
17007 case $READELF_FOR_TARGET in
17009 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
17012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17013 for as_dir in $gcc_cv_tool_dirs
17016 test -z "$as_dir" && as_dir=.
17017 for ac_exec_ext in '' $ac_executable_extensions; do
17018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17019 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17020 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17030 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17031 if test -n "$READELF_FOR_TARGET"; then
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17033 $as_echo "$READELF_FOR_TARGET" >&6; }
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17036 $as_echo "no
" >&6; }
17041 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17044 if test -n "$READELF_FOR_TARGET"; then
17045 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
17046 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17047 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17050 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17051 for ncn_progname in readelf; do
17052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17053 set dummy ${ncn_progname}; ac_word=$2
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17055 $as_echo_n "checking
for $ac_word...
" >&6; }
17056 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17057 $as_echo_n "(cached
) " >&6
17059 if test -n "$READELF_FOR_TARGET"; then
17060 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17063 for as_dir in $PATH
17066 test -z "$as_dir" && as_dir=.
17067 for ac_exec_ext in '' $ac_executable_extensions; do
17068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17069 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17070 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17079 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17080 if test -n "$READELF_FOR_TARGET"; then
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17082 $as_echo "$READELF_FOR_TARGET" >&6; }
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17085 $as_echo "no
" >&6; }
17092 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
17093 for ncn_progname in readelf; do
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17095 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17096 if test -x $with_build_time_tools/${ncn_progname}; then
17097 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17099 $as_echo "yes" >&6; }
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17103 $as_echo "no
" >&6; }
17108 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
17109 for ncn_progname in readelf; do
17110 if test -n "$ncn_target_tool_prefix"; then
17111 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17112 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17114 $as_echo_n "checking
for $ac_word...
" >&6; }
17115 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17116 $as_echo_n "(cached
) " >&6
17118 if test -n "$READELF_FOR_TARGET"; then
17119 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17122 for as_dir in $PATH
17125 test -z "$as_dir" && as_dir=.
17126 for ac_exec_ext in '' $ac_executable_extensions; do
17127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17128 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17129 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17138 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17139 if test -n "$READELF_FOR_TARGET"; then
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17141 $as_echo "$READELF_FOR_TARGET" >&6; }
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17144 $as_echo "no
" >&6; }
17149 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17151 set dummy ${ncn_progname}; ac_word=$2
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17153 $as_echo_n "checking
for $ac_word...
" >&6; }
17154 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17155 $as_echo_n "(cached
) " >&6
17157 if test -n "$READELF_FOR_TARGET"; then
17158 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17161 for as_dir in $PATH
17164 test -z "$as_dir" && as_dir=.
17165 for ac_exec_ext in '' $ac_executable_extensions; do
17166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17167 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17177 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17178 if test -n "$READELF_FOR_TARGET"; then
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17180 $as_echo "$READELF_FOR_TARGET" >&6; }
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17183 $as_echo "no
" >&6; }
17188 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17192 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17194 if test $build = $target ; then
17195 READELF_FOR_TARGET="$2"
17197 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17200 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17204 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17210 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17211 if test -n "$with_build_time_tools"; then
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
17213 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
17214 if test -x $with_build_time_tools/strip; then
17215 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17216 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
17218 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17221 $as_echo "no
" >&6; }
17223 elif test $build != $host && test $have_gcc_for_target = yes; then
17224 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
17225 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17226 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17229 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17230 # Extract the first word of "strip
", so it can be a program name with args.
17231 set dummy strip; ac_word=$2
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17233 $as_echo_n "checking
for $ac_word...
" >&6; }
17234 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
17235 $as_echo_n "(cached
) " >&6
17237 case $STRIP_FOR_TARGET in
17239 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17243 for as_dir in $gcc_cv_tool_dirs
17246 test -z "$as_dir" && as_dir=.
17247 for ac_exec_ext in '' $ac_executable_extensions; do
17248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17249 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17250 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17260 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17261 if test -n "$STRIP_FOR_TARGET"; then
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17263 $as_echo "$STRIP_FOR_TARGET" >&6; }
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17266 $as_echo "no
" >&6; }
17271 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17274 if test -n "$STRIP_FOR_TARGET"; then
17275 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17276 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17277 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17280 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17281 for ncn_progname in strip; do
17282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17283 set dummy ${ncn_progname}; ac_word=$2
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17285 $as_echo_n "checking
for $ac_word...
" >&6; }
17286 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17287 $as_echo_n "(cached
) " >&6
17289 if test -n "$STRIP_FOR_TARGET"; then
17290 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17293 for as_dir in $PATH
17296 test -z "$as_dir" && as_dir=.
17297 for ac_exec_ext in '' $ac_executable_extensions; do
17298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17299 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17300 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17309 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17310 if test -n "$STRIP_FOR_TARGET"; then
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17312 $as_echo "$STRIP_FOR_TARGET" >&6; }
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17315 $as_echo "no
" >&6; }
17322 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17323 for ncn_progname in strip; do
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17325 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17326 if test -x $with_build_time_tools/${ncn_progname}; then
17327 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17329 $as_echo "yes" >&6; }
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17333 $as_echo "no
" >&6; }
17338 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17339 for ncn_progname in strip; do
17340 if test -n "$ncn_target_tool_prefix"; then
17341 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17342 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17344 $as_echo_n "checking
for $ac_word...
" >&6; }
17345 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17346 $as_echo_n "(cached
) " >&6
17348 if test -n "$STRIP_FOR_TARGET"; then
17349 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17352 for as_dir in $PATH
17355 test -z "$as_dir" && as_dir=.
17356 for ac_exec_ext in '' $ac_executable_extensions; do
17357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17358 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17359 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17368 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17369 if test -n "$STRIP_FOR_TARGET"; then
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17371 $as_echo "$STRIP_FOR_TARGET" >&6; }
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17374 $as_echo "no
" >&6; }
17379 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17381 set dummy ${ncn_progname}; ac_word=$2
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17383 $as_echo_n "checking
for $ac_word...
" >&6; }
17384 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17385 $as_echo_n "(cached
) " >&6
17387 if test -n "$STRIP_FOR_TARGET"; then
17388 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17391 for as_dir in $PATH
17394 test -z "$as_dir" && as_dir=.
17395 for ac_exec_ext in '' $ac_executable_extensions; do
17396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17397 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17398 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17407 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17408 if test -n "$STRIP_FOR_TARGET"; then
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17410 $as_echo "$STRIP_FOR_TARGET" >&6; }
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17413 $as_echo "no
" >&6; }
17418 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17422 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17424 if test $build = $target ; then
17425 STRIP_FOR_TARGET="$2"
17427 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17430 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17434 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17440 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17441 if test -n "$with_build_time_tools"; then
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17443 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17444 if test -x $with_build_time_tools/windres; then
17445 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17446 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17448 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17451 $as_echo "no
" >&6; }
17453 elif test $build != $host && test $have_gcc_for_target = yes; then
17454 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17455 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17456 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17459 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17460 # Extract the first word of "windres
", so it can be a program name with args.
17461 set dummy windres; ac_word=$2
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17463 $as_echo_n "checking
for $ac_word...
" >&6; }
17464 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17465 $as_echo_n "(cached
) " >&6
17467 case $WINDRES_FOR_TARGET in
17469 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17473 for as_dir in $gcc_cv_tool_dirs
17476 test -z "$as_dir" && as_dir=.
17477 for ac_exec_ext in '' $ac_executable_extensions; do
17478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17479 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17480 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17490 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17491 if test -n "$WINDRES_FOR_TARGET"; then
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17493 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17496 $as_echo "no
" >&6; }
17501 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17504 if test -n "$WINDRES_FOR_TARGET"; then
17505 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17506 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17507 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17510 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17511 for ncn_progname in windres; do
17512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17513 set dummy ${ncn_progname}; ac_word=$2
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17515 $as_echo_n "checking
for $ac_word...
" >&6; }
17516 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17517 $as_echo_n "(cached
) " >&6
17519 if test -n "$WINDRES_FOR_TARGET"; then
17520 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17523 for as_dir in $PATH
17526 test -z "$as_dir" && as_dir=.
17527 for ac_exec_ext in '' $ac_executable_extensions; do
17528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17529 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17530 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17539 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17540 if test -n "$WINDRES_FOR_TARGET"; then
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17542 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17545 $as_echo "no
" >&6; }
17552 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17553 for ncn_progname in windres; do
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17555 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17556 if test -x $with_build_time_tools/${ncn_progname}; then
17557 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17559 $as_echo "yes" >&6; }
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17563 $as_echo "no
" >&6; }
17568 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17569 for ncn_progname in windres; do
17570 if test -n "$ncn_target_tool_prefix"; then
17571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17572 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17574 $as_echo_n "checking
for $ac_word...
" >&6; }
17575 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17576 $as_echo_n "(cached
) " >&6
17578 if test -n "$WINDRES_FOR_TARGET"; then
17579 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17582 for as_dir in $PATH
17585 test -z "$as_dir" && as_dir=.
17586 for ac_exec_ext in '' $ac_executable_extensions; do
17587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17588 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17589 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17598 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17599 if test -n "$WINDRES_FOR_TARGET"; then
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17601 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17604 $as_echo "no
" >&6; }
17609 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17611 set dummy ${ncn_progname}; ac_word=$2
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17613 $as_echo_n "checking
for $ac_word...
" >&6; }
17614 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17615 $as_echo_n "(cached
) " >&6
17617 if test -n "$WINDRES_FOR_TARGET"; then
17618 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17621 for as_dir in $PATH
17624 test -z "$as_dir" && as_dir=.
17625 for ac_exec_ext in '' $ac_executable_extensions; do
17626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17627 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17628 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17637 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17638 if test -n "$WINDRES_FOR_TARGET"; then
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17640 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17643 $as_echo "no
" >&6; }
17648 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17652 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17654 if test $build = $target ; then
17655 WINDRES_FOR_TARGET="$2"
17657 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17660 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17664 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17670 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17671 if test -n "$with_build_time_tools"; then
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17673 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17674 if test -x $with_build_time_tools/windmc; then
17675 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17676 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17678 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17681 $as_echo "no
" >&6; }
17683 elif test $build != $host && test $have_gcc_for_target = yes; then
17684 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17685 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17686 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17689 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17690 # Extract the first word of "windmc
", so it can be a program name with args.
17691 set dummy windmc; ac_word=$2
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17693 $as_echo_n "checking
for $ac_word...
" >&6; }
17694 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17695 $as_echo_n "(cached
) " >&6
17697 case $WINDMC_FOR_TARGET in
17699 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17703 for as_dir in $gcc_cv_tool_dirs
17706 test -z "$as_dir" && as_dir=.
17707 for ac_exec_ext in '' $ac_executable_extensions; do
17708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17709 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17710 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17720 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17721 if test -n "$WINDMC_FOR_TARGET"; then
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17723 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17726 $as_echo "no
" >&6; }
17731 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17734 if test -n "$WINDMC_FOR_TARGET"; then
17735 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17736 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17737 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17740 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17741 for ncn_progname in windmc; do
17742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17743 set dummy ${ncn_progname}; ac_word=$2
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17745 $as_echo_n "checking
for $ac_word...
" >&6; }
17746 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17747 $as_echo_n "(cached
) " >&6
17749 if test -n "$WINDMC_FOR_TARGET"; then
17750 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17753 for as_dir in $PATH
17756 test -z "$as_dir" && as_dir=.
17757 for ac_exec_ext in '' $ac_executable_extensions; do
17758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17759 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17760 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17769 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17770 if test -n "$WINDMC_FOR_TARGET"; then
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17772 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17775 $as_echo "no
" >&6; }
17782 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17783 for ncn_progname in windmc; do
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17785 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17786 if test -x $with_build_time_tools/${ncn_progname}; then
17787 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17789 $as_echo "yes" >&6; }
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17793 $as_echo "no
" >&6; }
17798 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17799 for ncn_progname in windmc; do
17800 if test -n "$ncn_target_tool_prefix"; then
17801 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17802 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17804 $as_echo_n "checking
for $ac_word...
" >&6; }
17805 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17806 $as_echo_n "(cached
) " >&6
17808 if test -n "$WINDMC_FOR_TARGET"; then
17809 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17812 for as_dir in $PATH
17815 test -z "$as_dir" && as_dir=.
17816 for ac_exec_ext in '' $ac_executable_extensions; do
17817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17818 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17819 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17828 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17829 if test -n "$WINDMC_FOR_TARGET"; then
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17831 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17834 $as_echo "no
" >&6; }
17839 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17841 set dummy ${ncn_progname}; ac_word=$2
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17843 $as_echo_n "checking
for $ac_word...
" >&6; }
17844 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17845 $as_echo_n "(cached
) " >&6
17847 if test -n "$WINDMC_FOR_TARGET"; then
17848 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17851 for as_dir in $PATH
17854 test -z "$as_dir" && as_dir=.
17855 for ac_exec_ext in '' $ac_executable_extensions; do
17856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17857 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17858 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17867 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17868 if test -n "$WINDMC_FOR_TARGET"; then
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17870 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17873 $as_echo "no
" >&6; }
17878 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17882 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17884 if test $build = $target ; then
17885 WINDMC_FOR_TARGET="$2"
17887 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17890 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17894 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17898 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17901 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17902 if test "x
${build}" != "x
${host}" ; then
17903 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17904 # We already found the complete path
17905 ac_dir=`dirname $AR_FOR_TARGET`
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17907 $as_echo "pre-installed
in $ac_dir" >&6; }
17909 # Canadian cross, just use what we found
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17911 $as_echo "pre-installed
" >&6; }
17915 case " ${configdirs} " in
17920 if test $ok = yes; then
17921 # An in-tree tool is available and we can use it
17922 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17924 $as_echo "just compiled
" >&6; }
17925 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17926 # We already found the complete path
17927 ac_dir=`dirname $AR_FOR_TARGET`
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17929 $as_echo "pre-installed
in $ac_dir" >&6; }
17930 elif test "x
$target" = "x
$host"; then
17931 # We can use an host tool
17932 AR_FOR_TARGET='$(AR)'
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17934 $as_echo "host tool
" >&6; }
17936 # We need a cross tool
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17938 $as_echo "pre-installed
" >&6; }
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17943 $as_echo_n "checking where to
find the target as...
" >&6; }
17944 if test "x
${build}" != "x
${host}" ; then
17945 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17946 # We already found the complete path
17947 ac_dir=`dirname $AS_FOR_TARGET`
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17949 $as_echo "pre-installed
in $ac_dir" >&6; }
17951 # Canadian cross, just use what we found
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17953 $as_echo "pre-installed
" >&6; }
17957 case " ${configdirs} " in
17962 if test $ok = yes; then
17963 # An in-tree tool is available and we can use it
17964 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17966 $as_echo "just compiled
" >&6; }
17967 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17968 # We already found the complete path
17969 ac_dir=`dirname $AS_FOR_TARGET`
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17971 $as_echo "pre-installed
in $ac_dir" >&6; }
17972 elif test "x
$target" = "x
$host"; then
17973 # We can use an host tool
17974 AS_FOR_TARGET='$(AS)'
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17976 $as_echo "host tool
" >&6; }
17978 # We need a cross tool
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17980 $as_echo "pre-installed
" >&6; }
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17985 $as_echo_n "checking where to
find the target cc...
" >&6; }
17986 if test "x
${build}" != "x
${host}" ; then
17987 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17988 # We already found the complete path
17989 ac_dir=`dirname $CC_FOR_TARGET`
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17991 $as_echo "pre-installed
in $ac_dir" >&6; }
17993 # Canadian cross, just use what we found
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17995 $as_echo "pre-installed
" >&6; }
17999 case " ${configdirs} " in
18004 if test $ok = yes; then
18005 # An in-tree tool is available and we can use it
18006 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18008 $as_echo "just compiled
" >&6; }
18009 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
18010 # We already found the complete path
18011 ac_dir=`dirname $CC_FOR_TARGET`
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18013 $as_echo "pre-installed
in $ac_dir" >&6; }
18014 elif test "x
$target" = "x
$host"; then
18015 # We can use an host tool
18016 CC_FOR_TARGET='$(CC)'
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18018 $as_echo "host tool
" >&6; }
18020 # We need a cross tool
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18022 $as_echo "pre-installed
" >&6; }
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
18027 $as_echo_n "checking where to
find the target c
++...
" >&6; }
18028 if test "x
${build}" != "x
${host}" ; then
18029 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
18030 # We already found the complete path
18031 ac_dir=`dirname $CXX_FOR_TARGET`
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18033 $as_echo "pre-installed
in $ac_dir" >&6; }
18035 # Canadian cross, just use what we found
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18037 $as_echo "pre-installed
" >&6; }
18041 case " ${configdirs} " in
18045 case ,${enable_languages}, in
18049 if test $ok = yes; then
18050 # An in-tree tool is available and we can use it
18051 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'
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18053 $as_echo "just compiled
" >&6; }
18054 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
18055 # We already found the complete path
18056 ac_dir=`dirname $CXX_FOR_TARGET`
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18058 $as_echo "pre-installed
in $ac_dir" >&6; }
18059 elif test "x
$target" = "x
$host"; then
18060 # We can use an host tool
18061 CXX_FOR_TARGET='$(CXX)'
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18063 $as_echo "host tool
" >&6; }
18065 # We need a cross tool
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18067 $as_echo "pre-installed
" >&6; }
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
18072 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
18073 if test "x
${build}" != "x
${host}" ; then
18074 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
18075 # We already found the complete path
18076 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18078 $as_echo "pre-installed
in $ac_dir" >&6; }
18080 # Canadian cross, just use what we found
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18082 $as_echo "pre-installed
" >&6; }
18086 case " ${configdirs} " in
18090 case ,${enable_languages}, in
18094 if test $ok = yes; then
18095 # An in-tree tool is available and we can use it
18096 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'
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18098 $as_echo "just compiled
" >&6; }
18099 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
18100 # We already found the complete path
18101 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18103 $as_echo "pre-installed
in $ac_dir" >&6; }
18104 elif test "x
$target" = "x
$host"; then
18105 # We can use an host tool
18106 RAW_CXX_FOR_TARGET='$(CXX)'
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18108 $as_echo "host tool
" >&6; }
18110 # We need a cross tool
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18112 $as_echo "pre-installed
" >&6; }
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
18117 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
18118 if test "x
${build}" != "x
${host}" ; then
18119 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18120 # We already found the complete path
18121 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18123 $as_echo "pre-installed
in $ac_dir" >&6; }
18125 # Canadian cross, just use what we found
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18127 $as_echo "pre-installed
" >&6; }
18131 case " ${configdirs} " in
18136 if test $ok = yes; then
18137 # An in-tree tool is available and we can use it
18138 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18140 $as_echo "just compiled
" >&6; }
18141 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18142 # We already found the complete path
18143 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18145 $as_echo "pre-installed
in $ac_dir" >&6; }
18146 elif test "x
$target" = "x
$host"; then
18147 # We can use an host tool
18148 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18150 $as_echo "host tool
" >&6; }
18152 # We need a cross tool
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18154 $as_echo "pre-installed
" >&6; }
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
18159 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
18160 if test "x
${build}" != "x
${host}" ; then
18161 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
18162 # We already found the complete path
18163 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18165 $as_echo "pre-installed
in $ac_dir" >&6; }
18167 # Canadian cross, just use what we found
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18169 $as_echo "pre-installed
" >&6; }
18172 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
18173 # We already found the complete path
18174 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18176 $as_echo "pre-installed
in $ac_dir" >&6; }
18177 elif test "x
$target" = "x
$host"; then
18178 # We can use an host tool
18179 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18181 $as_echo "host tool
" >&6; }
18183 # We need a cross tool
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18185 $as_echo "pre-installed
" >&6; }
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
18190 $as_echo_n "checking where to
find the target gcc...
" >&6; }
18191 if test "x
${build}" != "x
${host}" ; then
18192 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
18193 # We already found the complete path
18194 ac_dir=`dirname $GCC_FOR_TARGET`
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18196 $as_echo "pre-installed
in $ac_dir" >&6; }
18198 # Canadian cross, just use what we found
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18200 $as_echo "pre-installed
" >&6; }
18204 case " ${configdirs} " in
18209 if test $ok = yes; then
18210 # An in-tree tool is available and we can use it
18211 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18213 $as_echo "just compiled
" >&6; }
18214 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
18215 # We already found the complete path
18216 ac_dir=`dirname $GCC_FOR_TARGET`
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18218 $as_echo "pre-installed
in $ac_dir" >&6; }
18219 elif test "x
$target" = "x
$host"; then
18220 # We can use an host tool
18221 GCC_FOR_TARGET='$()'
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18223 $as_echo "host tool
" >&6; }
18225 # We need a cross tool
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18227 $as_echo "pre-installed
" >&6; }
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
18232 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
18233 if test "x
${build}" != "x
${host}" ; then
18234 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
18235 # We already found the complete path
18236 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18238 $as_echo "pre-installed
in $ac_dir" >&6; }
18240 # Canadian cross, just use what we found
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18242 $as_echo "pre-installed
" >&6; }
18246 case " ${configdirs} " in
18250 case ,${enable_languages}, in
18254 if test $ok = yes; then
18255 # An in-tree tool is available and we can use it
18256 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18258 $as_echo "just compiled
" >&6; }
18259 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
18260 # We already found the complete path
18261 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18263 $as_echo "pre-installed
in $ac_dir" >&6; }
18264 elif test "x
$target" = "x
$host"; then
18265 # We can use an host tool
18266 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18268 $as_echo "host tool
" >&6; }
18270 # We need a cross tool
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18272 $as_echo "pre-installed
" >&6; }
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
18277 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
18278 if test "x
${build}" != "x
${host}" ; then
18279 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
18280 # We already found the complete path
18281 ac_dir=`dirname $GOC_FOR_TARGET`
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18283 $as_echo "pre-installed
in $ac_dir" >&6; }
18285 # Canadian cross, just use what we found
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18287 $as_echo "pre-installed
" >&6; }
18291 case " ${configdirs} " in
18295 case ,${enable_languages}, in
18299 if test $ok = yes; then
18300 # An in-tree tool is available and we can use it
18301 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18303 $as_echo "just compiled
" >&6; }
18304 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
18305 # We already found the complete path
18306 ac_dir=`dirname $GOC_FOR_TARGET`
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18308 $as_echo "pre-installed
in $ac_dir" >&6; }
18309 elif test "x
$target" = "x
$host"; then
18310 # We can use an host tool
18311 GOC_FOR_TARGET='$(GOC)'
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18313 $as_echo "host tool
" >&6; }
18315 # We need a cross tool
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18317 $as_echo "pre-installed
" >&6; }
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
18322 $as_echo_n "checking where to
find the target gdc...
" >&6; }
18323 if test "x
${build}" != "x
${host}" ; then
18324 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18325 # We already found the complete path
18326 ac_dir=`dirname $GDC_FOR_TARGET`
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18328 $as_echo "pre-installed
in $ac_dir" >&6; }
18330 # Canadian cross, just use what we found
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18332 $as_echo "pre-installed
" >&6; }
18336 case " ${configdirs} " in
18340 case ,${enable_languages}, in
18344 if test $ok = yes; then
18345 # An in-tree tool is available and we can use it
18346 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18348 $as_echo "just compiled
" >&6; }
18349 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18350 # We already found the complete path
18351 ac_dir=`dirname $GDC_FOR_TARGET`
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18353 $as_echo "pre-installed
in $ac_dir" >&6; }
18354 elif test "x
$target" = "x
$host"; then
18355 # We can use an host tool
18356 GDC_FOR_TARGET='$(GDC)'
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18358 $as_echo "host tool
" >&6; }
18360 # We need a cross tool
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18362 $as_echo "pre-installed
" >&6; }
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gm2
" >&5
18367 $as_echo_n "checking where to
find the target gm2...
" >&6; }
18368 if test "x
${build}" != "x
${host}" ; then
18369 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18370 # We already found the complete path
18371 ac_dir=`dirname $GM2_FOR_TARGET`
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18373 $as_echo "pre-installed
in $ac_dir" >&6; }
18375 # Canadian cross, just use what we found
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18377 $as_echo "pre-installed
" >&6; }
18381 case " ${configdirs} " in
18385 case ,${enable_languages}, in
18389 if test $ok = yes; then
18390 # An in-tree tool is available and we can use it
18391 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18393 $as_echo "just compiled
" >&6; }
18394 elif expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18395 # We already found the complete path
18396 ac_dir=`dirname $GM2_FOR_TARGET`
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18398 $as_echo "pre-installed
in $ac_dir" >&6; }
18399 elif test "x
$target" = "x
$host"; then
18400 # We can use an host tool
18401 GM2_FOR_TARGET='$(GM2)'
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18403 $as_echo "host tool
" >&6; }
18405 # We need a cross tool
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18407 $as_echo "pre-installed
" >&6; }
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
18412 $as_echo_n "checking where to
find the target ld...
" >&6; }
18413 if test "x
${build}" != "x
${host}" ; then
18414 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18415 # We already found the complete path
18416 ac_dir=`dirname $LD_FOR_TARGET`
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18418 $as_echo "pre-installed
in $ac_dir" >&6; }
18420 # Canadian cross, just use what we found
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18422 $as_echo "pre-installed
" >&6; }
18426 case " ${configdirs} " in
18431 if test $ok = yes; then
18432 # An in-tree tool is available and we can use it
18433 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18435 $as_echo "just compiled
" >&6; }
18436 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18437 # We already found the complete path
18438 ac_dir=`dirname $LD_FOR_TARGET`
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18440 $as_echo "pre-installed
in $ac_dir" >&6; }
18441 elif test "x
$target" = "x
$host"; then
18442 # We can use an host tool
18443 LD_FOR_TARGET='$(LD)'
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18445 $as_echo "host tool
" >&6; }
18447 # We need a cross tool
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18449 $as_echo "pre-installed
" >&6; }
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
18454 $as_echo_n "checking where to
find the target lipo...
" >&6; }
18455 if test "x
${build}" != "x
${host}" ; then
18456 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18457 # We already found the complete path
18458 ac_dir=`dirname $LIPO_FOR_TARGET`
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18460 $as_echo "pre-installed
in $ac_dir" >&6; }
18462 # Canadian cross, just use what we found
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18464 $as_echo "pre-installed
" >&6; }
18467 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18468 # We already found the complete path
18469 ac_dir=`dirname $LIPO_FOR_TARGET`
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18471 $as_echo "pre-installed
in $ac_dir" >&6; }
18472 elif test "x
$target" = "x
$host"; then
18473 # We can use an host tool
18474 LIPO_FOR_TARGET='$(LIPO)'
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18476 $as_echo "host tool
" >&6; }
18478 # We need a cross tool
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18480 $as_echo "pre-installed
" >&6; }
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
18485 $as_echo_n "checking where to
find the target nm...
" >&6; }
18486 if test "x
${build}" != "x
${host}" ; then
18487 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18488 # We already found the complete path
18489 ac_dir=`dirname $NM_FOR_TARGET`
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18491 $as_echo "pre-installed
in $ac_dir" >&6; }
18493 # Canadian cross, just use what we found
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18495 $as_echo "pre-installed
" >&6; }
18499 case " ${configdirs} " in
18504 if test $ok = yes; then
18505 # An in-tree tool is available and we can use it
18506 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18508 $as_echo "just compiled
" >&6; }
18509 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18510 # We already found the complete path
18511 ac_dir=`dirname $NM_FOR_TARGET`
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18513 $as_echo "pre-installed
in $ac_dir" >&6; }
18514 elif test "x
$target" = "x
$host"; then
18515 # We can use an host tool
18516 NM_FOR_TARGET='$(NM)'
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18518 $as_echo "host tool
" >&6; }
18520 # We need a cross tool
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18522 $as_echo "pre-installed
" >&6; }
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
18527 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
18528 if test "x
${build}" != "x
${host}" ; then
18529 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18530 # We already found the complete path
18531 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18533 $as_echo "pre-installed
in $ac_dir" >&6; }
18535 # Canadian cross, just use what we found
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18537 $as_echo "pre-installed
" >&6; }
18541 case " ${configdirs} " in
18546 if test $ok = yes; then
18547 # An in-tree tool is available and we can use it
18548 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18550 $as_echo "just compiled
" >&6; }
18551 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18552 # We already found the complete path
18553 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18555 $as_echo "pre-installed
in $ac_dir" >&6; }
18556 elif test "x
$target" = "x
$host"; then
18557 # We can use an host tool
18558 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18560 $as_echo "host tool
" >&6; }
18562 # We need a cross tool
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18564 $as_echo "pre-installed
" >&6; }
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18569 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18570 if test "x
${build}" != "x
${host}" ; then
18571 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18572 # We already found the complete path
18573 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18575 $as_echo "pre-installed
in $ac_dir" >&6; }
18577 # Canadian cross, just use what we found
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18579 $as_echo "pre-installed
" >&6; }
18583 case " ${configdirs} " in
18588 if test $ok = yes; then
18589 # An in-tree tool is available and we can use it
18590 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18592 $as_echo "just compiled
" >&6; }
18593 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18594 # We already found the complete path
18595 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18597 $as_echo "pre-installed
in $ac_dir" >&6; }
18598 elif test "x
$target" = "x
$host"; then
18599 # We can use an host tool
18600 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18602 $as_echo "host tool
" >&6; }
18604 # We need a cross tool
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18606 $as_echo "pre-installed
" >&6; }
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18611 $as_echo_n "checking where to
find the target otool...
" >&6; }
18612 if test "x
${build}" != "x
${host}" ; then
18613 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18614 # We already found the complete path
18615 ac_dir=`dirname $OTOOL_FOR_TARGET`
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18617 $as_echo "pre-installed
in $ac_dir" >&6; }
18619 # Canadian cross, just use what we found
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18621 $as_echo "pre-installed
" >&6; }
18624 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18625 # We already found the complete path
18626 ac_dir=`dirname $OTOOL_FOR_TARGET`
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18628 $as_echo "pre-installed
in $ac_dir" >&6; }
18629 elif test "x
$target" = "x
$host"; then
18630 # We can use an host tool
18631 OTOOL_FOR_TARGET='$(OTOOL)'
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18633 $as_echo "host tool
" >&6; }
18635 # We need a cross tool
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18637 $as_echo "pre-installed
" >&6; }
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18642 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18643 if test "x
${build}" != "x
${host}" ; then
18644 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18645 # We already found the complete path
18646 ac_dir=`dirname $RANLIB_FOR_TARGET`
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18648 $as_echo "pre-installed
in $ac_dir" >&6; }
18650 # Canadian cross, just use what we found
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18652 $as_echo "pre-installed
" >&6; }
18656 case " ${configdirs} " in
18661 if test $ok = yes; then
18662 # An in-tree tool is available and we can use it
18663 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18665 $as_echo "just compiled
" >&6; }
18666 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18667 # We already found the complete path
18668 ac_dir=`dirname $RANLIB_FOR_TARGET`
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18670 $as_echo "pre-installed
in $ac_dir" >&6; }
18671 elif test "x
$target" = "x
$host"; then
18672 # We can use an host tool
18673 RANLIB_FOR_TARGET='$(RANLIB)'
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18675 $as_echo "host tool
" >&6; }
18677 # We need a cross tool
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18679 $as_echo "pre-installed
" >&6; }
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18684 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18685 if test "x
${build}" != "x
${host}" ; then
18686 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18687 # We already found the complete path
18688 ac_dir=`dirname $READELF_FOR_TARGET`
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18690 $as_echo "pre-installed
in $ac_dir" >&6; }
18692 # Canadian cross, just use what we found
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18694 $as_echo "pre-installed
" >&6; }
18698 case " ${configdirs} " in
18703 if test $ok = yes; then
18704 # An in-tree tool is available and we can use it
18705 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18707 $as_echo "just compiled
" >&6; }
18708 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18709 # We already found the complete path
18710 ac_dir=`dirname $READELF_FOR_TARGET`
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18712 $as_echo "pre-installed
in $ac_dir" >&6; }
18713 elif test "x
$target" = "x
$host"; then
18714 # We can use an host tool
18715 READELF_FOR_TARGET='$(READELF)'
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18717 $as_echo "host tool
" >&6; }
18719 # We need a cross tool
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18721 $as_echo "pre-installed
" >&6; }
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18726 $as_echo_n "checking where to
find the target strip...
" >&6; }
18727 if test "x
${build}" != "x
${host}" ; then
18728 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18729 # We already found the complete path
18730 ac_dir=`dirname $STRIP_FOR_TARGET`
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18732 $as_echo "pre-installed
in $ac_dir" >&6; }
18734 # Canadian cross, just use what we found
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18736 $as_echo "pre-installed
" >&6; }
18740 case " ${configdirs} " in
18745 if test $ok = yes; then
18746 # An in-tree tool is available and we can use it
18747 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18749 $as_echo "just compiled
" >&6; }
18750 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18751 # We already found the complete path
18752 ac_dir=`dirname $STRIP_FOR_TARGET`
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18754 $as_echo "pre-installed
in $ac_dir" >&6; }
18755 elif test "x
$target" = "x
$host"; then
18756 # We can use an host tool
18757 STRIP_FOR_TARGET='$(STRIP)'
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18759 $as_echo "host tool
" >&6; }
18761 # We need a cross tool
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18763 $as_echo "pre-installed
" >&6; }
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18768 $as_echo_n "checking where to
find the target windres...
" >&6; }
18769 if test "x
${build}" != "x
${host}" ; then
18770 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18771 # We already found the complete path
18772 ac_dir=`dirname $WINDRES_FOR_TARGET`
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18774 $as_echo "pre-installed
in $ac_dir" >&6; }
18776 # Canadian cross, just use what we found
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18778 $as_echo "pre-installed
" >&6; }
18782 case " ${configdirs} " in
18787 if test $ok = yes; then
18788 # An in-tree tool is available and we can use it
18789 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18791 $as_echo "just compiled
" >&6; }
18792 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18793 # We already found the complete path
18794 ac_dir=`dirname $WINDRES_FOR_TARGET`
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18796 $as_echo "pre-installed
in $ac_dir" >&6; }
18797 elif test "x
$target" = "x
$host"; then
18798 # We can use an host tool
18799 WINDRES_FOR_TARGET='$(WINDRES)'
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18801 $as_echo "host tool
" >&6; }
18803 # We need a cross tool
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18805 $as_echo "pre-installed
" >&6; }
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18810 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18811 if test "x
${build}" != "x
${host}" ; then
18812 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18813 # We already found the complete path
18814 ac_dir=`dirname $WINDMC_FOR_TARGET`
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18816 $as_echo "pre-installed
in $ac_dir" >&6; }
18818 # Canadian cross, just use what we found
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18820 $as_echo "pre-installed
" >&6; }
18824 case " ${configdirs} " in
18829 if test $ok = yes; then
18830 # An in-tree tool is available and we can use it
18831 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18833 $as_echo "just compiled
" >&6; }
18834 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18835 # We already found the complete path
18836 ac_dir=`dirname $WINDMC_FOR_TARGET`
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18838 $as_echo "pre-installed
in $ac_dir" >&6; }
18839 elif test "x
$target" = "x
$host"; then
18840 # We can use an host tool
18841 WINDMC_FOR_TARGET='$(WINDMC)'
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18843 $as_echo "host tool
" >&6; }
18845 # We need a cross tool
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18847 $as_echo "pre-installed
" >&6; }
18855 # Certain tools may need extra flags.
18856 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18857 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18858 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18860 # When building target libraries, except in a Canadian cross, we use
18861 # the same toolchain as the compiler we just built.
18862 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18863 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18864 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18865 if test $host = $build; then
18866 case " $configdirs " in
18868 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18869 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18870 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18880 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18881 # Check whether --enable-maintainer-mode was given.
18882 if test "${enable_maintainer_mode+set}" = set; then :
18883 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18885 USE_MAINTAINER_MODE=no
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18889 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18892 if test "$USE_MAINTAINER_MODE" = yes; then
18893 MAINTAINER_MODE_TRUE=
18894 MAINTAINER_MODE_FALSE='#'
18896 MAINTAINER_MODE_TRUE='#'
18897 MAINTAINER_MODE_FALSE=
18899 MAINT=$MAINTAINER_MODE_TRUE
18901 # ---------------------
18902 # GCC bootstrap support
18903 # ---------------------
18905 # Stage specific cflags for build.
18910 yes) stage1_cflags="-g -Wa,-J" ;;
18911 *) stage1_cflags="-g -J" ;;
18917 # Enable --enable-checking in stage1 of the compiler.
18918 # Check whether --enable-stage1-checking was given.
18919 if test "${enable_stage1_checking+set}" = set; then :
18920 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18922 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18923 # For --disable-checking or implicit --enable-checking=release, avoid
18924 # setting --enable-checking=gc in the default stage1 checking for LTO
18925 # bootstraps. See PR62077.
18926 case $BUILD_CONFIG in
18928 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18930 stage1_checking=--enable-checking=yes,types;;
18932 if test "x
$enable_checking" = x && \
18933 test -d ${srcdir}/gcc && \
18934 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18935 stage1_checking=--enable-checking=yes,types,extra
18938 stage1_checking=--enable-checking=$enable_checking,types
18944 # Enable -Werror in bootstrap stage2 and later.
18945 # Check whether --enable-werror was given.
18946 if test "${enable_werror+set}" = set; then :
18947 enableval=$enable_werror;
18948 case ${enable_werror} in
18949 yes) stage2_werror_flag="--enable-werror-always" ;;
18950 *) stage2_werror_flag="" ;;
18955 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18956 case $BUILD_CONFIG in
18958 stage2_werror_flag="--enable-werror-always" ;;
18960 stage2_werror_flag="--enable-werror-always" ;;
18969 # Specify what files to not compare during bootstrap.
18971 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18972 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
18973 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
18974 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
18976 hppa*64*-*-hpux*) ;;
18977 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18981 ac_config_files="$ac_config_files Makefile
"
18983 cat >confcache <<\_ACEOF
18984 # This file is a shell script that caches the results of configure
18985 # tests run on this system so they can be shared between configure
18986 # scripts and configure runs, see configure's option --config-cache.
18987 # It is not useful on other systems. If it contains results you don't
18988 # want to keep, you may remove or edit it.
18990 # config.status only pays attention to the cache file if you give it
18991 # the --recheck option to rerun configure.
18993 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18994 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18995 # following values.
18999 # The following way of writing the cache mishandles newlines in values,
19000 # but we know of no workaround that is simple, portable, and efficient.
19001 # So, we kill variables containing newlines.
19002 # Ultrix sh set writes to stderr and can't be redirected directly,
19003 # and sets the high bit in the cache file unless we assign to the vars.
19005 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19006 eval ac_val=\$$ac_var
19010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
19011 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
19014 _ | IFS | as_nl) ;; #(
19015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19016 *) { eval $ac_var=; unset $ac_var;} ;;
19022 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19023 *${as_nl}ac_space=\ *)
19024 # `set' does not quote correctly, so add quotes: double-quote
19025 # substitution turns \\\\ into \\, and sed turns \\ into \.
19028 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
19031 # `set' quotes correctly as required by POSIX, so do not add quotes.
19032 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
19041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19043 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19045 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19046 if test -w "$cache_file"; then
19047 if test "x
$cache_file" != "x
/dev
/null
"; then
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
19049 $as_echo "$as_me: updating cache
$cache_file" >&6;}
19050 if test ! -f "$cache_file" || test -h "$cache_file"; then
19051 cat confcache >"$cache_file"
19053 case $cache_file in #(
19055 mv -f confcache "$cache_file"$$ &&
19056 mv -f "$cache_file"$$ "$cache_file" ;; #(
19058 mv -f confcache "$cache_file" ;;
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
19064 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
19069 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
19070 # Let make expand exec_prefix.
19071 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
19073 # Transform confdefs.h into DEFS.
19074 # Protect against shell expansion while executing Makefile rules.
19075 # Protect against Makefile macro expansion.
19077 # If the first sed substitution is executed (which looks for macros that
19078 # take arguments), then branch to the quote section. Otherwise,
19079 # look for a macro that doesn't take arguments.
19089 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19091 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19095 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
19108 DEFS=`sed -n "$ac_script" confdefs.h`
19114 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19115 # 1. Remove the extension, and $U if already installed.
19116 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
19117 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19118 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19119 # will be set to the directory where LIBOBJS objects are built.
19120 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19121 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
19123 LIBOBJS=$ac_libobjs
19125 LTLIBOBJS=$ac_ltlibobjs
19129 : "${CONFIG_STATUS=./config.status}"
19131 ac_clean_files_save=$ac_clean_files
19132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19134 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19136 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19138 # Generated by $as_me.
19139 # Run this file to recreate the current configuration.
19140 # Compiler output produced by configure, useful for debugging
19141 # configure, is in config.log if it exists.
19144 ac_cs_recheck=false
19147 SHELL=\${CONFIG_SHELL-$SHELL}
19150 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19151 ## -------------------- ##
19152 ## M4sh Initialization. ##
19153 ## -------------------- ##
19155 # Be more Bourne compatible
19156 DUALCASE=1; export DUALCASE # for MKS sh
19157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19160 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19161 # is contrary to our usage. Disable this feature.
19162 alias -g '${1+"$@"}'='"$@"'
19163 setopt NO_GLOB_SUBST
19165 case `(set -o) 2>/dev/null` in #(
19177 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19178 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19179 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
19180 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19181 # Prefer a ksh shell builtin over an external printf program on Solaris,
19182 # but without wasting forks for bash or zsh.
19183 if test -z "$BASH_VERSION$ZSH_VERSION" \
19184 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
19185 as_echo
='print -r --'
19186 as_echo_n
='print -rn --'
19187 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
19188 as_echo
='printf %s\n'
19189 as_echo_n
='printf %s'
19191 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19192 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
19193 as_echo_n
='/usr/ucb/echo -n'
19195 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
19196 as_echo_n_body
='eval
19200 expr "X$arg" : "X\\(.*\\)$as_nl";
19201 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19203 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19205 export as_echo_n_body
19206 as_echo_n
='sh -c $as_echo_n_body as_echo'
19208 export as_echo_body
19209 as_echo
='sh -c $as_echo_body as_echo'
19212 # The user is always right.
19213 if test "${PATH_SEPARATOR+set}" != set; then
19215 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
19216 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
19223 # We need space, tab and new line, in precisely that order. Quoting is
19224 # there to prevent editors from complaining about space-tab.
19225 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19226 # splitting by setting IFS to empty value.)
19229 # Find who we are. Look in the path if we contain no directory separator.
19232 *[\\/]* ) as_myself
=$0 ;;
19233 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19234 for as_dir
in $PATH
19237 test -z "$as_dir" && as_dir
=.
19238 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19244 # We did not find ourselves, most probably we were run as `sh COMMAND'
19245 # in which case we are not to be found in the path.
19246 if test "x$as_myself" = x
; then
19249 if test ! -f "$as_myself"; then
19250 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19254 # Unset variables that we do not need and which cause bugs (e.g. in
19255 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19256 # suppresses any "Segmentation fault" message there. '((' could
19257 # trigger a bug in pdksh 5.2.14.
19258 for as_var
in BASH_ENV ENV MAIL MAILPATH
19259 do eval test x\
${$as_var+set} = xset \
19260 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19273 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19276 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19277 # ----------------------------------------
19278 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19279 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19280 # script with STATUS, using 1 if that was 0.
19283 as_status
=$1; test $as_status -eq 0 && as_status
=1
19285 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19286 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19288 $as_echo "$as_me: error: $2" >&2
19289 as_fn_exit
$as_status
19293 # as_fn_set_status STATUS
19294 # -----------------------
19295 # Set $? to STATUS, without forking.
19296 as_fn_set_status
()
19299 } # as_fn_set_status
19301 # as_fn_exit STATUS
19302 # -----------------
19303 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19307 as_fn_set_status
$1
19313 # Portably unset VAR.
19316 { eval $1=; unset $1;}
19318 as_unset
=as_fn_unset
19319 # as_fn_append VAR VALUE
19320 # ----------------------
19321 # Append the text in VALUE to the end of the definition contained in VAR. Take
19322 # advantage of any shell optimizations that allow amortized linear growth over
19323 # repeated appends, instead of the typical quadratic growth present in naive
19325 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19326 eval 'as_fn_append ()
19337 # as_fn_arith ARG...
19338 # ------------------
19339 # Perform arithmetic evaluation on the ARGs, and store the result in the
19340 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19341 # must be portable across $(()) and expr.
19342 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19343 eval 'as_fn_arith ()
19350 as_val
=`expr "$@" || test $? -eq 1`
19355 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19356 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19362 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19363 as_basename
=basename
19368 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19374 as_me
=`$as_basename -- "$0" ||
19375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19376 X"$0" : 'X\(//\)$' \| \
19377 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19379 sed '/^.*\/\([^/][^/]*\)\/*$/{
19393 # Avoid depending upon Character Ranges.
19394 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19395 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19396 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19397 as_cr_digits
='0123456789'
19398 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19400 ECHO_C
= ECHO_N
= ECHO_T
=
19401 case `echo -n x` in #(((((
19403 case `echo 'xy\c'` in
19404 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19406 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19413 rm -f conf$$ conf$$.exe conf$$.
file
19414 if test -d conf$$.dir
; then
19415 rm -f conf$$.dir
/conf$$.
file
19418 mkdir conf$$.dir
2>/dev
/null
19420 if (echo >conf$$.
file) 2>/dev
/null
; then
19421 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19423 # ... but there are two gotchas:
19424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19426 # In both cases, we have to default to `cp -pR'.
19427 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19429 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19437 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19438 rmdir conf$$.dir
2>/dev
/null
19443 # Create "$as_dir" as a directory, including parents if necessary.
19448 -*) as_dir
=.
/$as_dir;;
19450 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19454 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19455 *) as_qdir
=$as_dir;;
19457 as_dirs
="'$as_qdir' $as_dirs"
19458 as_dir
=`$as_dirname -- "$as_dir" ||
19459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19460 X"$as_dir" : 'X\(//\)[^/]' \| \
19461 X"$as_dir" : 'X\(//\)$' \| \
19462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19463 $as_echo X"$as_dir" |
19464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19468 /^X\(\/\/\)[^/].*/{
19481 test -d "$as_dir" && break
19483 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19484 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19488 if mkdir
-p .
2>/dev
/null
; then
19489 as_mkdir_p
='mkdir -p "$as_dir"'
19491 test -d .
/-p && rmdir .
/-p
19496 # as_fn_executable_p FILE
19497 # -----------------------
19498 # Test if FILE is an executable regular file.
19499 as_fn_executable_p
()
19501 test -f "$1" && test -x "$1"
19502 } # as_fn_executable_p
19503 as_test_x
='test -x'
19504 as_executable_p
=as_fn_executable_p
19506 # Sed expression to map a string onto a valid CPP name.
19507 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19509 # Sed expression to map a string onto a valid variable name.
19510 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19514 ## ----------------------------------- ##
19515 ## Main body of $CONFIG_STATUS script. ##
19516 ## ----------------------------------- ##
19518 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19521 # Save the log message, to keep $0 and so on meaningful, and to
19522 # report actual input values of CONFIG_FILES etc. instead of their
19523 # values after options handling.
19525 This file was extended by $as_me, which was
19526 generated by GNU Autoconf 2.69. Invocation command line was
19528 CONFIG_FILES = $CONFIG_FILES
19529 CONFIG_HEADERS = $CONFIG_HEADERS
19530 CONFIG_LINKS = $CONFIG_LINKS
19531 CONFIG_COMMANDS = $CONFIG_COMMANDS
19534 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19539 case $ac_config_files in *"
19540 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19546 # Files that config.status was made for.
19547 config_files="$ac_config_files"
19551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19553 \`$as_me' instantiates files and other configuration actions
19554 from templates according to the current configuration. Unless the files
19555 and actions are specified as TAGs, all are instantiated by default.
19557 Usage: $0 [OPTION]... [TAG]...
19559 -h, --help print this help, then exit
19560 -V, --version print version number and configuration settings, then exit
19561 --config print configuration, then exit
19562 -q, --quiet, --silent
19563 do not print progress messages
19564 -d, --debug don't remove temporary files
19565 --recheck update $as_me by reconfiguring in the same conditions
19566 --file=FILE[:TEMPLATE]
19567 instantiate the configuration file FILE
19569 Configuration files:
19572 Report bugs to the package provider."
19575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19576 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19579 configured by $0, generated by GNU Autoconf 2.69,
19580 with options \\"\$ac_cs_config\\"
19582 Copyright (C) 2012 Free Software Foundation, Inc.
19583 This config.status script is free software; the Free Software Foundation
19584 gives unlimited permission to copy, distribute and modify it."
19590 test -n "\$AWK" || AWK=awk
19593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19594 # The default lists apply if the user does not specify any file.
19600 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19601 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19605 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19617 # Handling of the options.
19618 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19620 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19621 $as_echo "$ac_cs_version"; exit ;;
19622 --config |
--confi |
--conf |
--con |
--co |
--c )
19623 $as_echo "$ac_cs_config"; exit ;;
19624 --debug |
--debu |
--deb |
--de |
--d |
-d )
19626 --file |
--fil |
--fi |
--f )
19629 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19630 '') as_fn_error $?
"missing file argument" ;;
19632 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19633 ac_need_defaults
=false
;;
19634 --he |
--h |
--help |
--hel |
-h )
19635 $as_echo "$ac_cs_usage"; exit ;;
19636 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19637 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19640 # This is an error.
19641 -*) as_fn_error $?
"unrecognized option: \`$1'
19642 Try \`$0 --help' for more information." ;;
19644 *) as_fn_append ac_config_targets
" $1"
19645 ac_need_defaults
=false
;;
19651 ac_configure_extra_args
=
19653 if $ac_cs_silent; then
19655 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19660 if \$ac_cs_recheck; then
19661 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19663 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19664 CONFIG_SHELL='$SHELL'
19665 export CONFIG_SHELL
19670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19675 ## Running $as_me. ##
19681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19685 extrasub_build="$extrasub_build"
19686 extrasub_host="$extrasub_host"
19687 extrasub_target="$extrasub_target"
19691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19693 # Handling of arguments.
19694 for ac_config_target
in $ac_config_targets
19696 case $ac_config_target in
19697 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19699 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19704 # If the user did not use the arguments to specify the items to instantiate,
19705 # then the envvar interface is used. Set only those that are not.
19706 # We use the long form for the default assignment because of an extremely
19707 # bizarre bug on SunOS 4.1.3.
19708 if $ac_need_defaults; then
19709 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19712 # Have a temporary directory for convenience. Make it in the build tree
19713 # simply because there is no reason against having it here, and in addition,
19714 # creating and moving files from /tmp can sometimes cause problems.
19715 # Hook for its removal unless debugging.
19716 # Note that there is a small window in which the directory will not be cleaned:
19717 # after its creation but before its name has been assigned to `$tmp'.
19721 trap 'exit_status=$?
19722 : "${ac_tmp:=$tmp}"
19723 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19725 trap 'as_fn_exit 1' 1 2 13 15
19727 # Create a (secure) tmp directory for tmp files.
19730 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19734 tmp
=.
/conf$$
-$RANDOM
19735 (umask 077 && mkdir
"$tmp")
19736 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19739 # Set up the scripts for CONFIG_FILES section.
19740 # No need to generate them if there are no CONFIG_FILES.
19741 # This happens for instance with `./config.status config.h'.
19742 if test -n "$CONFIG_FILES"; then
19744 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19745 ac_cs_awk_getline
=:
19746 ac_cs_awk_pipe_init
=
19747 ac_cs_awk_read_file
='
19748 while ((getline aline < (F[key])) > 0)
19751 ac_cs_awk_pipe_fini
=
19753 ac_cs_awk_getline
=false
19754 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19755 ac_cs_awk_read_file
='
19757 print "cat " F[key] " &&"
19758 '$ac_cs_awk_pipe_init
19759 # The final `:' finishes the AND list.
19760 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19762 ac_cr
=`echo X | tr X '\015'`
19763 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19764 # But we know of no other shell where ac_cr would be empty at this
19765 # point, so we can use a bashism as a fallback.
19766 if test "x$ac_cr" = x
; then
19767 eval ac_cr
=\$
\'\\r
\'
19769 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19770 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19773 ac_cs_awk_cr
=$ac_cr
19776 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19779 # Create commands to substitute file output variables.
19781 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19782 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19783 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19786 } >conf$
$files.sh
&&
19787 . .
/conf$
$files.sh ||
19788 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19789 rm -f conf$
$files.sh
19792 echo "cat >conf$$subs.awk <<_ACEOF" &&
19793 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19795 } >conf$$subs.sh ||
19796 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19797 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19799 for ac_last_try in false false false false false :; do
19800 . ./conf$$subs.sh ||
19801 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19803 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19804 if test $ac_delim_n = $ac_delim_num; then
19806 elif $ac_last_try; then
19807 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19809 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19812 rm -f conf$$subs.sh
19814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19815 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19819 s/^/S["/; s
/!.
*/"]=/
19829 s/\(.\{148\}\)..*/\1/
19831 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19836 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19843 s/\(.\{148\}\)..*/\1/
19845 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19849 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19854 ' <conf$$subs.awk | sed '
19859 ' >>$CONFIG_STATUS || ac_write_fail=1
19860 rm -f conf$$subs.awk
19861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19863 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19864 for (key in S) S_is_set[key] = 1
19866 \$ac_cs_awk_pipe_init
19870 nfields = split(line, field, "@
")
19872 len = length(field[1])
19873 for (i = 2; i < nfields; i++) {
19875 keylen = length(key)
19876 if (S_is_set[key]) {
19878 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19879 len += length(value) + length(field[++i])
19884 if (nfields == 3 && !substed) {
19886 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19887 \$ac_cs_awk_read_file
19893 \$ac_cs_awk_pipe_fini
19896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19897 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19898 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19901 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19902 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19905 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19906 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19907 # trailing colons and then remove the whole line if VPATH becomes empty
19908 # (actually we leave an empty line to preserve line numbers).
19909 if test "x
$srcdir" = x.; then
19910 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19929 fi # test -n "$CONFIG_FILES"
19932 eval set X " :F
$CONFIG_FILES "
19937 :[FHLC]) ac_mode=$ac_tag; continue;;
19939 case $ac_mode$ac_tag in
19941 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19942 :[FH]-) ac_tag=-:-;;
19943 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19960 -) ac_f="$ac_tmp/stdin";;
19961 *) # Look for the file first in the build tree, then in the source tree
19962 # (if the path is not absolute). The absolute path cannot be DOS-style,
19963 # because $ac_f cannot contain `:'.
19967 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19969 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19971 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19972 as_fn_append ac_file_inputs " '$ac_f'"
19975 # Let's still pretend it is `configure' which instantiates (i.e., don't
19976 # use $as_me), people would be surprised to read:
19977 # /* config.h. Generated by config.status. */
19978 configure_input='Generated from '`
19979 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19981 if test x"$ac_file" != x-; then
19982 configure_input="$ac_file.
$configure_input"
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19984 $as_echo "$as_me: creating
$ac_file" >&6;}
19986 # Neutralize special characters interpreted by sed in replacement strings.
19987 case $configure_input in #(
19988 *\&* | *\|* | *\\* )
19989 ac_sed_conf_input=`$as_echo "$configure_input" |
19990 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19991 *) ac_sed_conf_input=$configure_input;;
19995 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19996 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
20001 ac_dir=`$as_dirname -- "$ac_file" ||
20002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20003 X"$ac_file" : 'X\(//\)[^/]' \| \
20004 X"$ac_file" : 'X\(//\)$' \| \
20005 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20006 $as_echo X"$ac_file" |
20007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20011 /^X\(\/\/\)[^/].*/{
20024 as_dir="$ac_dir"; as_fn_mkdir_p
20028 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20030 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20031 # A "..
" for each directory in $ac_dir_suffix.
20032 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20033 case $ac_top_builddir_sub in
20034 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20035 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20038 ac_abs_top_builddir=$ac_pwd
20039 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20040 # for backward compatibility:
20041 ac_top_builddir=$ac_top_build_prefix
20044 .) # We are building in place.
20046 ac_top_srcdir=$ac_top_builddir_sub
20047 ac_abs_top_srcdir=$ac_pwd ;;
20048 [\\/]* | ?:[\\/]* ) # Absolute name.
20049 ac_srcdir=$srcdir$ac_dir_suffix;
20050 ac_top_srcdir=$srcdir
20051 ac_abs_top_srcdir=$srcdir ;;
20052 *) # Relative name.
20053 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20054 ac_top_srcdir=$ac_top_build_prefix$srcdir
20055 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20057 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20067 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20068 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20073 # If the template does not know about datarootdir, expand it.
20074 # FIXME: This hack should be removed a few years after 2.60.
20075 ac_datarootdir_hack=; ac_datarootdir_seen=
20086 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
20087 *datarootdir*) ac_datarootdir_seen=yes;;
20088 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
20090 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
20092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20093 ac_datarootdir_hack='
20094 s&@datadir@&$datadir&g
20095 s&@docdir@&$docdir&g
20096 s&@infodir@&$infodir&g
20097 s&@localedir@&$localedir&g
20098 s&@mandir@&$mandir&g
20099 s&\\\${datarootdir}&$datarootdir&g' ;;
20103 # Neutralize VPATH when `$srcdir' = `.'.
20104 # Shell code in configure.ac might set extrasub.
20105 # FIXME: do we really want to maintain this feature?
20106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20107 ac_sed_extra="$ac_vpsub
20110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20112 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20113 s|@configure_input@|
$ac_sed_conf_input|
;t t
20114 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20115 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20116 s
&@srcdir@
&$ac_srcdir&;t t
20117 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20118 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20119 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20120 s
&@builddir@
&$ac_builddir&;t t
20121 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20122 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20123 s
&@INSTALL@
&$ac_INSTALL&;t t
20124 $ac_datarootdir_hack
20126 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20127 if $ac_cs_awk_getline; then
20128 $AWK -f "$ac_tmp/subs.
awk"
20130 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20132 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20134 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20135 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20136 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20137 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20139 which seems to be undefined. Please make sure it is defined" >&5
20140 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20141 which seems to be undefined. Please make sure it is defined" >&2;}
20143 rm -f "$ac_tmp/stdin"
20145 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20146 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20156 case $ac_file$ac_mode in
20157 "Makefile":F) sed "$extrasub_build" Makefile |
20158 sed "$extrasub_host" |
20159 sed "$extrasub_target" > mf$$
20160 mv -f mf$$ Makefile ;;
20168 ac_clean_files=$ac_clean_files_save
20170 test $ac_write_fail = 0 ||
20171 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20174 # configure is writing to config.log, and then calls config.status.
20175 # config.status does its own redirection, appending to config.log.
20176 # Unfortunately, on DOS this fails, as config.log is still kept open
20177 # by configure, so config.status won't be able to
write to it
; its
20178 # output is simply discarded. So we exec the FD to /dev/null,
20179 # effectively closing config.log, so it can be properly (re)opened and
20180 # appended to by config.status. When coming back to configure, we
20181 # need to make the FD available again.
20182 if test "$no_create" != yes; then
20184 ac_config_status_args
=
20185 test "$silent" = yes &&
20186 ac_config_status_args
="$ac_config_status_args --quiet"
20188 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20190 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20191 # would make configure fail if this is the last instruction.
20192 $ac_cs_success || as_fn_exit
1
20194 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20196 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}