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
685 DEBUG_PREFIX_CFLAGS_FOR_TARGET
686 SYSROOT_CFLAGS_FOR_TARGET
688 extra_host_zlib_configure_flags
689 extra_host_libiberty_configure_flags
696 extra_linker_plugin_flags
697 extra_linker_plugin_configure_flags
704 extra_isl_gmp_configure_flags
705 extra_mpc_mpfr_configure_flags
706 extra_mpc_gmp_configure_flags
707 extra_mpfr_configure_flags
755 TOPLEVEL_CONFIGURE_ARGUMENTS
783 program_transform_name
794 ac_subst_files
='serialization_dependencies
800 enable_option_checking
804 enable_as_accelerator_for
805 enable_offload_targets
806 enable_offload_defaulted
809 enable_compressed_debug_sections
810 enable_default_compressed_debug_sections_algorithm
812 enable_libquadmath_support
829 with_static_standard_libraries
836 enable_isl_version_check
838 enable_linker_plugin_configure_flags
839 enable_linker_plugin_flags
842 enable_stage1_languages
845 with_target_bdw_gc_include
846 with_target_bdw_gc_lib
847 with_gcc_major_version_only
849 with_debug_prefix_map
852 enable_serial_configure
853 with_build_time_tools
854 enable_maintainer_mode
855 enable_stage1_checking
858 ac_precious_vars
='build_alias
911 # Initialize some variables set by options.
913 ac_init_version
=false
914 ac_unrecognized_opts
=
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
925 program_transform_name
=s
,x
,x
,
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir
='${exec_prefix}/bin'
940 sbindir
='${exec_prefix}/sbin'
941 libexecdir
='${exec_prefix}/libexec'
942 datarootdir
='${prefix}/share'
943 datadir
='${datarootdir}'
944 sysconfdir
='${prefix}/etc'
945 sharedstatedir
='${prefix}/com'
946 localstatedir
='${prefix}/var'
947 includedir
='${prefix}/include'
948 oldincludedir
='/usr/include'
949 docdir
='${datarootdir}/doc/${PACKAGE}'
950 infodir
='${datarootdir}/info'
955 libdir
='${exec_prefix}/lib'
956 localedir
='${datarootdir}/locale'
957 mandir
='${datarootdir}/man'
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\
$ac_option
971 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 # Accept the important Cygnus configure options, so we can diagnose typos.
978 case $ac_dashdash$ac_option in
982 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
984 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
987 -build |
--build |
--buil |
--bui |
--bu)
988 ac_prev
=build_alias
;;
989 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
990 build_alias
=$ac_optarg ;;
992 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
993 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
994 ac_prev
=cache_file
;;
995 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
996 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
997 cache_file
=$ac_optarg ;;
1000 cache_file
=config.cache
;;
1002 -datadir |
--datadir |
--datadi |
--datad)
1004 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1005 datadir
=$ac_optarg ;;
1007 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1008 |
--dataroo |
--dataro |
--datar)
1009 ac_prev
=datarootdir
;;
1010 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1011 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1012 datarootdir
=$ac_optarg ;;
1014 -disable-* |
--disable-*)
1015 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1018 as_fn_error $?
"invalid feature name: $ac_useropt"
1019 ac_useropt_orig
=$ac_useropt
1020 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_
$ac_useropt"
1025 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep
=', ';;
1028 eval enable_
$ac_useropt=no
;;
1030 -docdir |
--docdir |
--docdi |
--doc |
--do)
1032 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1033 docdir
=$ac_optarg ;;
1035 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1037 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1038 dvidir
=$ac_optarg ;;
1040 -enable-* |
--enable-*)
1041 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1044 as_fn_error $?
"invalid feature name: $ac_useropt"
1045 ac_useropt_orig
=$ac_useropt
1046 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "enable_
$ac_useropt"
1051 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052 ac_unrecognized_sep
=', ';;
1054 eval enable_
$ac_useropt=\
$ac_optarg ;;
1056 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1057 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1058 |
--exec |
--exe |
--ex)
1059 ac_prev
=exec_prefix
;;
1060 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1061 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1062 |
--exec=* |
--exe=* |
--ex=*)
1063 exec_prefix
=$ac_optarg ;;
1065 -gas |
--gas |
--ga |
--g)
1066 # Obsolete; use --with-gas.
1069 -help |
--help |
--hel |
--he |
-h)
1070 ac_init_help
=long
;;
1071 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1072 ac_init_help
=recursive
;;
1073 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1074 ac_init_help
=short
;;
1076 -host |
--host |
--hos |
--ho)
1077 ac_prev
=host_alias
;;
1078 -host=* |
--host=* |
--hos=* |
--ho=*)
1079 host_alias
=$ac_optarg ;;
1081 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1083 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1085 htmldir
=$ac_optarg ;;
1087 -includedir |
--includedir |
--includedi |
--included |
--include \
1088 |
--includ |
--inclu |
--incl |
--inc)
1089 ac_prev
=includedir
;;
1090 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1091 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1092 includedir
=$ac_optarg ;;
1094 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1096 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1097 infodir
=$ac_optarg ;;
1099 -libdir |
--libdir |
--libdi |
--libd)
1101 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1102 libdir
=$ac_optarg ;;
1104 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1105 |
--libexe |
--libex |
--libe)
1106 ac_prev
=libexecdir
;;
1107 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1108 |
--libexe=* |
--libex=* |
--libe=*)
1109 libexecdir
=$ac_optarg ;;
1111 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1112 ac_prev
=localedir
;;
1113 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1114 localedir
=$ac_optarg ;;
1116 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1117 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1118 ac_prev
=localstatedir
;;
1119 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1120 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1121 localstatedir
=$ac_optarg ;;
1123 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1125 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1126 mandir
=$ac_optarg ;;
1128 -nfp |
--nfp |
--nf)
1129 # Obsolete; use --without-fp.
1132 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1133 |
--no-cr |
--no-c |
-n)
1136 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1137 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1140 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1141 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1142 |
--oldin |
--oldi |
--old |
--ol |
--o)
1143 ac_prev
=oldincludedir
;;
1144 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1145 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1146 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1147 oldincludedir
=$ac_optarg ;;
1149 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1151 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1152 prefix
=$ac_optarg ;;
1154 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1155 |
--program-pre |
--program-pr |
--program-p)
1156 ac_prev
=program_prefix
;;
1157 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1158 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1159 program_prefix
=$ac_optarg ;;
1161 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1162 |
--program-suf |
--program-su |
--program-s)
1163 ac_prev
=program_suffix
;;
1164 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1165 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1166 program_suffix
=$ac_optarg ;;
1168 -program-transform-name |
--program-transform-name \
1169 |
--program-transform-nam |
--program-transform-na \
1170 |
--program-transform-n |
--program-transform- \
1171 |
--program-transform |
--program-transfor \
1172 |
--program-transfo |
--program-transf \
1173 |
--program-trans |
--program-tran \
1174 |
--progr-tra |
--program-tr |
--program-t)
1175 ac_prev
=program_transform_name
;;
1176 -program-transform-name=* |
--program-transform-name=* \
1177 |
--program-transform-nam=* |
--program-transform-na=* \
1178 |
--program-transform-n=* |
--program-transform-=* \
1179 |
--program-transform=* |
--program-transfor=* \
1180 |
--program-transfo=* |
--program-transf=* \
1181 |
--program-trans=* |
--program-tran=* \
1182 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1183 program_transform_name
=$ac_optarg ;;
1185 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1187 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1188 pdfdir
=$ac_optarg ;;
1190 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1192 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1195 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1196 |
-silent |
--silent |
--silen |
--sile |
--sil)
1199 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1201 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1203 sbindir
=$ac_optarg ;;
1205 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1206 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1207 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1209 ac_prev
=sharedstatedir
;;
1210 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1211 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1212 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1214 sharedstatedir
=$ac_optarg ;;
1216 -site |
--site |
--sit)
1218 -site=* |
--site=* |
--sit=*)
1221 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1223 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1224 srcdir
=$ac_optarg ;;
1226 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1227 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1228 ac_prev
=sysconfdir
;;
1229 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1230 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1231 sysconfdir
=$ac_optarg ;;
1233 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1234 ac_prev
=target_alias
;;
1235 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1236 target_alias
=$ac_optarg ;;
1238 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1241 -version |
--version |
--versio |
--versi |
--vers |
-V)
1242 ac_init_version
=: ;;
1245 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1248 as_fn_error $?
"invalid package name: $ac_useropt"
1249 ac_useropt_orig
=$ac_useropt
1250 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1255 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1256 ac_unrecognized_sep
=', ';;
1258 eval with_
$ac_useropt=\
$ac_optarg ;;
1260 -without-* |
--without-*)
1261 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1264 as_fn_error $?
"invalid package name: $ac_useropt"
1265 ac_useropt_orig
=$ac_useropt
1266 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1271 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1272 ac_unrecognized_sep
=', ';;
1274 eval with_
$ac_useropt=no
;;
1277 # Obsolete; use --with-x.
1280 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1281 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1282 ac_prev
=x_includes
;;
1283 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1284 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1285 x_includes
=$ac_optarg ;;
1287 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1288 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1289 ac_prev
=x_libraries
;;
1290 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1291 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1292 x_libraries
=$ac_optarg ;;
1294 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1295 Try \`$0 --help' for more information"
1299 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1300 # Reject names that are not valid shell variable names.
1301 case $ac_envvar in #(
1302 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1303 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1305 eval $ac_envvar=\
$ac_optarg
1306 export $ac_envvar ;;
1309 # FIXME: should be removed in autoconf 3.0.
1310 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1311 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1312 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1313 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1319 if test -n "$ac_prev"; then
1320 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1321 as_fn_error $?
"missing argument to $ac_option"
1324 if test -n "$ac_unrecognized_opts"; then
1325 case $enable_option_checking in
1327 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1328 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 # Check all directory arguments for consistency.
1333 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334 datadir sysconfdir sharedstatedir localstatedir includedir \
1335 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336 libdir localedir mandir
1338 eval ac_val
=\$
$ac_var
1339 # Remove trailing slashes.
1342 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1343 eval $ac_var=\
$ac_val;;
1345 # Be sure to have absolute directory names.
1347 [\\/$
]* | ?
:[\\/]* ) continue;;
1348 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1350 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1353 # There might be people who depend on the old broken behavior: `$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1358 target
=$target_alias
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x
; then
1362 if test "x$build_alias" = x
; then
1363 cross_compiling
=maybe
1364 elif test "x$build_alias" != "x$host_alias"; then
1370 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1372 test "$silent" = yes && exec 6>/dev
/null
1375 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di
=`ls -di .` &&
1377 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1378 as_fn_error $?
"working directory cannot be determined"
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 as_fn_error $?
"pwd does not report name of working directory"
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385 ac_srcdir_defaulted
=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir
=`$as_dirname -- "$as_myself" ||
1388 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$as_myself" : 'X\(//\)[^/]' \| \
1390 X"$as_myself" : 'X\(//\)$' \| \
1391 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1392 $as_echo X"$as_myself" |
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1415 ac_srcdir_defaulted
=no
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1419 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1421 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1433 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 as_fn_error $?
"path to source, $srcdir, contains spaces"
1440 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1442 for ac_var
in $ac_precious_vars; do
1443 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1445 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1450 # Report the --help message.
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1456 \`configure' configures this package to adapt to many kinds of systems.
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1463 Defaults for the options are specified in brackets.
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking ...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1487 For better control, use the options below.
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1519 --build=BUILD configure
for building on BUILD
[guessed
]
1520 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1521 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1525 if test -n "$ac_init_help"; then
1530 --disable-option-checking ignore unrecognized
--enable/--with options
1531 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1532 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1533 --enable-as-accelerator-for=ARG
1534 build as offload target compiler. Specify offload
1536 --enable-offload-targets=LIST
1537 enable offloading to devices from comma-separated
1538 LIST of TARGET
[=DIR
]. Use optional path to
find
1539 offload target compiler during the build
1540 --enable-offload-defaulted
1541 If enabled
, configured but not installed offload compilers and
1542 libgomp plugins are silently ignored. Useful
for distribution
1543 compilers where those are
in separate optional packages.
1545 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1546 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1547 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1548 Enable compressed debug sections
for gas
, gold or ld
1550 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1551 Default compression algorithm
for
1552 --enable-compressed-debug-sections.
1553 --disable-libquadmath do not build libquadmath directory
1554 --disable-libquadmath-support
1555 disable libquadmath support
for Fortran
1556 --enable-libada build libada directory
1557 --enable-libgm2 build libgm2 directory
1558 --enable-libssp build libssp directory
1559 --disable-libstdcxx do not build libstdc
++-v3 directory
1560 --enable-bootstrap enable bootstrapping
[yes if native build
]
1561 --enable-pgo-build[=lto
]
1562 enable the PGO build
1563 --disable-isl-version-check
1564 disable check
for isl version
1565 --enable-lto enable link
time optimization support
1566 --enable-linker-plugin-configure-flags=FLAGS
1567 additional flags
for configuring linker plugins
1569 --enable-linker-plugin-flags=FLAGS
1570 additional flags
for configuring and building linker
1572 --enable-host-pie build position independent
host executables
1573 --enable-host-shared build
host code as shared libraries
1574 --enable-stage1-languages[=all
]
1575 choose additional languages to build during stage1.
1576 Mostly useful
for compiler development
1577 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1579 --enable-vtable-verify Enable vtable verification feature
1580 --enable-serial-[{host,target,build}-]configure
1581 force sequential configuration of sub-packages for
1582 the host, target or build machine, or all
1584 --enable-maintainer-mode
1585 enable make rules and dependencies not useful (and
1586 sometimes confusing) to the casual installer
1587 --enable-stage1-checking[=all]
1588 choose additional checking for stage1 of the
1590 --enable-werror enable -Werror in bootstrap stage2 and later
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-build-libsubdir=DIR Directory where to find libraries for build system
1596 --with-system-zlib use installed libz
1597 --with-zstd Support zstd compressed debug sections
1599 --with-mpc=PATH specify prefix directory for installed MPC package.
1600 Equivalent to --with-mpc-include=PATH/include plus
1601 --with-mpc-lib=PATH/lib
1602 --with-mpc-include=PATH specify directory for installed MPC include files
1603 --with-mpc-lib=PATH specify directory for the installed MPC library
1604 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1605 Equivalent to --with-mpfr-include=PATH/include plus
1606 --with-mpfr-lib=PATH/lib
1607 --with-mpfr-include=PATH
1608 specify directory for installed MPFR include files
1609 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1610 --with-gmp=PATH specify prefix directory for the installed GMP
1611 package. Equivalent to
1612 --with-gmp-include=PATH/include plus
1613 --with-gmp-lib=PATH/lib
1614 --with-gmp-include=PATH specify directory for installed GMP include files
1615 --with-gmp-lib=PATH specify directory for the installed GMP library
1616 --with-stage1-libs=LIBS libraries for stage1
1617 --with-static-standard-libraries
1618 use -static-libstdc++ and -static-libgcc
1620 --with-stage1-ldflags=FLAGS
1621 linker flags for stage1
1622 --with-boot-libs=LIBS libraries for stage2 and later
1623 --with-boot-ldflags=FLAGS
1624 linker flags for stage2 and later
1625 --with-isl=PATH Specify prefix directory for the installed isl
1626 package. Equivalent to
1627 --with-isl-include=PATH/include plus
1628 --with-isl-lib=PATH/lib
1629 --with-isl-include=PATH Specify directory for installed isl include files
1630 --with-isl-lib=PATH Specify the directory for the installed isl library
1631 --with-target-bdw-gc=PATHLIST
1632 specify prefix directory for installed bdw-gc
1633 package. Equivalent to
1634 --with-target-bdw-gc-include=PATH/include plus
1635 --with-target-bdw-gc-lib=PATH/lib
1636 --with-target-bdw-gc-include=PATHLIST
1637 specify directories for installed bdw-gc include
1639 --with-target-bdw-gc-lib=PATHLIST
1640 specify directories for installed bdw-gc library
1641 --with-gcc-major-version-only
1642 use only GCC major number in filesystem paths
1643 --with-build-sysroot=SYSROOT
1644 use sysroot as the system root during the build
1645 --with-debug-prefix-map='A
=B C
=D ...
'
1646 map A to B, C to D ... in debug information
1647 --with-build-config='NAME NAME2...
'
1648 use config/NAME.mk build configuration
1649 --with-build-time-tools=PATH
1650 use given path to find target tools during the build
1652 Some influential environment variables:
1653 CC C compiler command
1654 CFLAGS C compiler flags
1655 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1656 nonstandard directory <lib dir>
1657 LIBS libraries to pass to the linker, e.g. -l<library>
1658 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1659 you have headers in a nonstandard directory <include dir>
1660 CXX C++ compiler command
1661 CXXFLAGS C++ compiler flags
1663 additional configure arguments for build directories
1665 additional configure arguments for host directories
1667 additional configure arguments for target directories
1670 DLLTOOL DLLTOOL for the host
1671 DSYMUTIL DSYMUTIL for the host
1673 LIPO LIPO for the host
1675 RANLIB RANLIB for the host
1676 STRIP STRIP for the host
1677 WINDRES WINDRES for the host
1678 WINDMC WINDMC for the host
1679 OBJCOPY OBJCOPY for the host
1680 OBJDUMP OBJDUMP for the host
1681 OTOOL OTOOL for the host
1682 READELF READELF for the host
1690 GFORTRAN for the target
1702 DLLTOOL for the target
1704 DSYMUTIL for the target
1712 OBJCOPY for the target
1714 OBJDUMP for the target
1716 OTOOL for the target
1718 RANLIB for the target
1720 READELF for the target
1722 STRIP for the target
1724 WINDRES for the target
1726 WINDMC for the target
1728 Use these variables to override the choices made by `configure' or to
help
1729 it to
find libraries and programs with nonstandard names
/locations.
1731 Report bugs to the package provider.
1736 if test "$ac_init_help" = "recursive"; then
1737 # If there are subdirs, report their specific --help.
1738 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1739 test -d "$ac_dir" ||
1740 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1745 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1747 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1748 # A ".." for each directory in $ac_dir_suffix.
1749 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1750 case $ac_top_builddir_sub in
1751 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1752 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1755 ac_abs_top_builddir
=$ac_pwd
1756 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1757 # for backward compatibility:
1758 ac_top_builddir
=$ac_top_build_prefix
1761 .
) # We are building in place.
1763 ac_top_srcdir
=$ac_top_builddir_sub
1764 ac_abs_top_srcdir
=$ac_pwd ;;
1765 [\\/]* | ?
:[\\/]* ) # Absolute name.
1766 ac_srcdir
=$srcdir$ac_dir_suffix;
1767 ac_top_srcdir
=$srcdir
1768 ac_abs_top_srcdir
=$srcdir ;;
1770 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1771 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1772 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1774 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1776 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1777 # Check for guested configure.
1778 if test -f "$ac_srcdir/configure.gnu"; then
1780 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1781 elif test -f "$ac_srcdir/configure"; then
1783 $SHELL "$ac_srcdir/configure" --help=recursive
1785 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1787 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1791 test -n "$ac_init_help" && exit $ac_status
1792 if $ac_init_version; then
1795 generated by GNU Autoconf
2.69
1797 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1798 This configure
script is free software
; the Free Software Foundation
1799 gives unlimited permission to copy
, distribute and modify it.
1804 ## ------------------------ ##
1805 ## Autoconf initialization. ##
1806 ## ------------------------ ##
1808 # ac_fn_c_try_compile LINENO
1809 # --------------------------
1810 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_c_try_compile
()
1813 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1814 rm -f conftest.
$ac_objext
1815 if { { ac_try
="$ac_compile"
1817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_compile") 2>conftest.err
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest.$ac_objext; then :
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1844 } # ac_fn_c_try_compile
1846 # ac_fn_cxx_try_compile LINENO
1847 # ----------------------------
1848 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_cxx_try_compile ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext
1853 if { { ac_try="$ac_compile"
1855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1856 *) ac_try_echo
=$ac_try;;
1858 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_compile") 2>conftest.err
1862 if test -s conftest.err
; then
1863 grep -v '^ *+' conftest.err
>conftest.er1
1864 cat conftest.er1
>&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_cxx_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest.
$ac_objext; then :
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.
$ac_ext >&5
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status
$ac_retval
1882 } # ac_fn_cxx_try_compile
1884 # ac_fn_cxx_try_link LINENO
1885 # -------------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_cxx_try_link
()
1889 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1890 rm -f conftest.
$ac_objext conftest
$ac_exeext
1891 if { { ac_try
="$ac_link"
1893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_cxx_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest$ac_exeext
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_cxx_try_link
1930 # ac_fn_c_try_link LINENO
1931 # -----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 rm -f conftest.$ac_objext conftest$ac_exeext
1937 if { { ac_try="$ac_link"
1939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1940 *) ac_try_echo
=$ac_try;;
1942 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1946 if test -s conftest.err
; then
1947 grep -v '^ *+' conftest.err
>conftest.er1
1948 cat conftest.er1
>&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_c_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest
$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 test -x conftest
$ac_exeext
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.
$ac_ext >&5
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status
$ac_retval
1974 } # ac_fn_c_try_link
1975 cat >config.log
<<_ACEOF
1976 This file contains any messages produced by compilers while
1977 running configure, to aid debugging if configure makes a mistake.
1979 It was created by $as_me, which was
1980 generated by GNU Autoconf 2.69. Invocation command line was
1992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2004 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir
=.
2016 $as_echo "PATH: $as_dir"
2032 # Keep a trace of the command line.
2033 # Strip out --no-create and --no-recursion so they do not pile up.
2034 # Strip out --silent because we don't want to record it for future runs.
2035 # Also quote any args containing shell meta-characters.
2036 # Make two passes to allow for proper duplicate-argument suppression.
2040 ac_must_keep_next
=false
2046 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2047 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2048 |
-silent |
--silent |
--silen |
--sile |
--sil)
2051 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2054 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2056 as_fn_append ac_configure_args1
" '$ac_arg'"
2057 if test $ac_must_keep_next = true
; then
2058 ac_must_keep_next
=false
# Got value, back to normal.
2061 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2062 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2063 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2064 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2065 case "$ac_configure_args0 " in
2066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2069 -* ) ac_must_keep_next
=true
;;
2072 as_fn_append ac_configure_args
" '$ac_arg'"
2077 { ac_configure_args0
=; unset ac_configure_args0
;}
2078 { ac_configure_args1
=; unset ac_configure_args1
;}
2080 # When interrupted or exit'd, cleanup temporary files, and complete
2081 # config.log. We remove comments because anyway the quotes in there
2082 # would cause problems or look ugly.
2083 # WARNING: Use '\'' to represent an apostrophe within the trap.
2084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2085 trap 'exit_status=$?
2086 # Save into config.log some information that might help in debugging.
2090 $as_echo "## ---------------- ##
2091 ## Cache variables. ##
2092 ## ---------------- ##"
2094 # The following way of writing the cache mishandles newlines in values,
2096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2097 eval ac_val=\$$ac_var
2101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2105 _ | IFS | as_nl) ;; #(
2106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2107 *) { eval $ac_var=; unset $ac_var;} ;;
2112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2113 *${as_nl}ac_space=\ *)
2115 "s/'\''/'\''\\\\'\'''\''/g;
2116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2126 $as_echo "## ----------------- ##
2127 ## Output variables. ##
2128 ## ----------------- ##"
2130 for ac_var in $ac_subst_vars
2132 eval ac_val=\$$ac_var
2134 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 $as_echo "$ac_var='\''$ac_val'\''"
2140 if test -n "$ac_subst_files"; then
2141 $as_echo "## ------------------- ##
2142 ## File substitutions. ##
2143 ## ------------------- ##"
2145 for ac_var
in $ac_subst_files
2147 eval ac_val
=\$
$ac_var
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 $as_echo "$ac_var='\''$ac_val'\''"
2156 if test -s confdefs.h; then
2157 $as_echo "## ----------- ##
2164 test "$ac_signal" != 0 &&
2165 $as_echo "$as_me: caught signal $ac_signal"
2166 $as_echo "$as_me: exit $exit_status"
2168 rm -f core *.core core.conftest.* &&
2169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2172 for ac_signal
in 1 2 13 15; do
2173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2178 rm -f -r conftest
* confdefs.h
2180 $as_echo "/* confdefs.h */" > confdefs.h
2182 # Predefined preprocessor variables.
2184 cat >>confdefs.h
<<_ACEOF
2185 #define PACKAGE_NAME "$PACKAGE_NAME"
2188 cat >>confdefs.h
<<_ACEOF
2189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2192 cat >>confdefs.h
<<_ACEOF
2193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2196 cat >>confdefs.h
<<_ACEOF
2197 #define PACKAGE_STRING "$PACKAGE_STRING"
2200 cat >>confdefs.h
<<_ACEOF
2201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2204 cat >>confdefs.h
<<_ACEOF
2205 #define PACKAGE_URL "$PACKAGE_URL"
2209 # Let the site file select an alternate cache file if it wants to.
2210 # Prefer an explicitly selected file to automatically selected ones.
2213 if test -n "$CONFIG_SITE"; then
2214 # We do not want a PATH search for config.site.
2215 case $CONFIG_SITE in #((
2216 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2217 */*) ac_site_file1
=$CONFIG_SITE;;
2218 *) ac_site_file1
=.
/$CONFIG_SITE;;
2220 elif test "x$prefix" != xNONE
; then
2221 ac_site_file1
=$prefix/share
/config.site
2222 ac_site_file2
=$prefix/etc
/config.site
2224 ac_site_file1
=$ac_default_prefix/share
/config.site
2225 ac_site_file2
=$ac_default_prefix/etc
/config.site
2227 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2229 test "x$ac_site_file" = xNONE
&& continue
2230 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2233 sed 's/^/| /' "$ac_site_file" >&5
2235 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 as_fn_error $?
"failed to load site script $ac_site_file
2238 See \`config.log' for more details" "$LINENO" 5; }
2242 if test -r "$cache_file"; then
2243 # Some versions of bash will fail to source /dev/null (special files
2244 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2245 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2247 $as_echo "$as_me: loading cache $cache_file" >&6;}
2249 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2250 *) .
"./$cache_file";;
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2255 $as_echo "$as_me: creating cache $cache_file" >&6;}
2259 # Check that the precious variables saved in the cache have kept the same
2261 ac_cache_corrupted
=false
2262 for ac_var
in $ac_precious_vars; do
2263 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2264 eval ac_new_set
=\
$ac_env_${ac_var}_set
2265 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2266 eval ac_new_val
=\
$ac_env_${ac_var}_value
2267 case $ac_old_set,$ac_new_set in
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2271 ac_cache_corrupted
=: ;;
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2274 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2275 ac_cache_corrupted
=: ;;
2278 if test "x$ac_old_val" != "x$ac_new_val"; then
2279 # differences in whitespace do not lead to failure.
2280 ac_old_val_w
=`echo x $ac_old_val`
2281 ac_new_val_w
=`echo x $ac_new_val`
2282 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2284 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2285 ac_cache_corrupted
=:
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2288 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2289 eval $ac_var=\
$ac_old_val
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2292 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2294 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2297 # Pass precious variables to config.status.
2298 if test "$ac_new_set" = set; then
2300 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2301 *) ac_arg
=$ac_var=$ac_new_val ;;
2303 case " $ac_configure_args " in
2304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2305 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2309 if $ac_cache_corrupted; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2313 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2314 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2316 ## -------------------- ##
2317 ## Main body of script. ##
2318 ## -------------------- ##
2321 ac_cpp
='$CPP $CPPFLAGS'
2322 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2334 # if PWD already has a value, it is probably wrong.
2335 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2337 # Export original configure arguments for use by sub-configures.
2338 # Quote arguments with shell meta charatcers.
2339 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2340 set -- "$progname" "$@"
2344 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2345 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2346 # if the argument is of the form -foo=baz, quote the baz part only
2347 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2350 # Add the quoted argument to the list.
2351 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2353 if test "$silent" = yes; then
2354 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2356 # Remove the initial space we just introduced and, as these will be
2357 # expanded by make, quote '$'.
2358 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2361 # Find the build, host, and target systems.
2363 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2364 if test -f "$ac_dir/install-sh"; then
2366 ac_install_sh
="$ac_aux_dir/install-sh -c"
2368 elif test -f "$ac_dir/install.sh"; then
2370 ac_install_sh
="$ac_aux_dir/install.sh -c"
2372 elif test -f "$ac_dir/shtool"; then
2374 ac_install_sh
="$ac_aux_dir/shtool install -c"
2378 if test -z "$ac_aux_dir"; then
2379 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2382 # These three variables are undocumented and unsupported,
2383 # and are intended to be withdrawn in a future Autoconf release.
2384 # They can cause serious problems if a builder's source tree is in a directory
2385 # whose full name contains unusual characters.
2386 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2387 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2388 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2391 # Make sure we can run config.sub.
2392 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2393 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2396 $as_echo_n "checking build system type... " >&6; }
2397 if ${ac_cv_build+:} false
; then :
2398 $as_echo_n "(cached) " >&6
2400 ac_build_alias
=$build_alias
2401 test "x$ac_build_alias" = x
&&
2402 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2403 test "x$ac_build_alias" = x
&&
2404 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2405 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2406 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2410 $as_echo "$ac_cv_build" >&6; }
2411 case $ac_cv_build in
2413 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2416 ac_save_IFS
=$IFS; IFS
='-'
2422 # Remember, the first character of IFS is used to create $*,
2423 # except with old shells:
2426 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2429 case ${build_alias} in
2430 "") build_noncanonical
=${build} ;;
2431 *) build_noncanonical
=${build_alias} ;;
2436 case ${host_alias} in
2437 "") host_noncanonical
=${build_noncanonical} ;;
2438 *) host_noncanonical
=${host_alias} ;;
2443 case ${target_alias} in
2444 "") target_noncanonical
=${host_noncanonical} ;;
2445 *) target_noncanonical
=${target_alias} ;;
2451 test "$host_noncanonical" = "$target_noncanonical" &&
2452 test "$program_prefix$program_suffix$program_transform_name" = \
2454 program_transform_name
=s
,y
,y
,
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2457 $as_echo_n "checking host system type... " >&6; }
2458 if ${ac_cv_host+:} false
; then :
2459 $as_echo_n "(cached) " >&6
2461 if test "x$host_alias" = x
; then
2462 ac_cv_host
=$ac_cv_build
2464 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2465 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2470 $as_echo "$ac_cv_host" >&6; }
2473 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2476 ac_save_IFS
=$IFS; IFS
='-'
2482 # Remember, the first character of IFS is used to create $*,
2483 # except with old shells:
2486 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2490 $as_echo_n "checking target system type... " >&6; }
2491 if ${ac_cv_target+:} false
; then :
2492 $as_echo_n "(cached) " >&6
2494 if test "x$target_alias" = x
; then
2495 ac_cv_target
=$ac_cv_host
2497 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2498 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2503 $as_echo "$ac_cv_target" >&6; }
2504 case $ac_cv_target in
2506 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2508 target
=$ac_cv_target
2509 ac_save_IFS
=$IFS; IFS
='-'
2515 # Remember, the first character of IFS is used to create $*,
2516 # except with old shells:
2519 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2522 # The aliases save the names the user supplied, while $host etc.
2523 # will get canonicalized.
2524 test -n "$target_alias" &&
2525 test "$program_prefix$program_suffix$program_transform_name" = \
2527 program_prefix
=${target_alias}-
2529 test "$program_prefix" != NONE
&&
2530 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2531 # Use a double $ so make ignores it.
2532 test "$program_suffix" != NONE
&&
2533 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2534 # Double any \ or $.
2535 # By default was `s,x,x', remove it if useless.
2536 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2537 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2541 # Get 'install' or 'install-sh' and its variants.
2542 # Find a good install program. We prefer a C program (faster),
2543 # so one script is as good as another. But avoid the broken or
2544 # incompatible versions:
2545 # SysV /etc/install, /usr/sbin/install
2546 # SunOS /usr/etc/install
2547 # IRIX /sbin/install
2549 # AmigaOS /C/install, which installs bootblocks on floppy discs
2550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2553 # OS/2's system install, which has a completely different semantic
2554 # ./install, which can be erroneously created by make from ./install.sh.
2555 # Reject install programs that cannot install multiple files.
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2557 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2558 if test -z "$INSTALL"; then
2559 if ${ac_cv_path_install+:} false
; then :
2560 $as_echo_n "(cached) " >&6
2562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir
=.
2567 # Account for people who put trailing slashes in PATH elements.
2568 case $as_dir/ in #((
2569 .
/ | .
// |
/[cC
]/* | \
2570 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2571 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2574 # OSF1 and SCO ODT 3.0 have their own names for install.
2575 # Don't use installbsd from OSF since it installs stuff as root
2577 for ac_prog
in ginstall scoinst
install; do
2578 for ac_exec_ext
in '' $ac_executable_extensions; do
2579 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2580 if test $ac_prog = install &&
2581 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2582 # AIX install. It has an incompatible calling convention.
2584 elif test $ac_prog = install &&
2585 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2586 # program-specific install script used by HP pwplus--don't use.
2589 rm -rf conftest.one conftest.two conftest.dir
2590 echo one
> conftest.one
2591 echo two
> conftest.two
2593 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2594 test -s conftest.one
&& test -s conftest.two
&&
2595 test -s conftest.dir
/conftest.one
&&
2596 test -s conftest.dir
/conftest.two
2598 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2611 rm -rf conftest.one conftest.two conftest.dir
2614 if test "${ac_cv_path_install+set}" = set; then
2615 INSTALL
=$ac_cv_path_install
2617 # As a last resort, use the slow shell script. Don't cache a
2618 # value for INSTALL within a source directory, because that will
2619 # break other packages using the cache if that directory is
2620 # removed, or if the value is a relative name.
2621 INSTALL
=$ac_install_sh
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2625 $as_echo "$INSTALL" >&6; }
2627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2628 # It thinks the first close brace ends the variable substitution.
2629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2633 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2636 $as_echo_n "checking whether ln works... " >&6; }
2637 if ${acx_cv_prog_LN+:} false
; then :
2638 $as_echo_n "(cached) " >&6
2640 rm -f conftestdata_t
2641 echo >conftestdata_f
2642 if ln conftestdata_f conftestdata_t
2>/dev
/null
2648 rm -f conftestdata_f conftestdata_t
2651 if test $acx_cv_prog_LN = no
; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2654 $as_echo "no, using $LN" >&6; }
2656 LN
="$acx_cv_prog_LN"
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2658 $as_echo "yes" >&6; }
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2662 $as_echo_n "checking whether ln -s works... " >&6; }
2664 if test "$LN_S" = "ln -s"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2666 $as_echo "yes" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2669 $as_echo "no, using $LN_S" >&6; }
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2673 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2674 if ${ac_cv_path_SED+:} false
; then :
2675 $as_echo_n "(cached) " >&6
2677 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2678 for ac_i
in 1 2 3 4 5 6 7; do
2679 ac_script
="$ac_script$as_nl$ac_script"
2681 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2682 { ac_script
=; unset ac_script
;}
2683 if test -z "$SED"; then
2684 ac_path_SED_found
=false
2685 # Loop through the user's path and test for each of PROGNAME-LIST
2686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir
=.
2691 for ac_prog
in sed gsed
; do
2692 for ac_exec_ext
in '' $ac_executable_extensions; do
2693 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2694 as_fn_executable_p
"$ac_path_SED" ||
continue
2695 # Check for GNU ac_path_SED and select it if it is found.
2696 # Check for GNU $ac_path_SED
2697 case `"$ac_path_SED" --version 2>&1` in
2699 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2702 $as_echo_n 0123456789 >"conftest.in"
2705 cat "conftest.in" "conftest.in" >"conftest.tmp"
2706 mv "conftest.tmp" "conftest.in"
2707 cp "conftest.in" "conftest.nl"
2708 $as_echo '' >> "conftest.nl"
2709 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2710 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2711 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2712 if test $ac_count -gt ${ac_path_SED_max-0}; then
2713 # Best one so far, save it but keep looking for a better one
2714 ac_cv_path_SED
="$ac_path_SED"
2715 ac_path_SED_max
=$ac_count
2717 # 10*(2^10) chars as input seems more than enough
2718 test $ac_count -gt 10 && break
2720 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2723 $ac_path_SED_found && break 3
2728 if test -z "$ac_cv_path_SED"; then
2729 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2737 $as_echo "$ac_cv_path_SED" >&6; }
2738 SED
="$ac_cv_path_SED"
2741 for ac_prog
in gawk mawk nawk
awk
2743 # Extract the first word of "$ac_prog", so it can be a program name with args.
2744 set dummy
$ac_prog; ac_word
=$2
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if ${ac_cv_prog_AWK+:} false
; then :
2748 $as_echo_n "(cached) " >&6
2750 if test -n "$AWK"; then
2751 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2757 test -z "$as_dir" && as_dir
=.
2758 for ac_exec_ext
in '' $ac_executable_extensions; do
2759 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2760 ac_cv_prog_AWK
="$ac_prog"
2761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 if test -n "$AWK"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2773 $as_echo "$AWK" >&6; }
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2780 test -n "$AWK" && break
2784 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2786 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2788 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2789 INSTALL
="${srcpwd}/install-sh -c"
2792 # Set srcdir to "." if that's what it is.
2793 # This is important for multilib support.
2795 if test "${pwd}" = "${srcpwd}" ; then
2803 ### To add a new directory to the tree, first choose whether it is a target
2804 ### or a host dependent tool. Then put it into the appropriate list
2805 ### (library or tools, host or target), doing a dependency sort.
2807 # Subdirs will be configured in the order listed in build_configdirs,
2808 # configdirs, or target_configdirs; see the serialization section below.
2810 # Dependency sorting is only needed when *configuration* must be done in
2811 # a particular order. In all cases a dependency should be specified in
2812 # the Makefile, whether or not it's implicitly specified here.
2814 # Double entries in build_configdirs, configdirs, or target_configdirs may
2815 # cause circular dependencies and break everything horribly.
2817 # these library is used by various programs built for the build
2820 build_libs
="build-libiberty build-libcpp"
2822 # these tools are built for the build environment
2823 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2825 # these libraries are used by various programs built for the host environment
2827 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2829 # these tools are built for the host environment
2830 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2831 # know that we are building the simulator.
2832 # binutils, gas and ld appear in that order because it makes sense to run
2833 # "make check" in that particular order.
2834 # If --enable-gold is used, "gold" may replace "ld".
2835 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"
2837 # these libraries are built for the target environment, and are built after
2838 # the host libraries and the host tools (which may be a cross compiler)
2839 # Note that libiberty is not a target library.
2840 target_libraries
="target-libgcc \
2841 target-libbacktrace \
2847 target-libstdc++-v3 \
2848 target-libsanitizer \
2851 target-libquadmath \
2852 target-libgfortran \
2861 # these tools are built using the target libraries, and are intended to
2862 # run only in the target environment
2864 # note: any program that *uses* libraries that are in the "target_libraries"
2865 # list belongs in this list.
2867 target_tools
="target-rda"
2869 ################################################################################
2871 ## All tools belong in one of the four categories, and are assigned above
2872 ## We assign ${configdirs} this way to remove all embedded newlines. This
2873 ## is important because configure will choke if they ever get through.
2874 ## ${configdirs} is directories we build using the host tools.
2875 ## ${target_configdirs} is directories we build using the target tools.
2876 configdirs
=`echo ${host_libs} ${host_tools}`
2877 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2878 build_configdirs
=`echo ${build_libs} ${build_tools}`
2882 ################################################################################
2884 srcname
="gnu development package"
2886 # This gets set non-empty for some net releases of packages.
2889 # Define is_cross_compiler to save on calls to 'test'.
2891 if test x
"${host}" = x
"${target}" ; then
2892 is_cross_compiler
=no
2894 is_cross_compiler
=yes
2897 # Find the build and target subdir names.
2899 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2900 # have matching libraries, they should use host libraries: Makefile.tpl
2901 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2902 # However, they still use the build modules, because the corresponding
2903 # host modules (e.g. bison) are only built for the host when bootstrap
2905 # - build_subdir is where we find build modules, and never changes.
2906 # - build_libsubdir is where we find build libraries, and can be overridden.
2908 # Prefix 'build-' so this never conflicts with target_subdir.
2909 build_subdir
="build-${build_noncanonical}"
2911 # Check whether --with-build-libsubdir was given.
2912 if test "${with_build_libsubdir+set}" = set; then :
2913 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2915 build_libsubdir
="$build_subdir"
2918 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2919 if ( test $srcdir = .
&& test -d gcc
) \
2920 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2921 host_subdir
="host-${host_noncanonical}"
2926 target_subdir
=${target_noncanonical}
2928 # Be sure to cover against remnants of an in-tree build.
2929 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2930 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2931 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2934 # Skipdirs are removed silently.
2936 # Noconfigdirs are removed loudly.
2940 # Make sure we don't let GNU ld be added if we didn't want it.
2941 if test x
$with_gnu_ld = xno
; then
2943 noconfigdirs
="$noconfigdirs ld gold"
2947 # Make sure we don't let GNU as be added if we didn't want it.
2948 if test x
$with_gnu_as = xno
; then
2950 noconfigdirs
="$noconfigdirs gas"
2955 # Check whether --with-system-zlib was given.
2956 if test "${with_system_zlib+set}" = set; then :
2957 withval
=$with_system_zlib;
2960 # Make sure we don't let ZLIB be added if we didn't want it.
2961 if test x
$with_system_zlib = xyes
; then
2962 use_included_zlib
=no
2963 noconfigdirs
="$noconfigdirs zlib"
2966 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2968 if test x
$with_system_readline = xyes
; then
2969 noconfigdirs
="$noconfigdirs readline"
2973 # Check whether --with-zstd was given.
2974 if test "${with_zstd+set}" = set; then :
2979 # some tools are so dependent upon X11 that if we're not building with X,
2980 # it's not even worth trying to configure, much less build, that tool.
2983 yes |
"") ;; # the default value for this tree is that X11 is available
2985 skipdirs
="${skipdirs} tk itcl libgui"
2986 # We won't be able to build gdbtk without X.
2989 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2992 # Some are only suitable for cross toolchains.
2993 # Remove these if host=target.
2994 cross_only
="target-libgloss target-newlib target-opcodes"
2996 case $is_cross_compiler in
2997 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
3000 # If both --with-headers and --with-libs are specified, default to
3002 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
3003 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
3004 if test x
"${with_newlib}" = x
; then
3009 # Recognize --with-newlib/--without-newlib.
3010 case ${with_newlib} in
3011 no
) skipdirs
="${skipdirs} target-newlib" ;;
3012 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3015 # Check whether --enable-as-accelerator-for was given.
3016 if test "${enable_as_accelerator_for+set}" = set; then :
3017 enableval
=$enable_as_accelerator_for;
3021 # Check whether --enable-offload-targets was given.
3022 if test "${enable_offload_targets+set}" = set; then :
3023 enableval
=$enable_offload_targets;
3024 if test x
"$enable_offload_targets" = x
; then
3025 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3029 enable_offload_targets
=
3033 # Check whether --enable-offload-defaulted was given.
3034 if test "${enable_offload_defaulted+set}" = set; then :
3035 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3037 enable_offload_defaulted
=
3041 # Handle --enable-gold, --enable-ld.
3042 # --disable-gold [--enable-ld]
3043 # Build only ld. Default option.
3044 # --enable-gold [--enable-ld]
3045 # Build both gold and ld. Install gold as "ld.gold", install ld
3046 # as "ld.bfd" and "ld".
3047 # --enable-gold=default [--enable-ld]
3048 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3049 # install ld as "ld.bfd".
3050 # --enable-gold[=default] --disable-ld
3051 # Build only gold, which is then installed as both "ld.gold" and "ld".
3052 # --enable-gold --enable-ld=default
3053 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3055 # In other words, ld is default
3056 # --enable-gold=default --enable-ld=default
3060 # Check whether --enable-gold was given.
3061 if test "${enable_gold+set}" = set; then :
3062 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3067 case "${ENABLE_GOLD}" in
3069 # Check for ELF target.
3072 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3073 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3074 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3075 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3077 *-*-linux*aout
* |
*-*-linux*oldld
*)
3085 if test "$is_elf" = "yes"; then
3086 # Check for target supported by gold.
3088 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3089 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3090 configdirs
="$configdirs gold"
3091 if test x
${ENABLE_GOLD} = xdefault
; then
3102 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3106 # Check whether --enable-ld was given.
3107 if test "${enable_ld+set}" = set; then :
3108 enableval
=$enable_ld; ENABLE_LD
=$enableval
3114 case "${ENABLE_LD}" in
3116 if test x
${default_ld} != x
; then
3117 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3123 if test x
${ENABLE_GOLD} != xyes
; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3125 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3127 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3130 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3135 # Decide the default method for compressing debug sections.
3136 # Provide a configure time option to override our default.
3137 # Check whether --enable-compressed_debug_sections was given.
3138 if test "${enable_compressed_debug_sections+set}" = set; then :
3139 enableval
=$enable_compressed_debug_sections;
3140 if test x
"$enable_compressed_debug_sections" = xyes
; then
3141 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3145 enable_compressed_debug_sections
=
3149 # Select default compression algorithm.
3150 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3151 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3152 enableval
=$enable_default_compressed_debug_sections_algorithm;
3154 default_compressed_debug_sections_algorithm
=
3158 # Configure extra directories which are host specific
3162 configdirs
="$configdirs libtermcap" ;;
3165 # A target can indicate whether a language isn't supported for some reason.
3166 # Only spaces may be used in this macro; not newlines or tabs.
3167 unsupported_languages
=
3169 # Remove more programs from consideration, based on the host or
3170 # target this usually means that a port of the program doesn't
3174 i
[3456789]86-*-msdosdjgpp*)
3175 noconfigdirs
="$noconfigdirs tcl tk itcl"
3180 # Check whether --enable-libquadmath was given.
3181 if test "${enable_libquadmath+set}" = set; then :
3182 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3184 ENABLE_LIBQUADMATH
=yes
3187 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3188 noconfigdirs
="$noconfigdirs target-libquadmath"
3192 # Check whether --enable-libquadmath-support was given.
3193 if test "${enable_libquadmath_support+set}" = set; then :
3194 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3196 ENABLE_LIBQUADMATH_SUPPORT
=yes
3199 enable_libquadmath_support
=
3200 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3201 enable_libquadmath_support
=no
3205 # Check whether --enable-libada was given.
3206 if test "${enable_libada+set}" = set; then :
3207 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3212 if test "${ENABLE_LIBADA}" != "yes" ; then
3213 noconfigdirs
="$noconfigdirs gnattools"
3216 # Check whether --enable-libgm2 was given.
3217 if test "${enable_libgm2+set}" = set; then :
3218 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3223 if test "${ENABLE_LIBGM2}" != "yes" ; then
3224 noconfigdirs
="$noconfigdirs gm2tools"
3227 # Check whether --enable-libssp was given.
3228 if test "${enable_libssp+set}" = set; then :
3229 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3235 # Check whether --enable-libstdcxx was given.
3236 if test "${enable_libstdcxx+set}" = set; then :
3237 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3239 ENABLE_LIBSTDCXX
=default
3242 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3243 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3246 # Enable libgomp by default on hosted POSIX systems, and a few others.
3247 if test x
$enable_libgomp = x
; then
3249 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3251 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3253 *-*-solaris2* |
*-*-hpux11*)
3255 *-*-darwin* |
*-*-aix*)
3257 nvptx
*-*-* | amdgcn
*-*-*)
3260 noconfigdirs
="$noconfigdirs target-libgomp"
3265 # Disable libatomic on unsupported systems.
3266 if test -d ${srcdir}/libatomic
; then
3267 if test x
$enable_libatomic = x
; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3269 $as_echo_n "checking for libatomic support... " >&6; }
3270 if (srcdir
=${srcdir}/libatomic
; \
3271 .
${srcdir}/configure.tgt
; \
3272 test -n "$UNSUPPORTED")
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 noconfigdirs
="$noconfigdirs target-libatomic"
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279 $as_echo "yes" >&6; }
3284 # Disable libitm on unsupported systems.
3285 if test -d ${srcdir}/libitm
; then
3286 if test x
$enable_libitm = x
; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3288 $as_echo_n "checking for libitm support... " >&6; }
3289 if (srcdir
=${srcdir}/libitm
; \
3290 .
${srcdir}/configure.tgt
; \
3291 test -n "$UNSUPPORTED")
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 noconfigdirs
="$noconfigdirs target-libitm"
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298 $as_echo "yes" >&6; }
3303 # Disable libsanitizer on unsupported systems.
3304 if test -d ${srcdir}/libsanitizer
; then
3305 if test x
$enable_libsanitizer = x
; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3307 $as_echo_n "checking for libsanitizer support... " >&6; }
3308 if (srcdir
=${srcdir}/libsanitizer
; \
3309 .
${srcdir}/configure.tgt
; \
3310 test -n "$UNSUPPORTED")
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 noconfigdirs
="$noconfigdirs target-libsanitizer"
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317 $as_echo "yes" >&6; }
3322 # Disable libvtv on unsupported systems.
3323 if test -d ${srcdir}/libvtv
; then
3324 if test x
$enable_libvtv = x
; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3326 $as_echo_n "checking for libvtv support... " >&6; }
3327 if (srcdir
=${srcdir}/libvtv
; \
3328 .
${srcdir}/configure.tgt
; \
3329 test "$VTV_SUPPORTED" != "yes")
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 noconfigdirs
="$noconfigdirs target-libvtv"
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3341 # Disable libquadmath for some systems.
3344 noconfigdirs
="$noconfigdirs target-libquadmath"
3346 # libquadmath is unused on AIX and libquadmath build process use of
3347 # LD_LIBRARY_PATH can break AIX bootstrap.
3348 powerpc-
*-aix* | rs6000-
*-aix*)
3349 noconfigdirs
="$noconfigdirs target-libquadmath"
3353 # Disable libssp for some systems.
3356 # No hosted I/O support.
3357 noconfigdirs
="$noconfigdirs target-libssp"
3360 noconfigdirs
="$noconfigdirs target-libssp"
3362 powerpc-
*-aix* | rs6000-
*-aix*)
3363 noconfigdirs
="$noconfigdirs target-libssp"
3366 # No hosted I/O support.
3367 noconfigdirs
="$noconfigdirs target-libssp"
3370 # libssp uses a misaligned load to trigger a fault, but the RL78
3371 # doesn't fault for those - instead, it gives a build-time error
3372 # for explicit misaligned loads.
3373 noconfigdirs
="$noconfigdirs target-libssp"
3376 # No hosted I/O support.
3377 noconfigdirs
="$noconfigdirs target-libssp"
3381 # Disable libstdc++-v3 for some systems.
3382 # Allow user to override this if they pass --enable-libstdcxx
3383 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3386 # VxWorks uses the Dinkumware C++ library.
3387 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3390 # Not ported/fails to build when using newlib.
3391 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3394 # the C++ libraries don't build on top of CE's C libraries
3395 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3398 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3401 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3404 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3409 # Disable C++ on systems where it is known to not work.
3410 # For testing, you can override this with --enable-languages=c++.
3411 case ,${enable_languages}, in
3417 unsupported_languages
="$unsupported_languages c++"
3423 # Disable Objc on systems where it is known to not work.
3424 # For testing, you can override this with --enable-languages=objc.
3425 case ,${enable_languages}, in
3431 unsupported_languages
="$unsupported_languages objc"
3437 # Disable D on systems where it is known to not work.
3438 # For testing, you can override this with --enable-languages=d.
3439 case ,${enable_languages}, in
3445 unsupported_languages
="$unsupported_languages d"
3451 # Disable libphobos on unsupported systems.
3452 # For testing, you can override this with --enable-libphobos.
3453 if test -d ${srcdir}/libphobos
; then
3454 if test x
$enable_libphobos = x
; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3456 $as_echo_n "checking for libphobos support... " >&6; }
3457 if (srcdir
=${srcdir}/libphobos
; \
3458 .
${srcdir}/configure.tgt
; \
3459 test "$LIBPHOBOS_SUPPORTED" != "yes")
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3463 noconfigdirs
="$noconfigdirs target-libphobos"
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3466 $as_echo "yes" >&6; }
3471 # Disable Fortran for some systems.
3474 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3475 unsupported_languages
="$unsupported_languages fortran"
3478 unsupported_languages
="$unsupported_languages fortran"
3482 # Disable libffi for some systems.
3486 i
[3456789]86-*-darwin*)
3488 x86_64-
*-darwin[912]*)
3491 noconfigdirs
="$noconfigdirs target-libffi"
3494 noconfigdirs
="$noconfigdirs target-libffi"
3497 noconfigdirs
="$noconfigdirs target-libffi"
3500 noconfigdirs
="$noconfigdirs target-libffi"
3503 noconfigdirs
="$noconfigdirs target-libffi"
3506 noconfigdirs
="$noconfigdirs target-libffi"
3509 noconfigdirs
="$noconfigdirs target-libffi"
3511 aarch64
*-*-freebsd*)
3512 noconfigdirs
="$noconfigdirs target-libffi"
3515 noconfigdirs
="$noconfigdirs target-libffi"
3518 noconfigdirs
="$noconfigdirs target-libffi"
3521 noconfigdirs
="$noconfigdirs target-libffi"
3524 noconfigdirs
="$noconfigdirs target-libffi"
3527 noconfigdirs
="$noconfigdirs target-libffi"
3529 cris-
*-* | crisv32-
*-*)
3533 *) # See PR46792 regarding target-libffi.
3534 noconfigdirs
="$noconfigdirs target-libffi";;
3538 noconfigdirs
="$noconfigdirs target-libffi"
3541 noconfigdirs
="$noconfigdirs target-libffi"
3543 i
[3456789]86-w64-mingw*)
3544 noconfigdirs
="$noconfigdirs target-libffi"
3546 i
[3456789]86-*-mingw*)
3547 noconfigdirs
="$noconfigdirs target-libffi"
3550 noconfigdirs
="$noconfigdirs target-libffi"
3553 noconfigdirs
="$noconfigdirs target-libffi"
3560 noconfigdirs
="$noconfigdirs target-libffi"
3563 noconfigdirs
="$noconfigdirs target-libffi"
3567 # Disable the go frontend on systems where it is known to not work. Please keep
3568 # this in sync with contrib/config-list.mk.
3570 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3571 unsupported_languages
="$unsupported_languages go"
3575 # Only allow gdbserver on some systems.
3576 if test -d ${srcdir}/gdbserver
; then
3577 if test x
$enable_gdbserver = x
; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3579 $as_echo_n "checking for gdbserver support... " >&6; }
3580 if (srcdir
=${srcdir}/gdbserver
; \
3581 .
${srcdir}/configure.srv
; \
3582 test -n "$UNSUPPORTED")
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3586 noconfigdirs
="$noconfigdirs gdbserver"
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3589 $as_echo "yes" >&6; }
3594 # Disable libgo for some systems where it is known to not work.
3595 # For testing, you can easily override this with --enable-libgo.
3596 if test x
$enable_libgo = x
; then
3600 noconfigdirs
="$noconfigdirs target-libgo"
3602 *-*-cygwin* |
*-*-mingw*)
3603 noconfigdirs
="$noconfigdirs target-libgo"
3606 noconfigdirs
="$noconfigdirs target-libgo"
3611 # Default libgloss CPU subdirectory.
3612 libgloss_dir
="$target_cpu"
3615 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3619 libgloss_dir
=aarch64
3624 cris-
*-* | crisv32-
*-*)
3634 libgloss_dir
=loongarch
3636 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3637 libgloss_dir
=m68hc11
3639 m68
*-*-* | fido-
*-*)
3656 # Disable newlib and libgloss for various target OSes.
3659 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3661 i
[3456789]86-*-linux*)
3662 # This section makes it possible to build newlib natively on linux.
3663 # If we are using a cross compiler then don't configure newlib.
3664 if test x
${is_cross_compiler} != xno
; then
3665 noconfigdirs
="$noconfigdirs target-newlib"
3667 noconfigdirs
="$noconfigdirs target-libgloss"
3668 # If we are not using a cross compiler, do configure newlib.
3669 # Note however, that newlib will only be configured in this situation
3670 # if the --with-newlib option has been given, because otherwise
3671 # 'target-newlib' will appear in skipdirs.
3673 i
[3456789]86-*-rdos*)
3674 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3676 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3677 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3680 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3683 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3686 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3689 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3692 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3695 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3698 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3700 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3701 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3704 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3707 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3710 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3713 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3716 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3719 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3722 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3730 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3731 noconfigdirs
="$noconfigdirs sim target-rda"
3736 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3737 noconfigdirs
="$noconfigdirs sim target-rda"
3740 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3741 noconfigdirs
="$noconfigdirs sim target-rda"
3743 i
[3456789]86-*-darwin*)
3744 noconfigdirs
="$noconfigdirs ld gprof"
3745 noconfigdirs
="$noconfigdirs sim target-rda"
3747 x86_64-
*-darwin[912]*)
3748 noconfigdirs
="$noconfigdirs ld gas gprof"
3749 noconfigdirs
="$noconfigdirs sim target-rda"
3752 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3753 noconfigdirs
="$noconfigdirs sim target-rda"
3758 if test "x$with_gmp" = x \
3759 && ! test -d ${srcdir}/gmp \
3760 && test -f /usr
/local
/include
/gmp.h
; then
3765 # Remove unsupported stuff on all kaOS configurations.
3766 noconfigdirs
="$noconfigdirs target-libgloss"
3773 noconfigdirs
="$noconfigdirs target-libgloss"
3776 noconfigdirs
="$noconfigdirs target-libgloss"
3778 # The tpf target doesn't support gdb yet.
3780 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3783 noconfigdirs
="$noconfigdirs target-rda"
3788 # ld works, but does not support shared libraries.
3789 # gas doesn't generate exception information.
3790 noconfigdirs
="$noconfigdirs gas ld"
3793 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3796 # newlib is not 64 bit ready
3797 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3800 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3802 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3803 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3806 noconfigdirs
="$noconfigdirs sim"
3809 noconfigdirs
="$noconfigdirs target-libgloss"
3812 noconfigdirs
="$noconfigdirs ld target-libgloss"
3815 if test x
${with_avrlibc} != xno
; then
3816 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3819 c4x-
*-* | tic4x-
*-*)
3820 noconfigdirs
="$noconfigdirs target-libgloss"
3823 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3826 noconfigdirs
="$noconfigdirs target-libgloss"
3829 noconfigdirs
="$noconfigdirs gdb"
3832 noconfigdirs
="$noconfigdirs gdb"
3835 noconfigdirs
="$noconfigdirs target-rda gprof"
3838 noconfigdirs
="$noconfigdirs"
3841 noconfigdirs
="$noconfigdirs target-libgloss"
3844 noconfigdirs
="$noconfigdirs target-libgloss"
3847 noconfigdirs
="$noconfigdirs gdb"
3855 hppa
*-*-openbsd* | \
3861 noconfigdirs
="$noconfigdirs ld"
3864 noconfigdirs
="$noconfigdirs gdb"
3867 # No gdb support yet.
3868 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3871 # No ld support yet.
3872 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3875 # No ld support yet.
3876 noconfigdirs
="$noconfigdirs libgui itcl ld"
3878 i
[3456789]86-w64-mingw*)
3880 i
[3456789]86-*-mingw*)
3881 target_configdirs
="$target_configdirs target-winsup"
3884 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3885 noconfigdirs
="$noconfigdirs target-libgloss"
3886 # always build newlib if winsup directory is present.
3887 if test -d "$srcdir/winsup/cygwin"; then
3888 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3889 elif test -d "$srcdir/newlib"; then
3890 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3894 noconfigdirs
="$noconfigdirs target-libgloss"
3896 i
[3456789]86-*-sco3.2v5
*)
3897 # The linker does not yet know about weak symbols in COFF,
3898 # and is not configured to handle mixed ELF and COFF.
3899 noconfigdirs
="$noconfigdirs ld target-libgloss"
3901 i
[3456789]86-*-sco*)
3902 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3904 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3905 noconfigdirs
="$noconfigdirs target-libgloss"
3907 i
[3456789]86-*-sysv4*)
3908 noconfigdirs
="$noconfigdirs target-libgloss"
3910 i
[3456789]86-*-beos*)
3911 noconfigdirs
="$noconfigdirs gdb"
3913 i
[3456789]86-*-rdos*)
3914 noconfigdirs
="$noconfigdirs gdb"
3917 noconfigdirs
="$noconfigdirs gdb"
3920 noconfigdirs
="$noconfigdirs sim"
3923 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3924 noconfigdirs
="$noconfigdirs $target_libraries"
3927 noconfigdirs
="$noconfigdirs gdb gprof"
3930 # copied from rs6000-*-* entry
3931 noconfigdirs
="$noconfigdirs gprof"
3933 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3934 target_configdirs
="$target_configdirs target-winsup"
3935 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3936 # always build newlib.
3937 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3939 # This is temporary until we can link against shared libraries
3940 powerpcle-
*-solaris*)
3941 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3944 noconfigdirs
="$noconfigdirs gdb"
3947 noconfigdirs
="$noconfigdirs gprof"
3950 noconfigdirs
="$noconfigdirs gprof"
3953 noconfigdirs
="$noconfigdirs gprof"
3956 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3959 noconfigdirs
="$noconfigdirs gprof"
3961 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3962 if test x
$with_newlib = xyes
; then
3963 noconfigdirs
="$noconfigdirs gprof"
3967 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3970 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3973 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3977 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3978 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3979 noconfigdirs
="$noconfigdirs ld gas gprof"
3982 noconfigdirs
="$noconfigdirs gprof"
3985 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3992 noconfigdirs
="$noconfigdirs target-libgloss" ;;
3996 if test x
${is_cross_compiler} = xno
; then
4001 noconfigdirs
="$noconfigdirs sim"
4003 tilepro
*-*-* | tilegx
*-*-*)
4004 noconfigdirs
="$noconfigdirs sim"
4007 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4010 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4013 noconfigdirs
="$noconfigdirs ld"
4015 loongarch
*-*-linux*)
4018 noconfigdirs
="$noconfigdirs gprof"
4022 # If we aren't building newlib, then don't build libgloss, since libgloss
4023 # depends upon some newlib header files.
4024 case "${noconfigdirs}" in
4025 *target-libgloss
*) ;;
4026 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4029 # Work in distributions that contain no compiler tools, like Autoconf.
4030 host_makefile_frag
=/dev
/null
4031 if test -d ${srcdir}/config
; then
4033 i
[3456789]86-*-msdosdjgpp*)
4034 host_makefile_frag
="config/mh-djgpp"
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4039 $as_echo_n "checking to see if cat works as expected... " >&6; }
4040 echo a
>cygwin-cat-check
4041 if test `cat cygwin-cat-check` = a
; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4044 $as_echo "yes" >&6; }
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4049 as_fn_error $?
"The cat command does not ignore carriage return characters.
4050 Please either mount the build directory in binary mode or run the following
4051 commands before running any configure script:
4057 host_makefile_frag
="config/mh-cygwin"
4060 host_makefile_frag
="config/mh-mingw"
4063 host_makefile_frag
="config/mh-alpha-linux"
4066 host_makefile_frag
="config/mh-pa"
4069 host_makefile_frag
="config/mh-pa"
4071 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4072 host_makefile_frag
="config/mh-darwin"
4075 host_makefile_frag
="config/mh-ppc-aix"
4078 host_makefile_frag
="config/mh-ppc-aix"
4083 if test "${build}" != "${host}" ; then
4084 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4085 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4086 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4087 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4088 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4089 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4090 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4091 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4092 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4093 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4094 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4095 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4096 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4097 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4098 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4100 AR_FOR_BUILD
="\$(AR)"
4101 AS_FOR_BUILD
="\$(AS)"
4102 CC_FOR_BUILD
="\$(CC)"
4103 CXX_FOR_BUILD
="\$(CXX)"
4104 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4105 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4106 GOC_FOR_BUILD
="\$(GOC)"
4107 GDC_FOR_BUILD
="\$(GDC)"
4108 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4109 LD_FOR_BUILD
="\$(LD)"
4110 NM_FOR_BUILD
="\$(NM)"
4111 RANLIB_FOR_BUILD
="\$(RANLIB)"
4112 WINDRES_FOR_BUILD
="\$(WINDRES)"
4113 WINDMC_FOR_BUILD
="\$(WINDMC)"
4117 ac_cpp
='$CPP $CPPFLAGS'
4118 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4121 if test -n "$ac_tool_prefix"; then
4122 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4123 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if ${ac_cv_prog_CC+:} false
; then :
4127 $as_echo_n "(cached) " >&6
4129 if test -n "$CC"; then
4130 ac_cv_prog_CC
="$CC" # Let the user override the test.
4132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir
=.
4137 for ac_exec_ext
in '' $ac_executable_extensions; do
4138 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4139 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 if test -n "$CC"; then
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4152 $as_echo "$CC" >&6; }
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4160 if test -z "$ac_cv_prog_CC"; then
4162 # Extract the first word of "gcc", so it can be a program name with args.
4163 set dummy gcc
; ac_word
=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4167 $as_echo_n "(cached) " >&6
4169 if test -n "$ac_ct_CC"; then
4170 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir
=.
4177 for ac_exec_ext
in '' $ac_executable_extensions; do
4178 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_ac_ct_CC
="gcc"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4190 if test -n "$ac_ct_CC"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4192 $as_echo "$ac_ct_CC" >&6; }
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4198 if test "x$ac_ct_CC" = x
; then
4201 case $cross_compiling:$ac_tool_warned in
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205 ac_tool_warned
=yes ;;
4213 if test -z "$CC"; then
4214 if test -n "$ac_tool_prefix"; then
4215 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4216 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_CC+:} false
; then :
4220 $as_echo_n "(cached) " >&6
4222 if test -n "$CC"; then
4223 ac_cv_prog_CC
="$CC" # Let the user override the test.
4225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4229 test -z "$as_dir" && as_dir
=.
4230 for ac_exec_ext
in '' $ac_executable_extensions; do
4231 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 if test -n "$CC"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4245 $as_echo "$CC" >&6; }
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4254 if test -z "$CC"; then
4255 # Extract the first word of "cc", so it can be a program name with args.
4256 set dummy cc
; ac_word
=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if ${ac_cv_prog_CC+:} false
; then :
4260 $as_echo_n "(cached) " >&6
4262 if test -n "$CC"; then
4263 ac_cv_prog_CC
="$CC" # Let the user override the test.
4266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4270 test -z "$as_dir" && as_dir
=.
4271 for ac_exec_ext
in '' $ac_executable_extensions; do
4272 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4273 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4274 ac_prog_rejected
=yes
4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 if test $ac_prog_rejected = yes; then
4286 # We found a bogon in the path, so make sure we never use it.
4287 set dummy
$ac_cv_prog_CC
4289 if test $# != 0; then
4290 # We chose a different compiler from the bogus one.
4291 # However, it has the same basename, so the bogon will be chosen
4292 # first if we set CC to just the basename; use the full file name.
4294 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4300 if test -n "$CC"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4302 $as_echo "$CC" >&6; }
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4310 if test -z "$CC"; then
4311 if test -n "$ac_tool_prefix"; then
4312 for ac_prog
in cl.exe
4314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4315 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_prog_CC+:} false
; then :
4319 $as_echo_n "(cached) " >&6
4321 if test -n "$CC"; then
4322 ac_cv_prog_CC
="$CC" # Let the user override the test.
4324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4328 test -z "$as_dir" && as_dir
=.
4329 for ac_exec_ext
in '' $ac_executable_extensions; do
4330 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 if test -n "$CC"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4344 $as_echo "$CC" >&6; }
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4351 test -n "$CC" && break
4354 if test -z "$CC"; then
4356 for ac_prog
in cl.exe
4358 # Extract the first word of "$ac_prog", so it can be a program name with args.
4359 set dummy
$ac_prog; ac_word
=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4363 $as_echo_n "(cached) " >&6
4365 if test -n "$ac_ct_CC"; then
4366 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir
=.
4373 for ac_exec_ext
in '' $ac_executable_extensions; do
4374 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4375 ac_cv_prog_ac_ct_CC
="$ac_prog"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4386 if test -n "$ac_ct_CC"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4388 $as_echo "$ac_ct_CC" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4395 test -n "$ac_ct_CC" && break
4398 if test "x$ac_ct_CC" = x
; then
4401 case $cross_compiling:$ac_tool_warned in
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned
=yes ;;
4414 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 as_fn_error $?
"no acceptable C compiler found in \$PATH
4417 See \`config.log' for more details" "$LINENO" 5; }
4419 # Provide some information about the compiler.
4420 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4423 for ac_option
in --version -v -V -qversion; do
4424 { { ac_try
="$ac_compiler $ac_option >&5"
4426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4433 if test -s conftest.err; then
4435 ... rest of stderr output deleted ...
4436 10q' conftest.err >conftest.er1
4437 cat conftest.er1 >&5
4439 rm -f conftest.er1 conftest.err
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4455 ac_clean_files_save=$ac_clean_files
4456 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4457 # Try to create an executable without -o first, disregard a.out.
4458 # It will help us diagnose broken compilers, and finding out an intuition
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4461 $as_echo_n "checking whether the C compiler works... " >&6; }
4462 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4464 # The possible output files:
4465 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4468 for ac_file in $ac_files
4471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4472 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4477 if { { ac_try="$ac_link_default"
4479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4480 *) ac_try_echo
=$ac_try;;
4482 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 $as_echo "$ac_try_echo"; } >&5
4484 (eval "$ac_link_default") 2>&5
4486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487 test $ac_status = 0; }; then :
4488 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4489 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4490 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4491 # so that the user can short-circuit this test for compilers unknown to
4493 for ac_file
in $ac_files ''
4495 test -f "$ac_file" ||
continue
4497 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4500 # We found the default executable, but exeext='' is most
4504 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4506 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4508 # We set ac_cv_exeext here because the later test for it is not
4509 # safe: cross compilers may not add the suffix if given an `-o'
4510 # argument, so we may need to know it at that point already.
4511 # Even if this section looks crufty: it has the advantage of
4518 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4523 if test -z "$ac_file"; then :
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4526 $as_echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.
$ac_ext >&5
4529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4531 as_fn_error
77 "C compiler cannot create executables
4532 See \`config.log' for more details" "$LINENO" 5; }
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4535 $as_echo "yes" >&6; }
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4538 $as_echo_n "checking for C compiler default output file name... " >&6; }
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4540 $as_echo "$ac_file" >&6; }
4541 ac_exeext
=$ac_cv_exeext
4543 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4544 ac_clean_files
=$ac_clean_files_save
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4546 $as_echo_n "checking for suffix of executables... " >&6; }
4547 if { { ac_try
="$ac_link"
4549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4553 $as_echo "$ac_try_echo"; } >&5
4554 (eval "$ac_link") 2>&5
4556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4557 test $ac_status = 0; }; then :
4558 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4559 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4560 # work properly (i.e., refer to `conftest.exe'), while it won't with
4562 for ac_file
in conftest.exe conftest conftest.
*; do
4563 test -f "$ac_file" ||
continue
4565 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4566 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4574 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4575 See \`config.log' for more details" "$LINENO" 5; }
4577 rm -f conftest conftest
$ac_cv_exeext
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4579 $as_echo "$ac_cv_exeext" >&6; }
4581 rm -f conftest.
$ac_ext
4582 EXEEXT
=$ac_cv_exeext
4584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4590 FILE *f = fopen ("conftest.out", "w");
4591 return ferror (f) || fclose (f) != 0;
4597 ac_clean_files
="$ac_clean_files conftest.out"
4598 # Check that the compiler produces executables we can run. If not, either
4599 # the compiler is broken, or we cross compile.
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4601 $as_echo_n "checking whether we are cross compiling... " >&6; }
4602 if test "$cross_compiling" != yes; then
4603 { { ac_try
="$ac_link"
4605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4609 $as_echo "$ac_try_echo"; } >&5
4610 (eval "$ac_link") 2>&5
4612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4613 test $ac_status = 0; }
4614 if { ac_try='./conftest$ac_cv_exeext'
4615 { { case "(($ac_try" in
4616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4617 *) ac_try_echo
=$ac_try;;
4619 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620 $as_echo "$ac_try_echo"; } >&5
4621 (eval "$ac_try") 2>&5
4623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624 test $ac_status = 0; }; }; then
4627 if test "$cross_compiling" = maybe
; then
4630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4632 as_fn_error $?
"cannot run C compiled programs.
4633 If you meant to cross compile, use \`--host'.
4634 See \`config.log' for more details" "$LINENO" 5; }
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4639 $as_echo "$cross_compiling" >&6; }
4641 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4642 ac_clean_files
=$ac_clean_files_save
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4644 $as_echo_n "checking for suffix of object files... " >&6; }
4645 if ${ac_cv_objext+:} false
; then :
4646 $as_echo_n "(cached) " >&6
4648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4659 rm -f conftest.o conftest.obj
4660 if { { ac_try
="$ac_compile"
4662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4666 $as_echo "$ac_try_echo"; } >&5
4667 (eval "$ac_compile") 2>&5
4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }; then :
4671 for ac_file in conftest.o conftest.obj conftest.*; do
4672 test -f "$ac_file" || continue;
4674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4675 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4680 $as_echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4685 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4686 See \
`config.log' for more details" "$LINENO" 5; }
4688 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4691 $as_echo "$ac_cv_objext" >&6; }
4692 OBJEXT=$ac_cv_objext
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4695 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4696 if ${ac_cv_c_compiler_gnu+:} false; then :
4697 $as_echo_n "(cached) " >&6
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4713 if ac_fn_c_try_compile "$LINENO"; then :
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4723 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4724 if test $ac_compiler_gnu = yes; then
4729 ac_test_CFLAGS=${CFLAGS+set}
4730 ac_save_CFLAGS=$CFLAGS
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4732 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4733 if ${ac_cv_prog_cc_g+:} false; then :
4734 $as_echo_n "(cached) " >&6
4736 ac_save_c_werror_flag=$ac_c_werror_flag
4737 ac_c_werror_flag=yes
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4751 if ac_fn_c_try_compile "$LINENO"; then :
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4766 if ac_fn_c_try_compile "$LINENO"; then :
4769 ac_c_werror_flag=$ac_save_c_werror_flag
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4782 if ac_fn_c_try_compile "$LINENO"; then :
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 ac_c_werror_flag=$ac_save_c_werror_flag
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4793 $as_echo "$ac_cv_prog_cc_g" >&6; }
4794 if test "$ac_test_CFLAGS" = set; then
4795 CFLAGS=$ac_save_CFLAGS
4796 elif test $ac_cv_prog_cc_g = yes; then
4797 if test "$GCC" = yes; then
4803 if test "$GCC" = yes; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4810 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4811 if ${ac_cv_prog_cc_c89+:} false; then :
4812 $as_echo_n "(cached) " >&6
4814 ac_cv_prog_cc_c89=no
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4821 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4822 struct buf { int x; };
4823 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4824 static char *e (p, i)
4830 static char *f (char * (*g) (char **, int), char **p, ...)
4835 s = g (p, va_arg (v,int));
4840 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4841 function prototypes and stuff, but not '\xHH' hex character constants.
4842 These don't provoke an error unfortunately, instead are silently treated
4843 as 'x'. The following induces an error, until -std is added to get
4844 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4845 array size at least. It's necessary to write '\x00'==0 to get something
4846 that's true only with -std. */
4847 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4849 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4850 inside strings and character constants. */
4852 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4854 int test (int i, double x);
4855 struct s1 {int (*f) (int a);};
4856 struct s2 {int (*f) (double a);};
4857 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4863 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4868 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4869 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4871 CC="$ac_save_CC $ac_arg"
4872 if ac_fn_c_try_compile "$LINENO"; then :
4873 ac_cv_prog_cc_c89=$ac_arg
4875 rm -f core conftest.err conftest.$ac_objext
4876 test "x$ac_cv_prog_cc_c89" != "xno" && break
4878 rm -f conftest.$ac_ext
4883 case "x$ac_cv_prog_cc_c89" in
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4886 $as_echo "none needed" >&6; } ;;
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4889 $as_echo "unsupported" >&6; } ;;
4891 CC="$CC $ac_cv_prog_cc_c89"
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4893 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4895 if test "x$ac_cv_prog_cc_c89" != xno; then :
4900 ac_cpp='$CPP $CPPFLAGS'
4901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4906 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4907 if ${ac_cv_prog_cc_c99+:} false; then :
4908 $as_echo_n "(cached) " >&6
4910 ac_cv_prog_cc_c99=no
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4915 #include <stdbool.h>
4920 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4921 #define debug(...) fprintf (stderr, __VA_ARGS__)
4922 #define showlist(...) puts (#__VA_ARGS__)
4923 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4925 test_varargs_macros (void)
4930 debug ("X = %d\n", x);
4931 showlist (The first, second, and third items.);
4932 report (x>y, "x is %d but y is %d", x, y);
4935 // Check long long types.
4936 #define BIG64 18446744073709551615ull
4937 #define BIG32 4294967295ul
4938 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4940 your preprocessor is broken;
4944 your preprocessor is broken;
4946 static long long int bignum = -9223372036854775807LL;
4947 static unsigned long long int ubignum = BIG64;
4949 struct incomplete_array
4957 const wchar_t *name;
4961 typedef const char *ccp;
4964 test_restrict (ccp restrict text)
4966 // See if C++-style comments work.
4967 // Iterate through items via the restricted pointer.
4968 // Also check for declarations in for loops.
4969 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4974 // Check varargs and va_copy.
4976 test_varargs (const char *format, ...)
4979 va_start (args, format);
4981 va_copy (args_copy, args);
4992 str = va_arg (args_copy, const char *);
4995 number = va_arg (args_copy, int);
4998 fnumber = va_arg (args_copy, double);
5013 _Bool success = false;
5016 if (test_restrict ("String literal") == 0)
5018 char *restrict newvar = "Another string";
5021 test_varargs ("s, d' f .", "string", 65, 34.234);
5022 test_varargs_macros ();
5024 // Check flexible array members.
5025 struct incomplete_array *ia =
5026 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5028 for (int i = 0; i < ia->datasize; ++i)
5029 ia->data[i] = i * 1.234;
5031 // Check named initializers.
5032 struct named_init ni = {
5034 .name = L"Test wide string",
5035 .average = 543.34343,
5040 int dynamic_array[ni.number];
5041 dynamic_array[ni.number - 1] = 543;
5043 // work around unused variable warnings
5044 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5045 || dynamic_array[ni.number - 1] != 543);
5051 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5053 CC="$ac_save_CC $ac_arg"
5054 if ac_fn_c_try_compile "$LINENO"; then :
5055 ac_cv_prog_cc_c99=$ac_arg
5057 rm -f core conftest.err conftest.$ac_objext
5058 test "x$ac_cv_prog_cc_c99" != "xno" && break
5060 rm -f conftest.$ac_ext
5065 case "x$ac_cv_prog_cc_c99" in
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5068 $as_echo "none needed" >&6; } ;;
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5071 $as_echo "unsupported" >&6; } ;;
5073 CC="$CC $ac_cv_prog_cc_c99"
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5075 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5077 if test "x$ac_cv_prog_cc_c99" != xno; then :
5083 ac_cpp='$CXXCPP $CPPFLAGS'
5084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5087 if test -z "$CXX"; then
5088 if test -n "$CCC"; then
5091 if test -n "$ac_tool_prefix"; then
5092 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_CXX+:} false; then :
5099 $as_echo_n "(cached) " >&6
5101 if test -n "$CXX"; then
5102 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 if test -n "$CXX"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5124 $as_echo "$CXX" >&6; }
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5131 test -n "$CXX" && break
5134 if test -z "$CXX"; then
5136 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5138 # Extract the first word of "$ac_prog", so it can be a program name with args.
5139 set dummy $ac_prog; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5143 $as_echo_n "(cached) " >&6
5145 if test -n "$ac_ct_CXX"; then
5146 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_ac_ct_CXX="$ac_prog"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5166 if test -n "$ac_ct_CXX"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5168 $as_echo "$ac_ct_CXX" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5175 test -n "$ac_ct_CXX" && break
5178 if test "x$ac_ct_CXX" = x; then
5181 case $cross_compiling:$ac_tool_warned in
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5185 ac_tool_warned=yes ;;
5193 # Provide some information about the compiler.
5194 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5197 for ac_option in --version -v -V -qversion; do
5198 { { ac_try="$ac_compiler $ac_option >&5"
5200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5201 *) ac_try_echo
=$ac_try;;
5203 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5204 $as_echo "$ac_try_echo"; } >&5
5205 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5207 if test -s conftest.err
; then
5209 ... rest of stderr output deleted ...
5210 10q' conftest.err
>conftest.er1
5211 cat conftest.er1
>&5
5213 rm -f conftest.er1 conftest.err
5214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5215 test $ac_status = 0; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5219 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5220 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5221 $as_echo_n "(cached) " >&6
5223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5237 if ac_fn_cxx_try_compile
"$LINENO"; then :
5242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5243 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5247 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5248 if test $ac_compiler_gnu = yes; then
5253 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5254 ac_save_CXXFLAGS
=$CXXFLAGS
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5256 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5257 if ${ac_cv_prog_cxx_g+:} false
; then :
5258 $as_echo_n "(cached) " >&6
5260 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5261 ac_cxx_werror_flag
=yes
5264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5275 if ac_fn_cxx_try_compile
"$LINENO"; then :
5276 ac_cv_prog_cxx_g
=yes
5279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5290 if ac_fn_cxx_try_compile
"$LINENO"; then :
5293 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5306 if ac_fn_cxx_try_compile
"$LINENO"; then :
5307 ac_cv_prog_cxx_g
=yes
5309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5314 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5317 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5318 if test "$ac_test_CXXFLAGS" = set; then
5319 CXXFLAGS
=$ac_save_CXXFLAGS
5320 elif test $ac_cv_prog_cxx_g = yes; then
5321 if test "$GXX" = yes; then
5327 if test "$GXX" = yes; then
5334 ac_cpp
='$CPP $CPPFLAGS'
5335 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5340 # We must set the default linker to the linker used by gcc for the correct
5341 # operation of libtool. If LD is not defined and we are using gcc, try to
5342 # set the LD default to the ld used by gcc.
5343 if test -z "$LD"; then
5344 if test "$GCC" = yes; then
5347 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5349 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5351 case $gcc_prog_ld in
5352 # Accept absolute paths.
5353 [\\/]* |
[A-Za-z
]:[\\/]*)
5354 LD
="$gcc_prog_ld" ;;
5359 # Check whether -static-libstdc++ -static-libgcc is supported.
5361 if test "$GCC" = yes; then
5362 saved_LDFLAGS
="$LDFLAGS"
5364 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5366 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5368 ac_cpp
='$CXXCPP $CPPFLAGS'
5369 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5377 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5378 #error -static-libstdc++ not implemented
5382 if ac_fn_cxx_try_link
"$LINENO"; then :
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5384 $as_echo "yes" >&6; }; have_static_libs
=yes
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5389 rm -f core conftest.err conftest.
$ac_objext \
5390 conftest
$ac_exeext conftest.
$ac_ext
5392 ac_cpp
='$CPP $CPPFLAGS'
5393 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5398 LDFLAGS
="$saved_LDFLAGS"
5404 if test -n "$ac_tool_prefix"; then
5405 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5406 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if ${ac_cv_prog_GNATBIND+:} false
; then :
5410 $as_echo_n "(cached) " >&6
5412 if test -n "$GNATBIND"; then
5413 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5419 test -z "$as_dir" && as_dir
=.
5420 for ac_exec_ext
in '' $ac_executable_extensions; do
5421 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 GNATBIND
=$ac_cv_prog_GNATBIND
5433 if test -n "$GNATBIND"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5435 $as_echo "$GNATBIND" >&6; }
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5443 if test -z "$ac_cv_prog_GNATBIND"; then
5444 ac_ct_GNATBIND
=$GNATBIND
5445 # Extract the first word of "gnatbind", so it can be a program name with args.
5446 set dummy gnatbind
; ac_word
=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5450 $as_echo_n "(cached) " >&6
5452 if test -n "$ac_ct_GNATBIND"; then
5453 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5459 test -z "$as_dir" && as_dir
=.
5460 for ac_exec_ext
in '' $ac_executable_extensions; do
5461 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5462 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5473 if test -n "$ac_ct_GNATBIND"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5475 $as_echo "$ac_ct_GNATBIND" >&6; }
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5481 if test "x$ac_ct_GNATBIND" = x
; then
5484 case $cross_compiling:$ac_tool_warned in
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5488 ac_tool_warned
=yes ;;
5490 GNATBIND
=$ac_ct_GNATBIND
5493 GNATBIND
="$ac_cv_prog_GNATBIND"
5496 if test -n "$ac_tool_prefix"; then
5497 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5498 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5502 $as_echo_n "(cached) " >&6
5504 if test -n "$GNATMAKE"; then
5505 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5511 test -z "$as_dir" && as_dir
=.
5512 for ac_exec_ext
in '' $ac_executable_extensions; do
5513 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 GNATMAKE
=$ac_cv_prog_GNATMAKE
5525 if test -n "$GNATMAKE"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5527 $as_echo "$GNATMAKE" >&6; }
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5535 if test -z "$ac_cv_prog_GNATMAKE"; then
5536 ac_ct_GNATMAKE
=$GNATMAKE
5537 # Extract the first word of "gnatmake", so it can be a program name with args.
5538 set dummy gnatmake
; ac_word
=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5542 $as_echo_n "(cached) " >&6
5544 if test -n "$ac_ct_GNATMAKE"; then
5545 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir
=.
5552 for ac_exec_ext
in '' $ac_executable_extensions; do
5553 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5565 if test -n "$ac_ct_GNATMAKE"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5567 $as_echo "$ac_ct_GNATMAKE" >&6; }
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5573 if test "x$ac_ct_GNATMAKE" = x
; then
5576 case $cross_compiling:$ac_tool_warned in
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580 ac_tool_warned
=yes ;;
5582 GNATMAKE
=$ac_ct_GNATMAKE
5585 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5589 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5590 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5591 $as_echo_n "(cached) " >&6
5593 cat >conftest.adb
<<EOF
5594 pragma Warnings (Off);
5596 pragma Warnings (On);
5597 use type System.CRTL.int64;
5598 procedure conftest is begin null; end conftest;
5600 acx_cv_cc_gcc_supports_ada
=no
5601 # There is a bug in old released versions of GCC which causes the
5602 # driver to exit successfully when the appropriate language module
5603 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5604 # Therefore we must check for the error message as well as an
5605 # unsuccessful exit.
5606 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5607 # given a .adb file, but produce no object file. So we must check
5608 # if an object file was really produced to guard against this.
5609 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5610 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5611 acx_cv_cc_gcc_supports_ada
=yes
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5616 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5618 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5626 if test -n "$ac_tool_prefix"; then
5627 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5628 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if ${ac_cv_prog_GDC+:} false
; then :
5632 $as_echo_n "(cached) " >&6
5634 if test -n "$GDC"; then
5635 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5641 test -z "$as_dir" && as_dir
=.
5642 for ac_exec_ext
in '' $ac_executable_extensions; do
5643 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5644 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 if test -n "$GDC"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5657 $as_echo "$GDC" >&6; }
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5665 if test -z "$ac_cv_prog_GDC"; then
5667 # Extract the first word of "gdc", so it can be a program name with args.
5668 set dummy gdc
; ac_word
=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5672 $as_echo_n "(cached) " >&6
5674 if test -n "$ac_ct_GDC"; then
5675 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir
=.
5682 for ac_exec_ext
in '' $ac_executable_extensions; do
5683 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5684 ac_cv_prog_ac_ct_GDC
="gdc"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5695 if test -n "$ac_ct_GDC"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5697 $as_echo "$ac_ct_GDC" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5703 if test "x$ac_ct_GDC" = x
; then
5706 case $cross_compiling:$ac_tool_warned in
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5710 ac_tool_warned
=yes ;;
5715 GDC
="$ac_cv_prog_GDC"
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5719 $as_echo_n "checking whether the D compiler works... " >&6; }
5720 if ${acx_cv_d_compiler_works+:} false
; then :
5721 $as_echo_n "(cached) " >&6
5723 cat >conftest.d
<<EOF
5724 module conftest; int main() { return 0; }
5726 acx_cv_d_compiler_works
=no
5727 if test "x$GDC" != xno
; then
5728 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5729 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5730 acx_cv_d_compiler_works
=yes
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5736 $as_echo "$acx_cv_d_compiler_works" >&6; }
5737 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5744 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5745 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5746 $as_echo_n "(cached) " >&6
5750 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5751 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5752 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5755 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5758 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5759 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5762 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5769 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5770 do_compare
="$gcc_cv_prog_cmp_skip"
5774 # Check whether --enable-bootstrap was given.
5775 if test "${enable_bootstrap+set}" = set; then :
5776 enableval
=$enable_bootstrap;
5778 enable_bootstrap
=default
5782 # Issue errors and warnings for invalid/strange bootstrap combinations.
5783 if test -r $srcdir/gcc
/configure
; then
5789 case "$have_compiler:$host:$target:$enable_bootstrap" in
5792 # Default behavior. Enable bootstrap if we have a compiler
5793 # and we are in a native configuration.
5794 yes:$build:$build:default
)
5795 enable_bootstrap
=yes ;;
5798 enable_bootstrap
=no
;;
5800 # We have a compiler and we are in a native configuration, bootstrap is ok
5801 yes:$build:$build:yes)
5804 # Other configurations, but we have a compiler. Assume the user knows
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5808 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5811 # No compiler: if they passed --enable-bootstrap explicitly, fail
5813 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5815 # Fail if wrong command line
5817 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5821 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5822 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5823 # require C++11 (or higher).
5824 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5825 CXX
="$CXX -std=c++11"
5826 elif test "$have_compiler" = yes; then
5827 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5829 ac_cpp
='$CXXCPP $CPPFLAGS'
5830 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5836 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5837 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5838 $as_echo_n "(cached) " >&6
5840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5844 // If the compiler admits that it is not ready for C++11, why torture it?
5845 // Hopefully, this will speed up the test.
5849 #error "This is not a C++ compiler"
5851 #elif __cplusplus < 201103L
5853 #error "This is not a C++11 compiler"
5860 namespace test_static_assert
5863 template <typename T>
5866 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5871 namespace test_final_override
5880 struct Derived : public Base
5882 virtual ~Derived() override {}
5883 virtual void f() override {}
5888 namespace test_double_right_angle_brackets
5891 template < typename T >
5894 typedef check<void> single_type;
5895 typedef check<check<void>> double_type;
5896 typedef check<check<check<void>>> triple_type;
5897 typedef check<check<check<check<void>>>> quadruple_type;
5901 namespace test_decltype
5914 namespace test_type_deduction
5917 template < typename T1, typename T2 >
5920 static const bool value = false;
5923 template < typename T >
5924 struct is_same<T, T>
5926 static const bool value = true;
5929 template < typename T1, typename T2 >
5931 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5937 test(const int c, volatile int v)
5939 static_assert(is_same<int, decltype(0)>::value == true, "");
5940 static_assert(is_same<int, decltype(c)>::value == false, "");
5941 static_assert(is_same<int, decltype(v)>::value == false, "");
5944 auto sumi = ac + av + 'x';
5945 auto sumf = ac + av + 1.0;
5946 static_assert(is_same<int, decltype(ac)>::value == true, "");
5947 static_assert(is_same<int, decltype(av)>::value == true, "");
5948 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5949 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5950 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5951 return (sumf > 0.0) ? sumi : add(c, v);
5956 namespace test_noexcept
5959 int f() { return 0; }
5960 int g() noexcept { return 0; }
5962 static_assert(noexcept(f()) == false, "");
5963 static_assert(noexcept(g()) == true, "");
5967 namespace test_constexpr
5970 template < typename CharT >
5971 unsigned long constexpr
5972 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5974 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5977 template < typename CharT >
5978 unsigned long constexpr
5979 strlen_c(const CharT *const s) noexcept
5981 return strlen_c_r(s, 0UL);
5984 static_assert(strlen_c("") == 0UL, "");
5985 static_assert(strlen_c("1") == 1UL, "");
5986 static_assert(strlen_c("example") == 7UL, "");
5987 static_assert(strlen_c("another\0example") == 7UL, "");
5991 namespace test_rvalue_references
5997 static constexpr int value = N;
6000 answer<1> f(int&) { return answer<1>(); }
6001 answer<2> f(const int&) { return answer<2>(); }
6002 answer<3> f(int&&) { return answer<3>(); }
6009 static_assert(decltype(f(i))::value == 1, "");
6010 static_assert(decltype(f(c))::value == 2, "");
6011 static_assert(decltype(f(0))::value == 3, "");
6016 namespace test_uniform_initialization
6021 static const int zero {};
6022 static const int one {1};
6025 static_assert(test::zero == 0, "");
6026 static_assert(test::one == 1, "");
6030 namespace test_lambdas
6036 auto lambda1 = [](){};
6037 auto lambda2 = lambda1;
6045 auto a = [](int i, int j){ return i + j; }(1, 2);
6046 auto b = []() -> int { return '0'; }();
6047 auto c = [=](){ return a + b; }();
6048 auto d = [&](){ return c; }();
6049 auto e = [a, &b](int x) mutable {
6050 const auto identity = [](int y){ return y; };
6051 for (auto i = 0; i < a; ++i)
6053 return x + identity(a + b);
6055 return a + b + c + d + e;
6061 const auto nullary = [](){ return 0; };
6062 const auto unary = [](int x){ return x; };
6063 using nullary_t = decltype(nullary);
6064 using unary_t = decltype(unary);
6065 const auto higher1st = [](nullary_t f){ return f(); };
6066 const auto higher2nd = [unary](nullary_t f1){
6067 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6069 return higher1st(nullary) + higher2nd(nullary)(unary);
6074 namespace test_variadic_templates
6080 template <int N0, int... N1toN>
6081 struct sum<N0, N1toN...>
6083 static constexpr auto value = N0 + sum<N1toN...>::value;
6089 static constexpr auto value = 0;
6092 static_assert(sum<>::value == 0, "");
6093 static_assert(sum<1>::value == 1, "");
6094 static_assert(sum<23>::value == 23, "");
6095 static_assert(sum<1, 2>::value == 3, "");
6096 static_assert(sum<5, 5, 11>::value == 21, "");
6097 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6101 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6102 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6104 namespace test_template_alias_sfinae
6109 template<typename T>
6110 using member = typename T::member_type;
6112 template<typename T>
6115 template<typename T>
6116 void func(member<T>*) {}
6120 void test() { func<foo>(0); }
6124 } // namespace cxx11
6126 #endif // __cplusplus >= 201103L
6131 if ac_fn_cxx_try_compile
"$LINENO"; then :
6132 ax_cv_cxx_compile_cxx11
=yes
6134 ax_cv_cxx_compile_cxx11
=no
6136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6139 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6140 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6144 if test x
$ac_success = xno
; then
6145 for alternative
in ${ax_cxx_compile_alternatives}; do
6146 switch
="-std=gnu++${alternative}"
6147 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6149 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6150 if eval \
${$cachevar+:} false
; then :
6151 $as_echo_n "(cached) " >&6
6155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6159 // If the compiler admits that it is not ready for C++11, why torture it?
6160 // Hopefully, this will speed up the test.
6164 #error "This is not a C++ compiler"
6166 #elif __cplusplus < 201103L
6168 #error "This is not a C++11 compiler"
6175 namespace test_static_assert
6178 template <typename T>
6181 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6186 namespace test_final_override
6195 struct Derived : public Base
6197 virtual ~Derived() override {}
6198 virtual void f() override {}
6203 namespace test_double_right_angle_brackets
6206 template < typename T >
6209 typedef check<void> single_type;
6210 typedef check<check<void>> double_type;
6211 typedef check<check<check<void>>> triple_type;
6212 typedef check<check<check<check<void>>>> quadruple_type;
6216 namespace test_decltype
6229 namespace test_type_deduction
6232 template < typename T1, typename T2 >
6235 static const bool value = false;
6238 template < typename T >
6239 struct is_same<T, T>
6241 static const bool value = true;
6244 template < typename T1, typename T2 >
6246 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6252 test(const int c, volatile int v)
6254 static_assert(is_same<int, decltype(0)>::value == true, "");
6255 static_assert(is_same<int, decltype(c)>::value == false, "");
6256 static_assert(is_same<int, decltype(v)>::value == false, "");
6259 auto sumi = ac + av + 'x';
6260 auto sumf = ac + av + 1.0;
6261 static_assert(is_same<int, decltype(ac)>::value == true, "");
6262 static_assert(is_same<int, decltype(av)>::value == true, "");
6263 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6264 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6265 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6266 return (sumf > 0.0) ? sumi : add(c, v);
6271 namespace test_noexcept
6274 int f() { return 0; }
6275 int g() noexcept { return 0; }
6277 static_assert(noexcept(f()) == false, "");
6278 static_assert(noexcept(g()) == true, "");
6282 namespace test_constexpr
6285 template < typename CharT >
6286 unsigned long constexpr
6287 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6289 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6292 template < typename CharT >
6293 unsigned long constexpr
6294 strlen_c(const CharT *const s) noexcept
6296 return strlen_c_r(s, 0UL);
6299 static_assert(strlen_c("") == 0UL, "");
6300 static_assert(strlen_c("1") == 1UL, "");
6301 static_assert(strlen_c("example") == 7UL, "");
6302 static_assert(strlen_c("another\0example") == 7UL, "");
6306 namespace test_rvalue_references
6312 static constexpr int value = N;
6315 answer<1> f(int&) { return answer<1>(); }
6316 answer<2> f(const int&) { return answer<2>(); }
6317 answer<3> f(int&&) { return answer<3>(); }
6324 static_assert(decltype(f(i))::value == 1, "");
6325 static_assert(decltype(f(c))::value == 2, "");
6326 static_assert(decltype(f(0))::value == 3, "");
6331 namespace test_uniform_initialization
6336 static const int zero {};
6337 static const int one {1};
6340 static_assert(test::zero == 0, "");
6341 static_assert(test::one == 1, "");
6345 namespace test_lambdas
6351 auto lambda1 = [](){};
6352 auto lambda2 = lambda1;
6360 auto a = [](int i, int j){ return i + j; }(1, 2);
6361 auto b = []() -> int { return '0'; }();
6362 auto c = [=](){ return a + b; }();
6363 auto d = [&](){ return c; }();
6364 auto e = [a, &b](int x) mutable {
6365 const auto identity = [](int y){ return y; };
6366 for (auto i = 0; i < a; ++i)
6368 return x + identity(a + b);
6370 return a + b + c + d + e;
6376 const auto nullary = [](){ return 0; };
6377 const auto unary = [](int x){ return x; };
6378 using nullary_t = decltype(nullary);
6379 using unary_t = decltype(unary);
6380 const auto higher1st = [](nullary_t f){ return f(); };
6381 const auto higher2nd = [unary](nullary_t f1){
6382 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6384 return higher1st(nullary) + higher2nd(nullary)(unary);
6389 namespace test_variadic_templates
6395 template <int N0, int... N1toN>
6396 struct sum<N0, N1toN...>
6398 static constexpr auto value = N0 + sum<N1toN...>::value;
6404 static constexpr auto value = 0;
6407 static_assert(sum<>::value == 0, "");
6408 static_assert(sum<1>::value == 1, "");
6409 static_assert(sum<23>::value == 23, "");
6410 static_assert(sum<1, 2>::value == 3, "");
6411 static_assert(sum<5, 5, 11>::value == 21, "");
6412 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6416 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6417 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6419 namespace test_template_alias_sfinae
6424 template<typename T>
6425 using member = typename T::member_type;
6427 template<typename T>
6430 template<typename T>
6431 void func(member<T>*) {}
6435 void test() { func<foo>(0); }
6439 } // namespace cxx11
6441 #endif // __cplusplus >= 201103L
6446 if ac_fn_cxx_try_compile
"$LINENO"; then :
6451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6454 eval ac_res
=\$
$cachevar
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6456 $as_echo "$ac_res" >&6; }
6457 if eval test x\$
$cachevar = xyes
; then
6459 if test -n "$CXXCPP" ; then
6460 CXXCPP
="$CXXCPP $switch"
6468 if test x
$ac_success = xno
; then
6469 for alternative
in ${ax_cxx_compile_alternatives}; do
6470 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6471 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6473 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6474 if eval \${$cachevar+:} false; then :
6475 $as_echo_n "(cached
) " >&6
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6483 // If the compiler admits that it is not ready for C++11, why torture it?
6484 // Hopefully, this will speed up the test.
6488 #error "This is not a C
++ compiler
"
6490 #elif __cplusplus < 201103L
6492 #error "This is not a C
++11 compiler
"
6499 namespace test_static_assert
6502 template <typename T>
6505 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6510 namespace test_final_override
6519 struct Derived : public Base
6521 virtual ~Derived() override {}
6522 virtual void f() override {}
6527 namespace test_double_right_angle_brackets
6530 template < typename T >
6533 typedef check<void> single_type;
6534 typedef check<check<void>> double_type;
6535 typedef check<check<check<void>>> triple_type;
6536 typedef check<check<check<check<void>>>> quadruple_type;
6540 namespace test_decltype
6553 namespace test_type_deduction
6556 template < typename T1, typename T2 >
6559 static const bool value = false;
6562 template < typename T >
6563 struct is_same<T, T>
6565 static const bool value = true;
6568 template < typename T1, typename T2 >
6570 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6576 test(const int c, volatile int v)
6578 static_assert(is_same<int, decltype(0)>::value == true, "");
6579 static_assert(is_same<int, decltype(c)>::value == false, "");
6580 static_assert(is_same<int, decltype(v)>::value == false, "");
6583 auto sumi = ac + av + 'x';
6584 auto sumf = ac + av + 1.0;
6585 static_assert(is_same<int, decltype(ac)>::value == true, "");
6586 static_assert(is_same<int, decltype(av)>::value == true, "");
6587 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6588 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6589 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6590 return (sumf > 0.0) ? sumi : add(c, v);
6595 namespace test_noexcept
6598 int f() { return 0; }
6599 int g() noexcept { return 0; }
6601 static_assert(noexcept(f()) == false, "");
6602 static_assert(noexcept(g()) == true, "");
6606 namespace test_constexpr
6609 template < typename CharT >
6610 unsigned long constexpr
6611 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6613 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6616 template < typename CharT >
6617 unsigned long constexpr
6618 strlen_c(const CharT *const s) noexcept
6620 return strlen_c_r(s, 0UL);
6623 static_assert(strlen_c("") == 0UL, "");
6624 static_assert(strlen_c("1") == 1UL, "");
6625 static_assert(strlen_c("example
") == 7UL, "");
6626 static_assert(strlen_c("another\
0example
") == 7UL, "");
6630 namespace test_rvalue_references
6636 static constexpr int value = N;
6639 answer<1> f(int&) { return answer<1>(); }
6640 answer<2> f(const int&) { return answer<2>(); }
6641 answer<3> f(int&&) { return answer<3>(); }
6648 static_assert(decltype(f(i))::value == 1, "");
6649 static_assert(decltype(f(c))::value == 2, "");
6650 static_assert(decltype(f(0))::value == 3, "");
6655 namespace test_uniform_initialization
6660 static const int zero {};
6661 static const int one {1};
6664 static_assert(test::zero == 0, "");
6665 static_assert(test::one == 1, "");
6669 namespace test_lambdas
6675 auto lambda1 = [](){};
6676 auto lambda2 = lambda1;
6684 auto a = [](int i, int j){ return i + j; }(1, 2);
6685 auto b = []() -> int { return '0'; }();
6686 auto c = [=](){ return a + b; }();
6687 auto d = [&](){ return c; }();
6688 auto e = [a, &b](int x) mutable {
6689 const auto identity = [](int y){ return y; };
6690 for (auto i = 0; i < a; ++i)
6692 return x + identity(a + b);
6694 return a + b + c + d + e;
6700 const auto nullary = [](){ return 0; };
6701 const auto unary = [](int x){ return x; };
6702 using nullary_t = decltype(nullary);
6703 using unary_t = decltype(unary);
6704 const auto higher1st = [](nullary_t f){ return f(); };
6705 const auto higher2nd = [unary](nullary_t f1){
6706 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6708 return higher1st(nullary) + higher2nd(nullary)(unary);
6713 namespace test_variadic_templates
6719 template <int N0, int... N1toN>
6720 struct sum<N0, N1toN...>
6722 static constexpr auto value = N0 + sum<N1toN...>::value;
6728 static constexpr auto value = 0;
6731 static_assert(sum<>::value == 0, "");
6732 static_assert(sum<1>::value == 1, "");
6733 static_assert(sum<23>::value == 23, "");
6734 static_assert(sum<1, 2>::value == 3, "");
6735 static_assert(sum<5, 5, 11>::value == 21, "");
6736 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6740 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6741 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6743 namespace test_template_alias_sfinae
6748 template<typename T>
6749 using member = typename T::member_type;
6751 template<typename T>
6754 template<typename T>
6755 void func(member<T>*) {}
6759 void test() { func<foo>(0); }
6763 } // namespace cxx11
6765 #endif // __cplusplus >= 201103L
6770 if ac_fn_cxx_try_compile "$LINENO"; then :
6775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778 eval ac_res=\$$cachevar
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6780 $as_echo "$ac_res" >&6; }
6781 if eval test x\$$cachevar = xyes; then
6783 if test -n "$CXXCPP" ; then
6784 CXXCPP="$CXXCPP $switch"
6790 if test x$ac_success = xyes; then
6797 ac_cpp='$CPP $CPPFLAGS'
6798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6802 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6803 if test x$ac_success = xno; then
6804 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6807 if test x$ac_success = xno; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6810 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6814 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6820 if test "${build}" != "${host}"; then
6821 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6823 ac_cpp
='$CXXCPP $CPPFLAGS'
6824 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6828 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6829 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6830 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6831 CXX
="$CXX_FOR_BUILD"
6832 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6833 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6835 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6836 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6837 $as_echo_n "(cached) " >&6
6839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6843 // If the compiler admits that it is not ready for C++11, why torture it?
6844 // Hopefully, this will speed up the test.
6848 #error "This is not a C++ compiler"
6850 #elif __cplusplus < 201103L
6852 #error "This is not a C++11 compiler"
6859 namespace test_static_assert
6862 template <typename T>
6865 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6870 namespace test_final_override
6879 struct Derived : public Base
6881 virtual ~Derived() override {}
6882 virtual void f() override {}
6887 namespace test_double_right_angle_brackets
6890 template < typename T >
6893 typedef check<void> single_type;
6894 typedef check<check<void>> double_type;
6895 typedef check<check<check<void>>> triple_type;
6896 typedef check<check<check<check<void>>>> quadruple_type;
6900 namespace test_decltype
6913 namespace test_type_deduction
6916 template < typename T1, typename T2 >
6919 static const bool value = false;
6922 template < typename T >
6923 struct is_same<T, T>
6925 static const bool value = true;
6928 template < typename T1, typename T2 >
6930 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6936 test(const int c, volatile int v)
6938 static_assert(is_same<int, decltype(0)>::value == true, "");
6939 static_assert(is_same<int, decltype(c)>::value == false, "");
6940 static_assert(is_same<int, decltype(v)>::value == false, "");
6943 auto sumi = ac + av + 'x';
6944 auto sumf = ac + av + 1.0;
6945 static_assert(is_same<int, decltype(ac)>::value == true, "");
6946 static_assert(is_same<int, decltype(av)>::value == true, "");
6947 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6948 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6949 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6950 return (sumf > 0.0) ? sumi : add(c, v);
6955 namespace test_noexcept
6958 int f() { return 0; }
6959 int g() noexcept { return 0; }
6961 static_assert(noexcept(f()) == false, "");
6962 static_assert(noexcept(g()) == true, "");
6966 namespace test_constexpr
6969 template < typename CharT >
6970 unsigned long constexpr
6971 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6973 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6976 template < typename CharT >
6977 unsigned long constexpr
6978 strlen_c(const CharT *const s) noexcept
6980 return strlen_c_r(s, 0UL);
6983 static_assert(strlen_c("") == 0UL, "");
6984 static_assert(strlen_c("1") == 1UL, "");
6985 static_assert(strlen_c("example") == 7UL, "");
6986 static_assert(strlen_c("another\0example") == 7UL, "");
6990 namespace test_rvalue_references
6996 static constexpr int value = N;
6999 answer<1> f(int&) { return answer<1>(); }
7000 answer<2> f(const int&) { return answer<2>(); }
7001 answer<3> f(int&&) { return answer<3>(); }
7008 static_assert(decltype(f(i))::value == 1, "");
7009 static_assert(decltype(f(c))::value == 2, "");
7010 static_assert(decltype(f(0))::value == 3, "");
7015 namespace test_uniform_initialization
7020 static const int zero {};
7021 static const int one {1};
7024 static_assert(test::zero == 0, "");
7025 static_assert(test::one == 1, "");
7029 namespace test_lambdas
7035 auto lambda1 = [](){};
7036 auto lambda2 = lambda1;
7044 auto a = [](int i, int j){ return i + j; }(1, 2);
7045 auto b = []() -> int { return '0'; }();
7046 auto c = [=](){ return a + b; }();
7047 auto d = [&](){ return c; }();
7048 auto e = [a, &b](int x) mutable {
7049 const auto identity = [](int y){ return y; };
7050 for (auto i = 0; i < a; ++i)
7052 return x + identity(a + b);
7054 return a + b + c + d + e;
7060 const auto nullary = [](){ return 0; };
7061 const auto unary = [](int x){ return x; };
7062 using nullary_t = decltype(nullary);
7063 using unary_t = decltype(unary);
7064 const auto higher1st = [](nullary_t f){ return f(); };
7065 const auto higher2nd = [unary](nullary_t f1){
7066 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7068 return higher1st(nullary) + higher2nd(nullary)(unary);
7073 namespace test_variadic_templates
7079 template <int N0, int... N1toN>
7080 struct sum<N0, N1toN...>
7082 static constexpr auto value = N0 + sum<N1toN...>::value;
7088 static constexpr auto value = 0;
7091 static_assert(sum<>::value == 0, "");
7092 static_assert(sum<1>::value == 1, "");
7093 static_assert(sum<23>::value == 23, "");
7094 static_assert(sum<1, 2>::value == 3, "");
7095 static_assert(sum<5, 5, 11>::value == 21, "");
7096 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7100 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7101 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7103 namespace test_template_alias_sfinae
7108 template<typename T>
7109 using member = typename T::member_type;
7111 template<typename T>
7114 template<typename T>
7115 void func(member<T>*) {}
7119 void test() { func<foo>(0); }
7123 } // namespace cxx11
7125 #endif // __cplusplus >= 201103L
7130 if ac_fn_cxx_try_compile
"$LINENO"; then :
7131 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7133 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7138 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7139 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7143 if test x
$ac_success = xno
; then
7144 for alternative
in ${ax_cxx_compile_alternatives}; do
7145 switch
="-std=gnu++${alternative}"
7146 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7148 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7149 if eval \
${$cachevar+:} false
; then :
7150 $as_echo_n "(cached) " >&6
7154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7158 // If the compiler admits that it is not ready for C++11, why torture it?
7159 // Hopefully, this will speed up the test.
7163 #error "This is not a C++ compiler"
7165 #elif __cplusplus < 201103L
7167 #error "This is not a C++11 compiler"
7174 namespace test_static_assert
7177 template <typename T>
7180 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7185 namespace test_final_override
7194 struct Derived : public Base
7196 virtual ~Derived() override {}
7197 virtual void f() override {}
7202 namespace test_double_right_angle_brackets
7205 template < typename T >
7208 typedef check<void> single_type;
7209 typedef check<check<void>> double_type;
7210 typedef check<check<check<void>>> triple_type;
7211 typedef check<check<check<check<void>>>> quadruple_type;
7215 namespace test_decltype
7228 namespace test_type_deduction
7231 template < typename T1, typename T2 >
7234 static const bool value = false;
7237 template < typename T >
7238 struct is_same<T, T>
7240 static const bool value = true;
7243 template < typename T1, typename T2 >
7245 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7251 test(const int c, volatile int v)
7253 static_assert(is_same<int, decltype(0)>::value == true, "");
7254 static_assert(is_same<int, decltype(c)>::value == false, "");
7255 static_assert(is_same<int, decltype(v)>::value == false, "");
7258 auto sumi = ac + av + 'x';
7259 auto sumf = ac + av + 1.0;
7260 static_assert(is_same<int, decltype(ac)>::value == true, "");
7261 static_assert(is_same<int, decltype(av)>::value == true, "");
7262 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7263 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7264 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7265 return (sumf > 0.0) ? sumi : add(c, v);
7270 namespace test_noexcept
7273 int f() { return 0; }
7274 int g() noexcept { return 0; }
7276 static_assert(noexcept(f()) == false, "");
7277 static_assert(noexcept(g()) == true, "");
7281 namespace test_constexpr
7284 template < typename CharT >
7285 unsigned long constexpr
7286 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7288 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7291 template < typename CharT >
7292 unsigned long constexpr
7293 strlen_c(const CharT *const s) noexcept
7295 return strlen_c_r(s, 0UL);
7298 static_assert(strlen_c("") == 0UL, "");
7299 static_assert(strlen_c("1") == 1UL, "");
7300 static_assert(strlen_c("example") == 7UL, "");
7301 static_assert(strlen_c("another\0example") == 7UL, "");
7305 namespace test_rvalue_references
7311 static constexpr int value = N;
7314 answer<1> f(int&) { return answer<1>(); }
7315 answer<2> f(const int&) { return answer<2>(); }
7316 answer<3> f(int&&) { return answer<3>(); }
7323 static_assert(decltype(f(i))::value == 1, "");
7324 static_assert(decltype(f(c))::value == 2, "");
7325 static_assert(decltype(f(0))::value == 3, "");
7330 namespace test_uniform_initialization
7335 static const int zero {};
7336 static const int one {1};
7339 static_assert(test::zero == 0, "");
7340 static_assert(test::one == 1, "");
7344 namespace test_lambdas
7350 auto lambda1 = [](){};
7351 auto lambda2 = lambda1;
7359 auto a = [](int i, int j){ return i + j; }(1, 2);
7360 auto b = []() -> int { return '0'; }();
7361 auto c = [=](){ return a + b; }();
7362 auto d = [&](){ return c; }();
7363 auto e = [a, &b](int x) mutable {
7364 const auto identity = [](int y){ return y; };
7365 for (auto i = 0; i < a; ++i)
7367 return x + identity(a + b);
7369 return a + b + c + d + e;
7375 const auto nullary = [](){ return 0; };
7376 const auto unary = [](int x){ return x; };
7377 using nullary_t = decltype(nullary);
7378 using unary_t = decltype(unary);
7379 const auto higher1st = [](nullary_t f){ return f(); };
7380 const auto higher2nd = [unary](nullary_t f1){
7381 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7383 return higher1st(nullary) + higher2nd(nullary)(unary);
7388 namespace test_variadic_templates
7394 template <int N0, int... N1toN>
7395 struct sum<N0, N1toN...>
7397 static constexpr auto value = N0 + sum<N1toN...>::value;
7403 static constexpr auto value = 0;
7406 static_assert(sum<>::value == 0, "");
7407 static_assert(sum<1>::value == 1, "");
7408 static_assert(sum<23>::value == 23, "");
7409 static_assert(sum<1, 2>::value == 3, "");
7410 static_assert(sum<5, 5, 11>::value == 21, "");
7411 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7415 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7416 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7418 namespace test_template_alias_sfinae
7423 template<typename T>
7424 using member = typename T::member_type;
7426 template<typename T>
7429 template<typename T>
7430 void func(member<T>*) {}
7434 void test() { func<foo>(0); }
7438 } // namespace cxx11
7440 #endif // __cplusplus >= 201103L
7445 if ac_fn_cxx_try_compile
"$LINENO"; then :
7450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7453 eval ac_res
=\$
$cachevar
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7455 $as_echo "$ac_res" >&6; }
7456 if eval test x\$
$cachevar = xyes
; then
7458 if test -n "$CXXCPP" ; then
7459 CXXCPP
="$CXXCPP $switch"
7467 if test x
$ac_success = xno
; then
7468 for alternative
in ${ax_cxx_compile_alternatives}; do
7469 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7470 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7472 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7473 if eval \${$cachevar+:} false; then :
7474 $as_echo_n "(cached
) " >&6
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7482 // If the compiler admits that it is not ready for C++11, why torture it?
7483 // Hopefully, this will speed up the test.
7487 #error "This is not a C
++ compiler
"
7489 #elif __cplusplus < 201103L
7491 #error "This is not a C
++11 compiler
"
7498 namespace test_static_assert
7501 template <typename T>
7504 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7509 namespace test_final_override
7518 struct Derived : public Base
7520 virtual ~Derived() override {}
7521 virtual void f() override {}
7526 namespace test_double_right_angle_brackets
7529 template < typename T >
7532 typedef check<void> single_type;
7533 typedef check<check<void>> double_type;
7534 typedef check<check<check<void>>> triple_type;
7535 typedef check<check<check<check<void>>>> quadruple_type;
7539 namespace test_decltype
7552 namespace test_type_deduction
7555 template < typename T1, typename T2 >
7558 static const bool value = false;
7561 template < typename T >
7562 struct is_same<T, T>
7564 static const bool value = true;
7567 template < typename T1, typename T2 >
7569 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7575 test(const int c, volatile int v)
7577 static_assert(is_same<int, decltype(0)>::value == true, "");
7578 static_assert(is_same<int, decltype(c)>::value == false, "");
7579 static_assert(is_same<int, decltype(v)>::value == false, "");
7582 auto sumi = ac + av + 'x';
7583 auto sumf = ac + av + 1.0;
7584 static_assert(is_same<int, decltype(ac)>::value == true, "");
7585 static_assert(is_same<int, decltype(av)>::value == true, "");
7586 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7587 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7588 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7589 return (sumf > 0.0) ? sumi : add(c, v);
7594 namespace test_noexcept
7597 int f() { return 0; }
7598 int g() noexcept { return 0; }
7600 static_assert(noexcept(f()) == false, "");
7601 static_assert(noexcept(g()) == true, "");
7605 namespace test_constexpr
7608 template < typename CharT >
7609 unsigned long constexpr
7610 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7612 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7615 template < typename CharT >
7616 unsigned long constexpr
7617 strlen_c(const CharT *const s) noexcept
7619 return strlen_c_r(s, 0UL);
7622 static_assert(strlen_c("") == 0UL, "");
7623 static_assert(strlen_c("1") == 1UL, "");
7624 static_assert(strlen_c("example
") == 7UL, "");
7625 static_assert(strlen_c("another\
0example
") == 7UL, "");
7629 namespace test_rvalue_references
7635 static constexpr int value = N;
7638 answer<1> f(int&) { return answer<1>(); }
7639 answer<2> f(const int&) { return answer<2>(); }
7640 answer<3> f(int&&) { return answer<3>(); }
7647 static_assert(decltype(f(i))::value == 1, "");
7648 static_assert(decltype(f(c))::value == 2, "");
7649 static_assert(decltype(f(0))::value == 3, "");
7654 namespace test_uniform_initialization
7659 static const int zero {};
7660 static const int one {1};
7663 static_assert(test::zero == 0, "");
7664 static_assert(test::one == 1, "");
7668 namespace test_lambdas
7674 auto lambda1 = [](){};
7675 auto lambda2 = lambda1;
7683 auto a = [](int i, int j){ return i + j; }(1, 2);
7684 auto b = []() -> int { return '0'; }();
7685 auto c = [=](){ return a + b; }();
7686 auto d = [&](){ return c; }();
7687 auto e = [a, &b](int x) mutable {
7688 const auto identity = [](int y){ return y; };
7689 for (auto i = 0; i < a; ++i)
7691 return x + identity(a + b);
7693 return a + b + c + d + e;
7699 const auto nullary = [](){ return 0; };
7700 const auto unary = [](int x){ return x; };
7701 using nullary_t = decltype(nullary);
7702 using unary_t = decltype(unary);
7703 const auto higher1st = [](nullary_t f){ return f(); };
7704 const auto higher2nd = [unary](nullary_t f1){
7705 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7707 return higher1st(nullary) + higher2nd(nullary)(unary);
7712 namespace test_variadic_templates
7718 template <int N0, int... N1toN>
7719 struct sum<N0, N1toN...>
7721 static constexpr auto value = N0 + sum<N1toN...>::value;
7727 static constexpr auto value = 0;
7730 static_assert(sum<>::value == 0, "");
7731 static_assert(sum<1>::value == 1, "");
7732 static_assert(sum<23>::value == 23, "");
7733 static_assert(sum<1, 2>::value == 3, "");
7734 static_assert(sum<5, 5, 11>::value == 21, "");
7735 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7739 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7740 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7742 namespace test_template_alias_sfinae
7747 template<typename T>
7748 using member = typename T::member_type;
7750 template<typename T>
7753 template<typename T>
7754 void func(member<T>*) {}
7758 void test() { func<foo>(0); }
7762 } // namespace cxx11
7764 #endif // __cplusplus >= 201103L
7769 if ac_fn_cxx_try_compile "$LINENO"; then :
7774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777 eval ac_res=\$$cachevar
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7779 $as_echo "$ac_res" >&6; }
7780 if eval test x\$$cachevar = xyes; then
7782 if test -n "$CXXCPP" ; then
7783 CXXCPP="$CXXCPP $switch"
7789 if test x$ac_success = xyes; then
7794 CXX_FOR_BUILD="$CXX"
7795 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7796 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7797 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7798 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7799 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7801 ac_cpp='$CPP $CPPFLAGS'
7802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7806 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7807 if test x$ac_success = xno; then
7808 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7811 if test x$ac_success = xno; then
7812 HAVE_CXX11_FOR_BUILD=0
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7814 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7816 HAVE_CXX11_FOR_BUILD=1
7818 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7826 # Check whether --enable-pgo-build was given.
7827 if test "${enable_pgo_build+set}" = set; then :
7828 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7834 # Issue errors and warnings for invalid/strange PGO build combinations.
7835 case "$have_compiler:$host:$target:$enable_pgo_build" in
7838 # Allow the PGO build only if we aren't building a compiler and
7839 # we are in a native configuration.
7840 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7842 # Disallow the PGO bootstrap if we are building a compiler.
7843 yes:*:*:yes |
yes:*:*:lto
)
7844 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7847 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7851 if test "$enable_pgo_build" != "no"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7853 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7854 old_CFLAGS
="$CFLAGS"
7855 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7856 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7862 if ac_fn_c_try_compile
"$LINENO"; then :
7865 PGO_BUILD_GEN_CFLAGS
=
7867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7868 CFLAGS
="$old_CFLAGS"
7869 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7871 $as_echo "yes" >&6; }
7872 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7879 if test "$enable_pgo_build" = "lto"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7881 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7882 old_CFLAGS
="$CFLAGS"
7883 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7884 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7889 if ac_fn_c_try_compile
"$LINENO"; then :
7892 PGO_BUILD_LTO_CFLAGS
=
7894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7895 CFLAGS
="$old_CFLAGS"
7896 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7898 $as_echo "yes" >&6; }
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7903 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7911 # Used for setting $lt_cv_objdir
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7913 $as_echo_n "checking for objdir... " >&6; }
7914 if ${lt_cv_objdir+:} false
; then :
7915 $as_echo_n "(cached) " >&6
7917 rm -f .libs
2>/dev
/null
7918 mkdir .libs
2>/dev
/null
7919 if test -d .libs
; then
7922 # MS-DOS does not allow filenames that begin with a dot.
7925 rmdir .libs
2>/dev
/null
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7928 $as_echo "$lt_cv_objdir" >&6; }
7929 objdir
=$lt_cv_objdir
7935 cat >>confdefs.h
<<_ACEOF
7936 #define LT_OBJDIR "$lt_cv_objdir/"
7941 # Check for GMP, MPFR and MPC
7944 if test -d ${srcdir}/gcc
; then
7948 if test -d ${srcdir}/gdb
; then
7949 if test "x$enable_gdb" != xno
; then
7954 gmplibs
="-lmpfr -lgmp"
7955 if test x
"$require_mpc" = "xyes" ; then
7956 gmplibs
="-lmpc $gmplibs"
7961 # Specify a location for mpc
7962 # check for this first so it ends up on the link line before mpfr.
7964 # Check whether --with-mpc was given.
7965 if test "${with_mpc+set}" = set; then :
7970 # Check whether --with-mpc-include was given.
7971 if test "${with_mpc_include+set}" = set; then :
7972 withval
=$with_mpc_include;
7976 # Check whether --with-mpc-lib was given.
7977 if test "${with_mpc_lib+set}" = set; then :
7978 withval
=$with_mpc_lib;
7982 if test "x$with_mpc" != x
; then
7983 gmplibs
="-L$with_mpc/lib $gmplibs"
7984 gmpinc
="-I$with_mpc/include $gmpinc"
7986 if test "x$with_mpc_include" != x
; then
7987 gmpinc
="-I$with_mpc_include $gmpinc"
7989 if test "x$with_mpc_lib" != x
; then
7990 gmplibs
="-L$with_mpc_lib $gmplibs"
7992 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7993 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7994 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7995 # Do not test the mpc version. Assume that it is sufficient, since
7996 # it is in the source tree, and the library has not been built yet
7997 # but it would be included on the link line in the version check below
7998 # hence making the test fail.
8002 # Specify a location for mpfr
8003 # check for this first so it ends up on the link line before gmp.
8005 # Check whether --with-mpfr was given.
8006 if test "${with_mpfr+set}" = set; then :
8011 # Check whether --with-mpfr-include was given.
8012 if test "${with_mpfr_include+set}" = set; then :
8013 withval
=$with_mpfr_include;
8017 # Check whether --with-mpfr-lib was given.
8018 if test "${with_mpfr_lib+set}" = set; then :
8019 withval
=$with_mpfr_lib;
8023 if test "x$with_mpfr" != x
; then
8024 gmplibs
="-L$with_mpfr/lib $gmplibs"
8025 gmpinc
="-I$with_mpfr/include $gmpinc"
8027 if test "x$with_mpfr_include" != x
; then
8028 gmpinc
="-I$with_mpfr_include $gmpinc"
8030 if test "x$with_mpfr_lib" != x
; then
8031 gmplibs
="-L$with_mpfr_lib $gmplibs"
8033 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8034 # MPFR v3.1.0 moved the sources into a src sub-directory.
8035 if ! test -d ${srcdir}/mpfr
/src
; then
8036 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8038 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8039 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8040 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8041 # Do not test the mpfr version. Assume that it is sufficient, since
8042 # it is in the source tree, and the library has not been built yet
8043 # but it would be included on the link line in the version check below
8044 # hence making the test fail.
8048 # Specify a location for gmp
8050 # Check whether --with-gmp was given.
8051 if test "${with_gmp+set}" = set; then :
8056 # Check whether --with-gmp-include was given.
8057 if test "${with_gmp_include+set}" = set; then :
8058 withval
=$with_gmp_include;
8062 # Check whether --with-gmp-lib was given.
8063 if test "${with_gmp_lib+set}" = set; then :
8064 withval
=$with_gmp_lib;
8069 if test "x$with_gmp" != x
; then
8070 gmplibs
="-L$with_gmp/lib $gmplibs"
8071 gmpinc
="-I$with_gmp/include $gmpinc"
8073 if test "x$with_gmp_include" != x
; then
8074 gmpinc
="-I$with_gmp_include $gmpinc"
8076 if test "x$with_gmp_lib" != x
; then
8077 gmplibs
="-L$with_gmp_lib $gmplibs"
8079 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8080 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8081 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8082 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8083 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8084 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8085 # Do not test the gmp version. Assume that it is sufficient, since
8086 # it is in the source tree, and the library has not been built yet
8087 # but it would be included on the link line in the version check below
8088 # hence making the test fail.
8092 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8094 saved_CFLAGS
="$CFLAGS"
8095 CFLAGS
="$CFLAGS $gmpinc"
8096 # Check for the recommended and required versions of GMP.
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8098 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8106 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8107 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8108 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8116 if ac_fn_c_try_compile
"$LINENO"; then :
8117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8124 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8125 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8126 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8134 if ac_fn_c_try_compile
"$LINENO"; then :
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8136 $as_echo "yes" >&6; }
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8139 $as_echo "buggy but acceptable" >&6; }
8141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }; have_gmp
=no
8146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8148 # If we have GMP, check the MPFR version.
8149 if test x
"$have_gmp" = xyes
; then
8150 # Check for the recommended and required versions of MPFR.
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8152 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8161 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8169 if ac_fn_c_try_compile
"$LINENO"; then :
8170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8171 /* end confdefs.h. */
8178 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8186 if ac_fn_c_try_compile
"$LINENO"; then :
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8188 $as_echo "yes" >&6; }
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8191 $as_echo "buggy but acceptable" >&6; }
8193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }; have_gmp
=no
8198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8201 # Check for the MPC header version.
8202 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8203 # Check for the recommended and required versions of MPC.
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8205 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8213 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8221 if ac_fn_c_try_compile
"$LINENO"; then :
8222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8229 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8237 if ac_fn_c_try_compile
"$LINENO"; then :
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8239 $as_echo "yes" >&6; }
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8242 $as_echo "buggy but acceptable" >&6; }
8244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }; have_gmp
=no
8249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8252 # Now check the MPFR library.
8253 if test x
"$have_gmp" = xyes
; then
8255 LIBS
="$LIBS $gmplibs"
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8257 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8270 mpfr_atan2 (n, n, x, MPFR_RNDN);
8271 mpfr_erfc (n, x, MPFR_RNDN);
8272 mpfr_subnormalize (x, t, MPFR_RNDN);
8280 if ac_fn_c_try_link
"$LINENO"; then :
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8282 $as_echo "yes" >&6; }
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }; have_gmp
=no
8287 rm -f core conftest.err conftest.
$ac_objext \
8288 conftest
$ac_exeext conftest.
$ac_ext
8292 # Now check the MPC library
8293 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8295 LIBS
="$LIBS $gmplibs"
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8297 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8307 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8308 mpc_cosh (c, c, MPC_RNDNN);
8309 mpc_pow (c, c, c, MPC_RNDNN);
8310 mpc_acosh (c, c, MPC_RNDNN);
8317 if ac_fn_c_try_link
"$LINENO"; then :
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8319 $as_echo "yes" >&6; }
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }; have_gmp
=no
8324 rm -f core conftest.err conftest.
$ac_objext \
8325 conftest
$ac_exeext conftest.
$ac_ext
8329 CFLAGS
="$saved_CFLAGS"
8331 # The library versions listed in the error message below should match
8332 # the HARD-minimums enforced above.
8333 if test x
$have_gmp != xyes
; then
8334 if test -d ${srcdir}/gcc
; then
8335 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8336 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8337 their locations. Source code for these libraries can be found at
8338 their respective hosting sites as well as at
8339 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8340 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8341 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8342 make sure that you have installed both the libraries and the header
8343 files. They may be located in separate packages." "$LINENO" 5
8345 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8346 Try the --with-gmp and/or --with-mpfr options to specify
8347 their locations. If you obtained GMP and/or MPFR from a vendor
8348 distribution package, make sure that you have installed both the libraries
8349 and the header files. They may be located in separate packages." "$LINENO" 5
8354 # Flags needed for both GMP, MPFR and/or MPC.
8362 # Libraries to use for stage1 or when not bootstrapping.
8364 # Check whether --with-stage1-libs was given.
8365 if test "${with_stage1_libs+set}" = set; then :
8366 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8369 stage1_libs
=$withval
8377 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8378 # default is yes if gcc is being built; no otherwise. The reason for
8379 # this default is that gdb is sometimes linked against GNU Source
8380 # Highlight, which is a shared library that uses C++ exceptions. In
8381 # this case, -static-libstdc++ will cause crashes.
8383 # Check whether --with-static-standard-libraries was given.
8384 if test "${with_static_standard_libraries+set}" = set; then :
8385 withval
=$with_static_standard_libraries;
8387 with_static_standard_libraries
=auto
8390 if test "$with_static_standard_libraries" = auto
; then
8391 with_static_standard_libraries
=$have_compiler
8394 # Linker flags to use for stage1 or when not bootstrapping.
8396 # Check whether --with-stage1-ldflags was given.
8397 if test "${with_stage1_ldflags+set}" = set; then :
8398 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8401 stage1_ldflags
=$withval
8405 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8406 # if supported. But if the user explicitly specified the libraries to use,
8407 # trust that they are doing what they want.
8408 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8409 -a "$have_static_libs" = yes; then
8410 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8416 # Libraries to use for stage2 and later builds.
8418 # Check whether --with-boot-libs was given.
8419 if test "${with_boot_libs+set}" = set; then :
8420 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8423 poststage1_libs
=$withval
8431 # Linker flags to use for stage2 and later builds.
8433 # Check whether --with-boot-ldflags was given.
8434 if test "${with_boot_ldflags+set}" = set; then :
8435 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8438 poststage1_ldflags
=$withval
8442 # In stages 2 and 3, default to linking libstdc++ and libgcc
8443 # statically. But if the user explicitly specified the libraries to
8444 # use, trust that they are doing what they want.
8445 if test "$poststage1_libs" = ""; then
8446 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8452 # GCC GRAPHITE dependency isl.
8453 # Basic setup is inlined here, actual checks are in config/isl.m4
8456 # Check whether --with-isl was given.
8457 if test "${with_isl+set}" = set; then :
8462 # Treat --without-isl as a request to disable
8463 # GRAPHITE support and skip all following checks.
8464 if test "x$with_isl" != "xno"; then
8468 # Check whether --with-isl-include was given.
8469 if test "${with_isl_include+set}" = set; then :
8470 withval
=$with_isl_include;
8474 # Check whether --with-isl-lib was given.
8475 if test "${with_isl_lib+set}" = set; then :
8476 withval
=$with_isl_lib;
8480 # Check whether --enable-isl-version-check was given.
8481 if test "${enable_isl_version_check+set}" = set; then :
8482 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8484 ENABLE_ISL_CHECK
=yes
8488 # Initialize isllibs and islinc.
8497 isllibs
="-L$with_isl/lib"
8498 islinc
="-I$with_isl/include"
8501 if test "x${with_isl_include}" != x
; then
8502 islinc
="-I$with_isl_include"
8504 if test "x${with_isl_lib}" != x
; then
8505 isllibs
="-L$with_isl_lib"
8507 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8508 && test -d ${srcdir}/isl
; then
8509 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8510 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8513 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8516 isllibs
="${isllibs} -lisl"
8520 if test "${ENABLE_ISL_CHECK}" = yes ; then
8521 _isl_saved_CFLAGS
=$CFLAGS
8522 _isl_saved_LDFLAGS
=$LDFLAGS
8523 _isl_saved_LIBS
=$LIBS
8525 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8526 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8527 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8530 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8533 #include <isl/schedule.h>
8537 isl_options_set_schedule_serialize_sccs (NULL, 0);
8542 if ac_fn_c_try_link
"$LINENO"; then :
8547 rm -f core conftest.err conftest.
$ac_objext \
8548 conftest
$ac_exeext conftest.
$ac_ext
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8550 $as_echo "$gcc_cv_isl" >&6; }
8552 if test "${gcc_cv_isl}" = no
; then
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8554 $as_echo "required isl version is 0.15 or later" >&6; }
8557 CFLAGS
=$_isl_saved_CFLAGS
8558 LDFLAGS
=$_isl_saved_LDFLAGS
8559 LIBS
=$_isl_saved_LIBS
8567 if test "x${with_isl}" = xno
; then
8568 graphite_requested
=no
8569 elif test "x${with_isl}" != x \
8570 ||
test "x${with_isl_include}" != x \
8571 ||
test "x${with_isl_lib}" != x
; then
8572 graphite_requested
=yes
8574 graphite_requested
=no
8579 if test "${gcc_cv_isl}" = no
; then
8584 if test "${graphite_requested}" = yes \
8585 && test "x${isllibs}" = x \
8586 && test "x${islinc}" = x
; then
8588 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8594 # If the isl check failed, disable builds of in-tree variant of isl
8595 if test "x$with_isl" = xno ||
8596 test "x$gcc_cv_isl" = xno
; then
8597 noconfigdirs
="$noconfigdirs isl"
8604 # Check for LTO support.
8605 # Check whether --enable-lto was given.
8606 if test "${enable_lto+set}" = set; then :
8607 enableval
=$enable_lto; enable_lto
=$enableval
8609 enable_lto
=yes; default_enable_lto
=yes
8618 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8619 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8620 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8629 if test $target_elf = yes; then :
8630 # ELF platforms build the lto-plugin always.
8631 build_lto_plugin
=yes
8634 if test x
"$default_enable_lto" = x
"yes" ; then
8636 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8637 # On other non-ELF platforms, LTO has yet to be validated.
8641 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8642 # It would also be nice to check the binutils support, but we don't
8643 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8644 # warn during gcc/ subconfigure; unless you're bootstrapping with
8645 # -flto it won't be needed until after installation anyway.
8647 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8648 *) if test x
"$enable_lto" = x
"yes"; then
8649 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8654 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8655 # Build it unless LTO was explicitly disabled.
8657 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8664 # Check whether --enable-linker-plugin-configure-flags was given.
8665 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8666 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8668 extra_linker_plugin_configure_flags
=
8672 # Check whether --enable-linker-plugin-flags was given.
8673 if test "${enable_linker_plugin_flags+set}" = set; then :
8674 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8676 extra_linker_plugin_flags
=
8681 # Handle --enable-host-pie
8682 # If host PIE executables are the default (or must be forced on) for some host,
8683 # we must pass that configuration to the gcc directory.
8685 # Check whether --enable-host-pie was given.
8686 if test "${enable_host_pie+set}" = set; then :
8687 enableval
=$enable_host_pie; host_pie
=$enableval
8690 if test x
$host_pie != xyes
; then
8691 # for Darwin20+ this is required.
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8693 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8695 gcc_host_pie
=--enable-host-pie
8702 # Default to PIE (mandatory for aarch64).
8704 gcc_host_pie
=--enable-host-pie
8714 # Enable --enable-host-shared.
8715 # Checked early to determine whether jit is an 'all' language
8716 # Check whether --enable-host-shared was given.
8717 if test "${enable_host_shared+set}" = set; then :
8718 enableval
=$enable_host_shared; host_shared
=$enableval
8720 x86_64-
*-darwin* | aarch64-
*-darwin*)
8721 if test x
$host_shared != xyes
; then
8722 # PIC is the default, and actually cannot be switched off.
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8724 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8728 if test x
$host_pie = xyes
-a x
$host_shared != xyes
; then
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8730 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8737 # 64B x86_64 and Aarch64 Darwin default to PIC.
8738 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8739 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8740 *-*-darwin*) host_shared
=$host_pie ;;
8748 if test x
$host_shared = xyes
; then
8751 # Since host shared is the default for 64b Darwin, and also enabled for
8752 # host_pie, ensure that we present the PIE flag when host_pie is active.
8753 if test x
$host_pie = xyes
; then
8761 elif test x
$host_pie = xyes
; then
8769 # If we are building PIC/PIE host executables, and we are building dependent
8770 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8773 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8774 host_libs_picflag
='--with-pic'
8778 # By default, C and C++ are the only stage 1 languages.
8779 stage1_languages
=,c
,
8781 # Target libraries that we bootstrap.
8782 bootstrap_target_libs
=,target-libgcc
,
8784 # Figure out what language subdirectories are present.
8785 # Look if the user specified --enable-languages="..."; if not, use
8786 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8788 # NB: embedded tabs in this IF block -- do not untabify
8789 if test -d ${srcdir}/gcc
; then
8790 if test x
"${enable_languages+set}" != xset
; then
8791 if test x
"${LANGUAGES+set}" = xset
; then
8792 enable_languages
="${LANGUAGES}"
8793 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8795 enable_languages
=default
8798 if test x
"${enable_languages}" = x ||
8799 test x
"${enable_languages}" = xyes
;
8801 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8805 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8807 # 'f95' is the old name for the 'fortran' language. We issue a warning
8808 # and make the substitution.
8809 case ,${enable_languages}, in
8811 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8812 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8816 # If bootstrapping, C++ must be enabled.
8817 case ",$enable_languages,:$enable_bootstrap" in
8820 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8821 enable_languages
="${enable_languages},c++"
8823 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8828 # First scan to see if an enabled language requires some other language.
8829 # We assume that a given config-lang.in will list all the language
8830 # front ends it requires, even if some are required indirectly.
8831 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8832 case ${lang_frag} in
8834 # The odd quoting in the next line works around
8835 # an apparent bug in bash 1.12 on linux.
8836 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8838 # From the config-lang.in, get $language, $lang_requires, and
8839 # $lang_requires_boot_languages.
8842 lang_requires_boot_languages
=
8843 # set srcdir during sourcing lang_frag to the gcc dir.
8844 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8845 # polutes this shell
8846 saved_srcdir
=${srcdir}
8847 srcdir
=${srcdir}/gcc .
${lang_frag}
8848 srcdir
=${saved_srcdir}
8849 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8850 case ,${enable_languages}, in
8855 echo " \`$other' language required by \`$language'; enabling" 1>&2
8856 enable_languages
="${enable_languages},${other}"
8860 for other
in ${lang_requires_boot_languages} ; do
8861 if test "$other" != "c"; then
8862 case ,${enable_stage1_languages}, in
8867 case ,${enable_languages}, in
8869 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8870 enable_stage1_languages
="$enable_stage1_languages,${other}"
8881 new_enable_languages
=,c
,
8883 # If LTO is enabled, add the LTO front end.
8884 if test "$enable_lto" = "yes" ; then
8885 case ,${enable_languages}, in
8887 *) enable_languages
="${enable_languages},lto" ;;
8889 if test "${build_lto_plugin}" = "yes" ; then
8890 configdirs
="$configdirs lto-plugin"
8894 # If we're building an offloading compiler, add the LTO front end.
8895 if test x
"$enable_as_accelerator_for" != x
; then
8896 case ,${enable_languages}, in
8898 *) enable_languages
="${enable_languages},lto" ;;
8902 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8903 potential_languages
=,c
,
8905 enabled_target_libs
=
8906 disabled_target_libs
=
8908 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8909 case ${lang_frag} in
8911 # The odd quoting in the next line works around
8912 # an apparent bug in bash 1.12 on linux.
8913 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8915 # From the config-lang.in, get $language, $target_libs,
8916 # $lang_dirs, $boot_language, and $build_by_default
8922 build_by_default
=yes
8923 # set srcdir during sourcing. See above about save & restore
8924 saved_srcdir
=${srcdir}
8925 srcdir
=${srcdir}/gcc .
${lang_frag}
8926 srcdir
=${saved_srcdir}
8927 if test x
${language} = x
; then
8928 echo "${lang_frag} doesn't set \$language." 1>&2
8932 if test "$language" = "c++"; then
8937 # C is always enabled, so no need to add it again
8938 if test "$language" != "c"; then
8939 case ,${enable_languages}, in
8941 # Language was explicitly selected; include it
8945 # All languages are enabled
8949 # 'default' was selected, select it if it is a default language
8950 add_this_lang
=${build_by_default}
8955 # Disable languages that need other directories if these aren't available.
8956 for i
in $subdir_requires; do
8957 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8958 case ${add_this_lang} in
8960 # Specifically requested language; tell them.
8961 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8965 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8966 add_this_lang
=unsupported
8970 add_this_lang
=unsupported
8975 # Disable Ada if no preexisting GNAT is available.
8976 case ${add_this_lang}:${language}:${have_gnat} in
8978 # Specifically requested language; tell them.
8979 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8983 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8984 add_this_lang
=unsupported
8988 add_this_lang
=unsupported
8992 # Disable D if no preexisting GDC is available.
8993 case ${add_this_lang}:${language}:${have_gdc} in
8995 # Specifically requested language; tell them.
8996 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9000 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9001 add_this_lang
=unsupported
9005 add_this_lang
=unsupported
9009 # Disable jit if -enable-host-shared not specified
9010 # but not if building for Mingw. All code in Windows
9011 # is position independent code (PIC).
9015 case ${add_this_lang}:${language}:${host_shared} in
9017 # PR jit/64780: explicitly specify --enable-host-shared
9019 Enabling language \"jit\" requires --enable-host-shared.
9021 --enable-host-shared typically slows the rest of the compiler down by
9022 a few %, so you must explicitly enable it.
9024 If you want to build both the jit and the regular compiler, it is often
9025 best to do this via two separate configure/builds, in separate
9026 directories, to avoid imposing the performance cost of
9027 --enable-host-shared on the regular compiler." "$LINENO" 5
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9031 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9032 add_this_lang
=unsupported
9036 add_this_lang
=unsupported
9042 # Disable a language that is unsupported by the target.
9043 case "${add_this_lang}: $unsupported_languages " in
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9048 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9049 add_this_lang
=unsupported
9053 case $add_this_lang in
9055 # Remove language-dependent dirs.
9056 disabled_target_libs
="$disabled_target_libs $target_libs"
9057 noconfigdirs
="$noconfigdirs $lang_dirs"
9060 # Remove language-dependent dirs; still show language as supported.
9061 disabled_target_libs
="$disabled_target_libs $target_libs"
9062 noconfigdirs
="$noconfigdirs $lang_dirs"
9063 potential_languages
="${potential_languages}${language},"
9066 new_enable_languages
="${new_enable_languages}${language},"
9067 potential_languages
="${potential_languages}${language},"
9068 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9069 enabled_target_libs
="$enabled_target_libs $target_libs"
9070 case "${boot_language}:,$enable_stage1_languages," in
9071 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9072 # Add to (comma-separated) list of stage 1 languages.
9073 case ",$stage1_languages," in
9074 *,$language,* |
,yes, |
,all
,) ;;
9075 *) stage1_languages
="${stage1_languages}${language}," ;;
9077 # We need to bootstrap any supporting libraries.
9078 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9087 # Add target libraries which are only needed for disabled languages
9089 if test -n "$disabled_target_libs"; then
9090 for dir
in $disabled_target_libs; do
9091 case " $enabled_target_libs " in
9093 *) noconfigdirs
="$noconfigdirs $dir" ;;
9098 # Check whether --enable-stage1-languages was given.
9099 if test "${enable_stage1_languages+set}" = set; then :
9100 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9102 # Set it to something that will have no effect in the loop below
9103 enable_stage1_languages
=c
;;
9105 enable_stage1_languages
=`echo $new_enable_languages | \
9106 sed -e "s/^,//" -e "s/,$//" ` ;;
9108 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9109 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9112 # Add "good" languages from enable_stage1_languages to stage1_languages,
9113 # while "bad" languages go in missing_languages. Leave no duplicates.
9114 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9115 case $potential_languages in
9117 case $stage1_languages in
9119 *) stage1_languages
="$stage1_languages$i," ;;
9122 case $missing_languages in
9124 *) missing_languages
="$missing_languages$i," ;;
9131 # Remove leading/trailing commas that were added for simplicity
9132 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9133 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9134 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9135 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9137 if test "x$missing_languages" != x
; then
9139 The following requested languages could not be built: ${missing_languages}
9140 Supported languages are: ${potential_languages}" "$LINENO" 5
9142 if test "x$new_enable_languages" != "x$enable_languages"; then
9143 echo The following languages will be built
: ${new_enable_languages}
9144 enable_languages
="$new_enable_languages"
9148 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9151 # Handle --disable-<component> generically.
9152 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9153 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9154 varname
=`echo $dirname | sed -e s/+/_/g`
9155 if eval test x\
${enable_${varname}} "=" xno
; then
9156 noconfigdirs
="$noconfigdirs $dir"
9160 # Check for Boehm's garbage collector
9161 # Check whether --enable-objc-gc was given.
9162 if test "${enable_objc_gc+set}" = set; then :
9163 enableval
=$enable_objc_gc;
9167 # Check whether --with-target-bdw-gc was given.
9168 if test "${with_target_bdw_gc+set}" = set; then :
9169 withval
=$with_target_bdw_gc;
9173 # Check whether --with-target-bdw-gc-include was given.
9174 if test "${with_target_bdw_gc_include+set}" = set; then :
9175 withval
=$with_target_bdw_gc_include;
9179 # Check whether --with-target-bdw-gc-lib was given.
9180 if test "${with_target_bdw_gc_lib+set}" = set; then :
9181 withval
=$with_target_bdw_gc_lib;
9185 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9187 $as_echo_n "checking for bdw garbage collector... " >&6; }
9188 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9190 $as_echo "using bdw-gc in default locations" >&6; }
9192 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9193 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9194 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9195 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9198 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9203 # Disable libitm, libsanitizer, libvtv if we're not building C++
9204 case ,${enable_languages}, in
9206 # Disable libitm, libsanitizer if we're not building libstdc++
9207 case "${noconfigdirs}" in
9208 *target-libstdc
++-v3*)
9209 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9215 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9219 # If gcc/ is not in the source tree then we'll not be building a
9220 # target compiler, assume in that case we don't want to build any
9221 # target libraries or tools.
9223 # This was added primarily for the benefit for binutils-gdb who reuse
9224 # this configure script, but don't always have target tools available.
9225 if test ! -d ${srcdir}/gcc
; then
9226 skipdirs
="${skipdirs} ${target_configdirs}"
9229 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9230 # $build_configdirs and $target_configdirs.
9231 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9234 for dir
in .
$skipdirs $noconfigdirs ; do
9235 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9236 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9237 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9238 if test -r $srcdir/$dirname/configure
; then
9239 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9242 notsupp
="$notsupp $dir"
9246 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9247 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9248 if test -r $srcdir/$dirname/configure
; then
9249 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9252 notsupp
="$notsupp $dir"
9256 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9257 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9258 if test -r $srcdir/$dirname/configure
; then
9259 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9262 notsupp
="$notsupp $dir"
9268 # Quietly strip out all directories which aren't configurable in this tree.
9269 # This relies on all configurable subdirectories being autoconfiscated, which
9271 build_configdirs_all
="$build_configdirs"
9273 for i
in ${build_configdirs_all} ; do
9274 j
=`echo $i | sed -e s/build-//g`
9275 if test -f ${srcdir}/$j/configure
; then
9276 build_configdirs
="${build_configdirs} $i"
9280 configdirs_all
="$configdirs"
9282 for i
in ${configdirs_all} ; do
9283 if test -f ${srcdir}/$i/configure
; then
9284 configdirs
="${configdirs} $i"
9288 target_configdirs_all
="$target_configdirs"
9290 for i
in ${target_configdirs_all} ; do
9291 j
=`echo $i | sed -e s/target-//g`
9292 if test -f ${srcdir}/$j/configure
; then
9293 target_configdirs
="${target_configdirs} $i"
9297 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9298 # so we have to add it after the preceding checks.
9299 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9301 case " $configdirs " in
9303 # If we can build libiberty, we can also build libiberty-linker-plugin.
9304 configdirs
="$configdirs libiberty-linker-plugin"
9305 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9306 --with-libiberty=../libiberty-linker-plugin";;
9308 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9312 # Sometimes we have special requirements for the host libiberty.
9313 extra_host_libiberty_configure_flags
=
9314 case " $configdirs " in
9315 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9316 # When these are to be built as shared libraries, the same applies to
9318 extra_host_libiberty_configure_flags
=--enable-shared
9323 # Sometimes we have special requirements for the host zlib.
9324 extra_host_zlib_configure_flags
=
9325 case " $configdirs " in
9327 # When bfd is to be built as a shared library, the same applies to
9329 if test "$enable_shared" = "yes"; then
9330 extra_host_zlib_configure_flags
=--enable-host-shared
9336 # Produce a warning message for the subdirs we can't configure.
9337 # This isn't especially interesting in the Cygnus tree, but in the individual
9338 # FSF releases, it's important to let people know when their machine isn't
9339 # supported by the one or two programs in a package.
9341 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9342 # If $appdirs is non-empty, at least one of those directories must still
9343 # be configured, or we error out. (E.g., if the gas release supports a
9344 # specified target in some subdirs but not the gas subdir, we shouldn't
9345 # pretend that all is well.)
9346 if test -n "$appdirs" ; then
9347 for dir
in $appdirs ; do
9348 if test -r $dir/Makefile.
in ; then
9349 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9353 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9359 if test -n "$appdirs" ; then
9360 echo "*** This configuration is not supported by this package." 1>&2
9364 # Okay, some application will build, or we don't care to check. Still
9365 # notify of subdirs not getting built.
9366 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9367 echo " ${notsupp}" 1>&2
9368 echo " (Any other directories should still work fine.)" 1>&2
9376 # To find our prefix, in gcc_cv_tool_prefix.
9378 # The user is always right.
9379 if test "${PATH_SEPARATOR+set}" != set; then
9380 echo "#! /bin/sh" >conf$$.sh
9381 echo "exit 0" >>conf$$.sh
9383 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9392 get_gcc_base_ver
="cat"
9394 # Check whether --with-gcc-major-version-only was given.
9395 if test "${with_gcc_major_version_only+set}" = set; then :
9396 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9397 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9407 if test "x$exec_prefix" = xNONE
; then
9408 if test "x$prefix" = xNONE
; then
9409 gcc_cv_tool_prefix
=$ac_default_prefix
9411 gcc_cv_tool_prefix
=$prefix
9414 gcc_cv_tool_prefix
=$exec_prefix
9417 # If there is no compiler in the tree, use the PATH only. In any
9418 # case, if there is no compiler in the tree nobody should use
9419 # AS_FOR_TARGET and LD_FOR_TARGET.
9420 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9421 if test x
$with_gcc_major_version_only = xyes
; then
9422 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9424 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9426 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9427 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9428 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9429 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9430 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9431 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9436 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9437 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9445 # Check whether --with-build-sysroot was given.
9446 if test "${with_build_sysroot+set}" = set; then :
9447 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9448 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9451 SYSROOT_CFLAGS_FOR_TARGET
=
9457 # Check whether --with-debug-prefix-map was given.
9458 if test "${with_debug_prefix_map+set}" = set; then :
9459 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9460 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9461 for debug_map
in $withval; do
9462 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9466 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9471 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9472 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9473 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9474 # We want to ensure that TARGET libraries (which we know are built with
9475 # gcc) are built with "-O2 -g", so include those options when setting
9476 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9477 if test "x$CFLAGS_FOR_TARGET" = x
; then
9478 if test "x${is_cross_compiler}" = xyes
; then
9479 CFLAGS_FOR_TARGET
="-g -O2"
9481 CFLAGS_FOR_TARGET
=$CFLAGS
9484 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9487 *" -g "* |
*" -g3 "*) ;;
9488 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9494 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9495 if test "x${is_cross_compiler}" = xyes
; then
9496 CXXFLAGS_FOR_TARGET
="-g -O2"
9498 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9499 case " $CXXFLAGS " in
9501 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9503 case " $CXXFLAGS " in
9504 *" -g "* |
*" -g3 "*) ;;
9505 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9513 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9514 # the named directory are copied to $(tooldir)/sys-include.
9515 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9516 if test x
${is_cross_compiler} = xno
; then
9517 echo 1>&2 '***' --with-headers is only supported when cross compiling
9520 if test x
"${with_headers}" != xyes
; then
9521 x
=${gcc_cv_tool_prefix}
9522 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9526 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9527 # the name directories are copied to $(tooldir)/lib. Multiple directories
9529 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9530 if test x
${is_cross_compiler} = xno
; then
9531 echo 1>&2 '***' --with-libs is only supported when cross compiling
9534 if test x
"${with_libs}" != xyes
; then
9535 # Copy the libraries in reverse order, so that files in the first named
9536 # library override files in subsequent libraries.
9537 x
=${gcc_cv_tool_prefix}
9538 for l
in ${with_libs}; do
9539 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9544 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9546 # This is done by determining whether or not the appropriate directory
9547 # is available, and by checking whether or not specific configurations
9548 # have requested that this magic not happen.
9550 # The command line options always override the explicit settings in
9551 # configure.ac, and the settings in configure.ac override this magic.
9553 # If the default for a toolchain is to use GNU as and ld, and you don't
9554 # want to do that, then you should use the --without-gnu-as and
9555 # --without-gnu-ld options for the configure script. Similarly, if
9556 # the default is to use the included zlib and you don't want to do that,
9557 # you should use the --with-system-zlib option for the configure script.
9559 if test x
${use_gnu_as} = x
&&
9560 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9562 extra_host_args
="$extra_host_args --with-gnu-as"
9565 if test x
${use_gnu_ld} = x
&&
9566 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9568 extra_host_args
="$extra_host_args --with-gnu-ld"
9571 if test x
${use_included_zlib} = x
&&
9572 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9575 with_system_zlib
=yes
9576 extra_host_args
="$extra_host_args --with-system-zlib"
9579 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9580 # can detect this case.
9582 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9584 extra_host_args
="$extra_host_args --with-newlib"
9587 # Handle ${copy_dirs}
9588 set fnord
${copy_dirs}
9590 while test $# != 0 ; do
9591 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9594 echo Copying
$1 to
$2
9596 # Use the install script to create the directory and all required
9597 # parent directories.
9598 if test -d $2 ; then
9602 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9605 # Copy the directory, assuming we have tar.
9606 # FIXME: Should we use B in the second tar? Not all systems support it.
9607 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9609 # It is the responsibility of the user to correctly adjust all
9610 # symlinks. If somebody can figure out how to handle them correctly
9611 # here, feel free to add the code.
9618 # Determine a target-dependent exec_prefix that the installed
9619 # gcc will search in. Keep this list sorted by triplet, with
9620 # the *-*-osname triplets last.
9623 i
[34567]86-pc-msdosdjgpp*)
9624 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9629 md_exec_prefix
=/usr
/ccs
/bin
9633 extra_arflags_for_target
=
9634 extra_nmflags_for_target
=
9635 extra_ranlibflags_for_target
=
9636 target_makefile_frag
=/dev
/null
9639 target_makefile_frag
="config/mt-spu"
9641 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9642 target_makefile_frag
="config/mt-sde"
9644 mipsisa
*-*-elfoabi*)
9645 target_makefile_frag
="config/mt-mips-elfoabi"
9647 mips
*-*-*linux
* | mips
*-*-gnu*)
9648 target_makefile_frag
="config/mt-mips-gnu"
9651 target_makefile_frag
="config/mt-nios2-elf"
9654 target_makefile_frag
="config/mt-android"
9656 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9657 target_makefile_frag
="config/mt-gnu"
9659 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9660 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9661 # commands to handle both 32-bit and 64-bit objects. These flags are
9662 # harmless if we're using GNU nm or ar.
9663 extra_arflags_for_target
=" -X32_64"
9664 extra_nmflags_for_target
=" -B -X32_64"
9668 alphaieee_frag
=/dev
/null
9671 # This just makes sure to use the -mieee option to build target libs.
9672 # This should probably be set individually by each library.
9673 alphaieee_frag
="config/mt-alphaieee"
9677 # If --enable-target-optspace always use -Os instead of -O2 to build
9678 # the target libraries, similarly if it is not specified, use -Os
9679 # on selected platforms.
9680 ospace_frag
=/dev
/null
9681 case "${enable_target_optspace}:${target}" in
9683 ospace_frag
="config/mt-ospace"
9686 ospace_frag
="config/mt-d30v"
9688 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9689 ospace_frag
="config/mt-ospace"
9694 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9698 # Some systems (e.g., one of the i386-aix systems the gas testers are
9699 # using) don't handle "\$" correctly, so don't use it here.
9700 tooldir
='${exec_prefix}'/${target_noncanonical}
9701 build_tooldir
=${tooldir}
9703 # Create a .gdbinit file which runs the one in srcdir
9704 # and tells GDB to look there for source files.
9706 if test -r ${srcdir}/.gdbinit
; then
9709 *) cat > .
/.gdbinit
<<EOF
9713 source ${srcdir}/.gdbinit
9719 # Make sure that the compiler is able to generate an executable. If it
9720 # can't, we are probably in trouble. We don't care whether we can run the
9721 # executable--we might be using a cross compiler--we only care whether it
9722 # can be created. At this point the main configure script has set CC.
9724 echo "int main () { return 0; }" > conftest.c
9725 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9726 if test $?
= 0 ; then
9727 if test -s conftest ||
test -s conftest.exe
; then
9733 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9734 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9741 # Decide which environment variable is used to find dynamic libraries.
9743 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9744 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9745 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9746 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9749 # On systems where the dynamic library environment variable is PATH,
9750 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9751 # built executables to PATH.
9752 if test "$RPATH_ENVVAR" = PATH
; then
9753 GCC_SHLIB_SUBDIR
=/shlib
9758 # Adjust the toplevel makefile according to whether bootstrap was selected.
9759 case $enable_bootstrap in
9761 bootstrap_suffix
=bootstrap
9762 BUILD_CONFIG
=bootstrap-debug
9765 bootstrap_suffix
=no-bootstrap
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9771 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9774 # Check whether --with-build-config was given.
9775 if test "${with_build_config+set}" = set; then :
9776 withval
=$with_build_config; case $with_build_config in
9777 yes) with_build_config
= ;;
9778 no
) with_build_config
= BUILD_CONFIG
= ;;
9783 if test "x${with_build_config}" != x
; then
9784 BUILD_CONFIG
=$with_build_config
9786 case $BUILD_CONFIG in
9788 if echo "int f (void) { return 0; }" > conftest.c
&&
9789 ${CC} -c conftest.c
&&
9790 mv conftest.o conftest.o.g0
&&
9791 ${CC} -c -g conftest.c
&&
9792 mv conftest.o conftest.o.g
&&
9793 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9798 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9803 $as_echo "$BUILD_CONFIG" >&6; }
9806 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9808 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9809 # Check whether --enable-vtable-verify was given.
9810 if test "${enable_vtable_verify+set}" = set; then :
9811 enableval
=$enable_vtable_verify; case "$enableval" in
9812 yes) enable_vtable_verify
=yes ;;
9813 no
) enable_vtable_verify
=no
;;
9814 *) enable_vtable_verify
=no
;;
9817 enable_vtable_verify
=no
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9821 $as_echo "$enable_vtable_verify" >&6; }
9823 # Record target_configdirs and the configure arguments for target and
9824 # build configuration in Makefile.
9825 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9826 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9827 bootstrap_fixincludes
=no
9829 # If we are building libgomp, bootstrap it.
9830 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9831 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9834 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9835 # or bootstrap-ubsan, bootstrap it.
9836 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9837 case "$BUILD_CONFIG" in
9838 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9839 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9840 bootstrap_fixincludes
=yes
9845 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9846 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9847 test "$enable_vtable_verify" != no
; then
9848 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9851 # If we are building libatomic and the list of enabled languages includes the
9852 # D frontend, bootstrap it.
9853 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9854 case ,${enable_languages}, in
9856 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9861 # Determine whether gdb needs tk/tcl or not.
9862 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9863 # and in that case we want gdb to be built without tk. Ugh!
9864 # In fact I believe gdb is the *only* package directly dependent on tk,
9865 # so we should be able to put the 'maybe's in unconditionally and
9866 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9867 # 100% sure that that's safe though.
9869 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9870 case "$enable_gdbtk" in
9874 GDB_TK
="${gdb_tk}" ;;
9876 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9877 # distro. Eventually someone will fix this and move Insight, nee
9878 # gdbtk to a separate directory.
9879 if test -d ${srcdir}/gdb
/gdbtk
; then
9886 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9887 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9889 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9890 # else does, only include them if one of these is built. The Makefile
9891 # provides the ordering, so it's enough here to add to the list.
9892 case " ${configdirs} " in
9894 configdirs
="${configdirs} gnulib gdbsupport"
9897 configdirs
="${configdirs} gnulib gdbsupport"
9900 configdirs
="${configdirs} gnulib"
9904 # Strip out unwanted targets.
9906 # While at that, we remove Makefiles if we were started for recursive
9907 # configuration, so that the top-level Makefile reconfigures them,
9908 # like we used to do when configure itself was recursive.
9910 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9911 # but now we're fixing up the Makefile ourselves with the additional
9912 # commands passed to AC_CONFIG_FILES. Use separate variables
9913 # extrasub-{build,host,target} not because there is any reason to split
9914 # the substitutions up that way, but only to remain below the limit of
9915 # 99 commands in a script, for HP-UX sed.
9917 # Do not nest @if/@endif or @unless/@endunless pairs, because
9918 # configure will not warn you at all.
9920 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9921 yes:yes:*\ gold\
*:*,c
++,*) ;;
9922 yes:yes:*\ gold\
*:*)
9923 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9928 for module
in ${build_configdirs} ; do
9929 if test -z "${no_recursion}" \
9930 && test -f ${build_subdir}/${module}/Makefile
; then
9931 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9932 rm -f ${build_subdir}/${module}/Makefile
9934 extrasub_build
="$extrasub_build
9935 /^@if build-$module\$/d
9936 /^@endif build-$module\$/d
9937 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9938 /^@if build-$module-$bootstrap_suffix\$/d
9939 /^@endif build-$module-$bootstrap_suffix\$/d
9940 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9943 for module
in ${configdirs} ; do
9944 if test -z "${no_recursion}"; then
9945 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9946 if test -f ${file}; then
9947 echo 1>&2 "*** removing ${file} to force reconfigure"
9952 case ${module},${bootstrap_fixincludes} in
9953 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9954 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9956 extrasub_host
="$extrasub_host
9958 /^@endif $module\$/d
9959 /^@unless $module\$/,/^@endunless $module\$/d
9960 /^@if $module-$host_bootstrap_suffix\$/d
9961 /^@endif $module-$host_bootstrap_suffix\$/d
9962 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9965 for module
in ${target_configdirs} ; do
9966 if test -z "${no_recursion}" \
9967 && test -f ${target_subdir}/${module}/Makefile
; then
9968 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9969 rm -f ${target_subdir}/${module}/Makefile
9972 # We only bootstrap target libraries listed in bootstrap_target_libs.
9973 case $bootstrap_target_libs in
9974 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9975 *) target_bootstrap_suffix
=no-bootstrap
;;
9978 extrasub_target
="$extrasub_target
9979 /^@if target-$module\$/d
9980 /^@endif target-$module\$/d
9981 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9982 /^@if target-$module-$target_bootstrap_suffix\$/d
9983 /^@endif target-$module-$target_bootstrap_suffix\$/d
9984 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9987 # Do the final fixup along with target modules.
9988 extrasub_target
="$extrasub_target
9993 if test "$enable_pgo_build" != "no"; then
9994 extrasub_build
="$extrasub_build
9996 /^@endif pgo-build\$/d"
9999 # Create the serialization dependencies. This uses a temporary file.
10001 # Check whether --enable-serial-configure was given.
10002 if test "${enable_serial_configure+set}" = set; then :
10003 enableval
=$enable_serial_configure;
10007 case ${enable_serial_configure} in
10009 enable_serial_build_configure
=yes
10010 enable_serial_host_configure
=yes
10011 enable_serial_target_configure
=yes
10015 # These force 'configure's to be done one at a time, to avoid problems
10016 # with contention over a shared config.cache.
10018 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
10019 echo '# serdep.tmp' > serdep.tmp
10022 test "x${enable_serial_build_configure}" = xyes
&&
10023 for item
in ${build_configdirs} ; do
10026 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
10031 test "x${enable_serial_host_configure}" = xyes
&&
10032 for item
in ${configdirs} ; do
10035 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
10040 test "x${enable_serial_target_configure}" = xyes
&&
10041 for item
in ${target_configdirs} ; do
10044 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
10048 serialization_dependencies
=serdep.tmp
10051 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10052 # target, nonopt, and variable assignments. These are the ones we
10053 # might not want to pass down to subconfigures. The exception being
10054 # --cache-file=/dev/null, which is used to turn off the use of cache
10055 # files altogether, and which should be passed on to subconfigures.
10056 # Also strip program-prefix, program-suffix, and program-transform-name,
10057 # so that we can pass down a consistent program-transform-name.
10062 eval "set -- $ac_configure_args"
10065 if test X
"$skip_next" = X
"yes"; then
10069 if test X
"$keep_next" = X
"yes"; then
10072 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10074 baseargs
="$baseargs '$ac_arg'"
10075 tbaseargs
="$tbaseargs '$ac_arg'"
10080 # Handle separated arguments. Based on the logic generated by
10083 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10084 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10085 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10086 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10100 --with-* |
--without-*)
10101 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10105 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10108 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10117 mpc | mpfr | gmp | isl
)
10118 # If we're processing --with-$lib, --with-$lib-include or
10119 # --with-$lib-lib, for one of the libs above, and target is
10120 # different from host, don't pass the current argument to any
10121 # target library's configure.
10122 if test x
$is_cross_compiler = xyes
; then
10131 --cache-file=/dev
/null | \
10132 -cache-file=/dev
/null
)
10133 # Handled here to avoid the test to skip args below.
10134 baseargs
="$baseargs '$ac_arg'"
10135 tbaseargs
="$tbaseargs '$ac_arg'"
10136 # Assert: $separate_arg should always be no.
10137 keep_next
=$separate_arg
10153 -program-prefix* | \
10154 -program-suffix* | \
10155 -program-transform-name* )
10156 skip_next
=$separate_arg
10160 # An option. Add it.
10163 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10165 baseargs
="$baseargs '$ac_arg'"
10166 if test X
"$skip_targ" = Xno
; then
10167 tbaseargs
="$tbaseargs '$ac_arg'"
10169 keep_next
=$separate_arg
10172 # Either a variable assignment, or a nonopt (triplet). Don't
10173 # pass it down; let the Makefile handle this.
10178 # Remove the initial space we just introduced and, as these will be
10179 # expanded by make, quote '$'.
10180 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10182 # Add in --program-transform-name, after --program-prefix and
10183 # --program-suffix have been applied to it. Autoconf has already
10184 # doubled dollar signs and backslashes in program_transform_name; we want
10185 # the backslashes un-doubled, and then the entire thing wrapped in single
10186 # quotes, because this will be expanded first by make and then by the shell.
10187 # Also, because we want to override the logic in subdir configure scripts to
10188 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10189 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10190 ${program_transform_name}
10192 gcc_transform_name
=`cat conftestsed.out`
10193 rm -f conftestsed.out
10194 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10195 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10196 if test "$silent" = yes; then
10197 baseargs
="$baseargs --silent"
10198 tbaseargs
="$tbaseargs --silent"
10200 baseargs
="$baseargs --disable-option-checking"
10201 tbaseargs
="$tbaseargs --disable-option-checking"
10203 # Record and document user additions to sub configure arguments.
10208 # For the build-side libraries, we just need to pretend we're native,
10209 # and not use the same cache file. Multilibs are neither needed nor
10210 # desired. We can't even use the same cache file for all build-side
10211 # libraries, as they're compiled differently; some with C, some with
10212 # C++ or with different feature-enabling options.
10213 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10215 # For host modules, accept cache file option, or specification as blank.
10216 case "${cache_file}" in
10218 cache_file_option
="" ;;
10219 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10220 cache_file_option
="--cache-file=${cache_file}" ;;
10222 cache_file_option
="--cache-file=../${cache_file}" ;;
10225 # Host dirs don't like to share a cache file either, horribly enough.
10226 # This seems to be due to autoconf 2.5x stupidity.
10227 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10229 target_configargs
="$target_configargs ${tbaseargs}"
10231 # Passing a --with-cross-host argument lets the target libraries know
10232 # whether they are being built with a cross-compiler or being built
10233 # native. However, it would be better to use other mechanisms to make the
10234 # sorts of decisions they want to make on this basis. Please consider
10235 # this option to be deprecated. FIXME.
10236 if test x
${is_cross_compiler} = xyes
; then
10237 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10240 # Special user-friendly check for native x86_64-linux build, if
10241 # multilib is not explicitly enabled.
10242 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10243 x86_64-
*linux
*:yes:$build:$build:)
10244 # Make sure we have a development environment that handles 32-bit
10246 echo "int main () { return 0; }" > conftest.c
10247 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10248 if test $?
= 0 ; then
10249 if test -s conftest ||
test -s conftest.exe
; then
10254 if test x
${dev64} != xyes
; then
10255 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
10260 # Default to --enable-multilib.
10261 if test x
${enable_multilib} = x
; then
10262 target_configargs
="--enable-multilib ${target_configargs}"
10265 # Pass --with-newlib if appropriate. Note that target_configdirs has
10266 # changed from the earlier setting of with_newlib.
10267 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10268 target_configargs
="--with-newlib ${target_configargs}"
10271 # Different target subdirs use different values of certain variables
10272 # (notably CXX). Worse, multilibs use *lots* of different values.
10273 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10274 # it doesn't automatically accept command-line overrides of them.
10275 # This means it's not safe for target subdirs to share a cache file,
10276 # which is disgusting, but there you have it. Hopefully this can be
10277 # fixed in future. It's still worthwhile to use a cache file for each
10278 # directory. I think.
10280 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10281 # We need to pass --target, as newer autoconf's requires consistency
10282 # for target_alias and gcc doesn't manage it consistently.
10283 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10286 case " $target_configdirs " in
10288 case " $target_configargs " in
10289 *" --with-newlib "*)
10292 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10296 # If we're not building GCC, don't discard standard headers.
10297 if test -d ${srcdir}/gcc
; then
10298 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10300 if test "${build}" != "${host}"; then
10301 # On Canadian crosses, CC_FOR_TARGET will have already been set
10302 # by `configure', so we won't have an opportunity to add -Bgcc/
10303 # to it. This is right: we don't want to search that directory
10304 # for binaries, but we want the header files in there, so add
10306 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10308 # Someone might think of using the pre-installed headers on
10309 # Canadian crosses, in case the installed compiler is not fully
10310 # compatible with the compiler being built. In this case, it
10311 # would be better to flag an error than risking having
10312 # incompatible object files being constructed. We can't
10313 # guarantee that an error will be flagged, but let's hope the
10314 # compiler will do it, when presented with incompatible header
10319 case "${target}-${is_cross_compiler}" in
10320 i
[3456789]86-*-linux*-no)
10321 # Here host == target, so we don't need to build gcc,
10322 # so we don't want to discard standard headers.
10323 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10326 # If we're building newlib, use its generic headers last, but search
10327 # for any libc-related directories first (so make it the last -B
10329 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10331 # If we're building libgloss, find the startup file, simulator library
10332 # and linker script.
10333 case " $target_configdirs " in
10335 # Look for startup file, simulator library and maybe linker script.
10336 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10337 # Look for libnosys.a in case the target needs it.
10338 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10339 # Most targets have the linker script in the source directory.
10340 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10351 x86_64-
*mingw
* |
*-w64-mingw*)
10352 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10353 # however, use a symlink named 'mingw' in ${prefix} .
10354 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10357 # MinGW can't be handled as Cygwin above since it does not use newlib.
10358 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'
10362 # Allow the user to override the flags for
10363 # our build compiler if desired.
10364 if test x
"${build}" = x
"${host}" ; then
10365 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10366 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10367 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10368 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10371 # On Canadian crosses, we'll be searching the right directories for
10372 # the previously-installed cross compiler, so don't bother to add
10373 # flags for directories within the install tree of the compiler
10374 # being built; programs in there won't even run.
10375 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10376 # Search for pre-installed headers if nothing else fits.
10377 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10380 if test "x
${use_gnu_ld}" = x &&
10381 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10382 # Arrange for us to find uninstalled linker scripts.
10383 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10386 # Search for other target-specific linker scripts and such.
10387 case "${target}" in
10389 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10391 # The VxWorks support for shared libraries is getting in
10392 # incrementally. Make sure it doesn't get activated implicitly:
10394 if test "${enable_shared-unset}" = unset ; then
10396 # So the build of libraries knows ...
10397 target_configargs="${target_configargs} --disable-shared"
10399 host_configargs="${host_configargs} --disable-shared"
10404 # Makefile fragments.
10405 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10407 eval fragval=\$$frag
10408 if test $fragval != /dev/null; then
10409 eval $frag=${srcdir}/$fragval
10417 # Miscellanea: directories, flags, etc.
10426 # Build module lists & subconfigure args.
10430 # Host module lists & subconfigure args.
10435 # Target module lists & subconfigure args.
10460 # Generate default definitions for YACC, M4, LEX and other programs that run
10461 # on the build machine. These are used if the Makefile can't locate these
10462 # programs in objdir.
10463 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10465 for ac_prog in 'bison -y' byacc yacc
10467 # Extract the first word of "$ac_prog", so it can be a program name with args.
10468 set dummy $ac_prog; ac_word=$2
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10470 $as_echo_n "checking
for $ac_word...
" >&6; }
10471 if ${ac_cv_prog_YACC+:} false; then :
10472 $as_echo_n "(cached
) " >&6
10474 if test -n "$YACC"; then
10475 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in $PATH
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484 ac_cv_prog_YACC="$ac_prog"
10485 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10494 YACC=$ac_cv_prog_YACC
10495 if test -n "$YACC"; then
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10497 $as_echo "$YACC" >&6; }
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10500 $as_echo "no
" >&6; }
10504 test -n "$YACC" && break
10506 test -n "$YACC" || YACC="$MISSING bison
-y"
10508 case " $build_configdirs " in
10509 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10512 for ac_prog in bison
10514 # Extract the first word of "$ac_prog", so it can be a program name with args.
10515 set dummy $ac_prog; ac_word=$2
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10517 $as_echo_n "checking
for $ac_word...
" >&6; }
10518 if ${ac_cv_prog_BISON+:} false; then :
10519 $as_echo_n "(cached
) " >&6
10521 if test -n "$BISON"; then
10522 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10531 ac_cv_prog_BISON="$ac_prog"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10541 BISON=$ac_cv_prog_BISON
10542 if test -n "$BISON"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10544 $as_echo "$BISON" >&6; }
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10547 $as_echo "no
" >&6; }
10551 test -n "$BISON" && break
10553 test -n "$BISON" || BISON="$MISSING bison
"
10555 case " $build_configdirs " in
10556 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10559 for ac_prog in gm4 gnum4 m4
10561 # Extract the first word of "$ac_prog", so it can be a program name with args.
10562 set dummy $ac_prog; ac_word=$2
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10564 $as_echo_n "checking
for $ac_word...
" >&6; }
10565 if ${ac_cv_prog_M4+:} false; then :
10566 $as_echo_n "(cached
) " >&6
10568 if test -n "$M4"; then
10569 ac_cv_prog_M4="$M4" # Let the user override the test.
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10578 ac_cv_prog_M4="$ac_prog"
10579 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10589 if test -n "$M4"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10591 $as_echo "$M4" >&6; }
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10594 $as_echo "no
" >&6; }
10598 test -n "$M4" && break
10600 test -n "$M4" || M4="$MISSING m4"
10602 case " $build_configdirs " in
10603 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10606 for ac_prog in flex lex
10608 # Extract the first word of "$ac_prog", so it can be a program name with args.
10609 set dummy $ac_prog; ac_word=$2
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10611 $as_echo_n "checking
for $ac_word...
" >&6; }
10612 if ${ac_cv_prog_LEX+:} false; then :
10613 $as_echo_n "(cached
) " >&6
10615 if test -n "$LEX"; then
10616 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in $PATH
10622 test -z "$as_dir" && as_dir=.
10623 for ac_exec_ext in '' $ac_executable_extensions; do
10624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10625 ac_cv_prog_LEX="$ac_prog"
10626 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10635 LEX=$ac_cv_prog_LEX
10636 if test -n "$LEX"; then
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10638 $as_echo "$LEX" >&6; }
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10641 $as_echo "no
" >&6; }
10645 test -n "$LEX" && break
10647 test -n "$LEX" || LEX="$MISSING flex
"
10649 case " $build_configdirs " in
10650 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10651 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10654 for ac_prog in flex
10656 # Extract the first word of "$ac_prog", so it can be a program name with args.
10657 set dummy $ac_prog; ac_word=$2
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10659 $as_echo_n "checking
for $ac_word...
" >&6; }
10660 if ${ac_cv_prog_FLEX+:} false; then :
10661 $as_echo_n "(cached
) " >&6
10663 if test -n "$FLEX"; then
10664 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10670 test -z "$as_dir" && as_dir=.
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10673 ac_cv_prog_FLEX="$ac_prog"
10674 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10683 FLEX=$ac_cv_prog_FLEX
10684 if test -n "$FLEX"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10686 $as_echo "$FLEX" >&6; }
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10689 $as_echo "no
" >&6; }
10693 test -n "$FLEX" && break
10695 test -n "$FLEX" || FLEX="$MISSING flex
"
10697 case " $build_configdirs " in
10698 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10701 for ac_prog in makeinfo
10703 # Extract the first word of "$ac_prog", so it can be a program name with args.
10704 set dummy $ac_prog; ac_word=$2
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10706 $as_echo_n "checking
for $ac_word...
" >&6; }
10707 if ${ac_cv_prog_MAKEINFO+:} false; then :
10708 $as_echo_n "(cached
) " >&6
10710 if test -n "$MAKEINFO"; then
10711 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $PATH
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10720 ac_cv_prog_MAKEINFO="$ac_prog"
10721 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10730 MAKEINFO=$ac_cv_prog_MAKEINFO
10731 if test -n "$MAKEINFO"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10733 $as_echo "$MAKEINFO" >&6; }
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10736 $as_echo "no
" >&6; }
10740 test -n "$MAKEINFO" && break
10742 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10744 case " $build_configdirs " in
10745 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10748 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10749 # higher, else we use the "missing
" dummy.
10750 if ${MAKEINFO} --version \
10751 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10754 MAKEINFO="$MISSING makeinfo
"
10760 # FIXME: expect and dejagnu may become build tools?
10762 for ac_prog in expect
10764 # Extract the first word of "$ac_prog", so it can be a program name with args.
10765 set dummy $ac_prog; ac_word=$2
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10767 $as_echo_n "checking
for $ac_word...
" >&6; }
10768 if ${ac_cv_prog_EXPECT+:} false; then :
10769 $as_echo_n "(cached
) " >&6
10771 if test -n "$EXPECT"; then
10772 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775 for as_dir in $PATH
10778 test -z "$as_dir" && as_dir=.
10779 for ac_exec_ext in '' $ac_executable_extensions; do
10780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10781 ac_cv_prog_EXPECT="$ac_prog"
10782 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10791 EXPECT=$ac_cv_prog_EXPECT
10792 if test -n "$EXPECT"; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10794 $as_echo "$EXPECT" >&6; }
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10797 $as_echo "no
" >&6; }
10801 test -n "$EXPECT" && break
10803 test -n "$EXPECT" || EXPECT="expect
"
10805 case " $configdirs " in
10807 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10811 for ac_prog in runtest
10813 # Extract the first word of "$ac_prog", so it can be a program name with args.
10814 set dummy $ac_prog; ac_word=$2
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10816 $as_echo_n "checking
for $ac_word...
" >&6; }
10817 if ${ac_cv_prog_RUNTEST+:} false; then :
10818 $as_echo_n "(cached
) " >&6
10820 if test -n "$RUNTEST"; then
10821 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10830 ac_cv_prog_RUNTEST="$ac_prog"
10831 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10840 RUNTEST=$ac_cv_prog_RUNTEST
10841 if test -n "$RUNTEST"; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10843 $as_echo "$RUNTEST" >&6; }
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10846 $as_echo "no
" >&6; }
10850 test -n "$RUNTEST" && break
10852 test -n "$RUNTEST" || RUNTEST="runtest
"
10854 case " $configdirs " in
10856 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10863 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10864 ncn_target_tool_prefix=
10865 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10869 if test -n "$AR"; then
10871 elif test -n "$ac_cv_prog_AR"; then
10875 if test -n "$ac_cv_prog_AR"; then
10876 for ncn_progname in ar; do
10877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10878 set dummy ${ncn_progname}; ac_word=$2
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10880 $as_echo_n "checking
for $ac_word...
" >&6; }
10881 if ${ac_cv_prog_AR+:} false; then :
10882 $as_echo_n "(cached
) " >&6
10884 if test -n "$AR"; then
10885 ac_cv_prog_AR="$AR" # Let the user override the test.
10887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10894 ac_cv_prog_AR="${ncn_progname}"
10895 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10905 if test -n "$AR"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10907 $as_echo "$AR" >&6; }
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10910 $as_echo "no
" >&6; }
10917 for ncn_progname in ar; do
10918 if test -n "$ncn_tool_prefix"; then
10919 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10920 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10922 $as_echo_n "checking
for $ac_word...
" >&6; }
10923 if ${ac_cv_prog_AR+:} false; then :
10924 $as_echo_n "(cached
) " >&6
10926 if test -n "$AR"; then
10927 ac_cv_prog_AR="$AR" # Let the user override the test.
10929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930 for as_dir in $PATH
10933 test -z "$as_dir" && as_dir=.
10934 for ac_exec_ext in '' $ac_executable_extensions; do
10935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10936 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10937 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10947 if test -n "$AR"; then
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10949 $as_echo "$AR" >&6; }
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10952 $as_echo "no
" >&6; }
10957 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10959 set dummy ${ncn_progname}; ac_word=$2
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10961 $as_echo_n "checking
for $ac_word...
" >&6; }
10962 if ${ac_cv_prog_AR+:} false; then :
10963 $as_echo_n "(cached
) " >&6
10965 if test -n "$AR"; then
10966 ac_cv_prog_AR="$AR" # Let the user override the test.
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10975 ac_cv_prog_AR="${ncn_progname}"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10986 if test -n "$AR"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10988 $as_echo "$AR" >&6; }
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10991 $as_echo "no
" >&6; }
10996 test -n "$ac_cv_prog_AR" && break
10999 if test -z "$ac_cv_prog_AR" ; then
11001 if test $build = $host ; then
11004 AR="${ncn_tool_prefix}$2"
11010 if test -n "$AS"; then
11012 elif test -n "$ac_cv_prog_AS"; then
11016 if test -n "$ac_cv_prog_AS"; then
11017 for ncn_progname in as; do
11018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11019 set dummy ${ncn_progname}; ac_word=$2
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11021 $as_echo_n "checking
for $ac_word...
" >&6; }
11022 if ${ac_cv_prog_AS+:} false; then :
11023 $as_echo_n "(cached
) " >&6
11025 if test -n "$AS"; then
11026 ac_cv_prog_AS="$AS" # Let the user override the test.
11028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029 for as_dir in $PATH
11032 test -z "$as_dir" && as_dir=.
11033 for ac_exec_ext in '' $ac_executable_extensions; do
11034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11035 ac_cv_prog_AS="${ncn_progname}"
11036 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11046 if test -n "$AS"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11048 $as_echo "$AS" >&6; }
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11051 $as_echo "no
" >&6; }
11058 for ncn_progname in as; do
11059 if test -n "$ncn_tool_prefix"; then
11060 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11061 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11063 $as_echo_n "checking
for $ac_word...
" >&6; }
11064 if ${ac_cv_prog_AS+:} false; then :
11065 $as_echo_n "(cached
) " >&6
11067 if test -n "$AS"; then
11068 ac_cv_prog_AS="$AS" # Let the user override the test.
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11074 test -z "$as_dir" && as_dir=.
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11077 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11088 if test -n "$AS"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11090 $as_echo "$AS" >&6; }
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11093 $as_echo "no
" >&6; }
11098 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11100 set dummy ${ncn_progname}; ac_word=$2
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11102 $as_echo_n "checking
for $ac_word...
" >&6; }
11103 if ${ac_cv_prog_AS+:} false; then :
11104 $as_echo_n "(cached
) " >&6
11106 if test -n "$AS"; then
11107 ac_cv_prog_AS="$AS" # Let the user override the test.
11109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110 for as_dir in $PATH
11113 test -z "$as_dir" && as_dir=.
11114 for ac_exec_ext in '' $ac_executable_extensions; do
11115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11116 ac_cv_prog_AS="${ncn_progname}"
11117 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11127 if test -n "$AS"; then
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11129 $as_echo "$AS" >&6; }
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11132 $as_echo "no
" >&6; }
11137 test -n "$ac_cv_prog_AS" && break
11140 if test -z "$ac_cv_prog_AS" ; then
11142 if test $build = $host ; then
11145 AS="${ncn_tool_prefix}$2"
11151 if test -n "$DLLTOOL"; then
11152 ac_cv_prog_DLLTOOL=$DLLTOOL
11153 elif test -n "$ac_cv_prog_DLLTOOL"; then
11154 DLLTOOL=$ac_cv_prog_DLLTOOL
11157 if test -n "$ac_cv_prog_DLLTOOL"; then
11158 for ncn_progname in dlltool; do
11159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11160 set dummy ${ncn_progname}; ac_word=$2
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11162 $as_echo_n "checking
for $ac_word...
" >&6; }
11163 if ${ac_cv_prog_DLLTOOL+:} false; then :
11164 $as_echo_n "(cached
) " >&6
11166 if test -n "$DLLTOOL"; then
11167 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170 for as_dir in $PATH
11173 test -z "$as_dir" && as_dir=.
11174 for ac_exec_ext in '' $ac_executable_extensions; do
11175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11176 ac_cv_prog_DLLTOOL="${ncn_progname}"
11177 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11186 DLLTOOL=$ac_cv_prog_DLLTOOL
11187 if test -n "$DLLTOOL"; then
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11189 $as_echo "$DLLTOOL" >&6; }
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11192 $as_echo "no
" >&6; }
11199 for ncn_progname in dlltool; do
11200 if test -n "$ncn_tool_prefix"; then
11201 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11202 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11204 $as_echo_n "checking
for $ac_word...
" >&6; }
11205 if ${ac_cv_prog_DLLTOOL+:} false; then :
11206 $as_echo_n "(cached
) " >&6
11208 if test -n "$DLLTOOL"; then
11209 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212 for as_dir in $PATH
11215 test -z "$as_dir" && as_dir=.
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11218 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11219 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11228 DLLTOOL=$ac_cv_prog_DLLTOOL
11229 if test -n "$DLLTOOL"; then
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11231 $as_echo "$DLLTOOL" >&6; }
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11234 $as_echo "no
" >&6; }
11239 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11241 set dummy ${ncn_progname}; ac_word=$2
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11243 $as_echo_n "checking
for $ac_word...
" >&6; }
11244 if ${ac_cv_prog_DLLTOOL+:} false; then :
11245 $as_echo_n "(cached
) " >&6
11247 if test -n "$DLLTOOL"; then
11248 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $PATH
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11257 ac_cv_prog_DLLTOOL="${ncn_progname}"
11258 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11267 DLLTOOL=$ac_cv_prog_DLLTOOL
11268 if test -n "$DLLTOOL"; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11270 $as_echo "$DLLTOOL" >&6; }
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11273 $as_echo "no
" >&6; }
11278 test -n "$ac_cv_prog_DLLTOOL" && break
11281 if test -z "$ac_cv_prog_DLLTOOL" ; then
11283 if test $build = $host ; then
11286 DLLTOOL="${ncn_tool_prefix}$2"
11292 if test -n "$DSYMUTIL"; then
11293 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11294 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11295 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11298 if test -n "$ac_cv_prog_DSYMUTIL"; then
11299 for ncn_progname in dsymutil; do
11300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11301 set dummy ${ncn_progname}; ac_word=$2
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11303 $as_echo_n "checking
for $ac_word...
" >&6; }
11304 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11305 $as_echo_n "(cached
) " >&6
11307 if test -n "$DSYMUTIL"; then
11308 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11317 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11318 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11327 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11328 if test -n "$DSYMUTIL"; then
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11330 $as_echo "$DSYMUTIL" >&6; }
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11333 $as_echo "no
" >&6; }
11340 for ncn_progname in dsymutil; do
11341 if test -n "$ncn_tool_prefix"; then
11342 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11343 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11345 $as_echo_n "checking
for $ac_word...
" >&6; }
11346 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11347 $as_echo_n "(cached
) " >&6
11349 if test -n "$DSYMUTIL"; then
11350 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11360 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11369 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11370 if test -n "$DSYMUTIL"; then
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11372 $as_echo "$DSYMUTIL" >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11375 $as_echo "no
" >&6; }
11380 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11382 set dummy ${ncn_progname}; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11384 $as_echo_n "checking
for $ac_word...
" >&6; }
11385 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11386 $as_echo_n "(cached
) " >&6
11388 if test -n "$DSYMUTIL"; then
11389 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11398 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11399 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11408 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11409 if test -n "$DSYMUTIL"; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11411 $as_echo "$DSYMUTIL" >&6; }
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11414 $as_echo "no
" >&6; }
11419 test -n "$ac_cv_prog_DSYMUTIL" && break
11422 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11424 if test $build = $host ; then
11427 DSYMUTIL="${ncn_tool_prefix}$2"
11433 if test -n "$LD"; then
11435 elif test -n "$ac_cv_prog_LD"; then
11439 if test -n "$ac_cv_prog_LD"; then
11440 for ncn_progname in ld; do
11441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11442 set dummy ${ncn_progname}; ac_word=$2
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11444 $as_echo_n "checking
for $ac_word...
" >&6; }
11445 if ${ac_cv_prog_LD+:} false; then :
11446 $as_echo_n "(cached
) " >&6
11448 if test -n "$LD"; then
11449 ac_cv_prog_LD="$LD" # Let the user override the test.
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in $PATH
11455 test -z "$as_dir" && as_dir=.
11456 for ac_exec_ext in '' $ac_executable_extensions; do
11457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11458 ac_cv_prog_LD="${ncn_progname}"
11459 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11469 if test -n "$LD"; then
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11471 $as_echo "$LD" >&6; }
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11474 $as_echo "no
" >&6; }
11481 for ncn_progname in ld; do
11482 if test -n "$ncn_tool_prefix"; then
11483 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11484 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11486 $as_echo_n "checking
for $ac_word...
" >&6; }
11487 if ${ac_cv_prog_LD+:} false; then :
11488 $as_echo_n "(cached
) " >&6
11490 if test -n "$LD"; then
11491 ac_cv_prog_LD="$LD" # Let the user override the test.
11493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494 for as_dir in $PATH
11497 test -z "$as_dir" && as_dir=.
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11500 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11501 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11511 if test -n "$LD"; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11513 $as_echo "$LD" >&6; }
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11516 $as_echo "no
" >&6; }
11521 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11523 set dummy ${ncn_progname}; ac_word=$2
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11525 $as_echo_n "checking
for $ac_word...
" >&6; }
11526 if ${ac_cv_prog_LD+:} false; then :
11527 $as_echo_n "(cached
) " >&6
11529 if test -n "$LD"; then
11530 ac_cv_prog_LD="$LD" # Let the user override the test.
11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533 for as_dir in $PATH
11536 test -z "$as_dir" && as_dir=.
11537 for ac_exec_ext in '' $ac_executable_extensions; do
11538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11539 ac_cv_prog_LD="${ncn_progname}"
11540 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11550 if test -n "$LD"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11552 $as_echo "$LD" >&6; }
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11555 $as_echo "no
" >&6; }
11560 test -n "$ac_cv_prog_LD" && break
11563 if test -z "$ac_cv_prog_LD" ; then
11565 if test $build = $host ; then
11568 LD="${ncn_tool_prefix}$2"
11574 if test -n "$LIPO"; then
11575 ac_cv_prog_LIPO=$LIPO
11576 elif test -n "$ac_cv_prog_LIPO"; then
11577 LIPO=$ac_cv_prog_LIPO
11580 if test -n "$ac_cv_prog_LIPO"; then
11581 for ncn_progname in lipo; do
11582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11583 set dummy ${ncn_progname}; ac_word=$2
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11585 $as_echo_n "checking
for $ac_word...
" >&6; }
11586 if ${ac_cv_prog_LIPO+:} false; then :
11587 $as_echo_n "(cached
) " >&6
11589 if test -n "$LIPO"; then
11590 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593 for as_dir in $PATH
11596 test -z "$as_dir" && as_dir=.
11597 for ac_exec_ext in '' $ac_executable_extensions; do
11598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11599 ac_cv_prog_LIPO="${ncn_progname}"
11600 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11609 LIPO=$ac_cv_prog_LIPO
11610 if test -n "$LIPO"; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11612 $as_echo "$LIPO" >&6; }
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11615 $as_echo "no
" >&6; }
11622 for ncn_progname in lipo; do
11623 if test -n "$ncn_tool_prefix"; then
11624 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11625 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11627 $as_echo_n "checking
for $ac_word...
" >&6; }
11628 if ${ac_cv_prog_LIPO+:} false; then :
11629 $as_echo_n "(cached
) " >&6
11631 if test -n "$LIPO"; then
11632 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11641 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11651 LIPO=$ac_cv_prog_LIPO
11652 if test -n "$LIPO"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11654 $as_echo "$LIPO" >&6; }
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11657 $as_echo "no
" >&6; }
11662 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11664 set dummy ${ncn_progname}; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11666 $as_echo_n "checking
for $ac_word...
" >&6; }
11667 if ${ac_cv_prog_LIPO+:} false; then :
11668 $as_echo_n "(cached
) " >&6
11670 if test -n "$LIPO"; then
11671 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11680 ac_cv_prog_LIPO="${ncn_progname}"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11690 LIPO=$ac_cv_prog_LIPO
11691 if test -n "$LIPO"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11693 $as_echo "$LIPO" >&6; }
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11696 $as_echo "no
" >&6; }
11701 test -n "$ac_cv_prog_LIPO" && break
11704 if test -z "$ac_cv_prog_LIPO" ; then
11706 if test $build = $host ; then
11709 LIPO="${ncn_tool_prefix}$2"
11715 if test -n "$NM"; then
11717 elif test -n "$ac_cv_prog_NM"; then
11721 if test -n "$ac_cv_prog_NM"; then
11722 for ncn_progname in nm; do
11723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11724 set dummy ${ncn_progname}; ac_word=$2
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11726 $as_echo_n "checking
for $ac_word...
" >&6; }
11727 if ${ac_cv_prog_NM+:} false; then :
11728 $as_echo_n "(cached
) " >&6
11730 if test -n "$NM"; then
11731 ac_cv_prog_NM="$NM" # Let the user override the test.
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11740 ac_cv_prog_NM="${ncn_progname}"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11751 if test -n "$NM"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11753 $as_echo "$NM" >&6; }
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11756 $as_echo "no
" >&6; }
11763 for ncn_progname in nm; do
11764 if test -n "$ncn_tool_prefix"; then
11765 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11766 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11768 $as_echo_n "checking
for $ac_word...
" >&6; }
11769 if ${ac_cv_prog_NM+:} false; then :
11770 $as_echo_n "(cached
) " >&6
11772 if test -n "$NM"; then
11773 ac_cv_prog_NM="$NM" # Let the user override the test.
11775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 for as_dir in $PATH
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11782 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11793 if test -n "$NM"; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11795 $as_echo "$NM" >&6; }
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11798 $as_echo "no
" >&6; }
11803 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11805 set dummy ${ncn_progname}; ac_word=$2
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11807 $as_echo_n "checking
for $ac_word...
" >&6; }
11808 if ${ac_cv_prog_NM+:} false; then :
11809 $as_echo_n "(cached
) " >&6
11811 if test -n "$NM"; then
11812 ac_cv_prog_NM="$NM" # Let the user override the test.
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11821 ac_cv_prog_NM="${ncn_progname}"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11832 if test -n "$NM"; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11834 $as_echo "$NM" >&6; }
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11837 $as_echo "no
" >&6; }
11842 test -n "$ac_cv_prog_NM" && break
11845 if test -z "$ac_cv_prog_NM" ; then
11847 if test $build = $host ; then
11850 NM="${ncn_tool_prefix}$2"
11856 if test -n "$RANLIB"; then
11857 ac_cv_prog_RANLIB=$RANLIB
11858 elif test -n "$ac_cv_prog_RANLIB"; then
11859 RANLIB=$ac_cv_prog_RANLIB
11862 if test -n "$ac_cv_prog_RANLIB"; then
11863 for ncn_progname in ranlib; do
11864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11865 set dummy ${ncn_progname}; ac_word=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11867 $as_echo_n "checking
for $ac_word...
" >&6; }
11868 if ${ac_cv_prog_RANLIB+:} false; then :
11869 $as_echo_n "(cached
) " >&6
11871 if test -n "$RANLIB"; then
11872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11881 ac_cv_prog_RANLIB="${ncn_progname}"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11891 RANLIB=$ac_cv_prog_RANLIB
11892 if test -n "$RANLIB"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11894 $as_echo "$RANLIB" >&6; }
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11897 $as_echo "no
" >&6; }
11904 for ncn_progname in ranlib; do
11905 if test -n "$ncn_tool_prefix"; then
11906 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11907 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11909 $as_echo_n "checking
for $ac_word...
" >&6; }
11910 if ${ac_cv_prog_RANLIB+:} false; then :
11911 $as_echo_n "(cached
) " >&6
11913 if test -n "$RANLIB"; then
11914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in $PATH
11920 test -z "$as_dir" && as_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11923 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11924 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11933 RANLIB=$ac_cv_prog_RANLIB
11934 if test -n "$RANLIB"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11936 $as_echo "$RANLIB" >&6; }
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11939 $as_echo "no
" >&6; }
11944 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11946 set dummy ${ncn_progname}; ac_word=$2
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11948 $as_echo_n "checking
for $ac_word...
" >&6; }
11949 if ${ac_cv_prog_RANLIB+:} false; then :
11950 $as_echo_n "(cached
) " >&6
11952 if test -n "$RANLIB"; then
11953 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956 for as_dir in $PATH
11959 test -z "$as_dir" && as_dir=.
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11962 ac_cv_prog_RANLIB="${ncn_progname}"
11963 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11972 RANLIB=$ac_cv_prog_RANLIB
11973 if test -n "$RANLIB"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11975 $as_echo "$RANLIB" >&6; }
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11978 $as_echo "no
" >&6; }
11983 test -n "$ac_cv_prog_RANLIB" && break
11986 if test -z "$ac_cv_prog_RANLIB" ; then
11992 if test -n "$STRIP"; then
11993 ac_cv_prog_STRIP=$STRIP
11994 elif test -n "$ac_cv_prog_STRIP"; then
11995 STRIP=$ac_cv_prog_STRIP
11998 if test -n "$ac_cv_prog_STRIP"; then
11999 for ncn_progname in strip; do
12000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12001 set dummy ${ncn_progname}; ac_word=$2
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12003 $as_echo_n "checking
for $ac_word...
" >&6; }
12004 if ${ac_cv_prog_STRIP+:} false; then :
12005 $as_echo_n "(cached
) " >&6
12007 if test -n "$STRIP"; then
12008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 for as_dir in $PATH
12014 test -z "$as_dir" && as_dir=.
12015 for ac_exec_ext in '' $ac_executable_extensions; do
12016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12017 ac_cv_prog_STRIP="${ncn_progname}"
12018 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12027 STRIP=$ac_cv_prog_STRIP
12028 if test -n "$STRIP"; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12030 $as_echo "$STRIP" >&6; }
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12033 $as_echo "no
" >&6; }
12040 for ncn_progname in strip; do
12041 if test -n "$ncn_tool_prefix"; then
12042 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12043 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12045 $as_echo_n "checking
for $ac_word...
" >&6; }
12046 if ${ac_cv_prog_STRIP+:} false; then :
12047 $as_echo_n "(cached
) " >&6
12049 if test -n "$STRIP"; then
12050 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12053 for as_dir in $PATH
12056 test -z "$as_dir" && as_dir=.
12057 for ac_exec_ext in '' $ac_executable_extensions; do
12058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12059 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12060 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12069 STRIP=$ac_cv_prog_STRIP
12070 if test -n "$STRIP"; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12072 $as_echo "$STRIP" >&6; }
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12075 $as_echo "no
" >&6; }
12080 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12082 set dummy ${ncn_progname}; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12084 $as_echo_n "checking
for $ac_word...
" >&6; }
12085 if ${ac_cv_prog_STRIP+:} false; then :
12086 $as_echo_n "(cached
) " >&6
12088 if test -n "$STRIP"; then
12089 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12098 ac_cv_prog_STRIP="${ncn_progname}"
12099 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12108 STRIP=$ac_cv_prog_STRIP
12109 if test -n "$STRIP"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12111 $as_echo "$STRIP" >&6; }
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12114 $as_echo "no
" >&6; }
12119 test -n "$ac_cv_prog_STRIP" && break
12122 if test -z "$ac_cv_prog_STRIP" ; then
12128 if test -n "$WINDRES"; then
12129 ac_cv_prog_WINDRES=$WINDRES
12130 elif test -n "$ac_cv_prog_WINDRES"; then
12131 WINDRES=$ac_cv_prog_WINDRES
12134 if test -n "$ac_cv_prog_WINDRES"; then
12135 for ncn_progname in windres; do
12136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12137 set dummy ${ncn_progname}; ac_word=$2
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12139 $as_echo_n "checking
for $ac_word...
" >&6; }
12140 if ${ac_cv_prog_WINDRES+:} false; then :
12141 $as_echo_n "(cached
) " >&6
12143 if test -n "$WINDRES"; then
12144 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147 for as_dir in $PATH
12150 test -z "$as_dir" && as_dir=.
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12153 ac_cv_prog_WINDRES="${ncn_progname}"
12154 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12163 WINDRES=$ac_cv_prog_WINDRES
12164 if test -n "$WINDRES"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12166 $as_echo "$WINDRES" >&6; }
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12169 $as_echo "no
" >&6; }
12176 for ncn_progname in windres; do
12177 if test -n "$ncn_tool_prefix"; then
12178 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12179 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12181 $as_echo_n "checking
for $ac_word...
" >&6; }
12182 if ${ac_cv_prog_WINDRES+:} false; then :
12183 $as_echo_n "(cached
) " >&6
12185 if test -n "$WINDRES"; then
12186 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189 for as_dir in $PATH
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12195 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12196 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12205 WINDRES=$ac_cv_prog_WINDRES
12206 if test -n "$WINDRES"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12208 $as_echo "$WINDRES" >&6; }
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12211 $as_echo "no
" >&6; }
12216 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12218 set dummy ${ncn_progname}; ac_word=$2
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12220 $as_echo_n "checking
for $ac_word...
" >&6; }
12221 if ${ac_cv_prog_WINDRES+:} false; then :
12222 $as_echo_n "(cached
) " >&6
12224 if test -n "$WINDRES"; then
12225 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12228 for as_dir in $PATH
12231 test -z "$as_dir" && as_dir=.
12232 for ac_exec_ext in '' $ac_executable_extensions; do
12233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12234 ac_cv_prog_WINDRES="${ncn_progname}"
12235 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12244 WINDRES=$ac_cv_prog_WINDRES
12245 if test -n "$WINDRES"; then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12247 $as_echo "$WINDRES" >&6; }
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12250 $as_echo "no
" >&6; }
12255 test -n "$ac_cv_prog_WINDRES" && break
12258 if test -z "$ac_cv_prog_WINDRES" ; then
12260 if test $build = $host ; then
12263 WINDRES="${ncn_tool_prefix}$2"
12269 if test -n "$WINDMC"; then
12270 ac_cv_prog_WINDMC=$WINDMC
12271 elif test -n "$ac_cv_prog_WINDMC"; then
12272 WINDMC=$ac_cv_prog_WINDMC
12275 if test -n "$ac_cv_prog_WINDMC"; then
12276 for ncn_progname in windmc; do
12277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12278 set dummy ${ncn_progname}; ac_word=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12280 $as_echo_n "checking
for $ac_word...
" >&6; }
12281 if ${ac_cv_prog_WINDMC+:} false; then :
12282 $as_echo_n "(cached
) " >&6
12284 if test -n "$WINDMC"; then
12285 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288 for as_dir in $PATH
12291 test -z "$as_dir" && as_dir=.
12292 for ac_exec_ext in '' $ac_executable_extensions; do
12293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12294 ac_cv_prog_WINDMC="${ncn_progname}"
12295 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12304 WINDMC=$ac_cv_prog_WINDMC
12305 if test -n "$WINDMC"; then
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12307 $as_echo "$WINDMC" >&6; }
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12310 $as_echo "no
" >&6; }
12317 for ncn_progname in windmc; do
12318 if test -n "$ncn_tool_prefix"; then
12319 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12320 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12322 $as_echo_n "checking
for $ac_word...
" >&6; }
12323 if ${ac_cv_prog_WINDMC+:} false; then :
12324 $as_echo_n "(cached
) " >&6
12326 if test -n "$WINDMC"; then
12327 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $PATH
12333 test -z "$as_dir" && as_dir=.
12334 for ac_exec_ext in '' $ac_executable_extensions; do
12335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12336 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12337 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12346 WINDMC=$ac_cv_prog_WINDMC
12347 if test -n "$WINDMC"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12349 $as_echo "$WINDMC" >&6; }
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12352 $as_echo "no
" >&6; }
12357 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12359 set dummy ${ncn_progname}; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12361 $as_echo_n "checking
for $ac_word...
" >&6; }
12362 if ${ac_cv_prog_WINDMC+:} false; then :
12363 $as_echo_n "(cached
) " >&6
12365 if test -n "$WINDMC"; then
12366 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $PATH
12372 test -z "$as_dir" && as_dir=.
12373 for ac_exec_ext in '' $ac_executable_extensions; do
12374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12375 ac_cv_prog_WINDMC="${ncn_progname}"
12376 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12385 WINDMC=$ac_cv_prog_WINDMC
12386 if test -n "$WINDMC"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12388 $as_echo "$WINDMC" >&6; }
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12391 $as_echo "no
" >&6; }
12396 test -n "$ac_cv_prog_WINDMC" && break
12399 if test -z "$ac_cv_prog_WINDMC" ; then
12401 if test $build = $host ; then
12404 WINDMC="${ncn_tool_prefix}$2"
12410 if test -n "$OBJCOPY"; then
12411 ac_cv_prog_OBJCOPY=$OBJCOPY
12412 elif test -n "$ac_cv_prog_OBJCOPY"; then
12413 OBJCOPY=$ac_cv_prog_OBJCOPY
12416 if test -n "$ac_cv_prog_OBJCOPY"; then
12417 for ncn_progname in objcopy; do
12418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12419 set dummy ${ncn_progname}; ac_word=$2
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12421 $as_echo_n "checking
for $ac_word...
" >&6; }
12422 if ${ac_cv_prog_OBJCOPY+:} false; then :
12423 $as_echo_n "(cached
) " >&6
12425 if test -n "$OBJCOPY"; then
12426 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12432 test -z "$as_dir" && as_dir=.
12433 for ac_exec_ext in '' $ac_executable_extensions; do
12434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435 ac_cv_prog_OBJCOPY="${ncn_progname}"
12436 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12445 OBJCOPY=$ac_cv_prog_OBJCOPY
12446 if test -n "$OBJCOPY"; then
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12448 $as_echo "$OBJCOPY" >&6; }
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12451 $as_echo "no
" >&6; }
12458 for ncn_progname in objcopy; do
12459 if test -n "$ncn_tool_prefix"; then
12460 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12461 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12463 $as_echo_n "checking
for $ac_word...
" >&6; }
12464 if ${ac_cv_prog_OBJCOPY+:} false; then :
12465 $as_echo_n "(cached
) " >&6
12467 if test -n "$OBJCOPY"; then
12468 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
12476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12477 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12478 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12487 OBJCOPY=$ac_cv_prog_OBJCOPY
12488 if test -n "$OBJCOPY"; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12490 $as_echo "$OBJCOPY" >&6; }
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12493 $as_echo "no
" >&6; }
12498 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12500 set dummy ${ncn_progname}; ac_word=$2
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12502 $as_echo_n "checking
for $ac_word...
" >&6; }
12503 if ${ac_cv_prog_OBJCOPY+:} false; then :
12504 $as_echo_n "(cached
) " >&6
12506 if test -n "$OBJCOPY"; then
12507 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510 for as_dir in $PATH
12513 test -z "$as_dir" && as_dir=.
12514 for ac_exec_ext in '' $ac_executable_extensions; do
12515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12516 ac_cv_prog_OBJCOPY="${ncn_progname}"
12517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12526 OBJCOPY=$ac_cv_prog_OBJCOPY
12527 if test -n "$OBJCOPY"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12529 $as_echo "$OBJCOPY" >&6; }
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12532 $as_echo "no
" >&6; }
12537 test -n "$ac_cv_prog_OBJCOPY" && break
12540 if test -z "$ac_cv_prog_OBJCOPY" ; then
12542 if test $build = $host ; then
12545 OBJCOPY="${ncn_tool_prefix}$2"
12551 if test -n "$OBJDUMP"; then
12552 ac_cv_prog_OBJDUMP=$OBJDUMP
12553 elif test -n "$ac_cv_prog_OBJDUMP"; then
12554 OBJDUMP=$ac_cv_prog_OBJDUMP
12557 if test -n "$ac_cv_prog_OBJDUMP"; then
12558 for ncn_progname in objdump; do
12559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12560 set dummy ${ncn_progname}; ac_word=$2
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12562 $as_echo_n "checking
for $ac_word...
" >&6; }
12563 if ${ac_cv_prog_OBJDUMP+:} false; then :
12564 $as_echo_n "(cached
) " >&6
12566 if test -n "$OBJDUMP"; then
12567 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570 for as_dir in $PATH
12573 test -z "$as_dir" && as_dir=.
12574 for ac_exec_ext in '' $ac_executable_extensions; do
12575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12576 ac_cv_prog_OBJDUMP="${ncn_progname}"
12577 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12586 OBJDUMP=$ac_cv_prog_OBJDUMP
12587 if test -n "$OBJDUMP"; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12589 $as_echo "$OBJDUMP" >&6; }
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12592 $as_echo "no
" >&6; }
12599 for ncn_progname in objdump; do
12600 if test -n "$ncn_tool_prefix"; then
12601 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12602 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12604 $as_echo_n "checking
for $ac_word...
" >&6; }
12605 if ${ac_cv_prog_OBJDUMP+:} false; then :
12606 $as_echo_n "(cached
) " >&6
12608 if test -n "$OBJDUMP"; then
12609 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12615 test -z "$as_dir" && as_dir=.
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12618 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12619 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12628 OBJDUMP=$ac_cv_prog_OBJDUMP
12629 if test -n "$OBJDUMP"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12631 $as_echo "$OBJDUMP" >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12634 $as_echo "no
" >&6; }
12639 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12641 set dummy ${ncn_progname}; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12643 $as_echo_n "checking
for $ac_word...
" >&6; }
12644 if ${ac_cv_prog_OBJDUMP+:} false; then :
12645 $as_echo_n "(cached
) " >&6
12647 if test -n "$OBJDUMP"; then
12648 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
12654 test -z "$as_dir" && as_dir=.
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12657 ac_cv_prog_OBJDUMP="${ncn_progname}"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12667 OBJDUMP=$ac_cv_prog_OBJDUMP
12668 if test -n "$OBJDUMP"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12670 $as_echo "$OBJDUMP" >&6; }
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12673 $as_echo "no
" >&6; }
12678 test -n "$ac_cv_prog_OBJDUMP" && break
12681 if test -z "$ac_cv_prog_OBJDUMP" ; then
12683 if test $build = $host ; then
12686 OBJDUMP="${ncn_tool_prefix}$2"
12692 if test -n "$OTOOL"; then
12693 ac_cv_prog_OTOOL=$OTOOL
12694 elif test -n "$ac_cv_prog_OTOOL"; then
12695 OTOOL=$ac_cv_prog_OTOOL
12698 if test -n "$ac_cv_prog_OTOOL"; then
12699 for ncn_progname in otool; do
12700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12701 set dummy ${ncn_progname}; ac_word=$2
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12703 $as_echo_n "checking
for $ac_word...
" >&6; }
12704 if ${ac_cv_prog_OTOOL+:} false; then :
12705 $as_echo_n "(cached
) " >&6
12707 if test -n "$OTOOL"; then
12708 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711 for as_dir in $PATH
12714 test -z "$as_dir" && as_dir=.
12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12717 ac_cv_prog_OTOOL="${ncn_progname}"
12718 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12727 OTOOL=$ac_cv_prog_OTOOL
12728 if test -n "$OTOOL"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12730 $as_echo "$OTOOL" >&6; }
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12733 $as_echo "no
" >&6; }
12740 for ncn_progname in otool; do
12741 if test -n "$ncn_tool_prefix"; then
12742 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12743 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12745 $as_echo_n "checking
for $ac_word...
" >&6; }
12746 if ${ac_cv_prog_OTOOL+:} false; then :
12747 $as_echo_n "(cached
) " >&6
12749 if test -n "$OTOOL"; then
12750 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753 for as_dir in $PATH
12756 test -z "$as_dir" && as_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12759 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12760 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12769 OTOOL=$ac_cv_prog_OTOOL
12770 if test -n "$OTOOL"; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12772 $as_echo "$OTOOL" >&6; }
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12775 $as_echo "no
" >&6; }
12780 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12782 set dummy ${ncn_progname}; ac_word=$2
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12784 $as_echo_n "checking
for $ac_word...
" >&6; }
12785 if ${ac_cv_prog_OTOOL+:} false; then :
12786 $as_echo_n "(cached
) " >&6
12788 if test -n "$OTOOL"; then
12789 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12792 for as_dir in $PATH
12795 test -z "$as_dir" && as_dir=.
12796 for ac_exec_ext in '' $ac_executable_extensions; do
12797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12798 ac_cv_prog_OTOOL="${ncn_progname}"
12799 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12808 OTOOL=$ac_cv_prog_OTOOL
12809 if test -n "$OTOOL"; then
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12811 $as_echo "$OTOOL" >&6; }
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12814 $as_echo "no
" >&6; }
12819 test -n "$ac_cv_prog_OTOOL" && break
12822 if test -z "$ac_cv_prog_OTOOL" ; then
12824 if test $build = $host ; then
12827 OTOOL="${ncn_tool_prefix}$2"
12833 if test -n "$READELF"; then
12834 ac_cv_prog_READELF=$READELF
12835 elif test -n "$ac_cv_prog_READELF"; then
12836 READELF=$ac_cv_prog_READELF
12839 if test -n "$ac_cv_prog_READELF"; then
12840 for ncn_progname in readelf; do
12841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12842 set dummy ${ncn_progname}; ac_word=$2
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12844 $as_echo_n "checking
for $ac_word...
" >&6; }
12845 if ${ac_cv_prog_READELF+:} false; then :
12846 $as_echo_n "(cached
) " >&6
12848 if test -n "$READELF"; then
12849 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12855 test -z "$as_dir" && as_dir=.
12856 for ac_exec_ext in '' $ac_executable_extensions; do
12857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12858 ac_cv_prog_READELF="${ncn_progname}"
12859 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12868 READELF=$ac_cv_prog_READELF
12869 if test -n "$READELF"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12871 $as_echo "$READELF" >&6; }
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12874 $as_echo "no
" >&6; }
12881 for ncn_progname in readelf; do
12882 if test -n "$ncn_tool_prefix"; then
12883 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12884 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12886 $as_echo_n "checking
for $ac_word...
" >&6; }
12887 if ${ac_cv_prog_READELF+:} false; then :
12888 $as_echo_n "(cached
) " >&6
12890 if test -n "$READELF"; then
12891 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894 for as_dir in $PATH
12897 test -z "$as_dir" && as_dir=.
12898 for ac_exec_ext in '' $ac_executable_extensions; do
12899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12900 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12901 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12910 READELF=$ac_cv_prog_READELF
12911 if test -n "$READELF"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12913 $as_echo "$READELF" >&6; }
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12916 $as_echo "no
" >&6; }
12921 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12923 set dummy ${ncn_progname}; ac_word=$2
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12925 $as_echo_n "checking
for $ac_word...
" >&6; }
12926 if ${ac_cv_prog_READELF+:} false; then :
12927 $as_echo_n "(cached
) " >&6
12929 if test -n "$READELF"; then
12930 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933 for as_dir in $PATH
12936 test -z "$as_dir" && as_dir=.
12937 for ac_exec_ext in '' $ac_executable_extensions; do
12938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12939 ac_cv_prog_READELF="${ncn_progname}"
12940 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12949 READELF=$ac_cv_prog_READELF
12950 if test -n "$READELF"; then
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12952 $as_echo "$READELF" >&6; }
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12955 $as_echo "no
" >&6; }
12960 test -n "$ac_cv_prog_READELF" && break
12963 if test -z "$ac_cv_prog_READELF" ; then
12965 if test $build = $host ; then
12968 READELF="${ncn_tool_prefix}$2"
12978 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
12981 $as_echo_n "checking
for -plugin option...
" >&6; }
12983 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
12985 for plugin in $plugin_names; do
12986 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12987 if test x$plugin_so = x$plugin; then
12988 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12990 if test x$plugin_so != x$plugin; then
12991 plugin_option="--plugin $plugin_so"
12995 if test -n "$ac_tool_prefix"; then
12996 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12997 set dummy ${ac_tool_prefix}ar; ac_word=$2
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12999 $as_echo_n "checking
for $ac_word...
" >&6; }
13000 if ${ac_cv_prog_AR+:} false; then :
13001 $as_echo_n "(cached
) " >&6
13003 if test -n "$AR"; then
13004 ac_cv_prog_AR="$AR" # Let the user override the test.
13006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007 for as_dir in $PATH
13010 test -z "$as_dir" && as_dir=.
13011 for ac_exec_ext in '' $ac_executable_extensions; do
13012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13013 ac_cv_prog_AR="${ac_tool_prefix}ar"
13014 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13024 if test -n "$AR"; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13026 $as_echo "$AR" >&6; }
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13029 $as_echo "no
" >&6; }
13034 if test -z "$ac_cv_prog_AR"; then
13036 # Extract the first word of "ar", so it can be a program name with args.
13037 set dummy ar; ac_word=$2
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13039 $as_echo_n "checking
for $ac_word...
" >&6; }
13040 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13041 $as_echo_n "(cached
) " >&6
13043 if test -n "$ac_ct_AR"; then
13044 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047 for as_dir in $PATH
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13053 ac_cv_prog_ac_ct_AR="ar"
13054 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13063 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13064 if test -n "$ac_ct_AR"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13066 $as_echo "$ac_ct_AR" >&6; }
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13069 $as_echo "no
" >&6; }
13072 if test "x
$ac_ct_AR" = x; then
13075 case $cross_compiling:$ac_tool_warned in
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13078 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13079 ac_tool_warned=yes ;;
13084 AR="$ac_cv_prog_AR"
13087 if test "${AR}" = "" ; then
13088 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
13091 ${AR} $plugin_option rc conftest.a conftest.c
13092 if test "$?
" != 0; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
13094 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
13098 if test -n "$plugin_option"; then
13099 PLUGIN_OPTION="$plugin_option"
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
13101 $as_echo "$plugin_option" >&6; }
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13104 $as_echo "no
" >&6; }
13108 RANLIB_PLUGIN_OPTION=
13109 if test -n "$PLUGIN_OPTION"; then
13110 if $AR --help 2>&1 | grep -q "\
--plugin"; then
13111 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13113 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
13114 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13122 # Check whether --with-build-time-tools was given.
13123 if test "${with_build_time_tools+set}" = set; then :
13124 withval=$with_build_time_tools; case x"$withval" in
13127 with_build_time_tools=
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
13129 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
13133 with_build_time_tools=
13139 if test -n "$CC_FOR_TARGET"; then
13140 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13141 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13142 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13145 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13146 for ncn_progname in cc gcc; do
13147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13148 set dummy ${ncn_progname}; ac_word=$2
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13150 $as_echo_n "checking
for $ac_word...
" >&6; }
13151 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13152 $as_echo_n "(cached
) " >&6
13154 if test -n "$CC_FOR_TARGET"; then
13155 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158 for as_dir in $PATH
13161 test -z "$as_dir" && as_dir=.
13162 for ac_exec_ext in '' $ac_executable_extensions; do
13163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13164 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13165 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13174 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13175 if test -n "$CC_FOR_TARGET"; then
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13177 $as_echo "$CC_FOR_TARGET" >&6; }
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13180 $as_echo "no
" >&6; }
13187 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13188 for ncn_progname in cc gcc; do
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13190 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13191 if test -x $with_build_time_tools/${ncn_progname}; then
13192 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13194 $as_echo "yes" >&6; }
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13198 $as_echo "no
" >&6; }
13203 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13204 for ncn_progname in cc gcc; do
13205 if test -n "$ncn_target_tool_prefix"; then
13206 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13207 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13209 $as_echo_n "checking
for $ac_word...
" >&6; }
13210 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13211 $as_echo_n "(cached
) " >&6
13213 if test -n "$CC_FOR_TARGET"; then
13214 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217 for as_dir in $PATH
13220 test -z "$as_dir" && as_dir=.
13221 for ac_exec_ext in '' $ac_executable_extensions; do
13222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13223 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13224 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13233 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13234 if test -n "$CC_FOR_TARGET"; then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13236 $as_echo "$CC_FOR_TARGET" >&6; }
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13239 $as_echo "no
" >&6; }
13244 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13246 set dummy ${ncn_progname}; ac_word=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13248 $as_echo_n "checking
for $ac_word...
" >&6; }
13249 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13250 $as_echo_n "(cached
) " >&6
13252 if test -n "$CC_FOR_TARGET"; then
13253 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13262 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13272 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13273 if test -n "$CC_FOR_TARGET"; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13275 $as_echo "$CC_FOR_TARGET" >&6; }
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13278 $as_echo "no
" >&6; }
13283 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13287 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13289 if test $build = $target ; then
13292 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13295 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13300 if test -n "$CXX_FOR_TARGET"; then
13301 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13302 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13303 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13306 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13307 for ncn_progname in c++ g++ cxx gxx; do
13308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13309 set dummy ${ncn_progname}; ac_word=$2
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13311 $as_echo_n "checking
for $ac_word...
" >&6; }
13312 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13313 $as_echo_n "(cached
) " >&6
13315 if test -n "$CXX_FOR_TARGET"; then
13316 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319 for as_dir in $PATH
13322 test -z "$as_dir" && as_dir=.
13323 for ac_exec_ext in '' $ac_executable_extensions; do
13324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13325 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13326 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13335 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13336 if test -n "$CXX_FOR_TARGET"; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13338 $as_echo "$CXX_FOR_TARGET" >&6; }
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13341 $as_echo "no
" >&6; }
13348 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13349 for ncn_progname in c++ g++ cxx gxx; do
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13351 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13352 if test -x $with_build_time_tools/${ncn_progname}; then
13353 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13355 $as_echo "yes" >&6; }
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13359 $as_echo "no
" >&6; }
13364 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13365 for ncn_progname in c++ g++ cxx gxx; do
13366 if test -n "$ncn_target_tool_prefix"; then
13367 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13368 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13370 $as_echo_n "checking
for $ac_word...
" >&6; }
13371 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13372 $as_echo_n "(cached
) " >&6
13374 if test -n "$CXX_FOR_TARGET"; then
13375 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13378 for as_dir in $PATH
13381 test -z "$as_dir" && as_dir=.
13382 for ac_exec_ext in '' $ac_executable_extensions; do
13383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13384 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13385 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13394 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13395 if test -n "$CXX_FOR_TARGET"; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13397 $as_echo "$CXX_FOR_TARGET" >&6; }
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13400 $as_echo "no
" >&6; }
13405 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13407 set dummy ${ncn_progname}; ac_word=$2
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13409 $as_echo_n "checking
for $ac_word...
" >&6; }
13410 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13411 $as_echo_n "(cached
) " >&6
13413 if test -n "$CXX_FOR_TARGET"; then
13414 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417 for as_dir in $PATH
13420 test -z "$as_dir" && as_dir=.
13421 for ac_exec_ext in '' $ac_executable_extensions; do
13422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13423 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13424 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13433 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13434 if test -n "$CXX_FOR_TARGET"; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13436 $as_echo "$CXX_FOR_TARGET" >&6; }
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13439 $as_echo "no
" >&6; }
13444 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13448 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13449 set dummy c++ g++ cxx gxx
13450 if test $build = $target ; then
13451 CXX_FOR_TARGET="$2"
13453 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13456 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13461 if test -n "$GCC_FOR_TARGET"; then
13462 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13463 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13464 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13467 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13468 for ncn_progname in gcc; do
13469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13470 set dummy ${ncn_progname}; ac_word=$2
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13472 $as_echo_n "checking
for $ac_word...
" >&6; }
13473 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13474 $as_echo_n "(cached
) " >&6
13476 if test -n "$GCC_FOR_TARGET"; then
13477 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480 for as_dir in $PATH
13483 test -z "$as_dir" && as_dir=.
13484 for ac_exec_ext in '' $ac_executable_extensions; do
13485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13486 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13487 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13496 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13497 if test -n "$GCC_FOR_TARGET"; then
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13499 $as_echo "$GCC_FOR_TARGET" >&6; }
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13502 $as_echo "no
" >&6; }
13509 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13510 for ncn_progname in gcc; do
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13512 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13513 if test -x $with_build_time_tools/${ncn_progname}; then
13514 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13516 $as_echo "yes" >&6; }
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13520 $as_echo "no
" >&6; }
13525 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13526 for ncn_progname in gcc; do
13527 if test -n "$ncn_target_tool_prefix"; then
13528 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13529 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13531 $as_echo_n "checking
for $ac_word...
" >&6; }
13532 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13533 $as_echo_n "(cached
) " >&6
13535 if test -n "$GCC_FOR_TARGET"; then
13536 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13539 for as_dir in $PATH
13542 test -z "$as_dir" && as_dir=.
13543 for ac_exec_ext in '' $ac_executable_extensions; do
13544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13545 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13546 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13555 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13556 if test -n "$GCC_FOR_TARGET"; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13558 $as_echo "$GCC_FOR_TARGET" >&6; }
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13561 $as_echo "no
" >&6; }
13566 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13568 set dummy ${ncn_progname}; ac_word=$2
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13570 $as_echo_n "checking
for $ac_word...
" >&6; }
13571 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13572 $as_echo_n "(cached
) " >&6
13574 if test -n "$GCC_FOR_TARGET"; then
13575 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13581 test -z "$as_dir" && as_dir=.
13582 for ac_exec_ext in '' $ac_executable_extensions; do
13583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13584 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13585 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13594 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13595 if test -n "$GCC_FOR_TARGET"; then
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13597 $as_echo "$GCC_FOR_TARGET" >&6; }
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13600 $as_echo "no
" >&6; }
13605 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13609 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13610 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13612 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13617 if test -n "$GFORTRAN_FOR_TARGET"; then
13618 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13619 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13620 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13623 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13624 for ncn_progname in gfortran; do
13625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13626 set dummy ${ncn_progname}; ac_word=$2
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13628 $as_echo_n "checking
for $ac_word...
" >&6; }
13629 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13630 $as_echo_n "(cached
) " >&6
13632 if test -n "$GFORTRAN_FOR_TARGET"; then
13633 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13636 for as_dir in $PATH
13639 test -z "$as_dir" && as_dir=.
13640 for ac_exec_ext in '' $ac_executable_extensions; do
13641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13642 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13643 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13652 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13653 if test -n "$GFORTRAN_FOR_TARGET"; then
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13655 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13658 $as_echo "no
" >&6; }
13665 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13666 for ncn_progname in gfortran; do
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13668 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13669 if test -x $with_build_time_tools/${ncn_progname}; then
13670 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13672 $as_echo "yes" >&6; }
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13676 $as_echo "no
" >&6; }
13681 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13682 for ncn_progname in gfortran; do
13683 if test -n "$ncn_target_tool_prefix"; then
13684 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13685 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13687 $as_echo_n "checking
for $ac_word...
" >&6; }
13688 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13689 $as_echo_n "(cached
) " >&6
13691 if test -n "$GFORTRAN_FOR_TARGET"; then
13692 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13695 for as_dir in $PATH
13698 test -z "$as_dir" && as_dir=.
13699 for ac_exec_ext in '' $ac_executable_extensions; do
13700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13701 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13702 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13711 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13712 if test -n "$GFORTRAN_FOR_TARGET"; then
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13714 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13717 $as_echo "no
" >&6; }
13722 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13724 set dummy ${ncn_progname}; ac_word=$2
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13726 $as_echo_n "checking
for $ac_word...
" >&6; }
13727 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13728 $as_echo_n "(cached
) " >&6
13730 if test -n "$GFORTRAN_FOR_TARGET"; then
13731 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13737 test -z "$as_dir" && as_dir=.
13738 for ac_exec_ext in '' $ac_executable_extensions; do
13739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13740 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13741 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13750 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13751 if test -n "$GFORTRAN_FOR_TARGET"; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13753 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13756 $as_echo "no
" >&6; }
13761 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13765 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13767 if test $build = $target ; then
13768 GFORTRAN_FOR_TARGET="$2"
13770 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13773 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13778 if test -n "$GOC_FOR_TARGET"; then
13779 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13780 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13781 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13784 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13785 for ncn_progname in gccgo; do
13786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13787 set dummy ${ncn_progname}; ac_word=$2
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13789 $as_echo_n "checking
for $ac_word...
" >&6; }
13790 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13791 $as_echo_n "(cached
) " >&6
13793 if test -n "$GOC_FOR_TARGET"; then
13794 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797 for as_dir in $PATH
13800 test -z "$as_dir" && as_dir=.
13801 for ac_exec_ext in '' $ac_executable_extensions; do
13802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13803 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13804 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13813 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13814 if test -n "$GOC_FOR_TARGET"; then
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13816 $as_echo "$GOC_FOR_TARGET" >&6; }
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13819 $as_echo "no
" >&6; }
13826 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13827 for ncn_progname in gccgo; do
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13829 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13830 if test -x $with_build_time_tools/${ncn_progname}; then
13831 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13833 $as_echo "yes" >&6; }
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13837 $as_echo "no
" >&6; }
13842 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13843 for ncn_progname in gccgo; do
13844 if test -n "$ncn_target_tool_prefix"; then
13845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13846 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13848 $as_echo_n "checking
for $ac_word...
" >&6; }
13849 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13850 $as_echo_n "(cached
) " >&6
13852 if test -n "$GOC_FOR_TARGET"; then
13853 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856 for as_dir in $PATH
13859 test -z "$as_dir" && as_dir=.
13860 for ac_exec_ext in '' $ac_executable_extensions; do
13861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13862 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13863 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13872 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13873 if test -n "$GOC_FOR_TARGET"; then
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13875 $as_echo "$GOC_FOR_TARGET" >&6; }
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13878 $as_echo "no
" >&6; }
13883 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13885 set dummy ${ncn_progname}; ac_word=$2
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13887 $as_echo_n "checking
for $ac_word...
" >&6; }
13888 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13889 $as_echo_n "(cached
) " >&6
13891 if test -n "$GOC_FOR_TARGET"; then
13892 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13895 for as_dir in $PATH
13898 test -z "$as_dir" && as_dir=.
13899 for ac_exec_ext in '' $ac_executable_extensions; do
13900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13901 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13902 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13911 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13912 if test -n "$GOC_FOR_TARGET"; then
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13914 $as_echo "$GOC_FOR_TARGET" >&6; }
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13917 $as_echo "no
" >&6; }
13922 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13926 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13928 if test $build = $target ; then
13929 GOC_FOR_TARGET="$2"
13931 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13934 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13939 if test -n "$GDC_FOR_TARGET"; then
13940 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13941 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13942 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13945 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13946 for ncn_progname in gdc; do
13947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13948 set dummy ${ncn_progname}; ac_word=$2
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13950 $as_echo_n "checking
for $ac_word...
" >&6; }
13951 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13952 $as_echo_n "(cached
) " >&6
13954 if test -n "$GDC_FOR_TARGET"; then
13955 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13958 for as_dir in $PATH
13961 test -z "$as_dir" && as_dir=.
13962 for ac_exec_ext in '' $ac_executable_extensions; do
13963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13964 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13965 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13974 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13975 if test -n "$GDC_FOR_TARGET"; then
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13977 $as_echo "$GDC_FOR_TARGET" >&6; }
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13980 $as_echo "no
" >&6; }
13987 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13988 for ncn_progname in gdc; do
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13990 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13991 if test -x $with_build_time_tools/${ncn_progname}; then
13992 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13994 $as_echo "yes" >&6; }
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13998 $as_echo "no
" >&6; }
14003 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14004 for ncn_progname in gdc; do
14005 if test -n "$ncn_target_tool_prefix"; then
14006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14007 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14009 $as_echo_n "checking
for $ac_word...
" >&6; }
14010 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14011 $as_echo_n "(cached
) " >&6
14013 if test -n "$GDC_FOR_TARGET"; then
14014 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14020 test -z "$as_dir" && as_dir=.
14021 for ac_exec_ext in '' $ac_executable_extensions; do
14022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14023 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14024 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14033 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14034 if test -n "$GDC_FOR_TARGET"; then
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14036 $as_echo "$GDC_FOR_TARGET" >&6; }
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14039 $as_echo "no
" >&6; }
14044 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14046 set dummy ${ncn_progname}; ac_word=$2
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14048 $as_echo_n "checking
for $ac_word...
" >&6; }
14049 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14050 $as_echo_n "(cached
) " >&6
14052 if test -n "$GDC_FOR_TARGET"; then
14053 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056 for as_dir in $PATH
14059 test -z "$as_dir" && as_dir=.
14060 for ac_exec_ext in '' $ac_executable_extensions; do
14061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14062 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14063 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14072 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14073 if test -n "$GDC_FOR_TARGET"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14075 $as_echo "$GDC_FOR_TARGET" >&6; }
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14078 $as_echo "no
" >&6; }
14083 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14087 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14089 if test $build = $target ; then
14090 GDC_FOR_TARGET="$2"
14092 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14095 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14100 if test -n "$GM2_FOR_TARGET"; then
14101 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14102 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14103 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14106 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14107 for ncn_progname in gm2; do
14108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14109 set dummy ${ncn_progname}; ac_word=$2
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14111 $as_echo_n "checking
for $ac_word...
" >&6; }
14112 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14113 $as_echo_n "(cached
) " >&6
14115 if test -n "$GM2_FOR_TARGET"; then
14116 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14119 for as_dir in $PATH
14122 test -z "$as_dir" && as_dir=.
14123 for ac_exec_ext in '' $ac_executable_extensions; do
14124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14125 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14126 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14135 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14136 if test -n "$GM2_FOR_TARGET"; then
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14138 $as_echo "$GM2_FOR_TARGET" >&6; }
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14141 $as_echo "no
" >&6; }
14148 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14149 for ncn_progname in gm2; do
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14151 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14152 if test -x $with_build_time_tools/${ncn_progname}; then
14153 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14155 $as_echo "yes" >&6; }
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14159 $as_echo "no
" >&6; }
14164 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14165 for ncn_progname in gm2; do
14166 if test -n "$ncn_target_tool_prefix"; then
14167 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14168 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14170 $as_echo_n "checking
for $ac_word...
" >&6; }
14171 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14172 $as_echo_n "(cached
) " >&6
14174 if test -n "$GM2_FOR_TARGET"; then
14175 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178 for as_dir in $PATH
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14184 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14185 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14194 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14195 if test -n "$GM2_FOR_TARGET"; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14197 $as_echo "$GM2_FOR_TARGET" >&6; }
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14200 $as_echo "no
" >&6; }
14205 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14207 set dummy ${ncn_progname}; ac_word=$2
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14209 $as_echo_n "checking
for $ac_word...
" >&6; }
14210 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14211 $as_echo_n "(cached
) " >&6
14213 if test -n "$GM2_FOR_TARGET"; then
14214 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14217 for as_dir in $PATH
14220 test -z "$as_dir" && as_dir=.
14221 for ac_exec_ext in '' $ac_executable_extensions; do
14222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14223 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14224 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14233 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14234 if test -n "$GM2_FOR_TARGET"; then
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14236 $as_echo "$GM2_FOR_TARGET" >&6; }
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14239 $as_echo "no
" >&6; }
14244 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14248 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14250 if test $build = $target ; then
14251 GM2_FOR_TARGET="$2"
14253 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14256 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14261 cat > conftest.c << \EOF
14266 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14267 have_gcc_for_target=yes
14269 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14270 have_gcc_for_target=no
14277 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14278 if test -n "$with_build_time_tools"; then
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14280 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14281 if test -x $with_build_time_tools/ar; then
14282 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14283 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14285 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14288 $as_echo "no
" >&6; }
14290 elif test $build != $host && test $have_gcc_for_target = yes; then
14291 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14292 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14293 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14296 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14297 # Extract the first word of "ar", so it can be a program name with args.
14298 set dummy ar; ac_word=$2
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14300 $as_echo_n "checking
for $ac_word...
" >&6; }
14301 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14302 $as_echo_n "(cached
) " >&6
14304 case $AR_FOR_TARGET in
14306 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14310 for as_dir in $gcc_cv_tool_dirs
14313 test -z "$as_dir" && as_dir=.
14314 for ac_exec_ext in '' $ac_executable_extensions; do
14315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14316 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14317 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14327 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14328 if test -n "$AR_FOR_TARGET"; then
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14330 $as_echo "$AR_FOR_TARGET" >&6; }
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14333 $as_echo "no
" >&6; }
14338 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14341 if test -n "$AR_FOR_TARGET"; then
14342 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14343 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14344 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14347 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14348 for ncn_progname in ar; do
14349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14350 set dummy ${ncn_progname}; ac_word=$2
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14352 $as_echo_n "checking
for $ac_word...
" >&6; }
14353 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14354 $as_echo_n "(cached
) " >&6
14356 if test -n "$AR_FOR_TARGET"; then
14357 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360 for as_dir in $PATH
14363 test -z "$as_dir" && as_dir=.
14364 for ac_exec_ext in '' $ac_executable_extensions; do
14365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14366 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14367 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14376 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14377 if test -n "$AR_FOR_TARGET"; then
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14379 $as_echo "$AR_FOR_TARGET" >&6; }
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14382 $as_echo "no
" >&6; }
14389 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14390 for ncn_progname in ar; do
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14392 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14393 if test -x $with_build_time_tools/${ncn_progname}; then
14394 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14396 $as_echo "yes" >&6; }
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14400 $as_echo "no
" >&6; }
14405 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14406 for ncn_progname in ar; do
14407 if test -n "$ncn_target_tool_prefix"; then
14408 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14409 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14411 $as_echo_n "checking
for $ac_word...
" >&6; }
14412 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14413 $as_echo_n "(cached
) " >&6
14415 if test -n "$AR_FOR_TARGET"; then
14416 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419 for as_dir in $PATH
14422 test -z "$as_dir" && as_dir=.
14423 for ac_exec_ext in '' $ac_executable_extensions; do
14424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14425 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14426 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14435 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14436 if test -n "$AR_FOR_TARGET"; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14438 $as_echo "$AR_FOR_TARGET" >&6; }
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14441 $as_echo "no
" >&6; }
14446 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14448 set dummy ${ncn_progname}; ac_word=$2
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14450 $as_echo_n "checking
for $ac_word...
" >&6; }
14451 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14452 $as_echo_n "(cached
) " >&6
14454 if test -n "$AR_FOR_TARGET"; then
14455 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14458 for as_dir in $PATH
14461 test -z "$as_dir" && as_dir=.
14462 for ac_exec_ext in '' $ac_executable_extensions; do
14463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14464 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14465 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14474 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14475 if test -n "$AR_FOR_TARGET"; then
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14477 $as_echo "$AR_FOR_TARGET" >&6; }
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14480 $as_echo "no
" >&6; }
14485 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14489 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14491 if test $build = $target ; then
14494 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14497 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14501 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14507 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14508 if test -n "$with_build_time_tools"; then
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14510 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14511 if test -x $with_build_time_tools/as; then
14512 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14513 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14515 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14518 $as_echo "no
" >&6; }
14520 elif test $build != $host && test $have_gcc_for_target = yes; then
14521 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14522 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14523 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14526 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14527 # Extract the first word of "as
", so it can be a program name with args.
14528 set dummy as; ac_word=$2
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14530 $as_echo_n "checking
for $ac_word...
" >&6; }
14531 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14532 $as_echo_n "(cached
) " >&6
14534 case $AS_FOR_TARGET in
14536 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14540 for as_dir in $gcc_cv_tool_dirs
14543 test -z "$as_dir" && as_dir=.
14544 for ac_exec_ext in '' $ac_executable_extensions; do
14545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14546 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14547 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14557 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14558 if test -n "$AS_FOR_TARGET"; then
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14560 $as_echo "$AS_FOR_TARGET" >&6; }
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14563 $as_echo "no
" >&6; }
14568 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14571 if test -n "$AS_FOR_TARGET"; then
14572 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14573 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14574 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14577 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14578 for ncn_progname in as; do
14579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14580 set dummy ${ncn_progname}; ac_word=$2
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14582 $as_echo_n "checking
for $ac_word...
" >&6; }
14583 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14584 $as_echo_n "(cached
) " >&6
14586 if test -n "$AS_FOR_TARGET"; then
14587 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14590 for as_dir in $PATH
14593 test -z "$as_dir" && as_dir=.
14594 for ac_exec_ext in '' $ac_executable_extensions; do
14595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14596 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14597 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14606 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14607 if test -n "$AS_FOR_TARGET"; then
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14609 $as_echo "$AS_FOR_TARGET" >&6; }
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14612 $as_echo "no
" >&6; }
14619 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14620 for ncn_progname in as; do
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14622 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14623 if test -x $with_build_time_tools/${ncn_progname}; then
14624 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14626 $as_echo "yes" >&6; }
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14630 $as_echo "no
" >&6; }
14635 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14636 for ncn_progname in as; do
14637 if test -n "$ncn_target_tool_prefix"; then
14638 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14639 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14641 $as_echo_n "checking
for $ac_word...
" >&6; }
14642 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14643 $as_echo_n "(cached
) " >&6
14645 if test -n "$AS_FOR_TARGET"; then
14646 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14649 for as_dir in $PATH
14652 test -z "$as_dir" && as_dir=.
14653 for ac_exec_ext in '' $ac_executable_extensions; do
14654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14655 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14656 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14665 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14666 if test -n "$AS_FOR_TARGET"; then
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14668 $as_echo "$AS_FOR_TARGET" >&6; }
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14671 $as_echo "no
" >&6; }
14676 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14678 set dummy ${ncn_progname}; ac_word=$2
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14680 $as_echo_n "checking
for $ac_word...
" >&6; }
14681 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14682 $as_echo_n "(cached
) " >&6
14684 if test -n "$AS_FOR_TARGET"; then
14685 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14688 for as_dir in $PATH
14691 test -z "$as_dir" && as_dir=.
14692 for ac_exec_ext in '' $ac_executable_extensions; do
14693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14694 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14695 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14704 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14705 if test -n "$AS_FOR_TARGET"; then
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14707 $as_echo "$AS_FOR_TARGET" >&6; }
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14710 $as_echo "no
" >&6; }
14715 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14719 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14721 if test $build = $target ; then
14724 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14727 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14731 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14737 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14738 if test -n "$with_build_time_tools"; then
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14740 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14741 if test -x $with_build_time_tools/dlltool; then
14742 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14743 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14745 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14748 $as_echo "no
" >&6; }
14750 elif test $build != $host && test $have_gcc_for_target = yes; then
14751 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14752 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14753 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14756 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14757 # Extract the first word of "dlltool
", so it can be a program name with args.
14758 set dummy dlltool; ac_word=$2
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14760 $as_echo_n "checking
for $ac_word...
" >&6; }
14761 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14762 $as_echo_n "(cached
) " >&6
14764 case $DLLTOOL_FOR_TARGET in
14766 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14770 for as_dir in $gcc_cv_tool_dirs
14773 test -z "$as_dir" && as_dir=.
14774 for ac_exec_ext in '' $ac_executable_extensions; do
14775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14776 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14777 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14787 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14788 if test -n "$DLLTOOL_FOR_TARGET"; then
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14790 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14793 $as_echo "no
" >&6; }
14798 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14801 if test -n "$DLLTOOL_FOR_TARGET"; then
14802 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14803 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14804 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14807 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14808 for ncn_progname in dlltool; do
14809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14810 set dummy ${ncn_progname}; ac_word=$2
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14812 $as_echo_n "checking
for $ac_word...
" >&6; }
14813 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14814 $as_echo_n "(cached
) " >&6
14816 if test -n "$DLLTOOL_FOR_TARGET"; then
14817 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14820 for as_dir in $PATH
14823 test -z "$as_dir" && as_dir=.
14824 for ac_exec_ext in '' $ac_executable_extensions; do
14825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14826 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14827 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14836 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14837 if test -n "$DLLTOOL_FOR_TARGET"; then
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14839 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14842 $as_echo "no
" >&6; }
14849 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14850 for ncn_progname in dlltool; do
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14852 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14853 if test -x $with_build_time_tools/${ncn_progname}; then
14854 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14856 $as_echo "yes" >&6; }
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14860 $as_echo "no
" >&6; }
14865 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14866 for ncn_progname in dlltool; do
14867 if test -n "$ncn_target_tool_prefix"; then
14868 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14869 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14871 $as_echo_n "checking
for $ac_word...
" >&6; }
14872 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14873 $as_echo_n "(cached
) " >&6
14875 if test -n "$DLLTOOL_FOR_TARGET"; then
14876 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14879 for as_dir in $PATH
14882 test -z "$as_dir" && as_dir=.
14883 for ac_exec_ext in '' $ac_executable_extensions; do
14884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14885 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14886 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14895 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14896 if test -n "$DLLTOOL_FOR_TARGET"; then
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14898 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14901 $as_echo "no
" >&6; }
14906 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14908 set dummy ${ncn_progname}; ac_word=$2
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14910 $as_echo_n "checking
for $ac_word...
" >&6; }
14911 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14912 $as_echo_n "(cached
) " >&6
14914 if test -n "$DLLTOOL_FOR_TARGET"; then
14915 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14918 for as_dir in $PATH
14921 test -z "$as_dir" && as_dir=.
14922 for ac_exec_ext in '' $ac_executable_extensions; do
14923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14924 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14925 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14934 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14935 if test -n "$DLLTOOL_FOR_TARGET"; then
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14937 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14940 $as_echo "no
" >&6; }
14945 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14949 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14951 if test $build = $target ; then
14952 DLLTOOL_FOR_TARGET="$2"
14954 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14957 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14961 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14967 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14968 if test -n "$with_build_time_tools"; then
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14970 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14971 if test -x $with_build_time_tools/dsymutil; then
14972 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14973 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14975 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14978 $as_echo "no
" >&6; }
14980 elif test $build != $host && test $have_gcc_for_target = yes; then
14981 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14982 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14983 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14986 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14987 # Extract the first word of "dsymutil
", so it can be a program name with args.
14988 set dummy dsymutil; ac_word=$2
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14990 $as_echo_n "checking
for $ac_word...
" >&6; }
14991 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14992 $as_echo_n "(cached
) " >&6
14994 case $DSYMUTIL_FOR_TARGET in
14996 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000 for as_dir in $gcc_cv_tool_dirs
15003 test -z "$as_dir" && as_dir=.
15004 for ac_exec_ext in '' $ac_executable_extensions; do
15005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15006 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15007 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15017 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15018 if test -n "$DSYMUTIL_FOR_TARGET"; then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15020 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15023 $as_echo "no
" >&6; }
15028 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15031 if test -n "$DSYMUTIL_FOR_TARGET"; then
15032 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15033 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15034 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15037 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15038 for ncn_progname in dsymutil; do
15039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15040 set dummy ${ncn_progname}; ac_word=$2
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15042 $as_echo_n "checking
for $ac_word...
" >&6; }
15043 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15044 $as_echo_n "(cached
) " >&6
15046 if test -n "$DSYMUTIL_FOR_TARGET"; then
15047 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15050 for as_dir in $PATH
15053 test -z "$as_dir" && as_dir=.
15054 for ac_exec_ext in '' $ac_executable_extensions; do
15055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15056 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15057 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15066 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15067 if test -n "$DSYMUTIL_FOR_TARGET"; then
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15069 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15072 $as_echo "no
" >&6; }
15079 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15080 for ncn_progname in dsymutil; do
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15082 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15083 if test -x $with_build_time_tools/${ncn_progname}; then
15084 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15086 $as_echo "yes" >&6; }
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15090 $as_echo "no
" >&6; }
15095 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15096 for ncn_progname in dsymutil; do
15097 if test -n "$ncn_target_tool_prefix"; then
15098 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15099 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15101 $as_echo_n "checking
for $ac_word...
" >&6; }
15102 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15103 $as_echo_n "(cached
) " >&6
15105 if test -n "$DSYMUTIL_FOR_TARGET"; then
15106 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15109 for as_dir in $PATH
15112 test -z "$as_dir" && as_dir=.
15113 for ac_exec_ext in '' $ac_executable_extensions; do
15114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15115 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15116 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15125 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15126 if test -n "$DSYMUTIL_FOR_TARGET"; then
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15128 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15131 $as_echo "no
" >&6; }
15136 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15138 set dummy ${ncn_progname}; ac_word=$2
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15140 $as_echo_n "checking
for $ac_word...
" >&6; }
15141 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15142 $as_echo_n "(cached
) " >&6
15144 if test -n "$DSYMUTIL_FOR_TARGET"; then
15145 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15148 for as_dir in $PATH
15151 test -z "$as_dir" && as_dir=.
15152 for ac_exec_ext in '' $ac_executable_extensions; do
15153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15154 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15155 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15164 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15165 if test -n "$DSYMUTIL_FOR_TARGET"; then
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15167 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15170 $as_echo "no
" >&6; }
15175 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15179 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15181 if test $build = $target ; then
15182 DSYMUTIL_FOR_TARGET="$2"
15184 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15187 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15191 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15197 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15198 if test -n "$with_build_time_tools"; then
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
15200 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
15201 if test -x $with_build_time_tools/ld; then
15202 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15203 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
15205 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15208 $as_echo "no
" >&6; }
15210 elif test $build != $host && test $have_gcc_for_target = yes; then
15211 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15212 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15213 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15216 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15217 # Extract the first word of "ld
", so it can be a program name with args.
15218 set dummy ld; ac_word=$2
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15220 $as_echo_n "checking
for $ac_word...
" >&6; }
15221 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15222 $as_echo_n "(cached
) " >&6
15224 case $LD_FOR_TARGET in
15226 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15230 for as_dir in $gcc_cv_tool_dirs
15233 test -z "$as_dir" && as_dir=.
15234 for ac_exec_ext in '' $ac_executable_extensions; do
15235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15236 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15237 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15247 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15248 if test -n "$LD_FOR_TARGET"; then
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15250 $as_echo "$LD_FOR_TARGET" >&6; }
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15253 $as_echo "no
" >&6; }
15258 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15261 if test -n "$LD_FOR_TARGET"; then
15262 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15263 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15264 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15267 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15268 for ncn_progname in ld; do
15269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15270 set dummy ${ncn_progname}; ac_word=$2
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15272 $as_echo_n "checking
for $ac_word...
" >&6; }
15273 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15274 $as_echo_n "(cached
) " >&6
15276 if test -n "$LD_FOR_TARGET"; then
15277 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15280 for as_dir in $PATH
15283 test -z "$as_dir" && as_dir=.
15284 for ac_exec_ext in '' $ac_executable_extensions; do
15285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15286 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15287 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15296 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15297 if test -n "$LD_FOR_TARGET"; then
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15299 $as_echo "$LD_FOR_TARGET" >&6; }
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15302 $as_echo "no
" >&6; }
15309 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15310 for ncn_progname in ld; do
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15312 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15313 if test -x $with_build_time_tools/${ncn_progname}; then
15314 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15316 $as_echo "yes" >&6; }
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15320 $as_echo "no
" >&6; }
15325 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15326 for ncn_progname in ld; do
15327 if test -n "$ncn_target_tool_prefix"; then
15328 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15329 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15331 $as_echo_n "checking
for $ac_word...
" >&6; }
15332 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15333 $as_echo_n "(cached
) " >&6
15335 if test -n "$LD_FOR_TARGET"; then
15336 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15339 for as_dir in $PATH
15342 test -z "$as_dir" && as_dir=.
15343 for ac_exec_ext in '' $ac_executable_extensions; do
15344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15345 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15346 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15355 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15356 if test -n "$LD_FOR_TARGET"; then
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15358 $as_echo "$LD_FOR_TARGET" >&6; }
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15361 $as_echo "no
" >&6; }
15366 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15368 set dummy ${ncn_progname}; ac_word=$2
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15370 $as_echo_n "checking
for $ac_word...
" >&6; }
15371 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15372 $as_echo_n "(cached
) " >&6
15374 if test -n "$LD_FOR_TARGET"; then
15375 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15378 for as_dir in $PATH
15381 test -z "$as_dir" && as_dir=.
15382 for ac_exec_ext in '' $ac_executable_extensions; do
15383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15384 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15385 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15394 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15395 if test -n "$LD_FOR_TARGET"; then
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15397 $as_echo "$LD_FOR_TARGET" >&6; }
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15400 $as_echo "no
" >&6; }
15405 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15409 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15411 if test $build = $target ; then
15414 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15417 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15421 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15427 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15428 if test -n "$with_build_time_tools"; then
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15430 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15431 if test -x $with_build_time_tools/lipo; then
15432 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15433 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15435 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15438 $as_echo "no
" >&6; }
15440 elif test $build != $host && test $have_gcc_for_target = yes; then
15441 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15442 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15443 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15446 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15447 # Extract the first word of "lipo
", so it can be a program name with args.
15448 set dummy lipo; ac_word=$2
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15450 $as_echo_n "checking
for $ac_word...
" >&6; }
15451 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15452 $as_echo_n "(cached
) " >&6
15454 case $LIPO_FOR_TARGET in
15456 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15460 for as_dir in $gcc_cv_tool_dirs
15463 test -z "$as_dir" && as_dir=.
15464 for ac_exec_ext in '' $ac_executable_extensions; do
15465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15466 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15467 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15477 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15478 if test -n "$LIPO_FOR_TARGET"; then
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15480 $as_echo "$LIPO_FOR_TARGET" >&6; }
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15483 $as_echo "no
" >&6; }
15488 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15491 if test -n "$LIPO_FOR_TARGET"; then
15492 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15493 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15494 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15497 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15498 for ncn_progname in lipo; do
15499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15500 set dummy ${ncn_progname}; ac_word=$2
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15502 $as_echo_n "checking
for $ac_word...
" >&6; }
15503 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15504 $as_echo_n "(cached
) " >&6
15506 if test -n "$LIPO_FOR_TARGET"; then
15507 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15510 for as_dir in $PATH
15513 test -z "$as_dir" && as_dir=.
15514 for ac_exec_ext in '' $ac_executable_extensions; do
15515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15516 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15526 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15527 if test -n "$LIPO_FOR_TARGET"; then
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15529 $as_echo "$LIPO_FOR_TARGET" >&6; }
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15532 $as_echo "no
" >&6; }
15539 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15540 for ncn_progname in lipo; do
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15542 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15543 if test -x $with_build_time_tools/${ncn_progname}; then
15544 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15546 $as_echo "yes" >&6; }
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15550 $as_echo "no
" >&6; }
15555 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15556 for ncn_progname in lipo; do
15557 if test -n "$ncn_target_tool_prefix"; then
15558 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15559 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15561 $as_echo_n "checking
for $ac_word...
" >&6; }
15562 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15563 $as_echo_n "(cached
) " >&6
15565 if test -n "$LIPO_FOR_TARGET"; then
15566 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15569 for as_dir in $PATH
15572 test -z "$as_dir" && as_dir=.
15573 for ac_exec_ext in '' $ac_executable_extensions; do
15574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15575 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15576 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15585 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15586 if test -n "$LIPO_FOR_TARGET"; then
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15588 $as_echo "$LIPO_FOR_TARGET" >&6; }
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15591 $as_echo "no
" >&6; }
15596 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15598 set dummy ${ncn_progname}; ac_word=$2
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15600 $as_echo_n "checking
for $ac_word...
" >&6; }
15601 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15602 $as_echo_n "(cached
) " >&6
15604 if test -n "$LIPO_FOR_TARGET"; then
15605 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15608 for as_dir in $PATH
15611 test -z "$as_dir" && as_dir=.
15612 for ac_exec_ext in '' $ac_executable_extensions; do
15613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15614 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15615 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15624 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15625 if test -n "$LIPO_FOR_TARGET"; then
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15627 $as_echo "$LIPO_FOR_TARGET" >&6; }
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15630 $as_echo "no
" >&6; }
15635 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15639 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15641 if test $build = $target ; then
15642 LIPO_FOR_TARGET="$2"
15644 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15647 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15651 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15657 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15658 if test -n "$with_build_time_tools"; then
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15660 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15661 if test -x $with_build_time_tools/nm; then
15662 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15663 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15665 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15668 $as_echo "no
" >&6; }
15670 elif test $build != $host && test $have_gcc_for_target = yes; then
15671 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15672 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15673 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15676 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15677 # Extract the first word of "nm
", so it can be a program name with args.
15678 set dummy nm; ac_word=$2
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15680 $as_echo_n "checking
for $ac_word...
" >&6; }
15681 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15682 $as_echo_n "(cached
) " >&6
15684 case $NM_FOR_TARGET in
15686 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15690 for as_dir in $gcc_cv_tool_dirs
15693 test -z "$as_dir" && as_dir=.
15694 for ac_exec_ext in '' $ac_executable_extensions; do
15695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15696 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15697 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15707 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15708 if test -n "$NM_FOR_TARGET"; then
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15710 $as_echo "$NM_FOR_TARGET" >&6; }
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15713 $as_echo "no
" >&6; }
15718 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15721 if test -n "$NM_FOR_TARGET"; then
15722 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15723 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15724 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15727 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15728 for ncn_progname in nm; do
15729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15730 set dummy ${ncn_progname}; ac_word=$2
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15732 $as_echo_n "checking
for $ac_word...
" >&6; }
15733 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15734 $as_echo_n "(cached
) " >&6
15736 if test -n "$NM_FOR_TARGET"; then
15737 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15740 for as_dir in $PATH
15743 test -z "$as_dir" && as_dir=.
15744 for ac_exec_ext in '' $ac_executable_extensions; do
15745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15746 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15747 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15756 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15757 if test -n "$NM_FOR_TARGET"; then
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15759 $as_echo "$NM_FOR_TARGET" >&6; }
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15762 $as_echo "no
" >&6; }
15769 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15770 for ncn_progname in nm; do
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15772 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15773 if test -x $with_build_time_tools/${ncn_progname}; then
15774 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15776 $as_echo "yes" >&6; }
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15780 $as_echo "no
" >&6; }
15785 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15786 for ncn_progname in nm; do
15787 if test -n "$ncn_target_tool_prefix"; then
15788 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15789 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15791 $as_echo_n "checking
for $ac_word...
" >&6; }
15792 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15793 $as_echo_n "(cached
) " >&6
15795 if test -n "$NM_FOR_TARGET"; then
15796 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15799 for as_dir in $PATH
15802 test -z "$as_dir" && as_dir=.
15803 for ac_exec_ext in '' $ac_executable_extensions; do
15804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15805 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15806 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15815 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15816 if test -n "$NM_FOR_TARGET"; then
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15818 $as_echo "$NM_FOR_TARGET" >&6; }
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15821 $as_echo "no
" >&6; }
15826 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15828 set dummy ${ncn_progname}; ac_word=$2
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15830 $as_echo_n "checking
for $ac_word...
" >&6; }
15831 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15832 $as_echo_n "(cached
) " >&6
15834 if test -n "$NM_FOR_TARGET"; then
15835 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15838 for as_dir in $PATH
15841 test -z "$as_dir" && as_dir=.
15842 for ac_exec_ext in '' $ac_executable_extensions; do
15843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15844 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15845 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15854 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15855 if test -n "$NM_FOR_TARGET"; then
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15857 $as_echo "$NM_FOR_TARGET" >&6; }
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15860 $as_echo "no
" >&6; }
15865 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15869 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15871 if test $build = $target ; then
15874 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15877 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15881 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15887 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15888 if test -n "$with_build_time_tools"; then
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15890 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15891 if test -x $with_build_time_tools/objcopy; then
15892 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15893 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15895 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15898 $as_echo "no
" >&6; }
15900 elif test $build != $host && test $have_gcc_for_target = yes; then
15901 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15902 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15903 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15906 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15907 # Extract the first word of "objcopy
", so it can be a program name with args.
15908 set dummy objcopy; ac_word=$2
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15910 $as_echo_n "checking
for $ac_word...
" >&6; }
15911 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15912 $as_echo_n "(cached
) " >&6
15914 case $OBJCOPY_FOR_TARGET in
15916 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15920 for as_dir in $gcc_cv_tool_dirs
15923 test -z "$as_dir" && as_dir=.
15924 for ac_exec_ext in '' $ac_executable_extensions; do
15925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15926 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15927 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15937 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15938 if test -n "$OBJCOPY_FOR_TARGET"; then
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15940 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15943 $as_echo "no
" >&6; }
15948 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15951 if test -n "$OBJCOPY_FOR_TARGET"; then
15952 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15953 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15954 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15957 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15958 for ncn_progname in objcopy; do
15959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15960 set dummy ${ncn_progname}; ac_word=$2
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15962 $as_echo_n "checking
for $ac_word...
" >&6; }
15963 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15964 $as_echo_n "(cached
) " >&6
15966 if test -n "$OBJCOPY_FOR_TARGET"; then
15967 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15970 for as_dir in $PATH
15973 test -z "$as_dir" && as_dir=.
15974 for ac_exec_ext in '' $ac_executable_extensions; do
15975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15976 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15977 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15986 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15987 if test -n "$OBJCOPY_FOR_TARGET"; then
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15989 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15992 $as_echo "no
" >&6; }
15999 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16000 for ncn_progname in objcopy; do
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16002 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16003 if test -x $with_build_time_tools/${ncn_progname}; then
16004 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16006 $as_echo "yes" >&6; }
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16010 $as_echo "no
" >&6; }
16015 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16016 for ncn_progname in objcopy; do
16017 if test -n "$ncn_target_tool_prefix"; then
16018 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16019 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16021 $as_echo_n "checking
for $ac_word...
" >&6; }
16022 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16023 $as_echo_n "(cached
) " >&6
16025 if test -n "$OBJCOPY_FOR_TARGET"; then
16026 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16029 for as_dir in $PATH
16032 test -z "$as_dir" && as_dir=.
16033 for ac_exec_ext in '' $ac_executable_extensions; do
16034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16035 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16036 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16045 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16046 if test -n "$OBJCOPY_FOR_TARGET"; then
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16048 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16051 $as_echo "no
" >&6; }
16056 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16058 set dummy ${ncn_progname}; ac_word=$2
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16060 $as_echo_n "checking
for $ac_word...
" >&6; }
16061 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16062 $as_echo_n "(cached
) " >&6
16064 if test -n "$OBJCOPY_FOR_TARGET"; then
16065 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16068 for as_dir in $PATH
16071 test -z "$as_dir" && as_dir=.
16072 for ac_exec_ext in '' $ac_executable_extensions; do
16073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16074 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16075 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16084 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16085 if test -n "$OBJCOPY_FOR_TARGET"; then
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16087 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16090 $as_echo "no
" >&6; }
16095 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16099 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16101 if test $build = $target ; then
16102 OBJCOPY_FOR_TARGET="$2"
16104 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16107 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16111 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16117 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16118 if test -n "$with_build_time_tools"; then
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
16120 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
16121 if test -x $with_build_time_tools/objdump; then
16122 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16123 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16125 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16128 $as_echo "no
" >&6; }
16130 elif test $build != $host && test $have_gcc_for_target = yes; then
16131 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16132 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16133 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16136 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16137 # Extract the first word of "objdump
", so it can be a program name with args.
16138 set dummy objdump; ac_word=$2
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16140 $as_echo_n "checking
for $ac_word...
" >&6; }
16141 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16142 $as_echo_n "(cached
) " >&6
16144 case $OBJDUMP_FOR_TARGET in
16146 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16150 for as_dir in $gcc_cv_tool_dirs
16153 test -z "$as_dir" && as_dir=.
16154 for ac_exec_ext in '' $ac_executable_extensions; do
16155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16156 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16167 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16168 if test -n "$OBJDUMP_FOR_TARGET"; then
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16170 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16173 $as_echo "no
" >&6; }
16178 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16181 if test -n "$OBJDUMP_FOR_TARGET"; then
16182 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16183 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16184 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16187 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16188 for ncn_progname in objdump; do
16189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16190 set dummy ${ncn_progname}; ac_word=$2
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16192 $as_echo_n "checking
for $ac_word...
" >&6; }
16193 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16194 $as_echo_n "(cached
) " >&6
16196 if test -n "$OBJDUMP_FOR_TARGET"; then
16197 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16200 for as_dir in $PATH
16203 test -z "$as_dir" && as_dir=.
16204 for ac_exec_ext in '' $ac_executable_extensions; do
16205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16206 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16207 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16216 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16217 if test -n "$OBJDUMP_FOR_TARGET"; then
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16219 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16222 $as_echo "no
" >&6; }
16229 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16230 for ncn_progname in objdump; do
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16232 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16233 if test -x $with_build_time_tools/${ncn_progname}; then
16234 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16236 $as_echo "yes" >&6; }
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16240 $as_echo "no
" >&6; }
16245 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16246 for ncn_progname in objdump; do
16247 if test -n "$ncn_target_tool_prefix"; then
16248 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16249 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16251 $as_echo_n "checking
for $ac_word...
" >&6; }
16252 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16253 $as_echo_n "(cached
) " >&6
16255 if test -n "$OBJDUMP_FOR_TARGET"; then
16256 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16259 for as_dir in $PATH
16262 test -z "$as_dir" && as_dir=.
16263 for ac_exec_ext in '' $ac_executable_extensions; do
16264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16265 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16266 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16275 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16276 if test -n "$OBJDUMP_FOR_TARGET"; then
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16278 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16281 $as_echo "no
" >&6; }
16286 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16288 set dummy ${ncn_progname}; ac_word=$2
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16290 $as_echo_n "checking
for $ac_word...
" >&6; }
16291 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16292 $as_echo_n "(cached
) " >&6
16294 if test -n "$OBJDUMP_FOR_TARGET"; then
16295 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16298 for as_dir in $PATH
16301 test -z "$as_dir" && as_dir=.
16302 for ac_exec_ext in '' $ac_executable_extensions; do
16303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16304 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16305 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16314 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16315 if test -n "$OBJDUMP_FOR_TARGET"; then
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16317 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16320 $as_echo "no
" >&6; }
16325 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16329 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16331 if test $build = $target ; then
16332 OBJDUMP_FOR_TARGET="$2"
16334 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16337 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16341 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16347 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16348 if test -n "$with_build_time_tools"; then
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16350 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16351 if test -x $with_build_time_tools/otool; then
16352 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16353 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16355 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16358 $as_echo "no
" >&6; }
16360 elif test $build != $host && test $have_gcc_for_target = yes; then
16361 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16362 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16363 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16366 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16367 # Extract the first word of "otool
", so it can be a program name with args.
16368 set dummy otool; ac_word=$2
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16370 $as_echo_n "checking
for $ac_word...
" >&6; }
16371 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16372 $as_echo_n "(cached
) " >&6
16374 case $OTOOL_FOR_TARGET in
16376 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16380 for as_dir in $gcc_cv_tool_dirs
16383 test -z "$as_dir" && as_dir=.
16384 for ac_exec_ext in '' $ac_executable_extensions; do
16385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16386 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16387 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16397 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16398 if test -n "$OTOOL_FOR_TARGET"; then
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16400 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16403 $as_echo "no
" >&6; }
16408 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16411 if test -n "$OTOOL_FOR_TARGET"; then
16412 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16413 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16414 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16417 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16418 for ncn_progname in otool; do
16419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16420 set dummy ${ncn_progname}; ac_word=$2
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16422 $as_echo_n "checking
for $ac_word...
" >&6; }
16423 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16424 $as_echo_n "(cached
) " >&6
16426 if test -n "$OTOOL_FOR_TARGET"; then
16427 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16430 for as_dir in $PATH
16433 test -z "$as_dir" && as_dir=.
16434 for ac_exec_ext in '' $ac_executable_extensions; do
16435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16436 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16437 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16446 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16447 if test -n "$OTOOL_FOR_TARGET"; then
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16449 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16452 $as_echo "no
" >&6; }
16459 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16460 for ncn_progname in otool; do
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16462 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16463 if test -x $with_build_time_tools/${ncn_progname}; then
16464 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16466 $as_echo "yes" >&6; }
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16470 $as_echo "no
" >&6; }
16475 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16476 for ncn_progname in otool; do
16477 if test -n "$ncn_target_tool_prefix"; then
16478 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16479 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16481 $as_echo_n "checking
for $ac_word...
" >&6; }
16482 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16483 $as_echo_n "(cached
) " >&6
16485 if test -n "$OTOOL_FOR_TARGET"; then
16486 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16489 for as_dir in $PATH
16492 test -z "$as_dir" && as_dir=.
16493 for ac_exec_ext in '' $ac_executable_extensions; do
16494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16495 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16496 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16505 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16506 if test -n "$OTOOL_FOR_TARGET"; then
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16508 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16511 $as_echo "no
" >&6; }
16516 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16518 set dummy ${ncn_progname}; ac_word=$2
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16520 $as_echo_n "checking
for $ac_word...
" >&6; }
16521 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16522 $as_echo_n "(cached
) " >&6
16524 if test -n "$OTOOL_FOR_TARGET"; then
16525 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16528 for as_dir in $PATH
16531 test -z "$as_dir" && as_dir=.
16532 for ac_exec_ext in '' $ac_executable_extensions; do
16533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16534 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16535 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16544 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16545 if test -n "$OTOOL_FOR_TARGET"; then
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16547 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16550 $as_echo "no
" >&6; }
16555 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16559 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16561 if test $build = $target ; then
16562 OTOOL_FOR_TARGET="$2"
16564 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16567 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16571 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16577 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16578 if test -n "$with_build_time_tools"; then
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16580 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16581 if test -x $with_build_time_tools/ranlib; then
16582 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16583 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16585 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16588 $as_echo "no
" >&6; }
16590 elif test $build != $host && test $have_gcc_for_target = yes; then
16591 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16592 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16593 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16596 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16597 # Extract the first word of "ranlib
", so it can be a program name with args.
16598 set dummy ranlib; ac_word=$2
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16600 $as_echo_n "checking
for $ac_word...
" >&6; }
16601 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16602 $as_echo_n "(cached
) " >&6
16604 case $RANLIB_FOR_TARGET in
16606 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16610 for as_dir in $gcc_cv_tool_dirs
16613 test -z "$as_dir" && as_dir=.
16614 for ac_exec_ext in '' $ac_executable_extensions; do
16615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16616 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16617 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16627 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16628 if test -n "$RANLIB_FOR_TARGET"; then
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16630 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16633 $as_echo "no
" >&6; }
16638 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16641 if test -n "$RANLIB_FOR_TARGET"; then
16642 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16643 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16644 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16647 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16648 for ncn_progname in ranlib; do
16649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16650 set dummy ${ncn_progname}; ac_word=$2
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16652 $as_echo_n "checking
for $ac_word...
" >&6; }
16653 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16654 $as_echo_n "(cached
) " >&6
16656 if test -n "$RANLIB_FOR_TARGET"; then
16657 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16660 for as_dir in $PATH
16663 test -z "$as_dir" && as_dir=.
16664 for ac_exec_ext in '' $ac_executable_extensions; do
16665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16666 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16667 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16676 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16677 if test -n "$RANLIB_FOR_TARGET"; then
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16679 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16682 $as_echo "no
" >&6; }
16689 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16690 for ncn_progname in ranlib; do
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16692 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16693 if test -x $with_build_time_tools/${ncn_progname}; then
16694 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16696 $as_echo "yes" >&6; }
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16700 $as_echo "no
" >&6; }
16705 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16706 for ncn_progname in ranlib; do
16707 if test -n "$ncn_target_tool_prefix"; then
16708 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16709 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16711 $as_echo_n "checking
for $ac_word...
" >&6; }
16712 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16713 $as_echo_n "(cached
) " >&6
16715 if test -n "$RANLIB_FOR_TARGET"; then
16716 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16719 for as_dir in $PATH
16722 test -z "$as_dir" && as_dir=.
16723 for ac_exec_ext in '' $ac_executable_extensions; do
16724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16725 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16726 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16735 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16736 if test -n "$RANLIB_FOR_TARGET"; then
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16738 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16741 $as_echo "no
" >&6; }
16746 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16748 set dummy ${ncn_progname}; ac_word=$2
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16750 $as_echo_n "checking
for $ac_word...
" >&6; }
16751 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16752 $as_echo_n "(cached
) " >&6
16754 if test -n "$RANLIB_FOR_TARGET"; then
16755 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16758 for as_dir in $PATH
16761 test -z "$as_dir" && as_dir=.
16762 for ac_exec_ext in '' $ac_executable_extensions; do
16763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16764 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16765 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16774 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16775 if test -n "$RANLIB_FOR_TARGET"; then
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16777 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16780 $as_echo "no
" >&6; }
16785 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16789 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16791 if test $build = $target ; then
16792 RANLIB_FOR_TARGET="$2"
16794 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16797 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16801 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16807 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16808 if test -n "$with_build_time_tools"; then
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16810 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16811 if test -x $with_build_time_tools/readelf; then
16812 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16813 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16815 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16818 $as_echo "no
" >&6; }
16820 elif test $build != $host && test $have_gcc_for_target = yes; then
16821 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16822 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16823 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16826 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16827 # Extract the first word of "readelf
", so it can be a program name with args.
16828 set dummy readelf; ac_word=$2
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16830 $as_echo_n "checking
for $ac_word...
" >&6; }
16831 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16832 $as_echo_n "(cached
) " >&6
16834 case $READELF_FOR_TARGET in
16836 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16840 for as_dir in $gcc_cv_tool_dirs
16843 test -z "$as_dir" && as_dir=.
16844 for ac_exec_ext in '' $ac_executable_extensions; do
16845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16846 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16847 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16857 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16858 if test -n "$READELF_FOR_TARGET"; then
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16860 $as_echo "$READELF_FOR_TARGET" >&6; }
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16863 $as_echo "no
" >&6; }
16868 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16871 if test -n "$READELF_FOR_TARGET"; then
16872 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16873 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16874 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16877 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16878 for ncn_progname in readelf; do
16879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16880 set dummy ${ncn_progname}; ac_word=$2
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16882 $as_echo_n "checking
for $ac_word...
" >&6; }
16883 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16884 $as_echo_n "(cached
) " >&6
16886 if test -n "$READELF_FOR_TARGET"; then
16887 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16890 for as_dir in $PATH
16893 test -z "$as_dir" && as_dir=.
16894 for ac_exec_ext in '' $ac_executable_extensions; do
16895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16896 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16897 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16906 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16907 if test -n "$READELF_FOR_TARGET"; then
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16909 $as_echo "$READELF_FOR_TARGET" >&6; }
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16912 $as_echo "no
" >&6; }
16919 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16920 for ncn_progname in readelf; do
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16922 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16923 if test -x $with_build_time_tools/${ncn_progname}; then
16924 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16926 $as_echo "yes" >&6; }
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16930 $as_echo "no
" >&6; }
16935 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16936 for ncn_progname in readelf; do
16937 if test -n "$ncn_target_tool_prefix"; then
16938 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16939 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16941 $as_echo_n "checking
for $ac_word...
" >&6; }
16942 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16943 $as_echo_n "(cached
) " >&6
16945 if test -n "$READELF_FOR_TARGET"; then
16946 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16949 for as_dir in $PATH
16952 test -z "$as_dir" && as_dir=.
16953 for ac_exec_ext in '' $ac_executable_extensions; do
16954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16955 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16956 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16965 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16966 if test -n "$READELF_FOR_TARGET"; then
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16968 $as_echo "$READELF_FOR_TARGET" >&6; }
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16971 $as_echo "no
" >&6; }
16976 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16978 set dummy ${ncn_progname}; ac_word=$2
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16980 $as_echo_n "checking
for $ac_word...
" >&6; }
16981 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16982 $as_echo_n "(cached
) " >&6
16984 if test -n "$READELF_FOR_TARGET"; then
16985 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16988 for as_dir in $PATH
16991 test -z "$as_dir" && as_dir=.
16992 for ac_exec_ext in '' $ac_executable_extensions; do
16993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16994 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16995 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17004 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17005 if test -n "$READELF_FOR_TARGET"; then
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17007 $as_echo "$READELF_FOR_TARGET" >&6; }
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17010 $as_echo "no
" >&6; }
17015 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17019 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17021 if test $build = $target ; then
17022 READELF_FOR_TARGET="$2"
17024 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17027 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17031 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17037 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17038 if test -n "$with_build_time_tools"; then
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
17040 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
17041 if test -x $with_build_time_tools/strip; then
17042 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17043 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
17045 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17048 $as_echo "no
" >&6; }
17050 elif test $build != $host && test $have_gcc_for_target = yes; then
17051 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
17052 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17053 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17056 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17057 # Extract the first word of "strip
", so it can be a program name with args.
17058 set dummy strip; ac_word=$2
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17060 $as_echo_n "checking
for $ac_word...
" >&6; }
17061 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
17062 $as_echo_n "(cached
) " >&6
17064 case $STRIP_FOR_TARGET in
17066 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17070 for as_dir in $gcc_cv_tool_dirs
17073 test -z "$as_dir" && as_dir=.
17074 for ac_exec_ext in '' $ac_executable_extensions; do
17075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17076 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17077 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17087 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17088 if test -n "$STRIP_FOR_TARGET"; then
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17090 $as_echo "$STRIP_FOR_TARGET" >&6; }
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17093 $as_echo "no
" >&6; }
17098 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17101 if test -n "$STRIP_FOR_TARGET"; then
17102 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17103 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17104 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17107 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17108 for ncn_progname in strip; do
17109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17110 set dummy ${ncn_progname}; ac_word=$2
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17112 $as_echo_n "checking
for $ac_word...
" >&6; }
17113 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17114 $as_echo_n "(cached
) " >&6
17116 if test -n "$STRIP_FOR_TARGET"; then
17117 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17120 for as_dir in $PATH
17123 test -z "$as_dir" && as_dir=.
17124 for ac_exec_ext in '' $ac_executable_extensions; do
17125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17126 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17127 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17136 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17137 if test -n "$STRIP_FOR_TARGET"; then
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17139 $as_echo "$STRIP_FOR_TARGET" >&6; }
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17142 $as_echo "no
" >&6; }
17149 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17150 for ncn_progname in strip; do
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17152 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17153 if test -x $with_build_time_tools/${ncn_progname}; then
17154 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17156 $as_echo "yes" >&6; }
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17160 $as_echo "no
" >&6; }
17165 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17166 for ncn_progname in strip; do
17167 if test -n "$ncn_target_tool_prefix"; then
17168 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17169 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17171 $as_echo_n "checking
for $ac_word...
" >&6; }
17172 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17173 $as_echo_n "(cached
) " >&6
17175 if test -n "$STRIP_FOR_TARGET"; then
17176 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17179 for as_dir in $PATH
17182 test -z "$as_dir" && as_dir=.
17183 for ac_exec_ext in '' $ac_executable_extensions; do
17184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17185 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17186 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17195 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17196 if test -n "$STRIP_FOR_TARGET"; then
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17198 $as_echo "$STRIP_FOR_TARGET" >&6; }
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17201 $as_echo "no
" >&6; }
17206 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17208 set dummy ${ncn_progname}; ac_word=$2
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17210 $as_echo_n "checking
for $ac_word...
" >&6; }
17211 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17212 $as_echo_n "(cached
) " >&6
17214 if test -n "$STRIP_FOR_TARGET"; then
17215 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17218 for as_dir in $PATH
17221 test -z "$as_dir" && as_dir=.
17222 for ac_exec_ext in '' $ac_executable_extensions; do
17223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17224 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17225 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17234 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17235 if test -n "$STRIP_FOR_TARGET"; then
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17237 $as_echo "$STRIP_FOR_TARGET" >&6; }
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17240 $as_echo "no
" >&6; }
17245 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17249 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17251 if test $build = $target ; then
17252 STRIP_FOR_TARGET="$2"
17254 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17257 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17261 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17267 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17268 if test -n "$with_build_time_tools"; then
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17270 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17271 if test -x $with_build_time_tools/windres; then
17272 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17273 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17275 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17278 $as_echo "no
" >&6; }
17280 elif test $build != $host && test $have_gcc_for_target = yes; then
17281 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17282 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17283 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17286 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17287 # Extract the first word of "windres
", so it can be a program name with args.
17288 set dummy windres; ac_word=$2
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17290 $as_echo_n "checking
for $ac_word...
" >&6; }
17291 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17292 $as_echo_n "(cached
) " >&6
17294 case $WINDRES_FOR_TARGET in
17296 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17300 for as_dir in $gcc_cv_tool_dirs
17303 test -z "$as_dir" && as_dir=.
17304 for ac_exec_ext in '' $ac_executable_extensions; do
17305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17306 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17307 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17317 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17318 if test -n "$WINDRES_FOR_TARGET"; then
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17320 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17323 $as_echo "no
" >&6; }
17328 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17331 if test -n "$WINDRES_FOR_TARGET"; then
17332 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17333 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17334 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17337 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17338 for ncn_progname in windres; do
17339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17340 set dummy ${ncn_progname}; ac_word=$2
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17342 $as_echo_n "checking
for $ac_word...
" >&6; }
17343 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17344 $as_echo_n "(cached
) " >&6
17346 if test -n "$WINDRES_FOR_TARGET"; then
17347 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17350 for as_dir in $PATH
17353 test -z "$as_dir" && as_dir=.
17354 for ac_exec_ext in '' $ac_executable_extensions; do
17355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17356 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17357 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17366 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17367 if test -n "$WINDRES_FOR_TARGET"; then
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17369 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17372 $as_echo "no
" >&6; }
17379 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17380 for ncn_progname in windres; do
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17382 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17383 if test -x $with_build_time_tools/${ncn_progname}; then
17384 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17386 $as_echo "yes" >&6; }
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17390 $as_echo "no
" >&6; }
17395 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17396 for ncn_progname in windres; do
17397 if test -n "$ncn_target_tool_prefix"; then
17398 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17399 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17401 $as_echo_n "checking
for $ac_word...
" >&6; }
17402 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17403 $as_echo_n "(cached
) " >&6
17405 if test -n "$WINDRES_FOR_TARGET"; then
17406 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17409 for as_dir in $PATH
17412 test -z "$as_dir" && as_dir=.
17413 for ac_exec_ext in '' $ac_executable_extensions; do
17414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17415 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17416 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17425 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17426 if test -n "$WINDRES_FOR_TARGET"; then
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17428 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17431 $as_echo "no
" >&6; }
17436 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17438 set dummy ${ncn_progname}; ac_word=$2
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17440 $as_echo_n "checking
for $ac_word...
" >&6; }
17441 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17442 $as_echo_n "(cached
) " >&6
17444 if test -n "$WINDRES_FOR_TARGET"; then
17445 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17448 for as_dir in $PATH
17451 test -z "$as_dir" && as_dir=.
17452 for ac_exec_ext in '' $ac_executable_extensions; do
17453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17454 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17455 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17464 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17465 if test -n "$WINDRES_FOR_TARGET"; then
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17467 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17470 $as_echo "no
" >&6; }
17475 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17479 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17481 if test $build = $target ; then
17482 WINDRES_FOR_TARGET="$2"
17484 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17487 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17491 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17497 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17498 if test -n "$with_build_time_tools"; then
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17500 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17501 if test -x $with_build_time_tools/windmc; then
17502 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17503 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17505 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17508 $as_echo "no
" >&6; }
17510 elif test $build != $host && test $have_gcc_for_target = yes; then
17511 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17512 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17513 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17516 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17517 # Extract the first word of "windmc
", so it can be a program name with args.
17518 set dummy windmc; ac_word=$2
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17520 $as_echo_n "checking
for $ac_word...
" >&6; }
17521 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17522 $as_echo_n "(cached
) " >&6
17524 case $WINDMC_FOR_TARGET in
17526 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17530 for as_dir in $gcc_cv_tool_dirs
17533 test -z "$as_dir" && as_dir=.
17534 for ac_exec_ext in '' $ac_executable_extensions; do
17535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17536 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17537 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17547 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17548 if test -n "$WINDMC_FOR_TARGET"; then
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17550 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17553 $as_echo "no
" >&6; }
17558 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17561 if test -n "$WINDMC_FOR_TARGET"; then
17562 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17563 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17564 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17567 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17568 for ncn_progname in windmc; do
17569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17570 set dummy ${ncn_progname}; ac_word=$2
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17572 $as_echo_n "checking
for $ac_word...
" >&6; }
17573 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17574 $as_echo_n "(cached
) " >&6
17576 if test -n "$WINDMC_FOR_TARGET"; then
17577 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17580 for as_dir in $PATH
17583 test -z "$as_dir" && as_dir=.
17584 for ac_exec_ext in '' $ac_executable_extensions; do
17585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17586 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17587 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17596 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17597 if test -n "$WINDMC_FOR_TARGET"; then
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17599 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17602 $as_echo "no
" >&6; }
17609 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17610 for ncn_progname in windmc; do
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17612 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17613 if test -x $with_build_time_tools/${ncn_progname}; then
17614 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17616 $as_echo "yes" >&6; }
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17620 $as_echo "no
" >&6; }
17625 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17626 for ncn_progname in windmc; do
17627 if test -n "$ncn_target_tool_prefix"; then
17628 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17629 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17631 $as_echo_n "checking
for $ac_word...
" >&6; }
17632 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17633 $as_echo_n "(cached
) " >&6
17635 if test -n "$WINDMC_FOR_TARGET"; then
17636 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17639 for as_dir in $PATH
17642 test -z "$as_dir" && as_dir=.
17643 for ac_exec_ext in '' $ac_executable_extensions; do
17644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17645 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17646 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17655 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17656 if test -n "$WINDMC_FOR_TARGET"; then
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17658 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17661 $as_echo "no
" >&6; }
17666 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17668 set dummy ${ncn_progname}; ac_word=$2
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17670 $as_echo_n "checking
for $ac_word...
" >&6; }
17671 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17672 $as_echo_n "(cached
) " >&6
17674 if test -n "$WINDMC_FOR_TARGET"; then
17675 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17678 for as_dir in $PATH
17681 test -z "$as_dir" && as_dir=.
17682 for ac_exec_ext in '' $ac_executable_extensions; do
17683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17684 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17685 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17694 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17695 if test -n "$WINDMC_FOR_TARGET"; then
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17697 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17700 $as_echo "no
" >&6; }
17705 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17709 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17711 if test $build = $target ; then
17712 WINDMC_FOR_TARGET="$2"
17714 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17717 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17721 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17725 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17728 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17729 if test "x
${build}" != "x
${host}" ; then
17730 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17731 # We already found the complete path
17732 ac_dir=`dirname $AR_FOR_TARGET`
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17734 $as_echo "pre-installed
in $ac_dir" >&6; }
17736 # Canadian cross, just use what we found
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17738 $as_echo "pre-installed
" >&6; }
17742 case " ${configdirs} " in
17747 if test $ok = yes; then
17748 # An in-tree tool is available and we can use it
17749 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17751 $as_echo "just compiled
" >&6; }
17752 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17753 # We already found the complete path
17754 ac_dir=`dirname $AR_FOR_TARGET`
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17756 $as_echo "pre-installed
in $ac_dir" >&6; }
17757 elif test "x
$target" = "x
$host"; then
17758 # We can use an host tool
17759 AR_FOR_TARGET='$(AR)'
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17761 $as_echo "host tool
" >&6; }
17763 # We need a cross tool
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17765 $as_echo "pre-installed
" >&6; }
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17770 $as_echo_n "checking where to
find the target as...
" >&6; }
17771 if test "x
${build}" != "x
${host}" ; then
17772 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17773 # We already found the complete path
17774 ac_dir=`dirname $AS_FOR_TARGET`
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17776 $as_echo "pre-installed
in $ac_dir" >&6; }
17778 # Canadian cross, just use what we found
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17780 $as_echo "pre-installed
" >&6; }
17784 case " ${configdirs} " in
17789 if test $ok = yes; then
17790 # An in-tree tool is available and we can use it
17791 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17793 $as_echo "just compiled
" >&6; }
17794 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17795 # We already found the complete path
17796 ac_dir=`dirname $AS_FOR_TARGET`
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17798 $as_echo "pre-installed
in $ac_dir" >&6; }
17799 elif test "x
$target" = "x
$host"; then
17800 # We can use an host tool
17801 AS_FOR_TARGET='$(AS)'
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17803 $as_echo "host tool
" >&6; }
17805 # We need a cross tool
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17807 $as_echo "pre-installed
" >&6; }
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17812 $as_echo_n "checking where to
find the target cc...
" >&6; }
17813 if test "x
${build}" != "x
${host}" ; then
17814 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17815 # We already found the complete path
17816 ac_dir=`dirname $CC_FOR_TARGET`
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17818 $as_echo "pre-installed
in $ac_dir" >&6; }
17820 # Canadian cross, just use what we found
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17822 $as_echo "pre-installed
" >&6; }
17826 case " ${configdirs} " in
17831 if test $ok = yes; then
17832 # An in-tree tool is available and we can use it
17833 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17835 $as_echo "just compiled
" >&6; }
17836 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17837 # We already found the complete path
17838 ac_dir=`dirname $CC_FOR_TARGET`
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17840 $as_echo "pre-installed
in $ac_dir" >&6; }
17841 elif test "x
$target" = "x
$host"; then
17842 # We can use an host tool
17843 CC_FOR_TARGET='$(CC)'
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17845 $as_echo "host tool
" >&6; }
17847 # We need a cross tool
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17849 $as_echo "pre-installed
" >&6; }
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17854 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17855 if test "x
${build}" != "x
${host}" ; then
17856 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17857 # We already found the complete path
17858 ac_dir=`dirname $CXX_FOR_TARGET`
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17860 $as_echo "pre-installed
in $ac_dir" >&6; }
17862 # Canadian cross, just use what we found
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17864 $as_echo "pre-installed
" >&6; }
17868 case " ${configdirs} " in
17872 case ,${enable_languages}, in
17876 if test $ok = yes; then
17877 # An in-tree tool is available and we can use it
17878 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'
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17880 $as_echo "just compiled
" >&6; }
17881 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17882 # We already found the complete path
17883 ac_dir=`dirname $CXX_FOR_TARGET`
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17885 $as_echo "pre-installed
in $ac_dir" >&6; }
17886 elif test "x
$target" = "x
$host"; then
17887 # We can use an host tool
17888 CXX_FOR_TARGET='$(CXX)'
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17890 $as_echo "host tool
" >&6; }
17892 # We need a cross tool
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17894 $as_echo "pre-installed
" >&6; }
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17899 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17900 if test "x
${build}" != "x
${host}" ; then
17901 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17902 # We already found the complete path
17903 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17905 $as_echo "pre-installed
in $ac_dir" >&6; }
17907 # Canadian cross, just use what we found
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17909 $as_echo "pre-installed
" >&6; }
17913 case " ${configdirs} " in
17917 case ,${enable_languages}, in
17921 if test $ok = yes; then
17922 # An in-tree tool is available and we can use it
17923 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'
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17925 $as_echo "just compiled
" >&6; }
17926 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17927 # We already found the complete path
17928 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17930 $as_echo "pre-installed
in $ac_dir" >&6; }
17931 elif test "x
$target" = "x
$host"; then
17932 # We can use an host tool
17933 RAW_CXX_FOR_TARGET='$(CXX)'
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17935 $as_echo "host tool
" >&6; }
17937 # We need a cross tool
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17939 $as_echo "pre-installed
" >&6; }
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17944 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17945 if test "x
${build}" != "x
${host}" ; then
17946 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17947 # We already found the complete path
17948 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17950 $as_echo "pre-installed
in $ac_dir" >&6; }
17952 # Canadian cross, just use what we found
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17954 $as_echo "pre-installed
" >&6; }
17958 case " ${configdirs} " in
17963 if test $ok = yes; then
17964 # An in-tree tool is available and we can use it
17965 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17967 $as_echo "just compiled
" >&6; }
17968 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17969 # We already found the complete path
17970 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17972 $as_echo "pre-installed
in $ac_dir" >&6; }
17973 elif test "x
$target" = "x
$host"; then
17974 # We can use an host tool
17975 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17977 $as_echo "host tool
" >&6; }
17979 # We need a cross tool
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17981 $as_echo "pre-installed
" >&6; }
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17986 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17987 if test "x
${build}" != "x
${host}" ; then
17988 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17989 # We already found the complete path
17990 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17992 $as_echo "pre-installed
in $ac_dir" >&6; }
17994 # Canadian cross, just use what we found
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17996 $as_echo "pre-installed
" >&6; }
17999 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
18000 # We already found the complete path
18001 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18003 $as_echo "pre-installed
in $ac_dir" >&6; }
18004 elif test "x
$target" = "x
$host"; then
18005 # We can use an host tool
18006 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18008 $as_echo "host tool
" >&6; }
18010 # We need a cross tool
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18012 $as_echo "pre-installed
" >&6; }
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
18017 $as_echo_n "checking where to
find the target gcc...
" >&6; }
18018 if test "x
${build}" != "x
${host}" ; then
18019 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
18020 # We already found the complete path
18021 ac_dir=`dirname $GCC_FOR_TARGET`
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18023 $as_echo "pre-installed
in $ac_dir" >&6; }
18025 # Canadian cross, just use what we found
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18027 $as_echo "pre-installed
" >&6; }
18031 case " ${configdirs} " in
18036 if test $ok = yes; then
18037 # An in-tree tool is available and we can use it
18038 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18040 $as_echo "just compiled
" >&6; }
18041 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
18042 # We already found the complete path
18043 ac_dir=`dirname $GCC_FOR_TARGET`
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18045 $as_echo "pre-installed
in $ac_dir" >&6; }
18046 elif test "x
$target" = "x
$host"; then
18047 # We can use an host tool
18048 GCC_FOR_TARGET='$()'
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18050 $as_echo "host tool
" >&6; }
18052 # We need a cross tool
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18054 $as_echo "pre-installed
" >&6; }
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
18059 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
18060 if test "x
${build}" != "x
${host}" ; then
18061 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
18062 # We already found the complete path
18063 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18065 $as_echo "pre-installed
in $ac_dir" >&6; }
18067 # Canadian cross, just use what we found
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18069 $as_echo "pre-installed
" >&6; }
18073 case " ${configdirs} " in
18077 case ,${enable_languages}, in
18081 if test $ok = yes; then
18082 # An in-tree tool is available and we can use it
18083 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18085 $as_echo "just compiled
" >&6; }
18086 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
18087 # We already found the complete path
18088 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18090 $as_echo "pre-installed
in $ac_dir" >&6; }
18091 elif test "x
$target" = "x
$host"; then
18092 # We can use an host tool
18093 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18095 $as_echo "host tool
" >&6; }
18097 # We need a cross tool
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18099 $as_echo "pre-installed
" >&6; }
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
18104 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
18105 if test "x
${build}" != "x
${host}" ; then
18106 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
18107 # We already found the complete path
18108 ac_dir=`dirname $GOC_FOR_TARGET`
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18110 $as_echo "pre-installed
in $ac_dir" >&6; }
18112 # Canadian cross, just use what we found
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18114 $as_echo "pre-installed
" >&6; }
18118 case " ${configdirs} " in
18122 case ,${enable_languages}, in
18126 if test $ok = yes; then
18127 # An in-tree tool is available and we can use it
18128 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18130 $as_echo "just compiled
" >&6; }
18131 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
18132 # We already found the complete path
18133 ac_dir=`dirname $GOC_FOR_TARGET`
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18135 $as_echo "pre-installed
in $ac_dir" >&6; }
18136 elif test "x
$target" = "x
$host"; then
18137 # We can use an host tool
18138 GOC_FOR_TARGET='$(GOC)'
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18140 $as_echo "host tool
" >&6; }
18142 # We need a cross tool
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18144 $as_echo "pre-installed
" >&6; }
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
18149 $as_echo_n "checking where to
find the target gdc...
" >&6; }
18150 if test "x
${build}" != "x
${host}" ; then
18151 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18152 # We already found the complete path
18153 ac_dir=`dirname $GDC_FOR_TARGET`
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18155 $as_echo "pre-installed
in $ac_dir" >&6; }
18157 # Canadian cross, just use what we found
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18159 $as_echo "pre-installed
" >&6; }
18163 case " ${configdirs} " in
18167 case ,${enable_languages}, in
18171 if test $ok = yes; then
18172 # An in-tree tool is available and we can use it
18173 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18175 $as_echo "just compiled
" >&6; }
18176 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18177 # We already found the complete path
18178 ac_dir=`dirname $GDC_FOR_TARGET`
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18180 $as_echo "pre-installed
in $ac_dir" >&6; }
18181 elif test "x
$target" = "x
$host"; then
18182 # We can use an host tool
18183 GDC_FOR_TARGET='$(GDC)'
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18185 $as_echo "host tool
" >&6; }
18187 # We need a cross tool
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18189 $as_echo "pre-installed
" >&6; }
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gm2
" >&5
18194 $as_echo_n "checking where to
find the target gm2...
" >&6; }
18195 if test "x
${build}" != "x
${host}" ; then
18196 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18197 # We already found the complete path
18198 ac_dir=`dirname $GM2_FOR_TARGET`
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18200 $as_echo "pre-installed
in $ac_dir" >&6; }
18202 # Canadian cross, just use what we found
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18204 $as_echo "pre-installed
" >&6; }
18208 case " ${configdirs} " in
18212 case ,${enable_languages}, in
18216 if test $ok = yes; then
18217 # An in-tree tool is available and we can use it
18218 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18220 $as_echo "just compiled
" >&6; }
18221 elif expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18222 # We already found the complete path
18223 ac_dir=`dirname $GM2_FOR_TARGET`
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18225 $as_echo "pre-installed
in $ac_dir" >&6; }
18226 elif test "x
$target" = "x
$host"; then
18227 # We can use an host tool
18228 GM2_FOR_TARGET='$(GM2)'
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18230 $as_echo "host tool
" >&6; }
18232 # We need a cross tool
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18234 $as_echo "pre-installed
" >&6; }
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
18239 $as_echo_n "checking where to
find the target ld...
" >&6; }
18240 if test "x
${build}" != "x
${host}" ; then
18241 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18242 # We already found the complete path
18243 ac_dir=`dirname $LD_FOR_TARGET`
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18245 $as_echo "pre-installed
in $ac_dir" >&6; }
18247 # Canadian cross, just use what we found
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18249 $as_echo "pre-installed
" >&6; }
18253 case " ${configdirs} " in
18258 if test $ok = yes; then
18259 # An in-tree tool is available and we can use it
18260 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18262 $as_echo "just compiled
" >&6; }
18263 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18264 # We already found the complete path
18265 ac_dir=`dirname $LD_FOR_TARGET`
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18267 $as_echo "pre-installed
in $ac_dir" >&6; }
18268 elif test "x
$target" = "x
$host"; then
18269 # We can use an host tool
18270 LD_FOR_TARGET='$(LD)'
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18272 $as_echo "host tool
" >&6; }
18274 # We need a cross tool
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18276 $as_echo "pre-installed
" >&6; }
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
18281 $as_echo_n "checking where to
find the target lipo...
" >&6; }
18282 if test "x
${build}" != "x
${host}" ; then
18283 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18284 # We already found the complete path
18285 ac_dir=`dirname $LIPO_FOR_TARGET`
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18287 $as_echo "pre-installed
in $ac_dir" >&6; }
18289 # Canadian cross, just use what we found
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18291 $as_echo "pre-installed
" >&6; }
18294 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18295 # We already found the complete path
18296 ac_dir=`dirname $LIPO_FOR_TARGET`
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18298 $as_echo "pre-installed
in $ac_dir" >&6; }
18299 elif test "x
$target" = "x
$host"; then
18300 # We can use an host tool
18301 LIPO_FOR_TARGET='$(LIPO)'
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18303 $as_echo "host tool
" >&6; }
18305 # We need a cross tool
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18307 $as_echo "pre-installed
" >&6; }
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
18312 $as_echo_n "checking where to
find the target nm...
" >&6; }
18313 if test "x
${build}" != "x
${host}" ; then
18314 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18315 # We already found the complete path
18316 ac_dir=`dirname $NM_FOR_TARGET`
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18318 $as_echo "pre-installed
in $ac_dir" >&6; }
18320 # Canadian cross, just use what we found
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18322 $as_echo "pre-installed
" >&6; }
18326 case " ${configdirs} " in
18331 if test $ok = yes; then
18332 # An in-tree tool is available and we can use it
18333 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18335 $as_echo "just compiled
" >&6; }
18336 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18337 # We already found the complete path
18338 ac_dir=`dirname $NM_FOR_TARGET`
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18340 $as_echo "pre-installed
in $ac_dir" >&6; }
18341 elif test "x
$target" = "x
$host"; then
18342 # We can use an host tool
18343 NM_FOR_TARGET='$(NM)'
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18345 $as_echo "host tool
" >&6; }
18347 # We need a cross tool
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18349 $as_echo "pre-installed
" >&6; }
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
18354 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
18355 if test "x
${build}" != "x
${host}" ; then
18356 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18357 # We already found the complete path
18358 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18360 $as_echo "pre-installed
in $ac_dir" >&6; }
18362 # Canadian cross, just use what we found
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18364 $as_echo "pre-installed
" >&6; }
18368 case " ${configdirs} " in
18373 if test $ok = yes; then
18374 # An in-tree tool is available and we can use it
18375 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18377 $as_echo "just compiled
" >&6; }
18378 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18379 # We already found the complete path
18380 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18382 $as_echo "pre-installed
in $ac_dir" >&6; }
18383 elif test "x
$target" = "x
$host"; then
18384 # We can use an host tool
18385 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18387 $as_echo "host tool
" >&6; }
18389 # We need a cross tool
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18391 $as_echo "pre-installed
" >&6; }
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18396 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18397 if test "x
${build}" != "x
${host}" ; then
18398 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18399 # We already found the complete path
18400 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18402 $as_echo "pre-installed
in $ac_dir" >&6; }
18404 # Canadian cross, just use what we found
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18406 $as_echo "pre-installed
" >&6; }
18410 case " ${configdirs} " in
18415 if test $ok = yes; then
18416 # An in-tree tool is available and we can use it
18417 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18419 $as_echo "just compiled
" >&6; }
18420 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18421 # We already found the complete path
18422 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18424 $as_echo "pre-installed
in $ac_dir" >&6; }
18425 elif test "x
$target" = "x
$host"; then
18426 # We can use an host tool
18427 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18429 $as_echo "host tool
" >&6; }
18431 # We need a cross tool
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18433 $as_echo "pre-installed
" >&6; }
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18438 $as_echo_n "checking where to
find the target otool...
" >&6; }
18439 if test "x
${build}" != "x
${host}" ; then
18440 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18441 # We already found the complete path
18442 ac_dir=`dirname $OTOOL_FOR_TARGET`
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18444 $as_echo "pre-installed
in $ac_dir" >&6; }
18446 # Canadian cross, just use what we found
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18448 $as_echo "pre-installed
" >&6; }
18451 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18452 # We already found the complete path
18453 ac_dir=`dirname $OTOOL_FOR_TARGET`
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18455 $as_echo "pre-installed
in $ac_dir" >&6; }
18456 elif test "x
$target" = "x
$host"; then
18457 # We can use an host tool
18458 OTOOL_FOR_TARGET='$(OTOOL)'
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18460 $as_echo "host tool
" >&6; }
18462 # We need a cross tool
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18464 $as_echo "pre-installed
" >&6; }
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18469 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18470 if test "x
${build}" != "x
${host}" ; then
18471 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18472 # We already found the complete path
18473 ac_dir=`dirname $RANLIB_FOR_TARGET`
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18475 $as_echo "pre-installed
in $ac_dir" >&6; }
18477 # Canadian cross, just use what we found
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18479 $as_echo "pre-installed
" >&6; }
18483 case " ${configdirs} " in
18488 if test $ok = yes; then
18489 # An in-tree tool is available and we can use it
18490 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18492 $as_echo "just compiled
" >&6; }
18493 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18494 # We already found the complete path
18495 ac_dir=`dirname $RANLIB_FOR_TARGET`
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18497 $as_echo "pre-installed
in $ac_dir" >&6; }
18498 elif test "x
$target" = "x
$host"; then
18499 # We can use an host tool
18500 RANLIB_FOR_TARGET='$(RANLIB)'
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18502 $as_echo "host tool
" >&6; }
18504 # We need a cross tool
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18506 $as_echo "pre-installed
" >&6; }
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18511 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18512 if test "x
${build}" != "x
${host}" ; then
18513 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18514 # We already found the complete path
18515 ac_dir=`dirname $READELF_FOR_TARGET`
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18517 $as_echo "pre-installed
in $ac_dir" >&6; }
18519 # Canadian cross, just use what we found
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18521 $as_echo "pre-installed
" >&6; }
18525 case " ${configdirs} " in
18530 if test $ok = yes; then
18531 # An in-tree tool is available and we can use it
18532 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18534 $as_echo "just compiled
" >&6; }
18535 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18536 # We already found the complete path
18537 ac_dir=`dirname $READELF_FOR_TARGET`
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18539 $as_echo "pre-installed
in $ac_dir" >&6; }
18540 elif test "x
$target" = "x
$host"; then
18541 # We can use an host tool
18542 READELF_FOR_TARGET='$(READELF)'
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18544 $as_echo "host tool
" >&6; }
18546 # We need a cross tool
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18548 $as_echo "pre-installed
" >&6; }
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18553 $as_echo_n "checking where to
find the target strip...
" >&6; }
18554 if test "x
${build}" != "x
${host}" ; then
18555 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18556 # We already found the complete path
18557 ac_dir=`dirname $STRIP_FOR_TARGET`
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18559 $as_echo "pre-installed
in $ac_dir" >&6; }
18561 # Canadian cross, just use what we found
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18563 $as_echo "pre-installed
" >&6; }
18567 case " ${configdirs} " in
18572 if test $ok = yes; then
18573 # An in-tree tool is available and we can use it
18574 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18576 $as_echo "just compiled
" >&6; }
18577 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18578 # We already found the complete path
18579 ac_dir=`dirname $STRIP_FOR_TARGET`
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18581 $as_echo "pre-installed
in $ac_dir" >&6; }
18582 elif test "x
$target" = "x
$host"; then
18583 # We can use an host tool
18584 STRIP_FOR_TARGET='$(STRIP)'
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18586 $as_echo "host tool
" >&6; }
18588 # We need a cross tool
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18590 $as_echo "pre-installed
" >&6; }
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18595 $as_echo_n "checking where to
find the target windres...
" >&6; }
18596 if test "x
${build}" != "x
${host}" ; then
18597 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18598 # We already found the complete path
18599 ac_dir=`dirname $WINDRES_FOR_TARGET`
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18601 $as_echo "pre-installed
in $ac_dir" >&6; }
18603 # Canadian cross, just use what we found
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18605 $as_echo "pre-installed
" >&6; }
18609 case " ${configdirs} " in
18614 if test $ok = yes; then
18615 # An in-tree tool is available and we can use it
18616 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18618 $as_echo "just compiled
" >&6; }
18619 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18620 # We already found the complete path
18621 ac_dir=`dirname $WINDRES_FOR_TARGET`
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18623 $as_echo "pre-installed
in $ac_dir" >&6; }
18624 elif test "x
$target" = "x
$host"; then
18625 # We can use an host tool
18626 WINDRES_FOR_TARGET='$(WINDRES)'
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18628 $as_echo "host tool
" >&6; }
18630 # We need a cross tool
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18632 $as_echo "pre-installed
" >&6; }
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18637 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18638 if test "x
${build}" != "x
${host}" ; then
18639 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18640 # We already found the complete path
18641 ac_dir=`dirname $WINDMC_FOR_TARGET`
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18643 $as_echo "pre-installed
in $ac_dir" >&6; }
18645 # Canadian cross, just use what we found
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18647 $as_echo "pre-installed
" >&6; }
18651 case " ${configdirs} " in
18656 if test $ok = yes; then
18657 # An in-tree tool is available and we can use it
18658 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18660 $as_echo "just compiled
" >&6; }
18661 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18662 # We already found the complete path
18663 ac_dir=`dirname $WINDMC_FOR_TARGET`
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18665 $as_echo "pre-installed
in $ac_dir" >&6; }
18666 elif test "x
$target" = "x
$host"; then
18667 # We can use an host tool
18668 WINDMC_FOR_TARGET='$(WINDMC)'
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18670 $as_echo "host tool
" >&6; }
18672 # We need a cross tool
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18674 $as_echo "pre-installed
" >&6; }
18682 # Certain tools may need extra flags.
18683 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18684 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18685 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18687 # When building target libraries, except in a Canadian cross, we use
18688 # the same toolchain as the compiler we just built.
18689 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18690 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18691 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18692 if test $host = $build; then
18693 case " $configdirs " in
18695 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18696 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18697 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18707 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18708 # Check whether --enable-maintainer-mode was given.
18709 if test "${enable_maintainer_mode+set}" = set; then :
18710 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18712 USE_MAINTAINER_MODE=no
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18716 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18719 if test "$USE_MAINTAINER_MODE" = yes; then
18720 MAINTAINER_MODE_TRUE=
18721 MAINTAINER_MODE_FALSE='#'
18723 MAINTAINER_MODE_TRUE='#'
18724 MAINTAINER_MODE_FALSE=
18726 MAINT=$MAINTAINER_MODE_TRUE
18728 # ---------------------
18729 # GCC bootstrap support
18730 # ---------------------
18732 # Stage specific cflags for build.
18737 yes) stage1_cflags="-g -Wa,-J" ;;
18738 *) stage1_cflags="-g -J" ;;
18744 # Enable --enable-checking in stage1 of the compiler.
18745 # Check whether --enable-stage1-checking was given.
18746 if test "${enable_stage1_checking+set}" = set; then :
18747 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18749 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18750 # For --disable-checking or implicit --enable-checking=release, avoid
18751 # setting --enable-checking=gc in the default stage1 checking for LTO
18752 # bootstraps. See PR62077.
18753 case $BUILD_CONFIG in
18755 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18757 stage1_checking=--enable-checking=yes,types;;
18759 if test "x
$enable_checking" = x && \
18760 test -d ${srcdir}/gcc && \
18761 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18762 stage1_checking=--enable-checking=yes,types,extra
18765 stage1_checking=--enable-checking=$enable_checking,types
18771 # Enable -Werror in bootstrap stage2 and later.
18772 # Check whether --enable-werror was given.
18773 if test "${enable_werror+set}" = set; then :
18774 enableval=$enable_werror;
18775 case ${enable_werror} in
18776 yes) stage2_werror_flag="--enable-werror-always" ;;
18777 *) stage2_werror_flag="" ;;
18782 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18783 case $BUILD_CONFIG in
18785 stage2_werror_flag="--enable-werror-always" ;;
18787 stage2_werror_flag="--enable-werror-always" ;;
18796 # Specify what files to not compare during bootstrap.
18798 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18799 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
18800 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
18801 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
18803 hppa*64*-*-hpux*) ;;
18804 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18808 ac_config_files="$ac_config_files Makefile
"
18810 cat >confcache <<\_ACEOF
18811 # This file is a shell script that caches the results of configure
18812 # tests run on this system so they can be shared between configure
18813 # scripts and configure runs, see configure's option --config-cache.
18814 # It is not useful on other systems. If it contains results you don't
18815 # want to keep, you may remove or edit it.
18817 # config.status only pays attention to the cache file if you give it
18818 # the --recheck option to rerun configure.
18820 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18822 # following values.
18826 # The following way of writing the cache mishandles newlines in values,
18827 # but we know of no workaround that is simple, portable, and efficient.
18828 # So, we kill variables containing newlines.
18829 # Ultrix sh set writes to stderr and can't be redirected directly,
18830 # and sets the high bit in the cache file unless we assign to the vars.
18832 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18833 eval ac_val=\$$ac_var
18837 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18838 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18841 _ | IFS | as_nl) ;; #(
18842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18843 *) { eval $ac_var=; unset $ac_var;} ;;
18849 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18850 *${as_nl}ac_space=\ *)
18851 # `set' does not quote correctly, so add quotes: double-quote
18852 # substitution turns \\\\ into \\, and sed turns \\ into \.
18855 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18858 # `set' quotes correctly as required by POSIX, so do not add quotes.
18859 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18870 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18872 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18873 if test -w "$cache_file"; then
18874 if test "x
$cache_file" != "x
/dev
/null
"; then
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18876 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18877 if test ! -f "$cache_file" || test -h "$cache_file"; then
18878 cat confcache >"$cache_file"
18880 case $cache_file in #(
18882 mv -f confcache "$cache_file"$$ &&
18883 mv -f "$cache_file"$$ "$cache_file" ;; #(
18885 mv -f confcache "$cache_file" ;;
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18891 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18896 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18897 # Let make expand exec_prefix.
18898 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18900 # Transform confdefs.h into DEFS.
18901 # Protect against shell expansion while executing Makefile rules.
18902 # Protect against Makefile macro expansion.
18904 # If the first sed substitution is executed (which looks for macros that
18905 # take arguments), then branch to the quote section. Otherwise,
18906 # look for a macro that doesn't take arguments.
18916 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18918 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18922 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18935 DEFS=`sed -n "$ac_script" confdefs.h`
18941 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18942 # 1. Remove the extension, and $U if already installed.
18943 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18944 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18945 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18946 # will be set to the directory where LIBOBJS objects are built.
18947 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18948 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18950 LIBOBJS=$ac_libobjs
18952 LTLIBOBJS=$ac_ltlibobjs
18956 : "${CONFIG_STATUS=./config.status}"
18958 ac_clean_files_save=$ac_clean_files
18959 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18961 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18963 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18965 # Generated by $as_me.
18966 # Run this file to recreate the current configuration.
18967 # Compiler output produced by configure, useful for debugging
18968 # configure, is in config.log if it exists.
18971 ac_cs_recheck=false
18974 SHELL=\${CONFIG_SHELL-$SHELL}
18977 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18978 ## -------------------- ##
18979 ## M4sh Initialization. ##
18980 ## -------------------- ##
18982 # Be more Bourne compatible
18983 DUALCASE=1; export DUALCASE # for MKS sh
18984 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18987 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18988 # is contrary to our usage. Disable this feature.
18989 alias -g '${1+"$@"}'='"$@"'
18990 setopt NO_GLOB_SUBST
18992 case `(set -o) 2>/dev/null` in #(
19004 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19005 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19006 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
19007 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19008 # Prefer a ksh shell builtin over an external printf program on Solaris,
19009 # but without wasting forks for bash or zsh.
19010 if test -z "$BASH_VERSION$ZSH_VERSION" \
19011 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
19012 as_echo
='print -r --'
19013 as_echo_n
='print -rn --'
19014 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
19015 as_echo
='printf %s\n'
19016 as_echo_n
='printf %s'
19018 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19019 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
19020 as_echo_n
='/usr/ucb/echo -n'
19022 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
19023 as_echo_n_body
='eval
19027 expr "X$arg" : "X\\(.*\\)$as_nl";
19028 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19030 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19032 export as_echo_n_body
19033 as_echo_n
='sh -c $as_echo_n_body as_echo'
19035 export as_echo_body
19036 as_echo
='sh -c $as_echo_body as_echo'
19039 # The user is always right.
19040 if test "${PATH_SEPARATOR+set}" != set; then
19042 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
19043 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
19050 # We need space, tab and new line, in precisely that order. Quoting is
19051 # there to prevent editors from complaining about space-tab.
19052 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19053 # splitting by setting IFS to empty value.)
19056 # Find who we are. Look in the path if we contain no directory separator.
19059 *[\\/]* ) as_myself
=$0 ;;
19060 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19061 for as_dir
in $PATH
19064 test -z "$as_dir" && as_dir
=.
19065 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19071 # We did not find ourselves, most probably we were run as `sh COMMAND'
19072 # in which case we are not to be found in the path.
19073 if test "x$as_myself" = x
; then
19076 if test ! -f "$as_myself"; then
19077 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19081 # Unset variables that we do not need and which cause bugs (e.g. in
19082 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19083 # suppresses any "Segmentation fault" message there. '((' could
19084 # trigger a bug in pdksh 5.2.14.
19085 for as_var
in BASH_ENV ENV MAIL MAILPATH
19086 do eval test x\
${$as_var+set} = xset \
19087 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19100 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19103 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19104 # ----------------------------------------
19105 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19106 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19107 # script with STATUS, using 1 if that was 0.
19110 as_status
=$1; test $as_status -eq 0 && as_status
=1
19112 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19113 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19115 $as_echo "$as_me: error: $2" >&2
19116 as_fn_exit
$as_status
19120 # as_fn_set_status STATUS
19121 # -----------------------
19122 # Set $? to STATUS, without forking.
19123 as_fn_set_status
()
19126 } # as_fn_set_status
19128 # as_fn_exit STATUS
19129 # -----------------
19130 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19134 as_fn_set_status
$1
19140 # Portably unset VAR.
19143 { eval $1=; unset $1;}
19145 as_unset
=as_fn_unset
19146 # as_fn_append VAR VALUE
19147 # ----------------------
19148 # Append the text in VALUE to the end of the definition contained in VAR. Take
19149 # advantage of any shell optimizations that allow amortized linear growth over
19150 # repeated appends, instead of the typical quadratic growth present in naive
19152 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19153 eval 'as_fn_append ()
19164 # as_fn_arith ARG...
19165 # ------------------
19166 # Perform arithmetic evaluation on the ARGs, and store the result in the
19167 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19168 # must be portable across $(()) and expr.
19169 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19170 eval 'as_fn_arith ()
19177 as_val
=`expr "$@" || test $? -eq 1`
19182 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19183 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19189 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19190 as_basename
=basename
19195 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19201 as_me
=`$as_basename -- "$0" ||
19202 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19203 X"$0" : 'X\(//\)$' \| \
19204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19206 sed '/^.*\/\([^/][^/]*\)\/*$/{
19220 # Avoid depending upon Character Ranges.
19221 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19222 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19223 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19224 as_cr_digits
='0123456789'
19225 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19227 ECHO_C
= ECHO_N
= ECHO_T
=
19228 case `echo -n x` in #(((((
19230 case `echo 'xy\c'` in
19231 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19233 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19240 rm -f conf$$ conf$$.exe conf$$.
file
19241 if test -d conf$$.dir
; then
19242 rm -f conf$$.dir
/conf$$.
file
19245 mkdir conf$$.dir
2>/dev
/null
19247 if (echo >conf$$.
file) 2>/dev
/null
; then
19248 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19250 # ... but there are two gotchas:
19251 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19252 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19253 # In both cases, we have to default to `cp -pR'.
19254 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19256 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19264 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19265 rmdir conf$$.dir
2>/dev
/null
19270 # Create "$as_dir" as a directory, including parents if necessary.
19275 -*) as_dir
=.
/$as_dir;;
19277 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19281 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19282 *) as_qdir
=$as_dir;;
19284 as_dirs
="'$as_qdir' $as_dirs"
19285 as_dir
=`$as_dirname -- "$as_dir" ||
19286 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19287 X"$as_dir" : 'X\(//\)[^/]' \| \
19288 X"$as_dir" : 'X\(//\)$' \| \
19289 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19290 $as_echo X"$as_dir" |
19291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19295 /^X\(\/\/\)[^/].*/{
19308 test -d "$as_dir" && break
19310 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19311 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19315 if mkdir
-p .
2>/dev
/null
; then
19316 as_mkdir_p
='mkdir -p "$as_dir"'
19318 test -d .
/-p && rmdir .
/-p
19323 # as_fn_executable_p FILE
19324 # -----------------------
19325 # Test if FILE is an executable regular file.
19326 as_fn_executable_p
()
19328 test -f "$1" && test -x "$1"
19329 } # as_fn_executable_p
19330 as_test_x
='test -x'
19331 as_executable_p
=as_fn_executable_p
19333 # Sed expression to map a string onto a valid CPP name.
19334 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19336 # Sed expression to map a string onto a valid variable name.
19337 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19341 ## ----------------------------------- ##
19342 ## Main body of $CONFIG_STATUS script. ##
19343 ## ----------------------------------- ##
19345 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19348 # Save the log message, to keep $0 and so on meaningful, and to
19349 # report actual input values of CONFIG_FILES etc. instead of their
19350 # values after options handling.
19352 This file was extended by $as_me, which was
19353 generated by GNU Autoconf 2.69. Invocation command line was
19355 CONFIG_FILES = $CONFIG_FILES
19356 CONFIG_HEADERS = $CONFIG_HEADERS
19357 CONFIG_LINKS = $CONFIG_LINKS
19358 CONFIG_COMMANDS = $CONFIG_COMMANDS
19361 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19366 case $ac_config_files in *"
19367 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19373 # Files that config.status was made for.
19374 config_files="$ac_config_files"
19378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19380 \`$as_me' instantiates files and other configuration actions
19381 from templates according to the current configuration. Unless the files
19382 and actions are specified as TAGs, all are instantiated by default.
19384 Usage: $0 [OPTION]... [TAG]...
19386 -h, --help print this help, then exit
19387 -V, --version print version number and configuration settings, then exit
19388 --config print configuration, then exit
19389 -q, --quiet, --silent
19390 do not print progress messages
19391 -d, --debug don't remove temporary files
19392 --recheck update $as_me by reconfiguring in the same conditions
19393 --file=FILE[:TEMPLATE]
19394 instantiate the configuration file FILE
19396 Configuration files:
19399 Report bugs to the package provider."
19402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19403 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19406 configured by $0, generated by GNU Autoconf 2.69,
19407 with options \\"\$ac_cs_config\\"
19409 Copyright (C) 2012 Free Software Foundation, Inc.
19410 This config.status script is free software; the Free Software Foundation
19411 gives unlimited permission to copy, distribute and modify it."
19417 test -n "\$AWK" || AWK=awk
19420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19421 # The default lists apply if the user does not specify any file.
19427 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19428 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19432 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19444 # Handling of the options.
19445 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19447 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19448 $as_echo "$ac_cs_version"; exit ;;
19449 --config |
--confi |
--conf |
--con |
--co |
--c )
19450 $as_echo "$ac_cs_config"; exit ;;
19451 --debug |
--debu |
--deb |
--de |
--d |
-d )
19453 --file |
--fil |
--fi |
--f )
19456 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19457 '') as_fn_error $?
"missing file argument" ;;
19459 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19460 ac_need_defaults
=false
;;
19461 --he |
--h |
--help |
--hel |
-h )
19462 $as_echo "$ac_cs_usage"; exit ;;
19463 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19464 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19467 # This is an error.
19468 -*) as_fn_error $?
"unrecognized option: \`$1'
19469 Try \`$0 --help' for more information." ;;
19471 *) as_fn_append ac_config_targets
" $1"
19472 ac_need_defaults
=false
;;
19478 ac_configure_extra_args
=
19480 if $ac_cs_silent; then
19482 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19487 if \$ac_cs_recheck; then
19488 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19490 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19491 CONFIG_SHELL='$SHELL'
19492 export CONFIG_SHELL
19497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19501 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19502 ## Running $as_me. ##
19508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19512 extrasub_build="$extrasub_build"
19513 extrasub_host="$extrasub_host"
19514 extrasub_target="$extrasub_target"
19518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19520 # Handling of arguments.
19521 for ac_config_target
in $ac_config_targets
19523 case $ac_config_target in
19524 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19526 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19531 # If the user did not use the arguments to specify the items to instantiate,
19532 # then the envvar interface is used. Set only those that are not.
19533 # We use the long form for the default assignment because of an extremely
19534 # bizarre bug on SunOS 4.1.3.
19535 if $ac_need_defaults; then
19536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19539 # Have a temporary directory for convenience. Make it in the build tree
19540 # simply because there is no reason against having it here, and in addition,
19541 # creating and moving files from /tmp can sometimes cause problems.
19542 # Hook for its removal unless debugging.
19543 # Note that there is a small window in which the directory will not be cleaned:
19544 # after its creation but before its name has been assigned to `$tmp'.
19548 trap 'exit_status=$?
19549 : "${ac_tmp:=$tmp}"
19550 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19552 trap 'as_fn_exit 1' 1 2 13 15
19554 # Create a (secure) tmp directory for tmp files.
19557 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19561 tmp
=.
/conf$$
-$RANDOM
19562 (umask 077 && mkdir
"$tmp")
19563 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19566 # Set up the scripts for CONFIG_FILES section.
19567 # No need to generate them if there are no CONFIG_FILES.
19568 # This happens for instance with `./config.status config.h'.
19569 if test -n "$CONFIG_FILES"; then
19571 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19572 ac_cs_awk_getline
=:
19573 ac_cs_awk_pipe_init
=
19574 ac_cs_awk_read_file
='
19575 while ((getline aline < (F[key])) > 0)
19578 ac_cs_awk_pipe_fini
=
19580 ac_cs_awk_getline
=false
19581 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19582 ac_cs_awk_read_file
='
19584 print "cat " F[key] " &&"
19585 '$ac_cs_awk_pipe_init
19586 # The final `:' finishes the AND list.
19587 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19589 ac_cr
=`echo X | tr X '\015'`
19590 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19591 # But we know of no other shell where ac_cr would be empty at this
19592 # point, so we can use a bashism as a fallback.
19593 if test "x$ac_cr" = x
; then
19594 eval ac_cr
=\$
\'\\r
\'
19596 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19597 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19600 ac_cs_awk_cr
=$ac_cr
19603 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19606 # Create commands to substitute file output variables.
19608 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19609 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19610 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19613 } >conf$
$files.sh
&&
19614 . .
/conf$
$files.sh ||
19615 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19616 rm -f conf$
$files.sh
19619 echo "cat >conf$$subs.awk <<_ACEOF" &&
19620 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19622 } >conf$$subs.sh ||
19623 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19624 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19626 for ac_last_try in false false false false false :; do
19627 . ./conf$$subs.sh ||
19628 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19630 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19631 if test $ac_delim_n = $ac_delim_num; then
19633 elif $ac_last_try; then
19634 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19636 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19639 rm -f conf$$subs.sh
19641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19642 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19646 s/^/S["/; s
/!.
*/"]=/
19656 s/\(.\{148\}\)..*/\1/
19658 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19663 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19670 s/\(.\{148\}\)..*/\1/
19672 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19676 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19681 ' <conf$$subs.awk | sed '
19686 ' >>$CONFIG_STATUS || ac_write_fail=1
19687 rm -f conf$$subs.awk
19688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19690 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19691 for (key in S) S_is_set[key] = 1
19693 \$ac_cs_awk_pipe_init
19697 nfields = split(line, field, "@
")
19699 len = length(field[1])
19700 for (i = 2; i < nfields; i++) {
19702 keylen = length(key)
19703 if (S_is_set[key]) {
19705 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19706 len += length(value) + length(field[++i])
19711 if (nfields == 3 && !substed) {
19713 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19714 \$ac_cs_awk_read_file
19720 \$ac_cs_awk_pipe_fini
19723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19724 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19725 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19728 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19729 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19732 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19733 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19734 # trailing colons and then remove the whole line if VPATH becomes empty
19735 # (actually we leave an empty line to preserve line numbers).
19736 if test "x
$srcdir" = x.; then
19737 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19756 fi # test -n "$CONFIG_FILES"
19759 eval set X " :F
$CONFIG_FILES "
19764 :[FHLC]) ac_mode=$ac_tag; continue;;
19766 case $ac_mode$ac_tag in
19768 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19769 :[FH]-) ac_tag=-:-;;
19770 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19787 -) ac_f="$ac_tmp/stdin";;
19788 *) # Look for the file first in the build tree, then in the source tree
19789 # (if the path is not absolute). The absolute path cannot be DOS-style,
19790 # because $ac_f cannot contain `:'.
19794 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19796 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19798 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19799 as_fn_append ac_file_inputs " '$ac_f'"
19802 # Let's still pretend it is `configure' which instantiates (i.e., don't
19803 # use $as_me), people would be surprised to read:
19804 # /* config.h. Generated by config.status. */
19805 configure_input='Generated from '`
19806 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19808 if test x"$ac_file" != x-; then
19809 configure_input="$ac_file.
$configure_input"
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19811 $as_echo "$as_me: creating
$ac_file" >&6;}
19813 # Neutralize special characters interpreted by sed in replacement strings.
19814 case $configure_input in #(
19815 *\&* | *\|* | *\\* )
19816 ac_sed_conf_input=`$as_echo "$configure_input" |
19817 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19818 *) ac_sed_conf_input=$configure_input;;
19822 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19823 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19828 ac_dir=`$as_dirname -- "$ac_file" ||
19829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19830 X"$ac_file" : 'X\(//\)[^/]' \| \
19831 X"$ac_file" : 'X\(//\)$' \| \
19832 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19833 $as_echo X"$ac_file" |
19834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19838 /^X\(\/\/\)[^/].*/{
19851 as_dir="$ac_dir"; as_fn_mkdir_p
19855 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19857 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19858 # A "..
" for each directory in $ac_dir_suffix.
19859 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19860 case $ac_top_builddir_sub in
19861 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19862 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19865 ac_abs_top_builddir=$ac_pwd
19866 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19867 # for backward compatibility:
19868 ac_top_builddir=$ac_top_build_prefix
19871 .) # We are building in place.
19873 ac_top_srcdir=$ac_top_builddir_sub
19874 ac_abs_top_srcdir=$ac_pwd ;;
19875 [\\/]* | ?:[\\/]* ) # Absolute name.
19876 ac_srcdir=$srcdir$ac_dir_suffix;
19877 ac_top_srcdir=$srcdir
19878 ac_abs_top_srcdir=$srcdir ;;
19879 *) # Relative name.
19880 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19881 ac_top_srcdir=$ac_top_build_prefix$srcdir
19882 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19884 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19894 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19895 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19900 # If the template does not know about datarootdir, expand it.
19901 # FIXME: This hack should be removed a few years after 2.60.
19902 ac_datarootdir_hack=; ac_datarootdir_seen=
19913 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19914 *datarootdir*) ac_datarootdir_seen=yes;;
19915 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19917 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19920 ac_datarootdir_hack='
19921 s&@datadir@&$datadir&g
19922 s&@docdir@&$docdir&g
19923 s&@infodir@&$infodir&g
19924 s&@localedir@&$localedir&g
19925 s&@mandir@&$mandir&g
19926 s&\\\${datarootdir}&$datarootdir&g' ;;
19930 # Neutralize VPATH when `$srcdir' = `.'.
19931 # Shell code in configure.ac might set extrasub.
19932 # FIXME: do we really want to maintain this feature?
19933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19934 ac_sed_extra="$ac_vpsub
19937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19939 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19940 s|@configure_input@|
$ac_sed_conf_input|
;t t
19941 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19942 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19943 s
&@srcdir@
&$ac_srcdir&;t t
19944 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19945 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19946 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19947 s
&@builddir@
&$ac_builddir&;t t
19948 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19949 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19950 s
&@INSTALL@
&$ac_INSTALL&;t t
19951 $ac_datarootdir_hack
19953 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19954 if $ac_cs_awk_getline; then
19955 $AWK -f "$ac_tmp/subs.
awk"
19957 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19959 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19961 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19962 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19963 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19964 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19966 which seems to be undefined. Please make sure it is defined" >&5
19967 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19968 which seems to be undefined. Please make sure it is defined" >&2;}
19970 rm -f "$ac_tmp/stdin"
19972 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19973 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19983 case $ac_file$ac_mode in
19984 "Makefile":F) sed "$extrasub_build" Makefile |
19985 sed "$extrasub_host" |
19986 sed "$extrasub_target" > mf$$
19987 mv -f mf$$ Makefile ;;
19995 ac_clean_files=$ac_clean_files_save
19997 test $ac_write_fail = 0 ||
19998 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20001 # configure is writing to config.log, and then calls config.status.
20002 # config.status does its own redirection, appending to config.log.
20003 # Unfortunately, on DOS this fails, as config.log is still kept open
20004 # by configure, so config.status won't be able to
write to it
; its
20005 # output is simply discarded. So we exec the FD to /dev/null,
20006 # effectively closing config.log, so it can be properly (re)opened and
20007 # appended to by config.status. When coming back to configure, we
20008 # need to make the FD available again.
20009 if test "$no_create" != yes; then
20011 ac_config_status_args
=
20012 test "$silent" = yes &&
20013 ac_config_status_args
="$ac_config_status_args --quiet"
20015 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20017 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20018 # would make configure fail if this is the last instruction.
20019 $ac_cs_success || as_fn_exit
1
20021 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20023 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}