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
687 DEBUG_PREFIX_CFLAGS_FOR_TARGET
688 SYSROOT_CFLAGS_FOR_TARGET
690 extra_host_zlib_configure_flags
691 extra_host_libiberty_configure_flags
695 enable_libgdiagnostics
700 extra_linker_plugin_flags
701 extra_linker_plugin_configure_flags
708 extra_isl_gmp_configure_flags
709 extra_mpc_mpfr_configure_flags
710 extra_mpc_gmp_configure_flags
711 extra_mpfr_configure_flags
761 TOPLEVEL_CONFIGURE_ARGUMENTS
789 program_transform_name
800 ac_subst_files
='serialization_dependencies
806 enable_option_checking
810 enable_as_accelerator_for
811 enable_offload_targets
812 enable_offload_defaulted
816 enable_compressed_debug_sections
817 enable_default_compressed_debug_sections_algorithm
820 enable_libquadmath_support
837 with_static_standard_libraries
844 enable_isl_version_check
846 enable_linker_plugin_configure_flags
847 enable_linker_plugin_flags
850 enable_libgdiagnostics
851 enable_stage1_languages
854 with_target_bdw_gc_include
855 with_target_bdw_gc_lib
856 with_gcc_major_version_only
858 with_debug_prefix_map
861 enable_serial_configure
862 with_build_time_tools
863 enable_maintainer_mode
864 enable_stage1_checking
867 ac_precious_vars
='build_alias
920 # Initialize some variables set by options.
922 ac_init_version
=false
923 ac_unrecognized_opts
=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
934 program_transform_name
=s
,x
,x
,
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir
='${exec_prefix}/bin'
949 sbindir
='${exec_prefix}/sbin'
950 libexecdir
='${exec_prefix}/libexec'
951 datarootdir
='${prefix}/share'
952 datadir
='${datarootdir}'
953 sysconfdir
='${prefix}/etc'
954 sharedstatedir
='${prefix}/com'
955 localstatedir
='${prefix}/var'
956 includedir
='${prefix}/include'
957 oldincludedir
='/usr/include'
958 docdir
='${datarootdir}/doc/${PACKAGE}'
959 infodir
='${datarootdir}/info'
964 libdir
='${exec_prefix}/lib'
965 localedir
='${datarootdir}/locale'
966 mandir
='${datarootdir}/man'
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\
$ac_option
980 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
991 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
993 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
996 -build |
--build |
--buil |
--bui |
--bu)
997 ac_prev
=build_alias
;;
998 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
999 build_alias
=$ac_optarg ;;
1001 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1002 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1003 ac_prev
=cache_file
;;
1004 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1005 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1006 cache_file
=$ac_optarg ;;
1008 --config-cache |
-C)
1009 cache_file
=config.cache
;;
1011 -datadir |
--datadir |
--datadi |
--datad)
1013 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1014 datadir
=$ac_optarg ;;
1016 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1017 |
--dataroo |
--dataro |
--datar)
1018 ac_prev
=datarootdir
;;
1019 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1020 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1021 datarootdir
=$ac_optarg ;;
1023 -disable-* |
--disable-*)
1024 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1027 as_fn_error $?
"invalid feature name: $ac_useropt"
1028 ac_useropt_orig
=$ac_useropt
1029 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_
$ac_useropt"
1034 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep
=', ';;
1037 eval enable_
$ac_useropt=no
;;
1039 -docdir |
--docdir |
--docdi |
--doc |
--do)
1041 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1042 docdir
=$ac_optarg ;;
1044 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1046 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1047 dvidir
=$ac_optarg ;;
1049 -enable-* |
--enable-*)
1050 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1053 as_fn_error $?
"invalid feature name: $ac_useropt"
1054 ac_useropt_orig
=$ac_useropt
1055 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_
$ac_useropt"
1060 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep
=', ';;
1063 eval enable_
$ac_useropt=\
$ac_optarg ;;
1065 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1066 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1067 |
--exec |
--exe |
--ex)
1068 ac_prev
=exec_prefix
;;
1069 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1070 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1071 |
--exec=* |
--exe=* |
--ex=*)
1072 exec_prefix
=$ac_optarg ;;
1074 -gas |
--gas |
--ga |
--g)
1075 # Obsolete; use --with-gas.
1078 -help |
--help |
--hel |
--he |
-h)
1079 ac_init_help
=long
;;
1080 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1081 ac_init_help
=recursive
;;
1082 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1083 ac_init_help
=short
;;
1085 -host |
--host |
--hos |
--ho)
1086 ac_prev
=host_alias
;;
1087 -host=* |
--host=* |
--hos=* |
--ho=*)
1088 host_alias
=$ac_optarg ;;
1090 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1092 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1094 htmldir
=$ac_optarg ;;
1096 -includedir |
--includedir |
--includedi |
--included |
--include \
1097 |
--includ |
--inclu |
--incl |
--inc)
1098 ac_prev
=includedir
;;
1099 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1100 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1101 includedir
=$ac_optarg ;;
1103 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1105 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1106 infodir
=$ac_optarg ;;
1108 -libdir |
--libdir |
--libdi |
--libd)
1110 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1111 libdir
=$ac_optarg ;;
1113 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1114 |
--libexe |
--libex |
--libe)
1115 ac_prev
=libexecdir
;;
1116 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1117 |
--libexe=* |
--libex=* |
--libe=*)
1118 libexecdir
=$ac_optarg ;;
1120 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1121 ac_prev
=localedir
;;
1122 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1123 localedir
=$ac_optarg ;;
1125 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1126 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1127 ac_prev
=localstatedir
;;
1128 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1129 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1130 localstatedir
=$ac_optarg ;;
1132 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1134 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1135 mandir
=$ac_optarg ;;
1137 -nfp |
--nfp |
--nf)
1138 # Obsolete; use --without-fp.
1141 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1142 |
--no-cr |
--no-c |
-n)
1145 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1146 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1149 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1150 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1151 |
--oldin |
--oldi |
--old |
--ol |
--o)
1152 ac_prev
=oldincludedir
;;
1153 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1154 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1155 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1156 oldincludedir
=$ac_optarg ;;
1158 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1160 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1161 prefix
=$ac_optarg ;;
1163 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1164 |
--program-pre |
--program-pr |
--program-p)
1165 ac_prev
=program_prefix
;;
1166 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1167 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1168 program_prefix
=$ac_optarg ;;
1170 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1171 |
--program-suf |
--program-su |
--program-s)
1172 ac_prev
=program_suffix
;;
1173 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1174 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1175 program_suffix
=$ac_optarg ;;
1177 -program-transform-name |
--program-transform-name \
1178 |
--program-transform-nam |
--program-transform-na \
1179 |
--program-transform-n |
--program-transform- \
1180 |
--program-transform |
--program-transfor \
1181 |
--program-transfo |
--program-transf \
1182 |
--program-trans |
--program-tran \
1183 |
--progr-tra |
--program-tr |
--program-t)
1184 ac_prev
=program_transform_name
;;
1185 -program-transform-name=* |
--program-transform-name=* \
1186 |
--program-transform-nam=* |
--program-transform-na=* \
1187 |
--program-transform-n=* |
--program-transform-=* \
1188 |
--program-transform=* |
--program-transfor=* \
1189 |
--program-transfo=* |
--program-transf=* \
1190 |
--program-trans=* |
--program-tran=* \
1191 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1192 program_transform_name
=$ac_optarg ;;
1194 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1196 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1197 pdfdir
=$ac_optarg ;;
1199 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1201 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1204 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1205 |
-silent |
--silent |
--silen |
--sile |
--sil)
1208 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1210 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1212 sbindir
=$ac_optarg ;;
1214 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1215 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1216 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1218 ac_prev
=sharedstatedir
;;
1219 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1220 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1221 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1223 sharedstatedir
=$ac_optarg ;;
1225 -site |
--site |
--sit)
1227 -site=* |
--site=* |
--sit=*)
1230 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1232 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1233 srcdir
=$ac_optarg ;;
1235 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1236 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1237 ac_prev
=sysconfdir
;;
1238 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1239 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1240 sysconfdir
=$ac_optarg ;;
1242 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1243 ac_prev
=target_alias
;;
1244 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1245 target_alias
=$ac_optarg ;;
1247 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1250 -version |
--version |
--versio |
--versi |
--vers |
-V)
1251 ac_init_version
=: ;;
1254 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1257 as_fn_error $?
"invalid package name: $ac_useropt"
1258 ac_useropt_orig
=$ac_useropt
1259 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep
=', ';;
1267 eval with_
$ac_useropt=\
$ac_optarg ;;
1269 -without-* |
--without-*)
1270 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1273 as_fn_error $?
"invalid package name: $ac_useropt"
1274 ac_useropt_orig
=$ac_useropt
1275 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep
=', ';;
1283 eval with_
$ac_useropt=no
;;
1286 # Obsolete; use --with-x.
1289 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1290 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1291 ac_prev
=x_includes
;;
1292 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1293 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1294 x_includes
=$ac_optarg ;;
1296 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1297 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1298 ac_prev
=x_libraries
;;
1299 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1300 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1301 x_libraries
=$ac_optarg ;;
1303 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1308 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1312 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1314 eval $ac_envvar=\
$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328 if test -n "$ac_prev"; then
1329 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $?
"missing argument to $ac_option"
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1336 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341 # Check all directory arguments for consistency.
1342 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1347 eval ac_val
=\$
$ac_var
1348 # Remove trailing slashes.
1351 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\
$ac_val;;
1354 # Be sure to have absolute directory names.
1356 [\\/$
]* | ?
:[\\/]* ) continue;;
1357 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1359 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1367 target
=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x
; then
1371 if test "x$build_alias" = x
; then
1372 cross_compiling
=maybe
1373 elif test "x$build_alias" != "x$host_alias"; then
1379 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1381 test "$silent" = yes && exec 6>/dev
/null
1384 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di
=`ls -di .` &&
1386 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $?
"working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $?
"pwd does not report name of working directory"
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted
=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir
=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1424 ac_srcdir_defaulted
=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1428 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1430 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1442 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 as_fn_error $?
"path to source, $srcdir, contains spaces"
1449 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1451 for ac_var
in $ac_precious_vars; do
1452 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1454 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1459 # Report the --help message.
1461 if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1465 \`configure' configures this package to adapt to many kinds of systems.
1467 Usage: $0 [OPTION]... [VAR=VALUE]...
1469 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470 VAR=VALUE. See below for descriptions of some of the useful variables.
1472 Defaults for the options are specified in brackets.
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking ...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485 Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
1487 [$ac_default_prefix]
1488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1491 By default, \`make install' will install all the files in
1492 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494 for instance \`--prefix=\$HOME'.
1496 For better control, use the options below.
1498 Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
1502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
1523 --program-prefix=PREFIX prepend PREFIX to installed program names
1524 --program-suffix=SUFFIX append SUFFIX to installed program names
1525 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1528 --build=BUILD configure
for building on BUILD
[guessed
]
1529 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1530 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1534 if test -n "$ac_init_help"; then
1539 --disable-option-checking ignore unrecognized
--enable/--with options
1540 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1541 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1542 --enable-as-accelerator-for=ARG
1543 build as offload target compiler. Specify offload
1545 --enable-offload-targets=LIST
1546 enable offloading to devices from comma-separated
1547 LIST of TARGET
[=DIR
]. Use optional path to
find
1548 offload target compiler during the build
1549 --enable-offload-defaulted
1550 If enabled
, configured but not installed offload compilers and
1551 libgomp plugins are silently ignored. Useful
for distribution
1552 compilers where those are
in separate optional packages.
1554 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1555 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1556 --disable-gprofng do not build gprofng
1557 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1558 Enable compressed debug sections
for gas
, gold or ld
1560 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1561 Default compression algorithm
for
1562 --enable-compressed-debug-sections.
1563 --enable-year2038 enable support
for timestamps past the year
2038
1564 --disable-libquadmath do not build libquadmath directory
1565 --disable-libquadmath-support
1566 disable libquadmath support
for Fortran
1567 --enable-libada build libada directory
1568 --enable-libgm2 build libgm2 directory
1569 --enable-libssp build libssp directory
1570 --disable-libstdcxx do not build libstdc
++-v3 directory
1571 --enable-bootstrap enable bootstrapping
[yes if native build
]
1572 --enable-pgo-build[=lto
]
1573 enable the PGO build
1574 --disable-isl-version-check
1575 disable check
for isl version
1576 --enable-lto enable link
time optimization support
1577 --enable-linker-plugin-configure-flags=FLAGS
1578 additional flags
for configuring linker plugins
1580 --enable-linker-plugin-flags=FLAGS
1581 additional flags
for configuring and building linker
1583 --enable-host-pie build position independent
host executables
1584 --enable-host-shared build
host code as shared libraries
1585 --enable-libgdiagnostics
1586 build libgdiagnostics shared library
1587 --enable-stage1-languages[=all
]
1588 choose additional languages to build during stage1.
1589 Mostly useful
for compiler development
1590 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1592 --enable-vtable-verify Enable vtable verification feature
1593 --enable-serial-[{host,target,build}-]configure
1594 force sequential configuration of sub-packages for
1595 the host, target or build machine, or all
1597 --enable-maintainer-mode
1598 enable make rules and dependencies not useful (and
1599 sometimes confusing) to the casual installer
1600 --enable-stage1-checking[=all]
1601 choose additional checking for stage1 of the
1603 --enable-werror enable -Werror in bootstrap stage2 and later
1606 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1607 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1608 --with-build-libsubdir=DIR Directory where to find libraries for build system
1609 --with-system-zlib use installed libz
1610 --with-zstd Support zstd compressed debug sections
1612 --with-mpc=PATH specify prefix directory for installed MPC package.
1613 Equivalent to --with-mpc-include=PATH/include plus
1614 --with-mpc-lib=PATH/lib
1615 --with-mpc-include=PATH specify directory for installed MPC include files
1616 --with-mpc-lib=PATH specify directory for the installed MPC library
1617 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1618 Equivalent to --with-mpfr-include=PATH/include plus
1619 --with-mpfr-lib=PATH/lib
1620 --with-mpfr-include=PATH
1621 specify directory for installed MPFR include files
1622 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1623 --with-gmp=PATH specify prefix directory for the installed GMP
1624 package. Equivalent to
1625 --with-gmp-include=PATH/include plus
1626 --with-gmp-lib=PATH/lib
1627 --with-gmp-include=PATH specify directory for installed GMP include files
1628 --with-gmp-lib=PATH specify directory for the installed GMP library
1629 --with-stage1-libs=LIBS libraries for stage1
1630 --with-static-standard-libraries
1631 use -static-libstdc++ and -static-libgcc
1633 --with-stage1-ldflags=FLAGS
1634 linker flags for stage1
1635 --with-boot-libs=LIBS libraries for stage2 and later
1636 --with-boot-ldflags=FLAGS
1637 linker flags for stage2 and later
1638 --with-isl=PATH Specify prefix directory for the installed isl
1639 package. Equivalent to
1640 --with-isl-include=PATH/include plus
1641 --with-isl-lib=PATH/lib
1642 --with-isl-include=PATH Specify directory for installed isl include files
1643 --with-isl-lib=PATH Specify the directory for the installed isl library
1644 --with-target-bdw-gc=PATHLIST
1645 specify prefix directory for installed bdw-gc
1646 package. Equivalent to
1647 --with-target-bdw-gc-include=PATH/include plus
1648 --with-target-bdw-gc-lib=PATH/lib
1649 --with-target-bdw-gc-include=PATHLIST
1650 specify directories for installed bdw-gc include
1652 --with-target-bdw-gc-lib=PATHLIST
1653 specify directories for installed bdw-gc library
1654 --with-gcc-major-version-only
1655 use only GCC major number in filesystem paths
1656 --with-build-sysroot=SYSROOT
1657 use sysroot as the system root during the build
1658 --with-debug-prefix-map='A
=B C
=D ...
'
1659 map A to B, C to D ... in debug information
1660 --with-build-config='NAME NAME2...
'
1661 use config/NAME.mk build configuration
1662 --with-build-time-tools=PATH
1663 use given path to find target tools during the build
1665 Some influential environment variables:
1666 CC C compiler command
1667 CFLAGS C compiler flags
1668 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1669 nonstandard directory <lib dir>
1670 LIBS libraries to pass to the linker, e.g. -l<library>
1671 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1672 you have headers in a nonstandard directory <include dir>
1673 CXX C++ compiler command
1674 CXXFLAGS C++ compiler flags
1676 additional configure arguments for build directories
1678 additional configure arguments for host directories
1680 additional configure arguments for target directories
1683 DLLTOOL DLLTOOL for the host
1684 DSYMUTIL DSYMUTIL for the host
1686 LIPO LIPO for the host
1688 RANLIB RANLIB for the host
1689 STRIP STRIP for the host
1690 WINDRES WINDRES for the host
1691 WINDMC WINDMC for the host
1692 OBJCOPY OBJCOPY for the host
1693 OBJDUMP OBJDUMP for the host
1694 OTOOL OTOOL for the host
1695 READELF READELF for the host
1703 GFORTRAN for the target
1715 DLLTOOL for the target
1717 DSYMUTIL for the target
1725 OBJCOPY for the target
1727 OBJDUMP for the target
1729 OTOOL for the target
1731 RANLIB for the target
1733 READELF for the target
1735 STRIP for the target
1737 WINDRES for the target
1739 WINDMC for the target
1741 Use these variables to override the choices made by `configure' or to
help
1742 it to
find libraries and programs with nonstandard names
/locations.
1744 Report bugs to the package provider.
1749 if test "$ac_init_help" = "recursive"; then
1750 # If there are subdirs, report their specific --help.
1751 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1752 test -d "$ac_dir" ||
1753 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1758 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1760 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1761 # A ".." for each directory in $ac_dir_suffix.
1762 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1763 case $ac_top_builddir_sub in
1764 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1765 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1768 ac_abs_top_builddir
=$ac_pwd
1769 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1770 # for backward compatibility:
1771 ac_top_builddir
=$ac_top_build_prefix
1774 .
) # We are building in place.
1776 ac_top_srcdir
=$ac_top_builddir_sub
1777 ac_abs_top_srcdir
=$ac_pwd ;;
1778 [\\/]* | ?
:[\\/]* ) # Absolute name.
1779 ac_srcdir
=$srcdir$ac_dir_suffix;
1780 ac_top_srcdir
=$srcdir
1781 ac_abs_top_srcdir
=$srcdir ;;
1783 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1784 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1785 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1787 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1789 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1790 # Check for guested configure.
1791 if test -f "$ac_srcdir/configure.gnu"; then
1793 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1794 elif test -f "$ac_srcdir/configure"; then
1796 $SHELL "$ac_srcdir/configure" --help=recursive
1798 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1800 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1804 test -n "$ac_init_help" && exit $ac_status
1805 if $ac_init_version; then
1808 generated by GNU Autoconf
2.69
1810 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1811 This configure
script is free software
; the Free Software Foundation
1812 gives unlimited permission to copy
, distribute and modify it.
1817 ## ------------------------ ##
1818 ## Autoconf initialization. ##
1819 ## ------------------------ ##
1821 # ac_fn_c_try_compile LINENO
1822 # --------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_compile
()
1826 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1827 rm -f conftest.
$ac_objext
1828 if { { ac_try
="$ac_compile"
1830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_compile") 2>conftest.err
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest.$ac_objext; then :
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1857 } # ac_fn_c_try_compile
1859 # ac_fn_cxx_try_compile LINENO
1860 # ----------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_cxx_try_compile ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext
1866 if { { ac_try="$ac_compile"
1868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1869 *) ac_try_echo
=$ac_try;;
1871 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_compile") 2>conftest.err
1875 if test -s conftest.err
; then
1876 grep -v '^ *+' conftest.err
>conftest.er1
1877 cat conftest.er1
>&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_cxx_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest.
$ac_objext; then :
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.
$ac_ext >&5
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status
$ac_retval
1895 } # ac_fn_cxx_try_compile
1897 # ac_fn_cxx_try_link LINENO
1898 # -------------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_cxx_try_link
()
1902 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1903 rm -f conftest.
$ac_objext conftest
$ac_exeext
1904 if { { ac_try
="$ac_link"
1906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>conftest.err
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_cxx_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest$ac_exeext && {
1923 test "$cross_compiling" = yes ||
1924 test -x conftest$ac_exeext
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935 # interfere with the next link command; also delete a directory that is
1936 # left behind by Apple's compiler. We do this before executing the actions.
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1941 } # ac_fn_cxx_try_link
1943 # ac_fn_c_try_link LINENO
1944 # -----------------------
1945 # Try to link conftest.$ac_ext, and return whether this succeeded.
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 rm -f conftest.$ac_objext conftest$ac_exeext
1950 if { { ac_try="$ac_link"
1952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1953 *) ac_try_echo
=$ac_try;;
1955 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_link") 2>conftest.err
1959 if test -s conftest.err
; then
1960 grep -v '^ *+' conftest.err
>conftest.er1
1961 cat conftest.er1
>&5
1962 mv -f conftest.er1 conftest.err
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && {
1966 test -z "$ac_c_werror_flag" ||
1967 test ! -s conftest.err
1968 } && test -s conftest
$ac_exeext && {
1969 test "$cross_compiling" = yes ||
1970 test -x conftest
$ac_exeext
1974 $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.
$ac_ext >&5
1979 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1980 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1981 # interfere with the next link command; also delete a directory that is
1982 # left behind by Apple's compiler. We do this before executing the actions.
1983 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 as_fn_set_status
$ac_retval
1987 } # ac_fn_c_try_link
1988 cat >config.log
<<_ACEOF
1989 This file contains any messages produced by compilers while
1990 running configure, to aid debugging if configure makes a mistake.
1992 It was created by $as_me, which was
1993 generated by GNU Autoconf 2.69. Invocation command line was
2005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2017 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir
=.
2029 $as_echo "PATH: $as_dir"
2045 # Keep a trace of the command line.
2046 # Strip out --no-create and --no-recursion so they do not pile up.
2047 # Strip out --silent because we don't want to record it for future runs.
2048 # Also quote any args containing shell meta-characters.
2049 # Make two passes to allow for proper duplicate-argument suppression.
2053 ac_must_keep_next
=false
2059 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2060 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2061 |
-silent |
--silent |
--silen |
--sile |
--sil)
2064 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2067 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2069 as_fn_append ac_configure_args1
" '$ac_arg'"
2070 if test $ac_must_keep_next = true
; then
2071 ac_must_keep_next
=false
# Got value, back to normal.
2074 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2075 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2076 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2077 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2078 case "$ac_configure_args0 " in
2079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2082 -* ) ac_must_keep_next
=true
;;
2085 as_fn_append ac_configure_args
" '$ac_arg'"
2090 { ac_configure_args0
=; unset ac_configure_args0
;}
2091 { ac_configure_args1
=; unset ac_configure_args1
;}
2093 # When interrupted or exit'd, cleanup temporary files, and complete
2094 # config.log. We remove comments because anyway the quotes in there
2095 # would cause problems or look ugly.
2096 # WARNING: Use '\'' to represent an apostrophe within the trap.
2097 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2098 trap 'exit_status=$?
2099 # Save into config.log some information that might help in debugging.
2103 $as_echo "## ---------------- ##
2104 ## Cache variables. ##
2105 ## ---------------- ##"
2107 # The following way of writing the cache mishandles newlines in values,
2109 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2110 eval ac_val=\$$ac_var
2114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2115 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2118 _ | IFS | as_nl) ;; #(
2119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2120 *) { eval $ac_var=; unset $ac_var;} ;;
2125 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2126 *${as_nl}ac_space=\ *)
2128 "s/'\''/'\''\\\\'\'''\''/g;
2129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2132 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2139 $as_echo "## ----------------- ##
2140 ## Output variables. ##
2141 ## ----------------- ##"
2143 for ac_var in $ac_subst_vars
2145 eval ac_val=\$$ac_var
2147 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149 $as_echo "$ac_var='\''$ac_val'\''"
2153 if test -n "$ac_subst_files"; then
2154 $as_echo "## ------------------- ##
2155 ## File substitutions. ##
2156 ## ------------------- ##"
2158 for ac_var
in $ac_subst_files
2160 eval ac_val
=\$
$ac_var
2162 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164 $as_echo "$ac_var='\''$ac_val'\''"
2169 if test -s confdefs.h; then
2170 $as_echo "## ----------- ##
2177 test "$ac_signal" != 0 &&
2178 $as_echo "$as_me: caught signal $ac_signal"
2179 $as_echo "$as_me: exit $exit_status"
2181 rm -f core *.core core.conftest.* &&
2182 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2185 for ac_signal
in 1 2 13 15; do
2186 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2191 rm -f -r conftest
* confdefs.h
2193 $as_echo "/* confdefs.h */" > confdefs.h
2195 # Predefined preprocessor variables.
2197 cat >>confdefs.h
<<_ACEOF
2198 #define PACKAGE_NAME "$PACKAGE_NAME"
2201 cat >>confdefs.h
<<_ACEOF
2202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2205 cat >>confdefs.h
<<_ACEOF
2206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2209 cat >>confdefs.h
<<_ACEOF
2210 #define PACKAGE_STRING "$PACKAGE_STRING"
2213 cat >>confdefs.h
<<_ACEOF
2214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2217 cat >>confdefs.h
<<_ACEOF
2218 #define PACKAGE_URL "$PACKAGE_URL"
2222 # Let the site file select an alternate cache file if it wants to.
2223 # Prefer an explicitly selected file to automatically selected ones.
2226 if test -n "$CONFIG_SITE"; then
2227 # We do not want a PATH search for config.site.
2228 case $CONFIG_SITE in #((
2229 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2230 */*) ac_site_file1
=$CONFIG_SITE;;
2231 *) ac_site_file1
=.
/$CONFIG_SITE;;
2233 elif test "x$prefix" != xNONE
; then
2234 ac_site_file1
=$prefix/share
/config.site
2235 ac_site_file2
=$prefix/etc
/config.site
2237 ac_site_file1
=$ac_default_prefix/share
/config.site
2238 ac_site_file2
=$ac_default_prefix/etc
/config.site
2240 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2242 test "x$ac_site_file" = xNONE
&& continue
2243 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2245 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2246 sed 's/^/| /' "$ac_site_file" >&5
2248 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2250 as_fn_error $?
"failed to load site script $ac_site_file
2251 See \`config.log' for more details" "$LINENO" 5; }
2255 if test -r "$cache_file"; then
2256 # Some versions of bash will fail to source /dev/null (special files
2257 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2258 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2260 $as_echo "$as_me: loading cache $cache_file" >&6;}
2262 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2263 *) .
"./$cache_file";;
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2268 $as_echo "$as_me: creating cache $cache_file" >&6;}
2272 # Check that the precious variables saved in the cache have kept the same
2274 ac_cache_corrupted
=false
2275 for ac_var
in $ac_precious_vars; do
2276 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2277 eval ac_new_set
=\
$ac_env_${ac_var}_set
2278 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2279 eval ac_new_val
=\
$ac_env_${ac_var}_value
2280 case $ac_old_set,$ac_new_set in
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2283 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2284 ac_cache_corrupted
=: ;;
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2287 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2288 ac_cache_corrupted
=: ;;
2291 if test "x$ac_old_val" != "x$ac_new_val"; then
2292 # differences in whitespace do not lead to failure.
2293 ac_old_val_w
=`echo x $ac_old_val`
2294 ac_new_val_w
=`echo x $ac_new_val`
2295 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2297 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2298 ac_cache_corrupted
=:
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2301 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2302 eval $ac_var=\
$ac_old_val
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2305 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2307 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2310 # Pass precious variables to config.status.
2311 if test "$ac_new_set" = set; then
2313 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2314 *) ac_arg
=$ac_var=$ac_new_val ;;
2316 case " $ac_configure_args " in
2317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2318 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2322 if $ac_cache_corrupted; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2326 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2327 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2329 ## -------------------- ##
2330 ## Main body of script. ##
2331 ## -------------------- ##
2334 ac_cpp
='$CPP $CPPFLAGS'
2335 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2347 # if PWD already has a value, it is probably wrong.
2348 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2350 # Export original configure arguments for use by sub-configures.
2351 # Quote arguments with shell meta charatcers.
2352 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2353 set -- "$progname" "$@"
2357 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2358 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2359 # if the argument is of the form -foo=baz, quote the baz part only
2360 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2363 # Add the quoted argument to the list.
2364 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2366 if test "$silent" = yes; then
2367 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2369 # Remove the initial space we just introduced and, as these will be
2370 # expanded by make, quote '$'.
2371 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2374 # Find the build, host, and target systems.
2376 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2377 if test -f "$ac_dir/install-sh"; then
2379 ac_install_sh
="$ac_aux_dir/install-sh -c"
2381 elif test -f "$ac_dir/install.sh"; then
2383 ac_install_sh
="$ac_aux_dir/install.sh -c"
2385 elif test -f "$ac_dir/shtool"; then
2387 ac_install_sh
="$ac_aux_dir/shtool install -c"
2391 if test -z "$ac_aux_dir"; then
2392 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2395 # These three variables are undocumented and unsupported,
2396 # and are intended to be withdrawn in a future Autoconf release.
2397 # They can cause serious problems if a builder's source tree is in a directory
2398 # whose full name contains unusual characters.
2399 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2400 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2401 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2404 # Make sure we can run config.sub.
2405 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2406 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2409 $as_echo_n "checking build system type... " >&6; }
2410 if ${ac_cv_build+:} false
; then :
2411 $as_echo_n "(cached) " >&6
2413 ac_build_alias
=$build_alias
2414 test "x$ac_build_alias" = x
&&
2415 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2416 test "x$ac_build_alias" = x
&&
2417 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2418 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2419 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2423 $as_echo "$ac_cv_build" >&6; }
2424 case $ac_cv_build in
2426 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2429 ac_save_IFS
=$IFS; IFS
='-'
2435 # Remember, the first character of IFS is used to create $*,
2436 # except with old shells:
2439 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2442 case ${build_alias} in
2443 "") build_noncanonical
=${build} ;;
2444 *) build_noncanonical
=${build_alias} ;;
2449 case ${host_alias} in
2450 "") host_noncanonical
=${build_noncanonical} ;;
2451 *) host_noncanonical
=${host_alias} ;;
2456 case ${target_alias} in
2457 "") target_noncanonical
=${host_noncanonical} ;;
2458 *) target_noncanonical
=${target_alias} ;;
2464 test "$host_noncanonical" = "$target_noncanonical" &&
2465 test "$program_prefix$program_suffix$program_transform_name" = \
2467 program_transform_name
=s
,y
,y
,
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2470 $as_echo_n "checking host system type... " >&6; }
2471 if ${ac_cv_host+:} false
; then :
2472 $as_echo_n "(cached) " >&6
2474 if test "x$host_alias" = x
; then
2475 ac_cv_host
=$ac_cv_build
2477 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2478 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2483 $as_echo "$ac_cv_host" >&6; }
2486 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2489 ac_save_IFS
=$IFS; IFS
='-'
2495 # Remember, the first character of IFS is used to create $*,
2496 # except with old shells:
2499 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2503 $as_echo_n "checking target system type... " >&6; }
2504 if ${ac_cv_target+:} false
; then :
2505 $as_echo_n "(cached) " >&6
2507 if test "x$target_alias" = x
; then
2508 ac_cv_target
=$ac_cv_host
2510 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2511 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2516 $as_echo "$ac_cv_target" >&6; }
2517 case $ac_cv_target in
2519 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2521 target
=$ac_cv_target
2522 ac_save_IFS
=$IFS; IFS
='-'
2528 # Remember, the first character of IFS is used to create $*,
2529 # except with old shells:
2532 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2535 # The aliases save the names the user supplied, while $host etc.
2536 # will get canonicalized.
2537 test -n "$target_alias" &&
2538 test "$program_prefix$program_suffix$program_transform_name" = \
2540 program_prefix
=${target_alias}-
2542 test "$program_prefix" != NONE
&&
2543 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2544 # Use a double $ so make ignores it.
2545 test "$program_suffix" != NONE
&&
2546 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2547 # Double any \ or $.
2548 # By default was `s,x,x', remove it if useless.
2549 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2550 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2554 # Get 'install' or 'install-sh' and its variants.
2555 # Find a good install program. We prefer a C program (faster),
2556 # so one script is as good as another. But avoid the broken or
2557 # incompatible versions:
2558 # SysV /etc/install, /usr/sbin/install
2559 # SunOS /usr/etc/install
2560 # IRIX /sbin/install
2562 # AmigaOS /C/install, which installs bootblocks on floppy discs
2563 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2566 # OS/2's system install, which has a completely different semantic
2567 # ./install, which can be erroneously created by make from ./install.sh.
2568 # Reject install programs that cannot install multiple files.
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2570 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2571 if test -z "$INSTALL"; then
2572 if ${ac_cv_path_install+:} false
; then :
2573 $as_echo_n "(cached) " >&6
2575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2579 test -z "$as_dir" && as_dir
=.
2580 # Account for people who put trailing slashes in PATH elements.
2581 case $as_dir/ in #((
2582 .
/ | .
// |
/[cC
]/* | \
2583 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2584 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2587 # OSF1 and SCO ODT 3.0 have their own names for install.
2588 # Don't use installbsd from OSF since it installs stuff as root
2590 for ac_prog
in ginstall scoinst
install; do
2591 for ac_exec_ext
in '' $ac_executable_extensions; do
2592 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2593 if test $ac_prog = install &&
2594 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2595 # AIX install. It has an incompatible calling convention.
2597 elif test $ac_prog = install &&
2598 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2599 # program-specific install script used by HP pwplus--don't use.
2602 rm -rf conftest.one conftest.two conftest.dir
2603 echo one
> conftest.one
2604 echo two
> conftest.two
2606 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2607 test -s conftest.one
&& test -s conftest.two
&&
2608 test -s conftest.dir
/conftest.one
&&
2609 test -s conftest.dir
/conftest.two
2611 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2624 rm -rf conftest.one conftest.two conftest.dir
2627 if test "${ac_cv_path_install+set}" = set; then
2628 INSTALL
=$ac_cv_path_install
2630 # As a last resort, use the slow shell script. Don't cache a
2631 # value for INSTALL within a source directory, because that will
2632 # break other packages using the cache if that directory is
2633 # removed, or if the value is a relative name.
2634 INSTALL
=$ac_install_sh
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2638 $as_echo "$INSTALL" >&6; }
2640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2641 # It thinks the first close brace ends the variable substitution.
2642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2646 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2649 $as_echo_n "checking whether ln works... " >&6; }
2650 if ${acx_cv_prog_LN+:} false
; then :
2651 $as_echo_n "(cached) " >&6
2653 rm -f conftestdata_t
2654 echo >conftestdata_f
2655 if ln conftestdata_f conftestdata_t
2>/dev
/null
2661 rm -f conftestdata_f conftestdata_t
2664 if test $acx_cv_prog_LN = no
; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2667 $as_echo "no, using $LN" >&6; }
2669 LN
="$acx_cv_prog_LN"
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671 $as_echo "yes" >&6; }
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2675 $as_echo_n "checking whether ln -s works... " >&6; }
2677 if test "$LN_S" = "ln -s"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2679 $as_echo "yes" >&6; }
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2682 $as_echo "no, using $LN_S" >&6; }
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2686 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2687 if ${ac_cv_path_SED+:} false
; then :
2688 $as_echo_n "(cached) " >&6
2690 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2691 for ac_i
in 1 2 3 4 5 6 7; do
2692 ac_script
="$ac_script$as_nl$ac_script"
2694 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2695 { ac_script
=; unset ac_script
;}
2696 if test -z "$SED"; then
2697 ac_path_SED_found
=false
2698 # Loop through the user's path and test for each of PROGNAME-LIST
2699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir
=.
2704 for ac_prog
in sed gsed
; do
2705 for ac_exec_ext
in '' $ac_executable_extensions; do
2706 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2707 as_fn_executable_p
"$ac_path_SED" ||
continue
2708 # Check for GNU ac_path_SED and select it if it is found.
2709 # Check for GNU $ac_path_SED
2710 case `"$ac_path_SED" --version 2>&1` in
2712 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2715 $as_echo_n 0123456789 >"conftest.in"
2718 cat "conftest.in" "conftest.in" >"conftest.tmp"
2719 mv "conftest.tmp" "conftest.in"
2720 cp "conftest.in" "conftest.nl"
2721 $as_echo '' >> "conftest.nl"
2722 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2723 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2724 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2725 if test $ac_count -gt ${ac_path_SED_max-0}; then
2726 # Best one so far, save it but keep looking for a better one
2727 ac_cv_path_SED
="$ac_path_SED"
2728 ac_path_SED_max
=$ac_count
2730 # 10*(2^10) chars as input seems more than enough
2731 test $ac_count -gt 10 && break
2733 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2736 $ac_path_SED_found && break 3
2741 if test -z "$ac_cv_path_SED"; then
2742 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2750 $as_echo "$ac_cv_path_SED" >&6; }
2751 SED
="$ac_cv_path_SED"
2754 for ac_prog
in gawk mawk nawk
awk
2756 # Extract the first word of "$ac_prog", so it can be a program name with args.
2757 set dummy
$ac_prog; ac_word
=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_AWK+:} false
; then :
2761 $as_echo_n "(cached) " >&6
2763 if test -n "$AWK"; then
2764 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir
=.
2771 for ac_exec_ext
in '' $ac_executable_extensions; do
2772 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2773 ac_cv_prog_AWK
="$ac_prog"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 if test -n "$AWK"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2786 $as_echo "$AWK" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2793 test -n "$AWK" && break
2797 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2799 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2801 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2802 INSTALL
="${srcpwd}/install-sh -c"
2805 # Set srcdir to "." if that's what it is.
2806 # This is important for multilib support.
2808 if test "${pwd}" = "${srcpwd}" ; then
2816 ### To add a new directory to the tree, first choose whether it is a target
2817 ### or a host dependent tool. Then put it into the appropriate list
2818 ### (library or tools, host or target), doing a dependency sort.
2820 # Subdirs will be configured in the order listed in build_configdirs,
2821 # configdirs, or target_configdirs; see the serialization section below.
2823 # Dependency sorting is only needed when *configuration* must be done in
2824 # a particular order. In all cases a dependency should be specified in
2825 # the Makefile, whether or not it's implicitly specified here.
2827 # Double entries in build_configdirs, configdirs, or target_configdirs may
2828 # cause circular dependencies and break everything horribly.
2830 # these library is used by various programs built for the build
2833 build_libs
="build-libiberty build-libcpp"
2835 # these tools are built for the build environment
2836 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2838 # these libraries are used by various programs built for the host environment
2840 host_libs
="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2842 # these tools are built for the host environment
2843 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2844 # know that we are building the simulator.
2845 # binutils, gas and ld appear in that order because it makes sense to run
2846 # "make check" in that particular order.
2847 # If --enable-gold is used, "gold" may replace "ld".
2848 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"
2850 # these libraries are built for the target environment, and are built after
2851 # the host libraries and the host tools (which may be a cross compiler)
2852 # Note that libiberty is not a target library.
2853 target_libraries
="target-libgcc \
2854 target-libbacktrace \
2860 target-libstdc++-v3 \
2861 target-libsanitizer \
2864 target-libquadmath \
2865 target-libgfortran \
2876 # these tools are built using the target libraries, and are intended to
2877 # run only in the target environment
2879 # note: any program that *uses* libraries that are in the "target_libraries"
2880 # list belongs in this list.
2882 target_tools
="target-rda"
2884 ################################################################################
2886 ## All tools belong in one of the four categories, and are assigned above
2887 ## We assign ${configdirs} this way to remove all embedded newlines. This
2888 ## is important because configure will choke if they ever get through.
2889 ## ${configdirs} is directories we build using the host tools.
2890 ## ${target_configdirs} is directories we build using the target tools.
2891 configdirs
=`echo ${host_libs} ${host_tools}`
2892 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2893 build_configdirs
=`echo ${build_libs} ${build_tools}`
2897 ################################################################################
2899 srcname
="gnu development package"
2901 # This gets set non-empty for some net releases of packages.
2904 # Define is_cross_compiler to save on calls to 'test'.
2906 if test x
"${host}" = x
"${target}" ; then
2907 is_cross_compiler
=no
2909 is_cross_compiler
=yes
2912 # Find the build and target subdir names.
2914 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2915 # have matching libraries, they should use host libraries: Makefile.tpl
2916 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2917 # However, they still use the build modules, because the corresponding
2918 # host modules (e.g. bison) are only built for the host when bootstrap
2920 # - build_subdir is where we find build modules, and never changes.
2921 # - build_libsubdir is where we find build libraries, and can be overridden.
2923 # Prefix 'build-' so this never conflicts with target_subdir.
2924 build_subdir
="build-${build_noncanonical}"
2926 # Check whether --with-build-libsubdir was given.
2927 if test "${with_build_libsubdir+set}" = set; then :
2928 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2930 build_libsubdir
="$build_subdir"
2933 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2934 if ( test $srcdir = .
&& test -d gcc
) \
2935 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2936 host_subdir
="host-${host_noncanonical}"
2941 target_subdir
=${target_noncanonical}
2943 # Be sure to cover against remnants of an in-tree build.
2944 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2945 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2946 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2949 # Skipdirs are removed silently.
2951 # Noconfigdirs are removed loudly.
2955 # Make sure we don't let GNU ld be added if we didn't want it.
2956 if test x
$with_gnu_ld = xno
; then
2958 noconfigdirs
="$noconfigdirs ld gold"
2962 # Make sure we don't let GNU as be added if we didn't want it.
2963 if test x
$with_gnu_as = xno
; then
2965 noconfigdirs
="$noconfigdirs gas"
2970 # Check whether --with-system-zlib was given.
2971 if test "${with_system_zlib+set}" = set; then :
2972 withval
=$with_system_zlib;
2975 # Make sure we don't let ZLIB be added if we didn't want it.
2976 if test x
$with_system_zlib = xyes
; then
2977 use_included_zlib
=no
2978 noconfigdirs
="$noconfigdirs zlib"
2981 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2983 if test x
$with_system_readline = xyes
; then
2984 noconfigdirs
="$noconfigdirs readline"
2988 # Check whether --with-zstd was given.
2989 if test "${with_zstd+set}" = set; then :
2994 # some tools are so dependent upon X11 that if we're not building with X,
2995 # it's not even worth trying to configure, much less build, that tool.
2998 yes |
"") ;; # the default value for this tree is that X11 is available
3000 skipdirs
="${skipdirs} tk itcl libgui"
3001 # We won't be able to build gdbtk without X.
3004 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3007 # Some are only suitable for cross toolchains.
3008 # Remove these if host=target.
3009 cross_only
="target-libgloss target-newlib target-opcodes"
3011 case $is_cross_compiler in
3012 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
3015 # If both --with-headers and --with-libs are specified, default to
3017 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
3018 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
3019 if test x
"${with_newlib}" = x
; then
3024 # Recognize --with-newlib/--without-newlib.
3025 case ${with_newlib} in
3026 no
) skipdirs
="${skipdirs} target-newlib" ;;
3027 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3030 # Check whether --enable-as-accelerator-for was given.
3031 if test "${enable_as_accelerator_for+set}" = set; then :
3032 enableval
=$enable_as_accelerator_for;
3036 # Check whether --enable-offload-targets was given.
3037 if test "${enable_offload_targets+set}" = set; then :
3038 enableval
=$enable_offload_targets;
3039 if test x
"$enable_offload_targets" = x
; then
3040 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3044 enable_offload_targets
=
3048 # Check whether --enable-offload-defaulted was given.
3049 if test "${enable_offload_defaulted+set}" = set; then :
3050 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3052 enable_offload_defaulted
=
3056 # Handle --enable-gold, --enable-ld.
3057 # --disable-gold [--enable-ld]
3058 # Build only ld. Default option.
3059 # --enable-gold [--enable-ld]
3060 # Build both gold and ld. Install gold as "ld.gold", install ld
3061 # as "ld.bfd" and "ld".
3062 # --enable-gold=default [--enable-ld]
3063 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3064 # install ld as "ld.bfd".
3065 # --enable-gold[=default] --disable-ld
3066 # Build only gold, which is then installed as both "ld.gold" and "ld".
3067 # --enable-gold --enable-ld=default
3068 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3070 # In other words, ld is default
3071 # --enable-gold=default --enable-ld=default
3075 # Check whether --enable-gold was given.
3076 if test "${enable_gold+set}" = set; then :
3077 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3082 case "${ENABLE_GOLD}" in
3084 # Check for ELF target.
3087 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3088 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3089 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3090 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl* |
*-*-haiku*)
3092 *-*-linux*aout
* |
*-*-linux*oldld
*)
3100 if test "$is_elf" = "yes"; then
3101 # Check for target supported by gold.
3103 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3104 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3105 configdirs
="$configdirs gold"
3106 if test x
${ENABLE_GOLD} = xdefault
; then
3117 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3121 # Check whether --enable-ld was given.
3122 if test "${enable_ld+set}" = set; then :
3123 enableval
=$enable_ld; ENABLE_LD
=$enableval
3129 case "${ENABLE_LD}" in
3131 if test x
${default_ld} != x
; then
3132 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3138 if test x
${ENABLE_GOLD} != xyes
; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3140 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3142 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3145 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3149 # Check whether --enable-gprofng was given.
3150 if test "${enable_gprofng+set}" = set; then :
3151 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3156 if test "$enable_gprofng" = "yes"; then
3160 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux* | riscv64-
*-linux*)
3161 configdirs
="$configdirs gprofng"
3168 # Decide the default method for compressing debug sections.
3169 # Provide a configure time option to override our default.
3170 # Check whether --enable-compressed_debug_sections was given.
3171 if test "${enable_compressed_debug_sections+set}" = set; then :
3172 enableval
=$enable_compressed_debug_sections;
3173 if test x
"$enable_compressed_debug_sections" = xyes
; then
3174 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3178 enable_compressed_debug_sections
=
3182 # Select default compression algorithm.
3183 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3184 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3185 enableval
=$enable_default_compressed_debug_sections_algorithm;
3187 default_compressed_debug_sections_algorithm
=
3191 # Configure extra directories which are host specific
3195 configdirs
="$configdirs libtermcap" ;;
3198 # A target can indicate whether a language isn't supported for some reason.
3199 # Only spaces may be used in this macro; not newlines or tabs.
3200 unsupported_languages
=
3202 # Remove more programs from consideration, based on the host or
3203 # target this usually means that a port of the program doesn't
3207 i
[3456789]86-*-msdosdjgpp*)
3208 noconfigdirs
="$noconfigdirs tcl tk itcl"
3212 # Default to --disable-year2038 until we can handle differences between
3213 # projects that use gnulib (which understands year 2038) and projects that
3214 # do not (like BFD).
3215 # Check whether --enable-year2038 was given.
3216 if test "${enable_year2038+set}" = set; then :
3217 enableval
=$enable_year2038; ENABLE_YEAR2038
=$enableval
3223 if test "${ENABLE_YEAR2038}" = "no" ; then
3227 # Check whether --enable-libquadmath was given.
3228 if test "${enable_libquadmath+set}" = set; then :
3229 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3231 ENABLE_LIBQUADMATH
=yes
3234 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3235 noconfigdirs
="$noconfigdirs target-libquadmath"
3239 # Check whether --enable-libquadmath-support was given.
3240 if test "${enable_libquadmath_support+set}" = set; then :
3241 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3243 ENABLE_LIBQUADMATH_SUPPORT
=yes
3246 enable_libquadmath_support
=
3247 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3248 enable_libquadmath_support
=no
3252 # Check whether --enable-libada was given.
3253 if test "${enable_libada+set}" = set; then :
3254 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3259 if test "${ENABLE_LIBADA}" != "yes" ; then
3260 noconfigdirs
="$noconfigdirs gnattools"
3263 # Check whether --enable-libgm2 was given.
3264 if test "${enable_libgm2+set}" = set; then :
3265 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3270 if test "${ENABLE_LIBGM2}" != "yes" ; then
3271 noconfigdirs
="$noconfigdirs gm2tools"
3274 # Check whether --enable-libssp was given.
3275 if test "${enable_libssp+set}" = set; then :
3276 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3282 # Check whether --enable-libstdcxx was given.
3283 if test "${enable_libstdcxx+set}" = set; then :
3284 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3286 ENABLE_LIBSTDCXX
=default
3289 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3290 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3293 # Enable libgomp by default on hosted POSIX systems, and a few others.
3294 if test x
$enable_libgomp = x
; then
3296 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3298 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3300 *-*-solaris2* |
*-*-hpux11*)
3302 *-*-darwin* |
*-*-aix*)
3304 nvptx
*-*-* | amdgcn
*-*-*)
3307 noconfigdirs
="$noconfigdirs target-libgomp"
3312 # Disable libatomic on unsupported systems.
3313 if test -d ${srcdir}/libatomic
; then
3314 if test x
$enable_libatomic = x
; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3316 $as_echo_n "checking for libatomic support... " >&6; }
3317 if (srcdir
=${srcdir}/libatomic
; \
3318 .
${srcdir}/configure.tgt
; \
3319 test -n "$UNSUPPORTED")
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 noconfigdirs
="$noconfigdirs target-libatomic"
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3326 $as_echo "yes" >&6; }
3331 # Disable libitm on unsupported systems.
3332 if test -d ${srcdir}/libitm
; then
3333 if test x
$enable_libitm = x
; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3335 $as_echo_n "checking for libitm support... " >&6; }
3336 if (srcdir
=${srcdir}/libitm
; \
3337 .
${srcdir}/configure.tgt
; \
3338 test -n "$UNSUPPORTED")
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 noconfigdirs
="$noconfigdirs target-libitm"
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345 $as_echo "yes" >&6; }
3350 # Disable libsanitizer on unsupported systems.
3351 if test -d ${srcdir}/libsanitizer
; then
3352 if test x
$enable_libsanitizer = x
; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3354 $as_echo_n "checking for libsanitizer support... " >&6; }
3355 if (srcdir
=${srcdir}/libsanitizer
; \
3356 .
${srcdir}/configure.tgt
; \
3357 test -n "$UNSUPPORTED")
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 noconfigdirs
="$noconfigdirs target-libsanitizer"
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364 $as_echo "yes" >&6; }
3369 # Disable libvtv on unsupported systems.
3370 if test -d ${srcdir}/libvtv
; then
3371 if test x
$enable_libvtv = x
; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3373 $as_echo_n "checking for libvtv support... " >&6; }
3374 if (srcdir
=${srcdir}/libvtv
; \
3375 .
${srcdir}/configure.tgt
; \
3376 test "$VTV_SUPPORTED" != "yes")
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 noconfigdirs
="$noconfigdirs target-libvtv"
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383 $as_echo "yes" >&6; }
3388 # Disable libquadmath for some systems.
3391 noconfigdirs
="$noconfigdirs target-libquadmath"
3393 # libquadmath is unused on AIX and libquadmath build process use of
3394 # LD_LIBRARY_PATH can break AIX bootstrap.
3395 powerpc-
*-aix* | rs6000-
*-aix*)
3396 noconfigdirs
="$noconfigdirs target-libquadmath"
3400 cpu_type
=`echo ${host} | sed 's/-.*$//'`
3401 # Special case cpu_type for x86_64 as it shares AUTO_PROFILE from i386.
3402 if test "${cpu_type}" = "x86_64" ; then
3407 # Disable libssp for some systems.
3410 # No hosted I/O support.
3411 noconfigdirs
="$noconfigdirs target-libssp"
3414 noconfigdirs
="$noconfigdirs target-libssp"
3416 powerpc-
*-aix* | rs6000-
*-aix*)
3417 noconfigdirs
="$noconfigdirs target-libssp"
3420 # No hosted I/O support.
3421 noconfigdirs
="$noconfigdirs target-libssp"
3424 # libssp uses a misaligned load to trigger a fault, but the RL78
3425 # doesn't fault for those - instead, it gives a build-time error
3426 # for explicit misaligned loads.
3427 noconfigdirs
="$noconfigdirs target-libssp"
3430 # No hosted I/O support.
3431 noconfigdirs
="$noconfigdirs target-libssp"
3435 # Disable libstdc++-v3 for some systems.
3436 # Allow user to override this if they pass --enable-libstdcxx
3437 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3440 # VxWorks uses the Dinkumware C++ library.
3441 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3444 # the C++ libraries don't build on top of CE's C libraries
3445 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3448 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3451 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3454 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3459 # Disable Ada/GNAT on systems where it is known to not work.
3460 # For testing, you can override this with --enable-languages=ada.
3461 case ,${enable_languages}, in
3468 unsupported_languages
="$unsupported_languages ada"
3474 # Disable C++ on systems where it is known to not work.
3475 # For testing, you can override this with --enable-languages=c++.
3476 case ,${enable_languages}, in
3482 unsupported_languages
="$unsupported_languages c++"
3488 # Disable Objc on systems where it is known to not work.
3489 # For testing, you can override this with --enable-languages=objc.
3490 case ,${enable_languages}, in
3496 unsupported_languages
="$unsupported_languages objc"
3502 # Disable libobjc for some systems where it is known to not work.
3505 noconfigdirs
="$noconfigdirs target-libobjc"
3508 noconfigdirs
="$noconfigdirs target-libobjc"
3512 # Disable D on systems where it is known to not work.
3513 # For testing, you can override this with --enable-languages=d.
3514 case ,${enable_languages}, in
3520 unsupported_languages
="$unsupported_languages d"
3526 # Disable libphobos on unsupported systems.
3527 # For testing, you can override this with --enable-libphobos.
3528 if test -d ${srcdir}/libphobos
; then
3529 if test x
$enable_libphobos = x
; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3531 $as_echo_n "checking for libphobos support... " >&6; }
3532 if (srcdir
=${srcdir}/libphobos
; \
3533 .
${srcdir}/configure.tgt
; \
3534 test "$LIBPHOBOS_SUPPORTED" != "yes")
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3538 noconfigdirs
="$noconfigdirs target-libphobos"
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3541 $as_echo "yes" >&6; }
3546 # Disable libgcobol on unsupported systems.
3547 # For testing, you can override this with --enable-libgcobol.
3548 if test -d ${srcdir}/libgcobol
; then
3549 if test x
$enable_libgcobol = x
; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcobol support" >&5
3551 $as_echo_n "checking for libgcobol support... " >&6; }
3552 if (srcdir
=${srcdir}/libgcobol
; \
3553 .
${srcdir}/configure.tgt
; \
3554 test -n "$UNSUPPORTED")
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3558 noconfigdirs
="$noconfigdirs target-libgcobol"
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3561 $as_echo "yes" >&6; }
3566 # Disable Fortran for some systems.
3569 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3570 unsupported_languages
="$unsupported_languages fortran"
3573 unsupported_languages
="$unsupported_languages fortran"
3577 # Always enable COBOL for --enable-languages=*cobol*
3578 # Otherwise, enable COBOL only for known architectures
3579 case ,${enable_languages}, in
3581 case ,${enable_languages}, in
3585 # We have an explicit cobol, but no c++. We need c++, because cobol
3586 # requires libstdc++
3587 enable_languages
="$enable_languages,c++"
3593 aarch64-
*-linux*|x86_64-
*-linux*)
3596 unsupported_languages
="$unsupported_languages cobol"
3600 aarch64-
*-linux*|x86_64-
*-linux*)
3603 unsupported_languages
="$unsupported_languages cobol"
3609 # Disable libffi for some systems.
3613 i
[3456789]86-*-darwin*)
3615 x86_64-
*-darwin[912]*)
3618 noconfigdirs
="$noconfigdirs target-libffi"
3621 noconfigdirs
="$noconfigdirs target-libffi"
3624 noconfigdirs
="$noconfigdirs target-libffi"
3627 noconfigdirs
="$noconfigdirs target-libffi"
3630 noconfigdirs
="$noconfigdirs target-libffi"
3633 noconfigdirs
="$noconfigdirs target-libffi"
3636 noconfigdirs
="$noconfigdirs target-libffi"
3638 aarch64
*-*-freebsd*)
3639 noconfigdirs
="$noconfigdirs target-libffi"
3642 noconfigdirs
="$noconfigdirs target-libffi"
3645 noconfigdirs
="$noconfigdirs target-libffi"
3648 noconfigdirs
="$noconfigdirs target-libffi"
3651 noconfigdirs
="$noconfigdirs target-libffi"
3654 noconfigdirs
="$noconfigdirs target-libffi"
3657 noconfigdirs
="$noconfigdirs target-libffi"
3659 cris-
*-* | crisv32-
*-*)
3663 *) # See PR46792 regarding target-libffi.
3664 noconfigdirs
="$noconfigdirs target-libffi";;
3668 noconfigdirs
="$noconfigdirs target-libffi"
3673 noconfigdirs
="$noconfigdirs target-libffi"
3676 noconfigdirs
="$noconfigdirs target-libffi"
3678 i
[3456789]86-w64-mingw*)
3679 noconfigdirs
="$noconfigdirs target-libffi"
3681 i
[3456789]86-*-mingw*)
3682 noconfigdirs
="$noconfigdirs target-libffi"
3685 noconfigdirs
="$noconfigdirs target-libffi"
3688 noconfigdirs
="$noconfigdirs target-libffi"
3691 noconfigdirs
="$noconfigdirs target-libffi"
3698 noconfigdirs
="$noconfigdirs target-libffi"
3701 noconfigdirs
="$noconfigdirs target-libffi"
3705 # Disable the go frontend on systems where it is known to not work. Please keep
3706 # this in sync with contrib/config-list.mk.
3708 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3709 unsupported_languages
="$unsupported_languages go"
3713 # Only allow gdbserver on some systems.
3714 if test -d ${srcdir}/gdbserver
; then
3715 if test x
$enable_gdbserver = x
; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3717 $as_echo_n "checking for gdbserver support... " >&6; }
3718 if (srcdir
=${srcdir}/gdbserver
; \
3719 .
${srcdir}/configure.srv
; \
3720 test -n "$UNSUPPORTED")
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 noconfigdirs
="$noconfigdirs gdbserver"
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3727 $as_echo "yes" >&6; }
3732 # Disable libgo for some systems where it is known to not work.
3733 # For testing, you can easily override this with --enable-libgo.
3734 if test x
$enable_libgo = x
; then
3738 noconfigdirs
="$noconfigdirs target-libgo"
3740 *-*-cygwin* |
*-*-mingw*)
3741 noconfigdirs
="$noconfigdirs target-libgo"
3744 noconfigdirs
="$noconfigdirs target-libgo"
3747 noconfigdirs
="$noconfigdirs target-libgo"
3750 noconfigdirs
="$noconfigdirs target-libgo"
3755 # Default libgloss CPU subdirectory.
3756 libgloss_dir
="$target_cpu"
3759 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3763 libgloss_dir
=aarch64
3768 cris-
*-* | crisv32-
*-*)
3772 libgloss_dir
=kvx-elf
3775 libgloss_dir
=kvx-mbr
3778 libgloss_dir
=kvx-cos
3787 libgloss_dir
=loongarch
3789 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3790 libgloss_dir
=m68hc11
3792 m68
*-*-* | fido-
*-*)
3809 # Disable newlib and libgloss for various target OSes.
3812 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3814 i
[3456789]86-*-linux*)
3815 # This section makes it possible to build newlib natively on linux.
3816 # If we are using a cross compiler then don't configure newlib.
3817 if test x
${is_cross_compiler} != xno
; then
3818 noconfigdirs
="$noconfigdirs target-newlib"
3820 noconfigdirs
="$noconfigdirs target-libgloss"
3821 # If we are not using a cross compiler, do configure newlib.
3822 # Note however, that newlib will only be configured in this situation
3823 # if the --with-newlib option has been given, because otherwise
3824 # 'target-newlib' will appear in skipdirs.
3826 i
[3456789]86-*-rdos*)
3827 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3829 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3830 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3833 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3836 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3839 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3842 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3845 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3848 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3851 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3853 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3854 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3857 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3860 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3863 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3866 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3869 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3872 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3875 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3879 # The ARM simulator has been deprecated for all ARM targets.
3882 noconfigdirs
="$noconfigdirs sim"
3890 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3891 noconfigdirs
="$noconfigdirs sim target-rda"
3896 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3897 noconfigdirs
="$noconfigdirs target-rda"
3900 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3901 noconfigdirs
="$noconfigdirs sim target-rda"
3903 i
[3456789]86-*-darwin*)
3904 noconfigdirs
="$noconfigdirs ld gprof"
3905 noconfigdirs
="$noconfigdirs sim target-rda"
3907 x86_64-
*-darwin[912]*)
3908 noconfigdirs
="$noconfigdirs ld gas gprof"
3909 noconfigdirs
="$noconfigdirs sim target-rda"
3912 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3913 noconfigdirs
="$noconfigdirs sim target-rda"
3918 if test "x$with_gmp" = x \
3919 && ! test -d ${srcdir}/gmp \
3920 && test -f /usr
/local
/include
/gmp.h
; then
3925 # Remove unsupported stuff on all kaOS configurations.
3926 noconfigdirs
="$noconfigdirs target-libgloss"
3933 noconfigdirs
="$noconfigdirs target-libgloss"
3936 noconfigdirs
="$noconfigdirs target-libgloss"
3938 # The tpf target doesn't support gdb yet.
3940 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3943 noconfigdirs
="$noconfigdirs target-rda"
3948 # ld works, but does not support shared libraries.
3949 # gas doesn't generate exception information.
3950 noconfigdirs
="$noconfigdirs gas ld"
3953 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3956 # newlib is not 64 bit ready
3957 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3960 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3962 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3963 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3966 noconfigdirs
="$noconfigdirs sim"
3969 noconfigdirs
="$noconfigdirs target-libgloss"
3972 noconfigdirs
="$noconfigdirs ld target-libgloss"
3975 if test x
${with_avrlibc} != xno
; then
3976 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3979 c4x-
*-* | tic4x-
*-*)
3980 noconfigdirs
="$noconfigdirs target-libgloss"
3983 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3986 noconfigdirs
="$noconfigdirs target-libgloss"
3989 noconfigdirs
="$noconfigdirs gdb"
3992 noconfigdirs
="$noconfigdirs gdb"
3995 noconfigdirs
="$noconfigdirs target-rda gprof"
3998 noconfigdirs
="$noconfigdirs"
4001 noconfigdirs
="$noconfigdirs target-libgloss"
4004 noconfigdirs
="$noconfigdirs target-libgloss"
4006 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
4009 noconfigdirs
="$noconfigdirs gdb"
4012 noconfigdirs
="$noconfigdirs gdb ld"
4020 hppa
*-*-openbsd* | \
4026 noconfigdirs
="$noconfigdirs ld"
4029 noconfigdirs
="$noconfigdirs gdb"
4032 # No gdb support yet.
4033 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
4036 # No ld support yet.
4037 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
4040 # No ld support yet.
4041 noconfigdirs
="$noconfigdirs libgui itcl ld"
4043 i
[3456789]86-w64-mingw*)
4045 i
[3456789]86-*-mingw*)
4046 target_configdirs
="$target_configdirs target-winsup"
4049 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
4050 noconfigdirs
="$noconfigdirs target-libgloss"
4051 # always build newlib if winsup directory is present.
4052 if test -d "$srcdir/winsup/cygwin"; then
4053 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4054 elif test -d "$srcdir/newlib"; then
4055 echo "Warning: winsup/cygwin is missing so newlib can't be built."
4059 noconfigdirs
="$noconfigdirs target-libgloss"
4061 i
[3456789]86-*-sco3.2v5
*)
4062 # The linker does not yet know about weak symbols in COFF,
4063 # and is not configured to handle mixed ELF and COFF.
4064 noconfigdirs
="$noconfigdirs ld target-libgloss"
4066 i
[3456789]86-*-sco*)
4067 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4069 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
4070 noconfigdirs
="$noconfigdirs target-libgloss"
4072 i
[3456789]86-*-sysv4*)
4073 noconfigdirs
="$noconfigdirs target-libgloss"
4075 i
[3456789]86-*-beos*)
4076 noconfigdirs
="$noconfigdirs gdb"
4078 i
[3456789]86-*-rdos*)
4079 noconfigdirs
="$noconfigdirs gdb"
4082 noconfigdirs
="$noconfigdirs gdb gdbserver sim"
4085 noconfigdirs
="$noconfigdirs gdb"
4088 noconfigdirs
="$noconfigdirs sim"
4091 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
4092 noconfigdirs
="$noconfigdirs $target_libraries"
4095 noconfigdirs
="$noconfigdirs gdb gprof"
4098 # copied from rs6000-*-* entry
4099 noconfigdirs
="$noconfigdirs gprof"
4101 powerpc
*-*-winnt* | powerpc
*-*-pe*)
4102 target_configdirs
="$target_configdirs target-winsup"
4103 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
4104 # always build newlib.
4105 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4107 # This is temporary until we can link against shared libraries
4108 powerpcle-
*-solaris*)
4109 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
4112 noconfigdirs
="$noconfigdirs gdb"
4115 noconfigdirs
="$noconfigdirs gprof"
4118 noconfigdirs
="$noconfigdirs gprof"
4121 noconfigdirs
="$noconfigdirs gprof"
4124 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
4127 noconfigdirs
="$noconfigdirs gprof"
4129 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4130 if test x
$with_newlib = xyes
; then
4131 noconfigdirs
="$noconfigdirs gprof"
4135 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4138 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4141 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4145 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4146 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4147 noconfigdirs
="$noconfigdirs ld gas gprof"
4150 noconfigdirs
="$noconfigdirs gprof"
4153 noconfigdirs
="$noconfigdirs target-libssp"
4160 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4164 if test x
${is_cross_compiler} = xno
; then
4169 noconfigdirs
="$noconfigdirs sim"
4171 tilepro
*-*-* | tilegx
*-*-*)
4172 noconfigdirs
="$noconfigdirs sim"
4175 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4178 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4181 noconfigdirs
="$noconfigdirs ld"
4183 loongarch
*-*-linux*)
4186 noconfigdirs
="$noconfigdirs gprof"
4190 # If we aren't building newlib, then don't build libgloss, since libgloss
4191 # depends upon some newlib header files.
4192 case "${noconfigdirs}" in
4193 *target-libgloss
*) ;;
4194 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4197 # Work in distributions that contain no compiler tools, like Autoconf.
4198 host_makefile_frag
=/dev
/null
4199 if test -d ${srcdir}/config
; then
4201 i
[3456789]86-*-msdosdjgpp*)
4202 host_makefile_frag
="config/mh-djgpp"
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4207 $as_echo_n "checking to see if cat works as expected... " >&6; }
4208 echo a
>cygwin-cat-check
4209 if test `cat cygwin-cat-check` = a
; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4212 $as_echo "yes" >&6; }
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4217 as_fn_error $?
"The cat command does not ignore carriage return characters.
4218 Please either mount the build directory in binary mode or run the following
4219 commands before running any configure script:
4225 host_makefile_frag
="config/mh-cygwin"
4228 host_makefile_frag
="config/mh-mingw"
4231 host_makefile_frag
="config/mh-alpha-linux"
4234 host_makefile_frag
="config/mh-pa"
4237 host_makefile_frag
="config/mh-pa"
4239 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4240 host_makefile_frag
="config/mh-darwin"
4243 host_makefile_frag
="config/mh-ppc-aix"
4246 host_makefile_frag
="config/mh-ppc-aix"
4251 if test "${build}" != "${host}" ; then
4252 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4253 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4254 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4255 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4256 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4257 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4258 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4259 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4260 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4261 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4262 GNATMAKE_FOR_BUILD
=${GNATMAKE_FOR_BUILD-gnatmake}
4263 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4264 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4265 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4266 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4267 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4269 AR_FOR_BUILD
="\$(AR)"
4270 AS_FOR_BUILD
="\$(AS)"
4271 CC_FOR_BUILD
="\$(CC)"
4272 CXX_FOR_BUILD
="\$(CXX)"
4273 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4274 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4275 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4276 GOC_FOR_BUILD
="\$(GOC)"
4277 GDC_FOR_BUILD
="\$(GDC)"
4278 GNATMAKE_FOR_BUILD
="\$(GNATMAKE)"
4279 LD_FOR_BUILD
="\$(LD)"
4280 NM_FOR_BUILD
="\$(NM)"
4281 RANLIB_FOR_BUILD
="\$(RANLIB)"
4282 WINDRES_FOR_BUILD
="\$(WINDRES)"
4283 WINDMC_FOR_BUILD
="\$(WINDMC)"
4287 ac_cpp
='$CPP $CPPFLAGS'
4288 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4291 if test -n "$ac_tool_prefix"; then
4292 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4293 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 $as_echo_n "checking for $ac_word... " >&6; }
4296 if ${ac_cv_prog_CC+:} false
; then :
4297 $as_echo_n "(cached) " >&6
4299 if test -n "$CC"; then
4300 ac_cv_prog_CC
="$CC" # Let the user override the test.
4302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4306 test -z "$as_dir" && as_dir
=.
4307 for ac_exec_ext
in '' $ac_executable_extensions; do
4308 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4309 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 if test -n "$CC"; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4322 $as_echo "$CC" >&6; }
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 $as_echo "no" >&6; }
4330 if test -z "$ac_cv_prog_CC"; then
4332 # Extract the first word of "gcc", so it can be a program name with args.
4333 set dummy gcc
; ac_word
=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4337 $as_echo_n "(cached) " >&6
4339 if test -n "$ac_ct_CC"; then
4340 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4346 test -z "$as_dir" && as_dir
=.
4347 for ac_exec_ext
in '' $ac_executable_extensions; do
4348 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4349 ac_cv_prog_ac_ct_CC
="gcc"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4360 if test -n "$ac_ct_CC"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4362 $as_echo "$ac_ct_CC" >&6; }
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4368 if test "x$ac_ct_CC" = x
; then
4371 case $cross_compiling:$ac_tool_warned in
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4375 ac_tool_warned
=yes ;;
4383 if test -z "$CC"; then
4384 if test -n "$ac_tool_prefix"; then
4385 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4386 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if ${ac_cv_prog_CC+:} false
; then :
4390 $as_echo_n "(cached) " >&6
4392 if test -n "$CC"; then
4393 ac_cv_prog_CC
="$CC" # Let the user override the test.
4395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir
=.
4400 for ac_exec_ext
in '' $ac_executable_extensions; do
4401 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 if test -n "$CC"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4415 $as_echo "$CC" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4424 if test -z "$CC"; then
4425 # Extract the first word of "cc", so it can be a program name with args.
4426 set dummy cc
; ac_word
=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if ${ac_cv_prog_CC+:} false
; then :
4430 $as_echo_n "(cached) " >&6
4432 if test -n "$CC"; then
4433 ac_cv_prog_CC
="$CC" # Let the user override the test.
4436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4440 test -z "$as_dir" && as_dir
=.
4441 for ac_exec_ext
in '' $ac_executable_extensions; do
4442 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4444 ac_prog_rejected
=yes
4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 if test $ac_prog_rejected = yes; then
4456 # We found a bogon in the path, so make sure we never use it.
4457 set dummy
$ac_cv_prog_CC
4459 if test $# != 0; then
4460 # We chose a different compiler from the bogus one.
4461 # However, it has the same basename, so the bogon will be chosen
4462 # first if we set CC to just the basename; use the full file name.
4464 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4470 if test -n "$CC"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4472 $as_echo "$CC" >&6; }
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4480 if test -z "$CC"; then
4481 if test -n "$ac_tool_prefix"; then
4482 for ac_prog
in cl.exe
4484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4485 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if ${ac_cv_prog_CC+:} false
; then :
4489 $as_echo_n "(cached) " >&6
4491 if test -n "$CC"; then
4492 ac_cv_prog_CC
="$CC" # Let the user override the test.
4494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4498 test -z "$as_dir" && as_dir
=.
4499 for ac_exec_ext
in '' $ac_executable_extensions; do
4500 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 if test -n "$CC"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4514 $as_echo "$CC" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4521 test -n "$CC" && break
4524 if test -z "$CC"; then
4526 for ac_prog
in cl.exe
4528 # Extract the first word of "$ac_prog", so it can be a program name with args.
4529 set dummy
$ac_prog; ac_word
=$2
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4533 $as_echo_n "(cached) " >&6
4535 if test -n "$ac_ct_CC"; then
4536 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4542 test -z "$as_dir" && as_dir
=.
4543 for ac_exec_ext
in '' $ac_executable_extensions; do
4544 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4545 ac_cv_prog_ac_ct_CC
="$ac_prog"
4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4556 if test -n "$ac_ct_CC"; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4558 $as_echo "$ac_ct_CC" >&6; }
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561 $as_echo "no" >&6; }
4565 test -n "$ac_ct_CC" && break
4568 if test "x$ac_ct_CC" = x
; then
4571 case $cross_compiling:$ac_tool_warned in
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4575 ac_tool_warned
=yes ;;
4584 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4586 as_fn_error $?
"no acceptable C compiler found in \$PATH
4587 See \`config.log' for more details" "$LINENO" 5; }
4589 # Provide some information about the compiler.
4590 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4593 for ac_option
in --version -v -V -qversion; do
4594 { { ac_try
="$ac_compiler $ac_option >&5"
4596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4600 $as_echo "$ac_try_echo"; } >&5
4601 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4603 if test -s conftest.err; then
4605 ... rest of stderr output deleted ...
4606 10q' conftest.err >conftest.er1
4607 cat conftest.er1 >&5
4609 rm -f conftest.er1 conftest.err
4610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; }
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4625 ac_clean_files_save=$ac_clean_files
4626 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4627 # Try to create an executable without -o first, disregard a.out.
4628 # It will help us diagnose broken compilers, and finding out an intuition
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4631 $as_echo_n "checking whether the C compiler works... " >&6; }
4632 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4634 # The possible output files:
4635 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4638 for ac_file in $ac_files
4641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4642 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4647 if { { ac_try="$ac_link_default"
4649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4650 *) ac_try_echo
=$ac_try;;
4652 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4653 $as_echo "$ac_try_echo"; } >&5
4654 (eval "$ac_link_default") 2>&5
4656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657 test $ac_status = 0; }; then :
4658 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4659 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4660 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4661 # so that the user can short-circuit this test for compilers unknown to
4663 for ac_file
in $ac_files ''
4665 test -f "$ac_file" ||
continue
4667 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4670 # We found the default executable, but exeext='' is most
4674 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4676 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4678 # We set ac_cv_exeext here because the later test for it is not
4679 # safe: cross compilers may not add the suffix if given an `-o'
4680 # argument, so we may need to know it at that point already.
4681 # Even if this section looks crufty: it has the advantage of
4688 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4693 if test -z "$ac_file"; then :
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4696 $as_echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.
$ac_ext >&5
4699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4701 as_fn_error
77 "C compiler cannot create executables
4702 See \`config.log' for more details" "$LINENO" 5; }
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4705 $as_echo "yes" >&6; }
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4708 $as_echo_n "checking for C compiler default output file name... " >&6; }
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4710 $as_echo "$ac_file" >&6; }
4711 ac_exeext
=$ac_cv_exeext
4713 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4714 ac_clean_files
=$ac_clean_files_save
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4716 $as_echo_n "checking for suffix of executables... " >&6; }
4717 if { { ac_try
="$ac_link"
4719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723 $as_echo "$ac_try_echo"; } >&5
4724 (eval "$ac_link") 2>&5
4726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4727 test $ac_status = 0; }; then :
4728 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4729 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4730 # work properly (i.e., refer to `conftest.exe'), while it won't with
4732 for ac_file
in conftest.exe conftest conftest.
*; do
4733 test -f "$ac_file" ||
continue
4735 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4736 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4744 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4745 See \`config.log' for more details" "$LINENO" 5; }
4747 rm -f conftest conftest
$ac_cv_exeext
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4749 $as_echo "$ac_cv_exeext" >&6; }
4751 rm -f conftest.
$ac_ext
4752 EXEEXT
=$ac_cv_exeext
4754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4760 FILE *f = fopen ("conftest.out", "w");
4761 return ferror (f) || fclose (f) != 0;
4767 ac_clean_files
="$ac_clean_files conftest.out"
4768 # Check that the compiler produces executables we can run. If not, either
4769 # the compiler is broken, or we cross compile.
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4771 $as_echo_n "checking whether we are cross compiling... " >&6; }
4772 if test "$cross_compiling" != yes; then
4773 { { ac_try
="$ac_link"
4775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4779 $as_echo "$ac_try_echo"; } >&5
4780 (eval "$ac_link") 2>&5
4782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783 test $ac_status = 0; }
4784 if { ac_try='./conftest$ac_cv_exeext'
4785 { { case "(($ac_try" in
4786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4787 *) ac_try_echo
=$ac_try;;
4789 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4790 $as_echo "$ac_try_echo"; } >&5
4791 (eval "$ac_try") 2>&5
4793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4794 test $ac_status = 0; }; }; then
4797 if test "$cross_compiling" = maybe
; then
4800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4802 as_fn_error $?
"cannot run C compiled programs.
4803 If you meant to cross compile, use \`--host'.
4804 See \`config.log' for more details" "$LINENO" 5; }
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4809 $as_echo "$cross_compiling" >&6; }
4811 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4812 ac_clean_files
=$ac_clean_files_save
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4814 $as_echo_n "checking for suffix of object files... " >&6; }
4815 if ${ac_cv_objext+:} false
; then :
4816 $as_echo_n "(cached) " >&6
4818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4829 rm -f conftest.o conftest.obj
4830 if { { ac_try
="$ac_compile"
4832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4836 $as_echo "$ac_try_echo"; } >&5
4837 (eval "$ac_compile") 2>&5
4839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4840 test $ac_status = 0; }; then :
4841 for ac_file in conftest.o conftest.obj conftest.*; do
4842 test -f "$ac_file" || continue;
4844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4845 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4850 $as_echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4855 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4856 See \
`config.log' for more details" "$LINENO" 5; }
4858 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4861 $as_echo "$ac_cv_objext" >&6; }
4862 OBJEXT=$ac_cv_objext
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4865 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4866 if ${ac_cv_c_compiler_gnu+:} false; then :
4867 $as_echo_n "(cached) " >&6
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4883 if ac_fn_c_try_compile "$LINENO"; then :
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4893 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4894 if test $ac_compiler_gnu = yes; then
4899 ac_test_CFLAGS=${CFLAGS+set}
4900 ac_save_CFLAGS=$CFLAGS
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4902 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4903 if ${ac_cv_prog_cc_g+:} false; then :
4904 $as_echo_n "(cached) " >&6
4906 ac_save_c_werror_flag=$ac_c_werror_flag
4907 ac_c_werror_flag=yes
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4921 if ac_fn_c_try_compile "$LINENO"; then :
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4936 if ac_fn_c_try_compile "$LINENO"; then :
4939 ac_c_werror_flag=$ac_save_c_werror_flag
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4952 if ac_fn_c_try_compile "$LINENO"; then :
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 ac_c_werror_flag=$ac_save_c_werror_flag
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4963 $as_echo "$ac_cv_prog_cc_g" >&6; }
4964 if test "$ac_test_CFLAGS" = set; then
4965 CFLAGS=$ac_save_CFLAGS
4966 elif test $ac_cv_prog_cc_g = yes; then
4967 if test "$GCC" = yes; then
4973 if test "$GCC" = yes; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4980 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4981 if ${ac_cv_prog_cc_c89+:} false; then :
4982 $as_echo_n "(cached) " >&6
4984 ac_cv_prog_cc_c89=no
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4992 struct buf { int x; };
4993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4994 static char *e (p, i)
5000 static char *f (char * (*g) (char **, int), char **p, ...)
5005 s = g (p, va_arg (v,int));
5010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5011 function prototypes and stuff, but not '\xHH' hex character constants.
5012 These don't provoke an error unfortunately, instead are silently treated
5013 as 'x'. The following induces an error, until -std is added to get
5014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5015 array size at least. It's necessary to write '\x00'==0 to get something
5016 that's true only with -std. */
5017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5019 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5020 inside strings and character constants. */
5022 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5024 int test (int i, double x);
5025 struct s1 {int (*f) (int a);};
5026 struct s2 {int (*f) (double a);};
5027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5033 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5039 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5041 CC="$ac_save_CC $ac_arg"
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043 ac_cv_prog_cc_c89=$ac_arg
5045 rm -f core conftest.err conftest.$ac_objext
5046 test "x$ac_cv_prog_cc_c89" != "xno" && break
5048 rm -f conftest.$ac_ext
5053 case "x$ac_cv_prog_cc_c89" in
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5056 $as_echo "none needed" >&6; } ;;
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5059 $as_echo "unsupported" >&6; } ;;
5061 CC="$CC $ac_cv_prog_cc_c89"
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5063 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5065 if test "x$ac_cv_prog_cc_c89" != xno; then :
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5076 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5077 if ${ac_cv_prog_cc_c99+:} false; then :
5078 $as_echo_n "(cached) " >&6
5080 ac_cv_prog_cc_c99=no
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5085 #include <stdbool.h>
5090 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5091 #define debug(...) fprintf (stderr, __VA_ARGS__)
5092 #define showlist(...) puts (#__VA_ARGS__)
5093 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5095 test_varargs_macros (void)
5100 debug ("X = %d\n", x);
5101 showlist (The first, second, and third items.);
5102 report (x>y, "x is %d but y is %d", x, y);
5105 // Check long long types.
5106 #define BIG64 18446744073709551615ull
5107 #define BIG32 4294967295ul
5108 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5110 your preprocessor is broken;
5114 your preprocessor is broken;
5116 static long long int bignum = -9223372036854775807LL;
5117 static unsigned long long int ubignum = BIG64;
5119 struct incomplete_array
5127 const wchar_t *name;
5131 typedef const char *ccp;
5134 test_restrict (ccp restrict text)
5136 // See if C++-style comments work.
5137 // Iterate through items via the restricted pointer.
5138 // Also check for declarations in for loops.
5139 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5144 // Check varargs and va_copy.
5146 test_varargs (const char *format, ...)
5149 va_start (args, format);
5151 va_copy (args_copy, args);
5162 str = va_arg (args_copy, const char *);
5165 number = va_arg (args_copy, int);
5168 fnumber = va_arg (args_copy, double);
5183 _Bool success = false;
5186 if (test_restrict ("String literal") == 0)
5188 char *restrict newvar = "Another string";
5191 test_varargs ("s, d' f .", "string", 65, 34.234);
5192 test_varargs_macros ();
5194 // Check flexible array members.
5195 struct incomplete_array *ia =
5196 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5198 for (int i = 0; i < ia->datasize; ++i)
5199 ia->data[i] = i * 1.234;
5201 // Check named initializers.
5202 struct named_init ni = {
5204 .name = L"Test wide string",
5205 .average = 543.34343,
5210 int dynamic_array[ni.number];
5211 dynamic_array[ni.number - 1] = 543;
5213 // work around unused variable warnings
5214 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5215 || dynamic_array[ni.number - 1] != 543);
5221 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5223 CC="$ac_save_CC $ac_arg"
5224 if ac_fn_c_try_compile "$LINENO"; then :
5225 ac_cv_prog_cc_c99=$ac_arg
5227 rm -f core conftest.err conftest.$ac_objext
5228 test "x$ac_cv_prog_cc_c99" != "xno" && break
5230 rm -f conftest.$ac_ext
5235 case "x$ac_cv_prog_cc_c99" in
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5238 $as_echo "none needed" >&6; } ;;
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5241 $as_echo "unsupported" >&6; } ;;
5243 CC="$CC $ac_cv_prog_cc_c99"
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5245 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5247 if test "x$ac_cv_prog_cc_c99" != xno; then :
5253 ac_cpp='$CXXCPP $CPPFLAGS'
5254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5257 if test -z "$CXX"; then
5258 if test -n "$CCC"; then
5261 if test -n "$ac_tool_prefix"; then
5262 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_CXX+:} false; then :
5269 $as_echo_n "(cached) " >&6
5271 if test -n "$CXX"; then
5272 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 if test -n "$CXX"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5294 $as_echo "$CXX" >&6; }
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5301 test -n "$CXX" && break
5304 if test -z "$CXX"; then
5306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5308 # Extract the first word of "$ac_prog", so it can be a program name with args.
5309 set dummy $ac_prog; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5313 $as_echo_n "(cached) " >&6
5315 if test -n "$ac_ct_CXX"; then
5316 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_CXX="$ac_prog"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5336 if test -n "$ac_ct_CXX"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5338 $as_echo "$ac_ct_CXX" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5345 test -n "$ac_ct_CXX" && break
5348 if test "x$ac_ct_CXX" = x; then
5351 case $cross_compiling:$ac_tool_warned in
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5355 ac_tool_warned=yes ;;
5363 # Provide some information about the compiler.
5364 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5367 for ac_option in --version -v -V -qversion; do
5368 { { ac_try="$ac_compiler $ac_option >&5"
5370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5371 *) ac_try_echo
=$ac_try;;
5373 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5374 $as_echo "$ac_try_echo"; } >&5
5375 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5377 if test -s conftest.err
; then
5379 ... rest of stderr output deleted ...
5380 10q' conftest.err
>conftest.er1
5381 cat conftest.er1
>&5
5383 rm -f conftest.er1 conftest.err
5384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5385 test $ac_status = 0; }
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5389 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5390 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5391 $as_echo_n "(cached) " >&6
5393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5407 if ac_fn_cxx_try_compile
"$LINENO"; then :
5412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5413 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5417 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5418 if test $ac_compiler_gnu = yes; then
5423 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5424 ac_save_CXXFLAGS
=$CXXFLAGS
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5426 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5427 if ${ac_cv_prog_cxx_g+:} false
; then :
5428 $as_echo_n "(cached) " >&6
5430 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5431 ac_cxx_werror_flag
=yes
5434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5445 if ac_fn_cxx_try_compile
"$LINENO"; then :
5446 ac_cv_prog_cxx_g
=yes
5449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5460 if ac_fn_cxx_try_compile
"$LINENO"; then :
5463 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5476 if ac_fn_cxx_try_compile
"$LINENO"; then :
5477 ac_cv_prog_cxx_g
=yes
5479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5484 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5487 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5488 if test "$ac_test_CXXFLAGS" = set; then
5489 CXXFLAGS
=$ac_save_CXXFLAGS
5490 elif test $ac_cv_prog_cxx_g = yes; then
5491 if test "$GXX" = yes; then
5497 if test "$GXX" = yes; then
5504 ac_cpp
='$CPP $CPPFLAGS'
5505 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5510 # We must set the default linker to the linker used by gcc for the correct
5511 # operation of libtool. If LD is not defined and we are using gcc, try to
5512 # set the LD default to the ld used by gcc.
5513 if test -z "$LD"; then
5514 if test "$GCC" = yes; then
5517 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5519 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5521 case $gcc_prog_ld in
5522 # Accept absolute paths.
5523 [\\/]* |
[A-Za-z
]:[\\/]*)
5524 LD
="$gcc_prog_ld" ;;
5529 # Check whether -static-libstdc++ -static-libgcc is supported.
5531 if test "$GCC" = yes; then
5532 saved_LDFLAGS
="$LDFLAGS"
5534 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5536 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5538 ac_cpp
='$CXXCPP $CPPFLAGS'
5539 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5540 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5541 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5547 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5548 #error -static-libstdc++ not implemented
5552 if ac_fn_cxx_try_link
"$LINENO"; then :
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5554 $as_echo "yes" >&6; }; have_static_libs
=yes
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5559 rm -f core conftest.err conftest.
$ac_objext \
5560 conftest
$ac_exeext conftest.
$ac_ext
5562 ac_cpp
='$CPP $CPPFLAGS'
5563 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5568 LDFLAGS
="$saved_LDFLAGS"
5574 if test -n "$ac_tool_prefix"; then
5575 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5576 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_GNATBIND+:} false
; then :
5580 $as_echo_n "(cached) " >&6
5582 if test -n "$GNATBIND"; then
5583 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir
=.
5590 for ac_exec_ext
in '' $ac_executable_extensions; do
5591 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 GNATBIND
=$ac_cv_prog_GNATBIND
5603 if test -n "$GNATBIND"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5605 $as_echo "$GNATBIND" >&6; }
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5613 if test -z "$ac_cv_prog_GNATBIND"; then
5614 ac_ct_GNATBIND
=$GNATBIND
5615 # Extract the first word of "gnatbind", so it can be a program name with args.
5616 set dummy gnatbind
; ac_word
=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5620 $as_echo_n "(cached) " >&6
5622 if test -n "$ac_ct_GNATBIND"; then
5623 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir
=.
5630 for ac_exec_ext
in '' $ac_executable_extensions; do
5631 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5632 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5643 if test -n "$ac_ct_GNATBIND"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5645 $as_echo "$ac_ct_GNATBIND" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5651 if test "x$ac_ct_GNATBIND" = x
; then
5654 case $cross_compiling:$ac_tool_warned in
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658 ac_tool_warned
=yes ;;
5660 GNATBIND
=$ac_ct_GNATBIND
5663 GNATBIND
="$ac_cv_prog_GNATBIND"
5666 if test -n "$ac_tool_prefix"; then
5667 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5668 set dummy
${ac_tool_prefix}gnatmake
; 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_GNATMAKE+:} false
; then :
5672 $as_echo_n "(cached) " >&6
5674 if test -n "$GNATMAKE"; then
5675 ac_cv_prog_GNATMAKE
="$GNATMAKE" # 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_GNATMAKE
="${ac_tool_prefix}gnatmake"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 GNATMAKE
=$ac_cv_prog_GNATMAKE
5695 if test -n "$GNATMAKE"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5697 $as_echo "$GNATMAKE" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5705 if test -z "$ac_cv_prog_GNATMAKE"; then
5706 ac_ct_GNATMAKE
=$GNATMAKE
5707 # Extract the first word of "gnatmake", so it can be a program name with args.
5708 set dummy gnatmake
; ac_word
=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5712 $as_echo_n "(cached) " >&6
5714 if test -n "$ac_ct_GNATMAKE"; then
5715 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5721 test -z "$as_dir" && as_dir
=.
5722 for ac_exec_ext
in '' $ac_executable_extensions; do
5723 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5724 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5735 if test -n "$ac_ct_GNATMAKE"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5737 $as_echo "$ac_ct_GNATMAKE" >&6; }
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5743 if test "x$ac_ct_GNATMAKE" = x
; then
5746 case $cross_compiling:$ac_tool_warned in
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750 ac_tool_warned
=yes ;;
5752 GNATMAKE
=$ac_ct_GNATMAKE
5755 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5759 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5760 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5761 $as_echo_n "(cached) " >&6
5763 cat >conftest.adb
<<EOF
5764 pragma Warnings (Off);
5766 pragma Warnings (On);
5767 use type System.CRTL.int64;
5768 procedure conftest is begin null; end conftest;
5770 acx_cv_cc_gcc_supports_ada
=no
5771 # There is a bug in old released versions of GCC which causes the
5772 # driver to exit successfully when the appropriate language module
5773 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5774 # Therefore we must check for the error message as well as an
5775 # unsuccessful exit.
5776 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5777 # given a .adb file, but produce no object file. So we must check
5778 # if an object file was really produced to guard against this.
5779 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5780 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5781 acx_cv_cc_gcc_supports_ada
=yes
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5786 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5788 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5796 if test -n "$ac_tool_prefix"; then
5797 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5798 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if ${ac_cv_prog_GDC+:} false
; then :
5802 $as_echo_n "(cached) " >&6
5804 if test -n "$GDC"; then
5805 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5811 test -z "$as_dir" && as_dir
=.
5812 for ac_exec_ext
in '' $ac_executable_extensions; do
5813 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 if test -n "$GDC"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5827 $as_echo "$GDC" >&6; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 $as_echo "no" >&6; }
5835 if test -z "$ac_cv_prog_GDC"; then
5837 # Extract the first word of "gdc", so it can be a program name with args.
5838 set dummy gdc
; ac_word
=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5842 $as_echo_n "(cached) " >&6
5844 if test -n "$ac_ct_GDC"; then
5845 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5851 test -z "$as_dir" && as_dir
=.
5852 for ac_exec_ext
in '' $ac_executable_extensions; do
5853 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_ac_ct_GDC
="gdc"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5865 if test -n "$ac_ct_GDC"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5867 $as_echo "$ac_ct_GDC" >&6; }
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5873 if test "x$ac_ct_GDC" = x
; then
5876 case $cross_compiling:$ac_tool_warned in
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5880 ac_tool_warned
=yes ;;
5885 GDC
="$ac_cv_prog_GDC"
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5889 $as_echo_n "checking whether the D compiler works... " >&6; }
5890 if ${acx_cv_d_compiler_works+:} false
; then :
5891 $as_echo_n "(cached) " >&6
5893 cat >conftest.d
<<EOF
5894 module conftest; int main() { return 0; }
5896 acx_cv_d_compiler_works
=no
5897 if test "x$GDC" != xno
; then
5898 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5899 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5900 acx_cv_d_compiler_works
=yes
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5906 $as_echo "$acx_cv_d_compiler_works" >&6; }
5907 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5913 for ac_prog
in cargo
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy
$ac_prog; ac_word
=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_CARGO+:} false
; then :
5920 $as_echo_n "(cached) " >&6
5922 if test -n "$CARGO"; then
5923 ac_cv_prog_CARGO
="$CARGO" # Let the user override the test.
5925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir
=.
5930 for ac_exec_ext
in '' $ac_executable_extensions; do
5931 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_CARGO
="$ac_prog"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 CARGO
=$ac_cv_prog_CARGO
5943 if test -n "$CARGO"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5945 $as_echo "$CARGO" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5952 test -n "$CARGO" && break
5954 test -n "$CARGO" || CARGO
="no"
5956 if test "x$CARGO" != xno
; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5962 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5963 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5964 $as_echo_n "(cached) " >&6
5968 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5969 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5970 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5973 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5976 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5977 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5980 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5987 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5988 do_compare
="$gcc_cv_prog_cmp_skip"
5992 # Check whether --enable-bootstrap was given.
5993 if test "${enable_bootstrap+set}" = set; then :
5994 enableval
=$enable_bootstrap;
5996 enable_bootstrap
=default
6000 # Issue errors and warnings for invalid/strange bootstrap combinations.
6001 if test -r $srcdir/gcc
/configure
; then
6007 case "$have_compiler:$host:$target:$enable_bootstrap" in
6010 # Default behavior. Enable bootstrap if we have a compiler
6011 # and we are in a native configuration.
6012 yes:$build:$build:default
)
6013 enable_bootstrap
=yes ;;
6016 enable_bootstrap
=no
;;
6018 # We have a compiler and we are in a native configuration, bootstrap is ok
6019 yes:$build:$build:yes)
6022 # Other configurations, but we have a compiler. Assume the user knows
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6026 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6029 # No compiler: if they passed --enable-bootstrap explicitly, fail
6031 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
6033 # Fail if wrong command line
6035 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
6039 # When bootstrapping with GCC, build stage 1 in C++14 mode to ensure that a
6040 # C++14 compiler can still start the bootstrap. Otherwise, if building GCC,
6041 # require C++14 (or higher).
6042 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
6043 CXX
="$CXX -std=c++14"
6044 elif test "$have_compiler" = yes; then
6045 ax_cxx_compile_alternatives
="14 1y" ax_cxx_compile_cxx14_required
=true
6047 ac_cpp
='$CXXCPP $CPPFLAGS'
6048 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
6054 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
6055 if ${ax_cv_cxx_compile_cxx14+:} false
; then :
6056 $as_echo_n "(cached) " >&6
6058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6062 // If the compiler admits that it is not ready for C++11, why torture it?
6063 // Hopefully, this will speed up the test.
6067 #error "This is not a C++ compiler"
6069 #elif __cplusplus < 201103L
6071 #error "This is not a C++11 compiler"
6078 namespace test_static_assert
6081 template <typename T>
6084 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6089 namespace test_final_override
6098 struct Derived : public Base
6100 virtual ~Derived() override {}
6101 virtual void f() override {}
6106 namespace test_double_right_angle_brackets
6109 template < typename T >
6112 typedef check<void> single_type;
6113 typedef check<check<void>> double_type;
6114 typedef check<check<check<void>>> triple_type;
6115 typedef check<check<check<check<void>>>> quadruple_type;
6119 namespace test_decltype
6132 namespace test_type_deduction
6135 template < typename T1, typename T2 >
6138 static const bool value = false;
6141 template < typename T >
6142 struct is_same<T, T>
6144 static const bool value = true;
6147 template < typename T1, typename T2 >
6149 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6155 test(const int c, volatile int v)
6157 static_assert(is_same<int, decltype(0)>::value == true, "");
6158 static_assert(is_same<int, decltype(c)>::value == false, "");
6159 static_assert(is_same<int, decltype(v)>::value == false, "");
6162 auto sumi = ac + av + 'x';
6163 auto sumf = ac + av + 1.0;
6164 static_assert(is_same<int, decltype(ac)>::value == true, "");
6165 static_assert(is_same<int, decltype(av)>::value == true, "");
6166 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6167 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6168 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6169 return (sumf > 0.0) ? sumi : add(c, v);
6174 namespace test_noexcept
6177 int f() { return 0; }
6178 int g() noexcept { return 0; }
6180 static_assert(noexcept(f()) == false, "");
6181 static_assert(noexcept(g()) == true, "");
6185 namespace test_constexpr
6188 template < typename CharT >
6189 unsigned long constexpr
6190 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6192 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6195 template < typename CharT >
6196 unsigned long constexpr
6197 strlen_c(const CharT *const s) noexcept
6199 return strlen_c_r(s, 0UL);
6202 static_assert(strlen_c("") == 0UL, "");
6203 static_assert(strlen_c("1") == 1UL, "");
6204 static_assert(strlen_c("example") == 7UL, "");
6205 static_assert(strlen_c("another\0example") == 7UL, "");
6209 namespace test_rvalue_references
6215 static constexpr int value = N;
6218 answer<1> f(int&) { return answer<1>(); }
6219 answer<2> f(const int&) { return answer<2>(); }
6220 answer<3> f(int&&) { return answer<3>(); }
6227 static_assert(decltype(f(i))::value == 1, "");
6228 static_assert(decltype(f(c))::value == 2, "");
6229 static_assert(decltype(f(0))::value == 3, "");
6234 namespace test_uniform_initialization
6239 static const int zero {};
6240 static const int one {1};
6243 static_assert(test::zero == 0, "");
6244 static_assert(test::one == 1, "");
6248 namespace test_lambdas
6254 auto lambda1 = [](){};
6255 auto lambda2 = lambda1;
6263 auto a = [](int i, int j){ return i + j; }(1, 2);
6264 auto b = []() -> int { return '0'; }();
6265 auto c = [=](){ return a + b; }();
6266 auto d = [&](){ return c; }();
6267 auto e = [a, &b](int x) mutable {
6268 const auto identity = [](int y){ return y; };
6269 for (auto i = 0; i < a; ++i)
6271 return x + identity(a + b);
6273 return a + b + c + d + e;
6279 const auto nullary = [](){ return 0; };
6280 const auto unary = [](int x){ return x; };
6281 using nullary_t = decltype(nullary);
6282 using unary_t = decltype(unary);
6283 const auto higher1st = [](nullary_t f){ return f(); };
6284 const auto higher2nd = [unary](nullary_t f1){
6285 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6287 return higher1st(nullary) + higher2nd(nullary)(unary);
6292 namespace test_variadic_templates
6298 template <int N0, int... N1toN>
6299 struct sum<N0, N1toN...>
6301 static constexpr auto value = N0 + sum<N1toN...>::value;
6307 static constexpr auto value = 0;
6310 static_assert(sum<>::value == 0, "");
6311 static_assert(sum<1>::value == 1, "");
6312 static_assert(sum<23>::value == 23, "");
6313 static_assert(sum<1, 2>::value == 3, "");
6314 static_assert(sum<5, 5, 11>::value == 21, "");
6315 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6319 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6320 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6322 namespace test_template_alias_sfinae
6327 template<typename T>
6328 using member = typename T::member_type;
6330 template<typename T>
6333 template<typename T>
6334 void func(member<T>*) {}
6338 void test() { func<foo>(0); }
6342 } // namespace cxx11
6344 #endif // __cplusplus >= 201103L
6349 // If the compiler admits that it is not ready for C++14, why torture it?
6350 // Hopefully, this will speed up the test.
6354 #error "This is not a C++ compiler"
6356 #elif __cplusplus < 201402L
6358 #error "This is not a C++14 compiler"
6365 namespace test_polymorphic_lambdas
6371 const auto lambda = [](auto&&... args){
6372 const auto istiny = [](auto x){
6373 return (sizeof(x) == 1UL) ? 1 : 0;
6375 const int aretiny[] = { istiny(args)... };
6378 return lambda(1, 1L, 1.0f, '1');
6383 namespace test_binary_literals
6386 constexpr auto ivii = 0b0000000000101010;
6387 static_assert(ivii == 42, "wrong value");
6391 namespace test_generalized_constexpr
6394 template < typename CharT >
6395 constexpr unsigned long
6396 strlen_c(const CharT *const s) noexcept
6399 for (auto p = s; *p; ++p)
6404 static_assert(strlen_c("") == 0UL, "");
6405 static_assert(strlen_c("x") == 1UL, "");
6406 static_assert(strlen_c("test") == 4UL, "");
6407 static_assert(strlen_c("another\0test") == 7UL, "");
6411 namespace test_lambda_init_capture
6418 const auto lambda1 = [a = x](int b){ return a + b; };
6419 const auto lambda2 = [a = lambda1(x)](){ return a; };
6425 namespace test_digit_separators
6428 constexpr auto ten_million = 100'000'000;
6429 static_assert(ten_million == 100000000, "");
6433 namespace test_return_type_deduction
6436 auto f(int& x) { return x; }
6437 decltype(auto) g(int& x) { return x; }
6439 template < typename T1, typename T2 >
6442 static constexpr auto value = false;
6445 template < typename T >
6446 struct is_same<T, T>
6448 static constexpr auto value = true;
6455 static_assert(is_same<int, decltype(f(x))>::value, "");
6456 static_assert(is_same<int&, decltype(g(x))>::value, "");
6462 } // namespace cxx14
6464 #endif // __cplusplus >= 201402L
6469 if ac_fn_cxx_try_compile
"$LINENO"; then :
6470 ax_cv_cxx_compile_cxx14
=yes
6472 ax_cv_cxx_compile_cxx14
=no
6474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
6477 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
6478 if test x
$ax_cv_cxx_compile_cxx14 = xyes
; then
6482 if test x
$ac_success = xno
; then
6483 for alternative
in ${ax_cxx_compile_alternatives}; do
6484 switch
="-std=gnu++${alternative}"
6485 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6487 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6488 if eval \
${$cachevar+:} false
; then :
6489 $as_echo_n "(cached) " >&6
6493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6497 // If the compiler admits that it is not ready for C++11, why torture it?
6498 // Hopefully, this will speed up the test.
6502 #error "This is not a C++ compiler"
6504 #elif __cplusplus < 201103L
6506 #error "This is not a C++11 compiler"
6513 namespace test_static_assert
6516 template <typename T>
6519 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6524 namespace test_final_override
6533 struct Derived : public Base
6535 virtual ~Derived() override {}
6536 virtual void f() override {}
6541 namespace test_double_right_angle_brackets
6544 template < typename T >
6547 typedef check<void> single_type;
6548 typedef check<check<void>> double_type;
6549 typedef check<check<check<void>>> triple_type;
6550 typedef check<check<check<check<void>>>> quadruple_type;
6554 namespace test_decltype
6567 namespace test_type_deduction
6570 template < typename T1, typename T2 >
6573 static const bool value = false;
6576 template < typename T >
6577 struct is_same<T, T>
6579 static const bool value = true;
6582 template < typename T1, typename T2 >
6584 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6590 test(const int c, volatile int v)
6592 static_assert(is_same<int, decltype(0)>::value == true, "");
6593 static_assert(is_same<int, decltype(c)>::value == false, "");
6594 static_assert(is_same<int, decltype(v)>::value == false, "");
6597 auto sumi = ac + av + 'x';
6598 auto sumf = ac + av + 1.0;
6599 static_assert(is_same<int, decltype(ac)>::value == true, "");
6600 static_assert(is_same<int, decltype(av)>::value == true, "");
6601 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6602 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6603 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6604 return (sumf > 0.0) ? sumi : add(c, v);
6609 namespace test_noexcept
6612 int f() { return 0; }
6613 int g() noexcept { return 0; }
6615 static_assert(noexcept(f()) == false, "");
6616 static_assert(noexcept(g()) == true, "");
6620 namespace test_constexpr
6623 template < typename CharT >
6624 unsigned long constexpr
6625 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6627 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6630 template < typename CharT >
6631 unsigned long constexpr
6632 strlen_c(const CharT *const s) noexcept
6634 return strlen_c_r(s, 0UL);
6637 static_assert(strlen_c("") == 0UL, "");
6638 static_assert(strlen_c("1") == 1UL, "");
6639 static_assert(strlen_c("example") == 7UL, "");
6640 static_assert(strlen_c("another\0example") == 7UL, "");
6644 namespace test_rvalue_references
6650 static constexpr int value = N;
6653 answer<1> f(int&) { return answer<1>(); }
6654 answer<2> f(const int&) { return answer<2>(); }
6655 answer<3> f(int&&) { return answer<3>(); }
6662 static_assert(decltype(f(i))::value == 1, "");
6663 static_assert(decltype(f(c))::value == 2, "");
6664 static_assert(decltype(f(0))::value == 3, "");
6669 namespace test_uniform_initialization
6674 static const int zero {};
6675 static const int one {1};
6678 static_assert(test::zero == 0, "");
6679 static_assert(test::one == 1, "");
6683 namespace test_lambdas
6689 auto lambda1 = [](){};
6690 auto lambda2 = lambda1;
6698 auto a = [](int i, int j){ return i + j; }(1, 2);
6699 auto b = []() -> int { return '0'; }();
6700 auto c = [=](){ return a + b; }();
6701 auto d = [&](){ return c; }();
6702 auto e = [a, &b](int x) mutable {
6703 const auto identity = [](int y){ return y; };
6704 for (auto i = 0; i < a; ++i)
6706 return x + identity(a + b);
6708 return a + b + c + d + e;
6714 const auto nullary = [](){ return 0; };
6715 const auto unary = [](int x){ return x; };
6716 using nullary_t = decltype(nullary);
6717 using unary_t = decltype(unary);
6718 const auto higher1st = [](nullary_t f){ return f(); };
6719 const auto higher2nd = [unary](nullary_t f1){
6720 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6722 return higher1st(nullary) + higher2nd(nullary)(unary);
6727 namespace test_variadic_templates
6733 template <int N0, int... N1toN>
6734 struct sum<N0, N1toN...>
6736 static constexpr auto value = N0 + sum<N1toN...>::value;
6742 static constexpr auto value = 0;
6745 static_assert(sum<>::value == 0, "");
6746 static_assert(sum<1>::value == 1, "");
6747 static_assert(sum<23>::value == 23, "");
6748 static_assert(sum<1, 2>::value == 3, "");
6749 static_assert(sum<5, 5, 11>::value == 21, "");
6750 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6754 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6755 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6757 namespace test_template_alias_sfinae
6762 template<typename T>
6763 using member = typename T::member_type;
6765 template<typename T>
6768 template<typename T>
6769 void func(member<T>*) {}
6773 void test() { func<foo>(0); }
6777 } // namespace cxx11
6779 #endif // __cplusplus >= 201103L
6784 // If the compiler admits that it is not ready for C++14, why torture it?
6785 // Hopefully, this will speed up the test.
6789 #error "This is not a C++ compiler"
6791 #elif __cplusplus < 201402L
6793 #error "This is not a C++14 compiler"
6800 namespace test_polymorphic_lambdas
6806 const auto lambda = [](auto&&... args){
6807 const auto istiny = [](auto x){
6808 return (sizeof(x) == 1UL) ? 1 : 0;
6810 const int aretiny[] = { istiny(args)... };
6813 return lambda(1, 1L, 1.0f, '1');
6818 namespace test_binary_literals
6821 constexpr auto ivii = 0b0000000000101010;
6822 static_assert(ivii == 42, "wrong value");
6826 namespace test_generalized_constexpr
6829 template < typename CharT >
6830 constexpr unsigned long
6831 strlen_c(const CharT *const s) noexcept
6834 for (auto p = s; *p; ++p)
6839 static_assert(strlen_c("") == 0UL, "");
6840 static_assert(strlen_c("x") == 1UL, "");
6841 static_assert(strlen_c("test") == 4UL, "");
6842 static_assert(strlen_c("another\0test") == 7UL, "");
6846 namespace test_lambda_init_capture
6853 const auto lambda1 = [a = x](int b){ return a + b; };
6854 const auto lambda2 = [a = lambda1(x)](){ return a; };
6860 namespace test_digit_separators
6863 constexpr auto ten_million = 100'000'000;
6864 static_assert(ten_million == 100000000, "");
6868 namespace test_return_type_deduction
6871 auto f(int& x) { return x; }
6872 decltype(auto) g(int& x) { return x; }
6874 template < typename T1, typename T2 >
6877 static constexpr auto value = false;
6880 template < typename T >
6881 struct is_same<T, T>
6883 static constexpr auto value = true;
6890 static_assert(is_same<int, decltype(f(x))>::value, "");
6891 static_assert(is_same<int&, decltype(g(x))>::value, "");
6897 } // namespace cxx14
6899 #endif // __cplusplus >= 201402L
6904 if ac_fn_cxx_try_compile
"$LINENO"; then :
6909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6912 eval ac_res
=\$
$cachevar
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6914 $as_echo "$ac_res" >&6; }
6915 if eval test x\$
$cachevar = xyes
; then
6917 if test -n "$CXXCPP" ; then
6918 CXXCPP
="$CXXCPP $switch"
6926 if test x
$ac_success = xno
; then
6927 for alternative
in ${ax_cxx_compile_alternatives}; do
6928 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6929 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_
$switch" | $as_tr_sh`
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++14 features with
$switch" >&5
6931 $as_echo_n "checking whether
$CXX supports C
++14 features with
$switch...
" >&6; }
6932 if eval \${$cachevar+:} false; then :
6933 $as_echo_n "(cached
) " >&6
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6941 // If the compiler admits that it is not ready for C++11, why torture it?
6942 // Hopefully, this will speed up the test.
6946 #error "This is not a C
++ compiler
"
6948 #elif __cplusplus < 201103L
6950 #error "This is not a C
++11 compiler
"
6957 namespace test_static_assert
6960 template <typename T>
6963 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6968 namespace test_final_override
6977 struct Derived : public Base
6979 virtual ~Derived() override {}
6980 virtual void f() override {}
6985 namespace test_double_right_angle_brackets
6988 template < typename T >
6991 typedef check<void> single_type;
6992 typedef check<check<void>> double_type;
6993 typedef check<check<check<void>>> triple_type;
6994 typedef check<check<check<check<void>>>> quadruple_type;
6998 namespace test_decltype
7011 namespace test_type_deduction
7014 template < typename T1, typename T2 >
7017 static const bool value = false;
7020 template < typename T >
7021 struct is_same<T, T>
7023 static const bool value = true;
7026 template < typename T1, typename T2 >
7028 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7034 test(const int c, volatile int v)
7036 static_assert(is_same<int, decltype(0)>::value == true, "");
7037 static_assert(is_same<int, decltype(c)>::value == false, "");
7038 static_assert(is_same<int, decltype(v)>::value == false, "");
7041 auto sumi = ac + av + 'x';
7042 auto sumf = ac + av + 1.0;
7043 static_assert(is_same<int, decltype(ac)>::value == true, "");
7044 static_assert(is_same<int, decltype(av)>::value == true, "");
7045 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7046 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7047 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7048 return (sumf > 0.0) ? sumi : add(c, v);
7053 namespace test_noexcept
7056 int f() { return 0; }
7057 int g() noexcept { return 0; }
7059 static_assert(noexcept(f()) == false, "");
7060 static_assert(noexcept(g()) == true, "");
7064 namespace test_constexpr
7067 template < typename CharT >
7068 unsigned long constexpr
7069 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7071 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7074 template < typename CharT >
7075 unsigned long constexpr
7076 strlen_c(const CharT *const s) noexcept
7078 return strlen_c_r(s, 0UL);
7081 static_assert(strlen_c("") == 0UL, "");
7082 static_assert(strlen_c("1") == 1UL, "");
7083 static_assert(strlen_c("example
") == 7UL, "");
7084 static_assert(strlen_c("another\
0example
") == 7UL, "");
7088 namespace test_rvalue_references
7094 static constexpr int value = N;
7097 answer<1> f(int&) { return answer<1>(); }
7098 answer<2> f(const int&) { return answer<2>(); }
7099 answer<3> f(int&&) { return answer<3>(); }
7106 static_assert(decltype(f(i))::value == 1, "");
7107 static_assert(decltype(f(c))::value == 2, "");
7108 static_assert(decltype(f(0))::value == 3, "");
7113 namespace test_uniform_initialization
7118 static const int zero {};
7119 static const int one {1};
7122 static_assert(test::zero == 0, "");
7123 static_assert(test::one == 1, "");
7127 namespace test_lambdas
7133 auto lambda1 = [](){};
7134 auto lambda2 = lambda1;
7142 auto a = [](int i, int j){ return i + j; }(1, 2);
7143 auto b = []() -> int { return '0'; }();
7144 auto c = [=](){ return a + b; }();
7145 auto d = [&](){ return c; }();
7146 auto e = [a, &b](int x) mutable {
7147 const auto identity = [](int y){ return y; };
7148 for (auto i = 0; i < a; ++i)
7150 return x + identity(a + b);
7152 return a + b + c + d + e;
7158 const auto nullary = [](){ return 0; };
7159 const auto unary = [](int x){ return x; };
7160 using nullary_t = decltype(nullary);
7161 using unary_t = decltype(unary);
7162 const auto higher1st = [](nullary_t f){ return f(); };
7163 const auto higher2nd = [unary](nullary_t f1){
7164 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7166 return higher1st(nullary) + higher2nd(nullary)(unary);
7171 namespace test_variadic_templates
7177 template <int N0, int... N1toN>
7178 struct sum<N0, N1toN...>
7180 static constexpr auto value = N0 + sum<N1toN...>::value;
7186 static constexpr auto value = 0;
7189 static_assert(sum<>::value == 0, "");
7190 static_assert(sum<1>::value == 1, "");
7191 static_assert(sum<23>::value == 23, "");
7192 static_assert(sum<1, 2>::value == 3, "");
7193 static_assert(sum<5, 5, 11>::value == 21, "");
7194 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7198 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7199 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7201 namespace test_template_alias_sfinae
7206 template<typename T>
7207 using member = typename T::member_type;
7209 template<typename T>
7212 template<typename T>
7213 void func(member<T>*) {}
7217 void test() { func<foo>(0); }
7221 } // namespace cxx11
7223 #endif // __cplusplus >= 201103L
7228 // If the compiler admits that it is not ready for C++14, why torture it?
7229 // Hopefully, this will speed up the test.
7233 #error "This is not a C
++ compiler
"
7235 #elif __cplusplus < 201402L
7237 #error "This is not a C
++14 compiler
"
7244 namespace test_polymorphic_lambdas
7250 const auto lambda = [](auto&&... args){
7251 const auto istiny = [](auto x){
7252 return (sizeof(x) == 1UL) ? 1 : 0;
7254 const int aretiny[] = { istiny(args)... };
7257 return lambda(1, 1L, 1.0f, '1');
7262 namespace test_binary_literals
7265 constexpr auto ivii = 0b0000000000101010;
7266 static_assert(ivii == 42, "wrong value
");
7270 namespace test_generalized_constexpr
7273 template < typename CharT >
7274 constexpr unsigned long
7275 strlen_c(const CharT *const s) noexcept
7278 for (auto p = s; *p; ++p)
7283 static_assert(strlen_c("") == 0UL, "");
7284 static_assert(strlen_c("x
") == 1UL, "");
7285 static_assert(strlen_c("test") == 4UL, "");
7286 static_assert(strlen_c("another\
0test") == 7UL, "");
7290 namespace test_lambda_init_capture
7297 const auto lambda1 = [a = x](int b){ return a + b; };
7298 const auto lambda2 = [a = lambda1(x)](){ return a; };
7304 namespace test_digit_separators
7307 constexpr auto ten_million = 100'000'000;
7308 static_assert(ten_million == 100000000, "");
7312 namespace test_return_type_deduction
7315 auto f(int& x) { return x; }
7316 decltype(auto) g(int& x) { return x; }
7318 template < typename T1, typename T2 >
7321 static constexpr auto value = false;
7324 template < typename T >
7325 struct is_same<T, T>
7327 static constexpr auto value = true;
7334 static_assert(is_same<int, decltype(f(x))>::value, "");
7335 static_assert(is_same<int&, decltype(g(x))>::value, "");
7341 } // namespace cxx14
7343 #endif // __cplusplus >= 201402L
7348 if ac_fn_cxx_try_compile "$LINENO"; then :
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356 eval ac_res=\$$cachevar
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7358 $as_echo "$ac_res" >&6; }
7359 if eval test x\$$cachevar = xyes; then
7361 if test -n "$CXXCPP" ; then
7362 CXXCPP="$CXXCPP $switch"
7368 if test x$ac_success = xyes; then
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380 if test x$ax_cxx_compile_cxx14_required = xtrue; then
7381 if test x$ac_success = xno; then
7382 as_fn_error $? "*** A compiler with support
for C
++14 language features is required.
" "$LINENO" 5
7385 if test x$ac_success = xno; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++14 support was found
" >&5
7388 $as_echo "$as_me: No compiler with C
++14 support was found
" >&6;}
7392 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
7398 if test "${build}" != "${host}"; then
7399 ax_cxx_compile_alternatives
="14 1y" ax_cxx_compile_cxx14_required
=true
7401 ac_cpp
='$CXXCPP $CPPFLAGS'
7402 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7406 ax_cv_cxx_compile_cxx14_orig_cxx
="$CXX"
7407 ax_cv_cxx_compile_cxx14_orig_cxxflags
="$CXXFLAGS"
7408 ax_cv_cxx_compile_cxx14_orig_cppflags
="$CPPFLAGS"
7409 CXX
="$CXX_FOR_BUILD"
7410 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
7411 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
7413 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
7414 if ${ax_cv_cxx_compile_cxx14_FOR_BUILD+:} false
; then :
7415 $as_echo_n "(cached) " >&6
7417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7421 // If the compiler admits that it is not ready for C++11, why torture it?
7422 // Hopefully, this will speed up the test.
7426 #error "This is not a C++ compiler"
7428 #elif __cplusplus < 201103L
7430 #error "This is not a C++11 compiler"
7437 namespace test_static_assert
7440 template <typename T>
7443 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7448 namespace test_final_override
7457 struct Derived : public Base
7459 virtual ~Derived() override {}
7460 virtual void f() override {}
7465 namespace test_double_right_angle_brackets
7468 template < typename T >
7471 typedef check<void> single_type;
7472 typedef check<check<void>> double_type;
7473 typedef check<check<check<void>>> triple_type;
7474 typedef check<check<check<check<void>>>> quadruple_type;
7478 namespace test_decltype
7491 namespace test_type_deduction
7494 template < typename T1, typename T2 >
7497 static const bool value = false;
7500 template < typename T >
7501 struct is_same<T, T>
7503 static const bool value = true;
7506 template < typename T1, typename T2 >
7508 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7514 test(const int c, volatile int v)
7516 static_assert(is_same<int, decltype(0)>::value == true, "");
7517 static_assert(is_same<int, decltype(c)>::value == false, "");
7518 static_assert(is_same<int, decltype(v)>::value == false, "");
7521 auto sumi = ac + av + 'x';
7522 auto sumf = ac + av + 1.0;
7523 static_assert(is_same<int, decltype(ac)>::value == true, "");
7524 static_assert(is_same<int, decltype(av)>::value == true, "");
7525 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7526 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7527 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7528 return (sumf > 0.0) ? sumi : add(c, v);
7533 namespace test_noexcept
7536 int f() { return 0; }
7537 int g() noexcept { return 0; }
7539 static_assert(noexcept(f()) == false, "");
7540 static_assert(noexcept(g()) == true, "");
7544 namespace test_constexpr
7547 template < typename CharT >
7548 unsigned long constexpr
7549 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7551 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7554 template < typename CharT >
7555 unsigned long constexpr
7556 strlen_c(const CharT *const s) noexcept
7558 return strlen_c_r(s, 0UL);
7561 static_assert(strlen_c("") == 0UL, "");
7562 static_assert(strlen_c("1") == 1UL, "");
7563 static_assert(strlen_c("example") == 7UL, "");
7564 static_assert(strlen_c("another\0example") == 7UL, "");
7568 namespace test_rvalue_references
7574 static constexpr int value = N;
7577 answer<1> f(int&) { return answer<1>(); }
7578 answer<2> f(const int&) { return answer<2>(); }
7579 answer<3> f(int&&) { return answer<3>(); }
7586 static_assert(decltype(f(i))::value == 1, "");
7587 static_assert(decltype(f(c))::value == 2, "");
7588 static_assert(decltype(f(0))::value == 3, "");
7593 namespace test_uniform_initialization
7598 static const int zero {};
7599 static const int one {1};
7602 static_assert(test::zero == 0, "");
7603 static_assert(test::one == 1, "");
7607 namespace test_lambdas
7613 auto lambda1 = [](){};
7614 auto lambda2 = lambda1;
7622 auto a = [](int i, int j){ return i + j; }(1, 2);
7623 auto b = []() -> int { return '0'; }();
7624 auto c = [=](){ return a + b; }();
7625 auto d = [&](){ return c; }();
7626 auto e = [a, &b](int x) mutable {
7627 const auto identity = [](int y){ return y; };
7628 for (auto i = 0; i < a; ++i)
7630 return x + identity(a + b);
7632 return a + b + c + d + e;
7638 const auto nullary = [](){ return 0; };
7639 const auto unary = [](int x){ return x; };
7640 using nullary_t = decltype(nullary);
7641 using unary_t = decltype(unary);
7642 const auto higher1st = [](nullary_t f){ return f(); };
7643 const auto higher2nd = [unary](nullary_t f1){
7644 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7646 return higher1st(nullary) + higher2nd(nullary)(unary);
7651 namespace test_variadic_templates
7657 template <int N0, int... N1toN>
7658 struct sum<N0, N1toN...>
7660 static constexpr auto value = N0 + sum<N1toN...>::value;
7666 static constexpr auto value = 0;
7669 static_assert(sum<>::value == 0, "");
7670 static_assert(sum<1>::value == 1, "");
7671 static_assert(sum<23>::value == 23, "");
7672 static_assert(sum<1, 2>::value == 3, "");
7673 static_assert(sum<5, 5, 11>::value == 21, "");
7674 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7678 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7679 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7681 namespace test_template_alias_sfinae
7686 template<typename T>
7687 using member = typename T::member_type;
7689 template<typename T>
7692 template<typename T>
7693 void func(member<T>*) {}
7697 void test() { func<foo>(0); }
7701 } // namespace cxx11
7703 #endif // __cplusplus >= 201103L
7708 // If the compiler admits that it is not ready for C++14, why torture it?
7709 // Hopefully, this will speed up the test.
7713 #error "This is not a C++ compiler"
7715 #elif __cplusplus < 201402L
7717 #error "This is not a C++14 compiler"
7724 namespace test_polymorphic_lambdas
7730 const auto lambda = [](auto&&... args){
7731 const auto istiny = [](auto x){
7732 return (sizeof(x) == 1UL) ? 1 : 0;
7734 const int aretiny[] = { istiny(args)... };
7737 return lambda(1, 1L, 1.0f, '1');
7742 namespace test_binary_literals
7745 constexpr auto ivii = 0b0000000000101010;
7746 static_assert(ivii == 42, "wrong value");
7750 namespace test_generalized_constexpr
7753 template < typename CharT >
7754 constexpr unsigned long
7755 strlen_c(const CharT *const s) noexcept
7758 for (auto p = s; *p; ++p)
7763 static_assert(strlen_c("") == 0UL, "");
7764 static_assert(strlen_c("x") == 1UL, "");
7765 static_assert(strlen_c("test") == 4UL, "");
7766 static_assert(strlen_c("another\0test") == 7UL, "");
7770 namespace test_lambda_init_capture
7777 const auto lambda1 = [a = x](int b){ return a + b; };
7778 const auto lambda2 = [a = lambda1(x)](){ return a; };
7784 namespace test_digit_separators
7787 constexpr auto ten_million = 100'000'000;
7788 static_assert(ten_million == 100000000, "");
7792 namespace test_return_type_deduction
7795 auto f(int& x) { return x; }
7796 decltype(auto) g(int& x) { return x; }
7798 template < typename T1, typename T2 >
7801 static constexpr auto value = false;
7804 template < typename T >
7805 struct is_same<T, T>
7807 static constexpr auto value = true;
7814 static_assert(is_same<int, decltype(f(x))>::value, "");
7815 static_assert(is_same<int&, decltype(g(x))>::value, "");
7821 } // namespace cxx14
7823 #endif // __cplusplus >= 201402L
7828 if ac_fn_cxx_try_compile
"$LINENO"; then :
7829 ax_cv_cxx_compile_cxx14_FOR_BUILD
=yes
7831 ax_cv_cxx_compile_cxx14_FOR_BUILD
=no
7833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14_FOR_BUILD" >&5
7836 $as_echo "$ax_cv_cxx_compile_cxx14_FOR_BUILD" >&6; }
7837 if test x
$ax_cv_cxx_compile_cxx14_FOR_BUILD = xyes
; then
7841 if test x
$ac_success = xno
; then
7842 for alternative
in ${ax_cxx_compile_alternatives}; do
7843 switch
="-std=gnu++${alternative}"
7844 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
7846 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
7847 if eval \
${$cachevar+:} false
; then :
7848 $as_echo_n "(cached) " >&6
7852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7856 // If the compiler admits that it is not ready for C++11, why torture it?
7857 // Hopefully, this will speed up the test.
7861 #error "This is not a C++ compiler"
7863 #elif __cplusplus < 201103L
7865 #error "This is not a C++11 compiler"
7872 namespace test_static_assert
7875 template <typename T>
7878 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7883 namespace test_final_override
7892 struct Derived : public Base
7894 virtual ~Derived() override {}
7895 virtual void f() override {}
7900 namespace test_double_right_angle_brackets
7903 template < typename T >
7906 typedef check<void> single_type;
7907 typedef check<check<void>> double_type;
7908 typedef check<check<check<void>>> triple_type;
7909 typedef check<check<check<check<void>>>> quadruple_type;
7913 namespace test_decltype
7926 namespace test_type_deduction
7929 template < typename T1, typename T2 >
7932 static const bool value = false;
7935 template < typename T >
7936 struct is_same<T, T>
7938 static const bool value = true;
7941 template < typename T1, typename T2 >
7943 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7949 test(const int c, volatile int v)
7951 static_assert(is_same<int, decltype(0)>::value == true, "");
7952 static_assert(is_same<int, decltype(c)>::value == false, "");
7953 static_assert(is_same<int, decltype(v)>::value == false, "");
7956 auto sumi = ac + av + 'x';
7957 auto sumf = ac + av + 1.0;
7958 static_assert(is_same<int, decltype(ac)>::value == true, "");
7959 static_assert(is_same<int, decltype(av)>::value == true, "");
7960 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7961 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7962 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7963 return (sumf > 0.0) ? sumi : add(c, v);
7968 namespace test_noexcept
7971 int f() { return 0; }
7972 int g() noexcept { return 0; }
7974 static_assert(noexcept(f()) == false, "");
7975 static_assert(noexcept(g()) == true, "");
7979 namespace test_constexpr
7982 template < typename CharT >
7983 unsigned long constexpr
7984 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7986 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7989 template < typename CharT >
7990 unsigned long constexpr
7991 strlen_c(const CharT *const s) noexcept
7993 return strlen_c_r(s, 0UL);
7996 static_assert(strlen_c("") == 0UL, "");
7997 static_assert(strlen_c("1") == 1UL, "");
7998 static_assert(strlen_c("example") == 7UL, "");
7999 static_assert(strlen_c("another\0example") == 7UL, "");
8003 namespace test_rvalue_references
8009 static constexpr int value = N;
8012 answer<1> f(int&) { return answer<1>(); }
8013 answer<2> f(const int&) { return answer<2>(); }
8014 answer<3> f(int&&) { return answer<3>(); }
8021 static_assert(decltype(f(i))::value == 1, "");
8022 static_assert(decltype(f(c))::value == 2, "");
8023 static_assert(decltype(f(0))::value == 3, "");
8028 namespace test_uniform_initialization
8033 static const int zero {};
8034 static const int one {1};
8037 static_assert(test::zero == 0, "");
8038 static_assert(test::one == 1, "");
8042 namespace test_lambdas
8048 auto lambda1 = [](){};
8049 auto lambda2 = lambda1;
8057 auto a = [](int i, int j){ return i + j; }(1, 2);
8058 auto b = []() -> int { return '0'; }();
8059 auto c = [=](){ return a + b; }();
8060 auto d = [&](){ return c; }();
8061 auto e = [a, &b](int x) mutable {
8062 const auto identity = [](int y){ return y; };
8063 for (auto i = 0; i < a; ++i)
8065 return x + identity(a + b);
8067 return a + b + c + d + e;
8073 const auto nullary = [](){ return 0; };
8074 const auto unary = [](int x){ return x; };
8075 using nullary_t = decltype(nullary);
8076 using unary_t = decltype(unary);
8077 const auto higher1st = [](nullary_t f){ return f(); };
8078 const auto higher2nd = [unary](nullary_t f1){
8079 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8081 return higher1st(nullary) + higher2nd(nullary)(unary);
8086 namespace test_variadic_templates
8092 template <int N0, int... N1toN>
8093 struct sum<N0, N1toN...>
8095 static constexpr auto value = N0 + sum<N1toN...>::value;
8101 static constexpr auto value = 0;
8104 static_assert(sum<>::value == 0, "");
8105 static_assert(sum<1>::value == 1, "");
8106 static_assert(sum<23>::value == 23, "");
8107 static_assert(sum<1, 2>::value == 3, "");
8108 static_assert(sum<5, 5, 11>::value == 21, "");
8109 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8113 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8114 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8116 namespace test_template_alias_sfinae
8121 template<typename T>
8122 using member = typename T::member_type;
8124 template<typename T>
8127 template<typename T>
8128 void func(member<T>*) {}
8132 void test() { func<foo>(0); }
8136 } // namespace cxx11
8138 #endif // __cplusplus >= 201103L
8143 // If the compiler admits that it is not ready for C++14, why torture it?
8144 // Hopefully, this will speed up the test.
8148 #error "This is not a C++ compiler"
8150 #elif __cplusplus < 201402L
8152 #error "This is not a C++14 compiler"
8159 namespace test_polymorphic_lambdas
8165 const auto lambda = [](auto&&... args){
8166 const auto istiny = [](auto x){
8167 return (sizeof(x) == 1UL) ? 1 : 0;
8169 const int aretiny[] = { istiny(args)... };
8172 return lambda(1, 1L, 1.0f, '1');
8177 namespace test_binary_literals
8180 constexpr auto ivii = 0b0000000000101010;
8181 static_assert(ivii == 42, "wrong value");
8185 namespace test_generalized_constexpr
8188 template < typename CharT >
8189 constexpr unsigned long
8190 strlen_c(const CharT *const s) noexcept
8193 for (auto p = s; *p; ++p)
8198 static_assert(strlen_c("") == 0UL, "");
8199 static_assert(strlen_c("x") == 1UL, "");
8200 static_assert(strlen_c("test") == 4UL, "");
8201 static_assert(strlen_c("another\0test") == 7UL, "");
8205 namespace test_lambda_init_capture
8212 const auto lambda1 = [a = x](int b){ return a + b; };
8213 const auto lambda2 = [a = lambda1(x)](){ return a; };
8219 namespace test_digit_separators
8222 constexpr auto ten_million = 100'000'000;
8223 static_assert(ten_million == 100000000, "");
8227 namespace test_return_type_deduction
8230 auto f(int& x) { return x; }
8231 decltype(auto) g(int& x) { return x; }
8233 template < typename T1, typename T2 >
8236 static constexpr auto value = false;
8239 template < typename T >
8240 struct is_same<T, T>
8242 static constexpr auto value = true;
8249 static_assert(is_same<int, decltype(f(x))>::value, "");
8250 static_assert(is_same<int&, decltype(g(x))>::value, "");
8256 } // namespace cxx14
8258 #endif // __cplusplus >= 201402L
8263 if ac_fn_cxx_try_compile
"$LINENO"; then :
8268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8271 eval ac_res
=\$
$cachevar
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8273 $as_echo "$ac_res" >&6; }
8274 if eval test x\$
$cachevar = xyes
; then
8276 if test -n "$CXXCPP" ; then
8277 CXXCPP
="$CXXCPP $switch"
8285 if test x
$ac_success = xno
; then
8286 for alternative
in ${ax_cxx_compile_alternatives}; do
8287 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8288 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_
$switch" | $as_tr_sh`
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++14 features with
$switch" >&5
8290 $as_echo_n "checking whether
$CXX supports C
++14 features with
$switch...
" >&6; }
8291 if eval \${$cachevar+:} false; then :
8292 $as_echo_n "(cached
) " >&6
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8300 // If the compiler admits that it is not ready for C++11, why torture it?
8301 // Hopefully, this will speed up the test.
8305 #error "This is not a C
++ compiler
"
8307 #elif __cplusplus < 201103L
8309 #error "This is not a C
++11 compiler
"
8316 namespace test_static_assert
8319 template <typename T>
8322 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
8327 namespace test_final_override
8336 struct Derived : public Base
8338 virtual ~Derived() override {}
8339 virtual void f() override {}
8344 namespace test_double_right_angle_brackets
8347 template < typename T >
8350 typedef check<void> single_type;
8351 typedef check<check<void>> double_type;
8352 typedef check<check<check<void>>> triple_type;
8353 typedef check<check<check<check<void>>>> quadruple_type;
8357 namespace test_decltype
8370 namespace test_type_deduction
8373 template < typename T1, typename T2 >
8376 static const bool value = false;
8379 template < typename T >
8380 struct is_same<T, T>
8382 static const bool value = true;
8385 template < typename T1, typename T2 >
8387 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8393 test(const int c, volatile int v)
8395 static_assert(is_same<int, decltype(0)>::value == true, "");
8396 static_assert(is_same<int, decltype(c)>::value == false, "");
8397 static_assert(is_same<int, decltype(v)>::value == false, "");
8400 auto sumi = ac + av + 'x';
8401 auto sumf = ac + av + 1.0;
8402 static_assert(is_same<int, decltype(ac)>::value == true, "");
8403 static_assert(is_same<int, decltype(av)>::value == true, "");
8404 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8405 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8406 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8407 return (sumf > 0.0) ? sumi : add(c, v);
8412 namespace test_noexcept
8415 int f() { return 0; }
8416 int g() noexcept { return 0; }
8418 static_assert(noexcept(f()) == false, "");
8419 static_assert(noexcept(g()) == true, "");
8423 namespace test_constexpr
8426 template < typename CharT >
8427 unsigned long constexpr
8428 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8430 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8433 template < typename CharT >
8434 unsigned long constexpr
8435 strlen_c(const CharT *const s) noexcept
8437 return strlen_c_r(s, 0UL);
8440 static_assert(strlen_c("") == 0UL, "");
8441 static_assert(strlen_c("1") == 1UL, "");
8442 static_assert(strlen_c("example
") == 7UL, "");
8443 static_assert(strlen_c("another\
0example
") == 7UL, "");
8447 namespace test_rvalue_references
8453 static constexpr int value = N;
8456 answer<1> f(int&) { return answer<1>(); }
8457 answer<2> f(const int&) { return answer<2>(); }
8458 answer<3> f(int&&) { return answer<3>(); }
8465 static_assert(decltype(f(i))::value == 1, "");
8466 static_assert(decltype(f(c))::value == 2, "");
8467 static_assert(decltype(f(0))::value == 3, "");
8472 namespace test_uniform_initialization
8477 static const int zero {};
8478 static const int one {1};
8481 static_assert(test::zero == 0, "");
8482 static_assert(test::one == 1, "");
8486 namespace test_lambdas
8492 auto lambda1 = [](){};
8493 auto lambda2 = lambda1;
8501 auto a = [](int i, int j){ return i + j; }(1, 2);
8502 auto b = []() -> int { return '0'; }();
8503 auto c = [=](){ return a + b; }();
8504 auto d = [&](){ return c; }();
8505 auto e = [a, &b](int x) mutable {
8506 const auto identity = [](int y){ return y; };
8507 for (auto i = 0; i < a; ++i)
8509 return x + identity(a + b);
8511 return a + b + c + d + e;
8517 const auto nullary = [](){ return 0; };
8518 const auto unary = [](int x){ return x; };
8519 using nullary_t = decltype(nullary);
8520 using unary_t = decltype(unary);
8521 const auto higher1st = [](nullary_t f){ return f(); };
8522 const auto higher2nd = [unary](nullary_t f1){
8523 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8525 return higher1st(nullary) + higher2nd(nullary)(unary);
8530 namespace test_variadic_templates
8536 template <int N0, int... N1toN>
8537 struct sum<N0, N1toN...>
8539 static constexpr auto value = N0 + sum<N1toN...>::value;
8545 static constexpr auto value = 0;
8548 static_assert(sum<>::value == 0, "");
8549 static_assert(sum<1>::value == 1, "");
8550 static_assert(sum<23>::value == 23, "");
8551 static_assert(sum<1, 2>::value == 3, "");
8552 static_assert(sum<5, 5, 11>::value == 21, "");
8553 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8557 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8558 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8560 namespace test_template_alias_sfinae
8565 template<typename T>
8566 using member = typename T::member_type;
8568 template<typename T>
8571 template<typename T>
8572 void func(member<T>*) {}
8576 void test() { func<foo>(0); }
8580 } // namespace cxx11
8582 #endif // __cplusplus >= 201103L
8587 // If the compiler admits that it is not ready for C++14, why torture it?
8588 // Hopefully, this will speed up the test.
8592 #error "This is not a C
++ compiler
"
8594 #elif __cplusplus < 201402L
8596 #error "This is not a C
++14 compiler
"
8603 namespace test_polymorphic_lambdas
8609 const auto lambda = [](auto&&... args){
8610 const auto istiny = [](auto x){
8611 return (sizeof(x) == 1UL) ? 1 : 0;
8613 const int aretiny[] = { istiny(args)... };
8616 return lambda(1, 1L, 1.0f, '1');
8621 namespace test_binary_literals
8624 constexpr auto ivii = 0b0000000000101010;
8625 static_assert(ivii == 42, "wrong value
");
8629 namespace test_generalized_constexpr
8632 template < typename CharT >
8633 constexpr unsigned long
8634 strlen_c(const CharT *const s) noexcept
8637 for (auto p = s; *p; ++p)
8642 static_assert(strlen_c("") == 0UL, "");
8643 static_assert(strlen_c("x
") == 1UL, "");
8644 static_assert(strlen_c("test") == 4UL, "");
8645 static_assert(strlen_c("another\
0test") == 7UL, "");
8649 namespace test_lambda_init_capture
8656 const auto lambda1 = [a = x](int b){ return a + b; };
8657 const auto lambda2 = [a = lambda1(x)](){ return a; };
8663 namespace test_digit_separators
8666 constexpr auto ten_million = 100'000'000;
8667 static_assert(ten_million == 100000000, "");
8671 namespace test_return_type_deduction
8674 auto f(int& x) { return x; }
8675 decltype(auto) g(int& x) { return x; }
8677 template < typename T1, typename T2 >
8680 static constexpr auto value = false;
8683 template < typename T >
8684 struct is_same<T, T>
8686 static constexpr auto value = true;
8693 static_assert(is_same<int, decltype(f(x))>::value, "");
8694 static_assert(is_same<int&, decltype(g(x))>::value, "");
8700 } // namespace cxx14
8702 #endif // __cplusplus >= 201402L
8707 if ac_fn_cxx_try_compile "$LINENO"; then :
8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 eval ac_res=\$$cachevar
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
8717 $as_echo "$ac_res" >&6; }
8718 if eval test x\$$cachevar = xyes; then
8720 if test -n "$CXXCPP" ; then
8721 CXXCPP="$CXXCPP $switch"
8727 if test x$ac_success = xyes; then
8732 CXX_FOR_BUILD="$CXX"
8733 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
8734 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
8735 CXX="$ax_cv_cxx_compile_cxx14_orig_cxx"
8736 CXXFLAGS="$ax_cv_cxx_compile_cxx14_orig_cxxflags"
8737 CPPFLAGS="$ax_cv_cxx_compile_cxx14_orig_cppflags"
8739 ac_cpp='$CPP $CPPFLAGS'
8740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8744 if test x$ax_cxx_compile_cxx14_required = xtrue; then
8745 if test x$ac_success = xno; then
8746 as_fn_error $? "*** A compiler with support
for C
++14 language features is required.
" "$LINENO" 5
8749 if test x$ac_success = xno; then
8750 HAVE_CXX14_FOR_BUILD=0
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++14 support was found
" >&5
8752 $as_echo "$as_me: No compiler with C
++14 support was found
" >&6;}
8754 HAVE_CXX14_FOR_BUILD=1
8756 $as_echo "#define HAVE_CXX14_FOR_BUILD 1" >>confdefs.h
8764 # Check whether --enable-pgo-build was given.
8765 if test "${enable_pgo_build+set}" = set; then :
8766 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
8772 # Issue errors and warnings for invalid/strange PGO build combinations.
8773 case "$have_compiler:$host:$target:$enable_pgo_build" in
8776 # Allow the PGO build only if we aren't building a compiler and
8777 # we are in a native configuration.
8778 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
8780 # Disallow the PGO bootstrap if we are building a compiler.
8781 yes:*:*:yes |
yes:*:*:lto
)
8782 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
8785 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
8789 if test "$enable_pgo_build" != "no"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
8791 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
8792 old_CFLAGS
="$CFLAGS"
8793 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
8794 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
8796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8800 if ac_fn_c_try_compile
"$LINENO"; then :
8803 PGO_BUILD_GEN_CFLAGS
=
8805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8806 CFLAGS
="$old_CFLAGS"
8807 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8809 $as_echo "yes" >&6; }
8810 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8814 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
8817 if test "$enable_pgo_build" = "lto"; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
8819 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
8820 old_CFLAGS
="$CFLAGS"
8821 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
8822 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
8823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8827 if ac_fn_c_try_compile
"$LINENO"; then :
8830 PGO_BUILD_LTO_CFLAGS
=
8832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8833 CFLAGS
="$old_CFLAGS"
8834 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8836 $as_echo "yes" >&6; }
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
8841 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8849 # Used for setting $lt_cv_objdir
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8851 $as_echo_n "checking for objdir... " >&6; }
8852 if ${lt_cv_objdir+:} false
; then :
8853 $as_echo_n "(cached) " >&6
8855 rm -f .libs
2>/dev
/null
8856 mkdir .libs
2>/dev
/null
8857 if test -d .libs
; then
8860 # MS-DOS does not allow filenames that begin with a dot.
8863 rmdir .libs
2>/dev
/null
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8866 $as_echo "$lt_cv_objdir" >&6; }
8867 objdir
=$lt_cv_objdir
8873 cat >>confdefs.h
<<_ACEOF
8874 #define LT_OBJDIR "$lt_cv_objdir/"
8879 # Check for GMP, MPFR and MPC
8882 if test -d ${srcdir}/gcc
; then
8886 if test -d ${srcdir}/gdb
; then
8887 if test "x$enable_gdb" != xno
; then
8892 gmplibs
="-lmpfr -lgmp"
8893 if test x
"$require_mpc" = "xyes" ; then
8894 gmplibs
="-lmpc $gmplibs"
8899 # Specify a location for mpc
8900 # check for this first so it ends up on the link line before mpfr.
8902 # Check whether --with-mpc was given.
8903 if test "${with_mpc+set}" = set; then :
8908 # Check whether --with-mpc-include was given.
8909 if test "${with_mpc_include+set}" = set; then :
8910 withval
=$with_mpc_include;
8914 # Check whether --with-mpc-lib was given.
8915 if test "${with_mpc_lib+set}" = set; then :
8916 withval
=$with_mpc_lib;
8920 if test "x$with_mpc" != x
; then
8921 gmplibs
="-L$with_mpc/lib $gmplibs"
8922 gmpinc
="-I$with_mpc/include $gmpinc"
8924 if test "x$with_mpc_include" != x
; then
8925 gmpinc
="-I$with_mpc_include $gmpinc"
8927 if test "x$with_mpc_lib" != x
; then
8928 gmplibs
="-L$with_mpc_lib $gmplibs"
8930 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
8931 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8932 gmpinc
='-I$$s/mpc/src '"$gmpinc"
8933 # Do not test the mpc version. Assume that it is sufficient, since
8934 # it is in the source tree, and the library has not been built yet
8935 # but it would be included on the link line in the version check below
8936 # hence making the test fail.
8940 # Specify a location for mpfr
8941 # check for this first so it ends up on the link line before gmp.
8943 # Check whether --with-mpfr was given.
8944 if test "${with_mpfr+set}" = set; then :
8949 # Check whether --with-mpfr-include was given.
8950 if test "${with_mpfr_include+set}" = set; then :
8951 withval
=$with_mpfr_include;
8955 # Check whether --with-mpfr-lib was given.
8956 if test "${with_mpfr_lib+set}" = set; then :
8957 withval
=$with_mpfr_lib;
8961 if test "x$with_mpfr" != x
; then
8962 gmplibs
="-L$with_mpfr/lib $gmplibs"
8963 gmpinc
="-I$with_mpfr/include $gmpinc"
8965 if test "x$with_mpfr_include" != x
; then
8966 gmpinc
="-I$with_mpfr_include $gmpinc"
8968 if test "x$with_mpfr_lib" != x
; then
8969 gmplibs
="-L$with_mpfr_lib $gmplibs"
8971 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8972 # MPFR v3.1.0 moved the sources into a src sub-directory.
8973 if ! test -d ${srcdir}/mpfr
/src
; then
8974 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8976 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8977 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8978 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8979 # Do not test the mpfr version. Assume that it is sufficient, since
8980 # it is in the source tree, and the library has not been built yet
8981 # but it would be included on the link line in the version check below
8982 # hence making the test fail.
8986 # Specify a location for gmp
8988 # Check whether --with-gmp was given.
8989 if test "${with_gmp+set}" = set; then :
8994 # Check whether --with-gmp-include was given.
8995 if test "${with_gmp_include+set}" = set; then :
8996 withval
=$with_gmp_include;
9000 # Check whether --with-gmp-lib was given.
9001 if test "${with_gmp_lib+set}" = set; then :
9002 withval
=$with_gmp_lib;
9007 if test "x$with_gmp" != x
; then
9008 gmplibs
="-L$with_gmp/lib $gmplibs"
9009 gmpinc
="-I$with_gmp/include $gmpinc"
9011 if test "x$with_gmp_include" != x
; then
9012 gmpinc
="-I$with_gmp_include $gmpinc"
9014 if test "x$with_gmp_lib" != x
; then
9015 gmplibs
="-L$with_gmp_lib $gmplibs"
9017 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
9018 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
9019 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9020 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
9021 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
9022 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
9023 # Do not test the gmp version. Assume that it is sufficient, since
9024 # it is in the source tree, and the library has not been built yet
9025 # but it would be included on the link line in the version check below
9026 # hence making the test fail.
9030 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
9032 saved_CFLAGS
="$CFLAGS"
9033 CFLAGS
="$CFLAGS $gmpinc"
9034 # Check for the recommended and required versions of GMP.
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
9036 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
9037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9044 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
9045 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
9046 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
9054 if ac_fn_c_try_compile
"$LINENO"; then :
9055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9062 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
9063 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
9064 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
9072 if ac_fn_c_try_compile
"$LINENO"; then :
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9074 $as_echo "yes" >&6; }
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9077 $as_echo "buggy but acceptable" >&6; }
9079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 $as_echo "no" >&6; }; have_gmp
=no
9084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9086 # If we have GMP, check the MPFR version.
9087 if test x
"$have_gmp" = xyes
; then
9088 # Check for the recommended and required versions of MPFR.
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
9090 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
9091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9099 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
9107 if ac_fn_c_try_compile
"$LINENO"; then :
9108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9116 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
9124 if ac_fn_c_try_compile
"$LINENO"; then :
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9126 $as_echo "yes" >&6; }
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9129 $as_echo "buggy but acceptable" >&6; }
9131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 $as_echo "no" >&6; }; have_gmp
=no
9136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9139 # Check for the MPC header version.
9140 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
9141 # Check for the recommended and required versions of MPC.
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
9143 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
9144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9151 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
9159 if ac_fn_c_try_compile
"$LINENO"; then :
9160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9167 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
9175 if ac_fn_c_try_compile
"$LINENO"; then :
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9177 $as_echo "yes" >&6; }
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9180 $as_echo "buggy but acceptable" >&6; }
9182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9185 $as_echo "no" >&6; }; have_gmp
=no
9187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9190 # Now check the MPFR library.
9191 if test x
"$have_gmp" = xyes
; then
9193 LIBS
="$LIBS $gmplibs"
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
9195 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
9196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9208 mpfr_atan2 (n, n, x, MPFR_RNDN);
9209 mpfr_erfc (n, x, MPFR_RNDN);
9210 mpfr_subnormalize (x, t, MPFR_RNDN);
9218 if ac_fn_c_try_link
"$LINENO"; then :
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9220 $as_echo "yes" >&6; }
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 $as_echo "no" >&6; }; have_gmp
=no
9225 rm -f core conftest.err conftest.
$ac_objext \
9226 conftest
$ac_exeext conftest.
$ac_ext
9230 # Now check the MPC library
9231 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
9233 LIBS
="$LIBS $gmplibs"
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
9235 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
9236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9245 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
9246 mpc_cosh (c, c, MPC_RNDNN);
9247 mpc_pow (c, c, c, MPC_RNDNN);
9248 mpc_acosh (c, c, MPC_RNDNN);
9255 if ac_fn_c_try_link
"$LINENO"; then :
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9257 $as_echo "yes" >&6; }
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 $as_echo "no" >&6; }; have_gmp
=no
9262 rm -f core conftest.err conftest.
$ac_objext \
9263 conftest
$ac_exeext conftest.
$ac_ext
9267 CFLAGS
="$saved_CFLAGS"
9269 # The library versions listed in the error message below should match
9270 # the HARD-minimums enforced above.
9271 if test x
$have_gmp != xyes
; then
9272 if test -d ${srcdir}/gcc
; then
9273 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
9274 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
9275 their locations. Source code for these libraries can be found at
9276 their respective hosting sites as well as at
9277 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
9278 http://gcc.gnu.org/install/prerequisites.html for additional info. If
9279 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
9280 make sure that you have installed both the libraries and the header
9281 files. They may be located in separate packages." "$LINENO" 5
9283 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
9284 Try the --with-gmp and/or --with-mpfr options to specify
9285 their locations. If you obtained GMP and/or MPFR from a vendor
9286 distribution package, make sure that you have installed both the libraries
9287 and the header files. They may be located in separate packages." "$LINENO" 5
9292 # Flags needed for both GMP, MPFR and/or MPC.
9300 # Libraries to use for stage1 or when not bootstrapping.
9302 # Check whether --with-stage1-libs was given.
9303 if test "${with_stage1_libs+set}" = set; then :
9304 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9307 stage1_libs
=$withval
9315 # Whether or not to use -static-libstdc++ and -static-libgcc. The
9316 # default is yes if gcc is being built; no otherwise. The reason for
9317 # this default is that gdb is sometimes linked against GNU Source
9318 # Highlight, which is a shared library that uses C++ exceptions. In
9319 # this case, -static-libstdc++ will cause crashes.
9321 # Check whether --with-static-standard-libraries was given.
9322 if test "${with_static_standard_libraries+set}" = set; then :
9323 withval
=$with_static_standard_libraries;
9325 with_static_standard_libraries
=auto
9328 if test "$with_static_standard_libraries" = auto
; then
9329 with_static_standard_libraries
=$have_compiler
9332 # Linker flags to use for stage1 or when not bootstrapping.
9334 # Check whether --with-stage1-ldflags was given.
9335 if test "${with_stage1_ldflags+set}" = set; then :
9336 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9339 stage1_ldflags
=$withval
9343 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
9344 # if supported. But if the user explicitly specified the libraries to use,
9345 # trust that they are doing what they want.
9346 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
9347 -a "$have_static_libs" = yes; then
9348 stage1_ldflags
="-static-libstdc++ -static-libgcc"
9354 # Libraries to use for stage2 and later builds.
9356 # Check whether --with-boot-libs was given.
9357 if test "${with_boot_libs+set}" = set; then :
9358 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9361 poststage1_libs
=$withval
9369 # Linker flags to use for stage2 and later builds.
9371 # Check whether --with-boot-ldflags was given.
9372 if test "${with_boot_ldflags+set}" = set; then :
9373 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9376 poststage1_ldflags
=$withval
9380 # In stages 2 and 3, default to linking libstdc++ and libgcc
9381 # statically. But if the user explicitly specified the libraries to
9382 # use, trust that they are doing what they want.
9383 if test "$poststage1_libs" = ""; then
9384 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
9389 *-darwin2* |
*-darwin1[56789]*)
9390 # For these versions, we default to using embedded rpaths.
9391 if test "x$enable_darwin_at_rpath" != "xno"; then
9392 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
9396 # For these versions, we only use embedded rpaths on demand.
9397 if test "x$enable_darwin_at_rpath" = "xyes"; then
9398 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
9404 # GCC GRAPHITE dependency isl.
9405 # Basic setup is inlined here, actual checks are in config/isl.m4
9408 # Check whether --with-isl was given.
9409 if test "${with_isl+set}" = set; then :
9414 # Treat --without-isl as a request to disable
9415 # GRAPHITE support and skip all following checks.
9416 if test "x$with_isl" != "xno"; then
9420 # Check whether --with-isl-include was given.
9421 if test "${with_isl_include+set}" = set; then :
9422 withval
=$with_isl_include;
9426 # Check whether --with-isl-lib was given.
9427 if test "${with_isl_lib+set}" = set; then :
9428 withval
=$with_isl_lib;
9432 # Check whether --enable-isl-version-check was given.
9433 if test "${enable_isl_version_check+set}" = set; then :
9434 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
9436 ENABLE_ISL_CHECK
=yes
9440 # Initialize isllibs and islinc.
9449 isllibs
="-L$with_isl/lib"
9450 islinc
="-I$with_isl/include"
9453 if test "x${with_isl_include}" != x
; then
9454 islinc
="-I$with_isl_include"
9456 if test "x${with_isl_lib}" != x
; then
9457 isllibs
="-L$with_isl_lib"
9459 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
9460 && test -d ${srcdir}/isl
; then
9461 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
9462 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
9465 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
9468 isllibs
="${isllibs} -lisl"
9472 if test "${ENABLE_ISL_CHECK}" = yes ; then
9473 _isl_saved_CFLAGS
=$CFLAGS
9474 _isl_saved_LDFLAGS
=$LDFLAGS
9475 _isl_saved_LIBS
=$LIBS
9477 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
9478 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
9479 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
9482 $as_echo_n "checking for isl 0.15 or later... " >&6; }
9483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485 #include <isl/schedule.h>
9489 isl_options_set_schedule_serialize_sccs (NULL, 0);
9494 if ac_fn_c_try_link
"$LINENO"; then :
9499 rm -f core conftest.err conftest.
$ac_objext \
9500 conftest
$ac_exeext conftest.
$ac_ext
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
9502 $as_echo "$gcc_cv_isl" >&6; }
9504 if test "${gcc_cv_isl}" = no
; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
9506 $as_echo "required isl version is 0.15 or later" >&6; }
9509 CFLAGS
=$_isl_saved_CFLAGS
9510 LDFLAGS
=$_isl_saved_LDFLAGS
9511 LIBS
=$_isl_saved_LIBS
9519 if test "x${with_isl}" = xno
; then
9520 graphite_requested
=no
9521 elif test "x${with_isl}" != x \
9522 ||
test "x${with_isl_include}" != x \
9523 ||
test "x${with_isl_lib}" != x
; then
9524 graphite_requested
=yes
9526 graphite_requested
=no
9531 if test "${gcc_cv_isl}" = no
; then
9536 if test "${graphite_requested}" = yes \
9537 && test "x${isllibs}" = x \
9538 && test "x${islinc}" = x
; then
9540 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
9546 # If the isl check failed, disable builds of in-tree variant of isl
9547 if test "x$with_isl" = xno ||
9548 test "x$gcc_cv_isl" = xno
; then
9549 noconfigdirs
="$noconfigdirs isl"
9556 # Check for LTO support.
9557 # Check whether --enable-lto was given.
9558 if test "${enable_lto+set}" = set; then :
9559 enableval
=$enable_lto; enable_lto
=$enableval
9561 enable_lto
=yes; default_enable_lto
=yes
9570 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
9571 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
9572 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
9581 if test $target_elf = yes; then :
9582 # ELF platforms build the lto-plugin always.
9583 build_lto_plugin
=yes
9586 if test x
"$default_enable_lto" = x
"yes" ; then
9588 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
9589 # On other non-ELF platforms, LTO has yet to be validated.
9593 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
9594 # It would also be nice to check the binutils support, but we don't
9595 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
9596 # warn during gcc/ subconfigure; unless you're bootstrapping with
9597 # -flto it won't be needed until after installation anyway.
9599 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
9600 *) if test x
"$enable_lto" = x
"yes"; then
9601 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
9606 # Among non-ELF, only Windows platforms support the lto-plugin so far.
9607 # Build it unless LTO was explicitly disabled.
9609 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
9616 # Check whether --enable-linker-plugin-configure-flags was given.
9617 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
9618 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
9620 extra_linker_plugin_configure_flags
=
9624 # Check whether --enable-linker-plugin-flags was given.
9625 if test "${enable_linker_plugin_flags+set}" = set; then :
9626 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
9628 extra_linker_plugin_flags
=
9633 # Handle --enable-host-pie
9634 # If host PIE executables are the default (or must be forced on) for some host,
9635 # we must pass that configuration to the gcc directory.
9637 # Check whether --enable-host-pie was given.
9638 if test "${enable_host_pie+set}" = set; then :
9639 enableval
=$enable_host_pie; host_pie
=$enableval
9642 if test x
$host_pie != xyes
; then
9643 # for Darwin20+ this is required.
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
9645 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
9647 gcc_host_pie
=--enable-host-pie
9654 # Default to PIE (mandatory for aarch64).
9656 gcc_host_pie
=--enable-host-pie
9666 # Enable --enable-host-shared.
9667 # Checked early to determine whether jit is an 'all' language
9668 # Check whether --enable-host-shared was given.
9669 if test "${enable_host_shared+set}" = set; then :
9670 enableval
=$enable_host_shared; host_shared
=$enableval
9672 x86_64-
*-darwin* | aarch64-
*-darwin*)
9673 if test x
$host_shared != xyes
; then
9674 # PIC is the default, and actually cannot be switched off.
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
9676 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
9680 if test x
$host_pie = xyes
-a x
$host_shared != xyes
; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
9682 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
9689 # 64B x86_64 and Aarch64 Darwin default to PIC.
9690 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
9691 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
9692 *-*-darwin*) host_shared
=$host_pie ;;
9700 if test x
$host_shared = xyes
; then
9703 # Since host shared is the default for 64b Darwin, and also enabled for
9704 # host_pie, ensure that we present the PIE flag when host_pie is active.
9705 if test x
$host_pie = xyes
; then
9713 elif test x
$host_pie = xyes
; then
9722 # Check for libgdiagnostics support.
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libgdiagnostics" >&5
9724 $as_echo_n "checking whether to enable libgdiagnostics... " >&6; }
9725 # Check whether --enable-libgdiagnostics was given.
9726 if test "${enable_libgdiagnostics+set}" = set; then :
9727 enableval
=$enable_libgdiagnostics; enable_libgdiagnostics
=$enableval
9729 enable_libgdiagnostics
=no
9733 if test x
$enable_libgdiagnostics = xyes
; then
9734 # Disable libgdiagnostics if -enable-host-shared not specified
9735 # but not if building for Mingw. All code in Windows
9736 # is position independent code (PIC).
9740 if test x
$host_shared != xyes
; then
9742 Enabling libgdiagnostics requires --enable-host-shared.
9744 --enable-host-shared typically slows the rest of the compiler down by
9745 a few %, so you must explicitly enable it.
9747 If you want to build both libgdiagnostics and the regular compiler, it is often
9748 best to do this via two separate configure/builds, in separate
9749 directories, to avoid imposing the performance cost of
9750 --enable-host-shared on the regular compiler." "$LINENO" 5
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libgdiagnostics" >&5
9756 $as_echo "$enable_libgdiagnostics" >&6; }
9760 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
9761 # default, so we check for them here
9762 # We are doing the test here and not in the gcc/configure to be able to nicely disable the
9763 # build of the Rust frontend in case a dep is missing.
9764 missing_rust_dynlibs
=none
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9769 $as_echo_n "checking for library containing dlopen... " >&6; }
9770 if ${ac_cv_search_dlopen+:} false
; then :
9771 $as_echo_n "(cached) " >&6
9773 ac_func_search_save_LIBS
=$LIBS
9774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9777 /* Override any GCC internal prototype to avoid an error.
9778 Use char because int might match the return type of a GCC
9779 builtin and then its argument prototype would still apply. */
9792 for ac_lib
in '' dl
; do
9793 if test -z "$ac_lib"; then
9794 ac_res
="none required"
9797 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9799 if ac_fn_c_try_link
"$LINENO"; then :
9800 ac_cv_search_dlopen
=$ac_res
9802 rm -f core conftest.err conftest.
$ac_objext \
9804 if ${ac_cv_search_dlopen+:} false
; then :
9808 if ${ac_cv_search_dlopen+:} false
; then :
9811 ac_cv_search_dlopen
=no
9814 LIBS
=$ac_func_search_save_LIBS
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9817 $as_echo "$ac_cv_search_dlopen" >&6; }
9818 ac_res
=$ac_cv_search_dlopen
9819 if test "$ac_res" != no
; then :
9820 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
9825 $as_echo_n "checking for library containing pthread_create... " >&6; }
9826 if ${ac_cv_search_pthread_create+:} false
; then :
9827 $as_echo_n "(cached) " >&6
9829 ac_func_search_save_LIBS
=$LIBS
9830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9833 /* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9839 char pthread_create ();
9843 return pthread_create ();
9848 for ac_lib
in '' pthread
; do
9849 if test -z "$ac_lib"; then
9850 ac_res
="none required"
9853 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9855 if ac_fn_c_try_link
"$LINENO"; then :
9856 ac_cv_search_pthread_create
=$ac_res
9858 rm -f core conftest.err conftest.
$ac_objext \
9860 if ${ac_cv_search_pthread_create+:} false
; then :
9864 if ${ac_cv_search_pthread_create+:} false
; then :
9867 ac_cv_search_pthread_create
=no
9870 LIBS
=$ac_func_search_save_LIBS
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
9873 $as_echo "$ac_cv_search_pthread_create" >&6; }
9874 ac_res
=$ac_cv_search_pthread_create
9875 if test "$ac_res" != no
; then :
9876 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9883 if test "$ac_cv_search_dlopen" = no
; then
9884 missing_rust_dynlibs
="libdl"
9887 if test "$ac_cv_search_pthread_create" = no
; then
9888 missing_rust_dynlibs
="$missing_rust_dynlibs, libpthread"
9891 CRAB1_LIBS
="$CRAB1_LIBS"
9894 # If we are building PIC/PIE host executables, and we are building dependent
9895 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
9898 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
9899 host_libs_picflag
='--with-pic'
9903 # By default, C and C++ are the only stage 1 languages.
9904 stage1_languages
=,c
,
9906 # Target libraries that we bootstrap.
9907 bootstrap_target_libs
=,target-libgcc
,
9909 # Figure out what language subdirectories are present.
9910 # Look if the user specified --enable-languages="..."; if not, use
9911 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9913 # NB: embedded tabs in this IF block -- do not untabify
9914 if test -d ${srcdir}/gcc
; then
9915 if test x
"${enable_languages+set}" != xset
; then
9916 if test x
"${LANGUAGES+set}" = xset
; then
9917 enable_languages
="${LANGUAGES}"
9918 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
9920 enable_languages
=default
9923 if test x
"${enable_languages}" = x ||
9924 test x
"${enable_languages}" = xyes
;
9926 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
9930 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
9932 # 'f95' is the old name for the 'fortran' language. We issue a warning
9933 # and make the substitution.
9934 case ,${enable_languages}, in
9936 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
9937 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
9941 # If bootstrapping, C++ must be enabled.
9942 case ",$enable_languages,:$enable_bootstrap" in
9945 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
9946 enable_languages
="${enable_languages},c++"
9948 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
9953 # First scan to see if an enabled language requires some other language.
9954 # We assume that a given config-lang.in will list all the language
9955 # front ends it requires, even if some are required indirectly.
9956 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
9957 case ${lang_frag} in
9959 # The odd quoting in the next line works around
9960 # an apparent bug in bash 1.12 on linux.
9961 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
9963 # From the config-lang.in, get $language, $lang_requires, and
9964 # $lang_requires_boot_languages.
9967 lang_requires_boot_languages
=
9968 # set srcdir during sourcing lang_frag to the gcc dir.
9969 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
9970 # pollutes this shell
9971 saved_srcdir
=${srcdir}
9972 srcdir
=${srcdir}/gcc .
${lang_frag}
9973 srcdir
=${saved_srcdir}
9974 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
9975 case ,${enable_languages}, in
9980 echo " \`$other' language required by \`$language'; enabling" 1>&2
9981 enable_languages
="${enable_languages},${other}"
9985 for other
in ${lang_requires_boot_languages} ; do
9986 if test "$other" != "c"; then
9987 case ,${enable_stage1_languages}, in
9992 case ,${enable_languages}, in
9994 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
9995 enable_stage1_languages
="$enable_stage1_languages,${other}"
10006 new_enable_languages
=,c
,
10008 # If LTO is enabled, add the LTO front end.
10009 if test "$enable_lto" = "yes" ; then
10010 case ,${enable_languages}, in
10012 *) enable_languages
="${enable_languages},lto" ;;
10014 if test "${build_lto_plugin}" = "yes" ; then
10015 configdirs
="$configdirs lto-plugin"
10019 # If we're building an offloading compiler, add the LTO front end.
10020 if test x
"$enable_as_accelerator_for" != x
; then
10021 case ,${enable_languages}, in
10023 *) enable_languages
="${enable_languages},lto" ;;
10027 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
10028 potential_languages
=,c
,
10030 enabled_target_libs
=
10031 disabled_target_libs
=
10033 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
10034 case ${lang_frag} in
10036 # The odd quoting in the next line works around
10037 # an apparent bug in bash 1.12 on linux.
10038 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
10040 # From the config-lang.in, get $language, $target_libs,
10041 # $lang_dirs, $boot_language, and $build_by_default
10047 build_by_default
=yes
10048 # set srcdir during sourcing. See above about save & restore
10049 saved_srcdir
=${srcdir}
10050 srcdir
=${srcdir}/gcc .
${lang_frag}
10051 srcdir
=${saved_srcdir}
10052 if test x
${language} = x
; then
10053 echo "${lang_frag} doesn't set \$language." 1>&2
10057 if test "$language" = "c++"; then
10062 # C is always enabled, so no need to add it again
10063 if test "$language" != "c"; then
10064 case ,${enable_languages}, in
10066 # Language was explicitly selected; include it
10070 # All languages are enabled
10074 # 'default' was selected, select it if it is a default language
10075 add_this_lang
=${build_by_default}
10080 # Disable languages that need other directories if these aren't available.
10081 for i
in $subdir_requires; do
10082 test -f "$srcdir/gcc/$i/config-lang.in" && continue
10083 case ${add_this_lang} in
10085 # Specifically requested language; tell them.
10086 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
10090 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
10091 add_this_lang
=unsupported
10094 # Silently disable.
10095 add_this_lang
=unsupported
10100 # Disable Ada if no preexisting GNAT is available.
10101 case ${add_this_lang}:${language}:${have_gnat} in
10103 # Specifically requested language; tell them.
10104 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
10108 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
10109 add_this_lang
=unsupported
10112 # Silently disable.
10113 add_this_lang
=unsupported
10117 # Disable D if no preexisting GDC is available.
10118 case ${add_this_lang}:${language}:${have_gdc} in
10120 # Specifically requested language; tell them.
10121 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
10125 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
10126 add_this_lang
=unsupported
10129 # Silently disable.
10130 add_this_lang
=unsupported
10134 # Disable Rust if we are missing some required C libraries for the Rust runtime.
10135 case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
10137 # Nothing to do - we're not missing any C libraries
10140 as_fn_error $?
"some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
10141 add_this_lang
=unsupported
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
10145 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
10146 add_this_lang
=unsupported
10149 # Silently disable.
10150 add_this_lang
=unsupported
10154 # Disable jit if -enable-host-shared not specified
10155 # but not if building for Mingw. All code in Windows
10156 # is position independent code (PIC).
10160 case ${add_this_lang}:${language}:${host_shared} in
10162 # PR jit/64780: explicitly specify --enable-host-shared
10164 Enabling language \"jit\" requires --enable-host-shared.
10166 --enable-host-shared typically slows the rest of the compiler down by
10167 a few %, so you must explicitly enable it.
10169 If you want to build both the jit and the regular compiler, it is often
10170 best to do this via two separate configure/builds, in separate
10171 directories, to avoid imposing the performance cost of
10172 --enable-host-shared on the regular compiler." "$LINENO" 5
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
10176 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
10177 add_this_lang
=unsupported
10180 # Silently disable.
10181 add_this_lang
=unsupported
10187 # Pre-conditions to consider whether cargo being supported.
10188 if test x
"$have_cargo" = xyes \
10189 && test x
"$build" != x
"$host"; then
10190 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
10191 # "'cargo' should build for the host system" is resolved:
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
10193 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
10196 # Assume that cargo-produced object files are compatible with what
10197 # we're going to build here.
10200 # Disable Rust if cargo is unavailable.
10201 case ${add_this_lang}:${language}:${have_cargo} in
10203 # Specifically requested language; tell them.
10204 as_fn_error $?
"cargo is required to build $language" "$LINENO" 5
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
10208 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
10209 add_this_lang
=unsupported
10212 # Silently disable.
10213 add_this_lang
=unsupported
10218 # Disable a language that is unsupported by the target.
10219 case "${add_this_lang}: $unsupported_languages " in
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
10224 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
10225 add_this_lang
=unsupported
10229 case $add_this_lang in
10231 # Remove language-dependent dirs.
10232 disabled_target_libs
="$disabled_target_libs $target_libs"
10233 noconfigdirs
="$noconfigdirs $lang_dirs"
10236 # Remove language-dependent dirs; still show language as supported.
10237 disabled_target_libs
="$disabled_target_libs $target_libs"
10238 noconfigdirs
="$noconfigdirs $lang_dirs"
10239 potential_languages
="${potential_languages}${language},"
10242 new_enable_languages
="${new_enable_languages}${language},"
10243 potential_languages
="${potential_languages}${language},"
10244 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
10245 enabled_target_libs
="$enabled_target_libs $target_libs"
10246 case "${boot_language}:,$enable_stage1_languages," in
10247 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
10248 # Add to (comma-separated) list of stage 1 languages.
10249 case ",$stage1_languages," in
10250 *,$language,* |
,yes, |
,all
,) ;;
10251 *) stage1_languages
="${stage1_languages}${language}," ;;
10253 # We need to bootstrap any supporting libraries.
10254 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
10263 # Add target libraries which are only needed for disabled languages
10265 if test -n "$disabled_target_libs"; then
10266 for dir
in $disabled_target_libs; do
10267 case " $enabled_target_libs " in
10269 *) noconfigdirs
="$noconfigdirs $dir" ;;
10274 # Check whether --enable-stage1-languages was given.
10275 if test "${enable_stage1_languages+set}" = set; then :
10276 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
10278 # Set it to something that will have no effect in the loop below
10279 enable_stage1_languages
=c
;;
10281 enable_stage1_languages
=`echo $new_enable_languages | \
10282 sed -e "s/^,//" -e "s/,$//" ` ;;
10284 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
10285 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
10288 # Add "good" languages from enable_stage1_languages to stage1_languages,
10289 # while "bad" languages go in missing_languages. Leave no duplicates.
10290 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
10291 case $potential_languages in
10293 case $stage1_languages in
10295 *) stage1_languages
="$stage1_languages$i," ;;
10298 case $missing_languages in
10300 *) missing_languages
="$missing_languages$i," ;;
10307 # Remove leading/trailing commas that were added for simplicity
10308 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
10309 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
10310 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
10311 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
10313 if test "x$missing_languages" != x
; then
10315 The following requested languages could not be built: ${missing_languages}
10316 Supported languages are: ${potential_languages}" "$LINENO" 5
10318 if test "x$new_enable_languages" != "x$enable_languages"; then
10319 echo The following languages will be built
: ${new_enable_languages}
10320 enable_languages
="$new_enable_languages"
10324 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
10327 # Handle --disable-<component> generically.
10328 for dir
in $configdirs $build_configdirs $target_configdirs ; do
10329 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
10330 varname
=`echo $dirname | sed -e s/+/_/g`
10331 if eval test x\
${enable_${varname}} "=" xno
; then
10332 noconfigdirs
="$noconfigdirs $dir"
10336 # Check for Boehm's garbage collector
10337 # Check whether --enable-objc-gc was given.
10338 if test "${enable_objc_gc+set}" = set; then :
10339 enableval
=$enable_objc_gc;
10343 # Check whether --with-target-bdw-gc was given.
10344 if test "${with_target_bdw_gc+set}" = set; then :
10345 withval
=$with_target_bdw_gc;
10349 # Check whether --with-target-bdw-gc-include was given.
10350 if test "${with_target_bdw_gc_include+set}" = set; then :
10351 withval
=$with_target_bdw_gc_include;
10355 # Check whether --with-target-bdw-gc-lib was given.
10356 if test "${with_target_bdw_gc_lib+set}" = set; then :
10357 withval
=$with_target_bdw_gc_lib;
10361 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
10363 $as_echo_n "checking for bdw garbage collector... " >&6; }
10364 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
10366 $as_echo "using bdw-gc in default locations" >&6; }
10368 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
10369 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
10370 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
10371 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
10374 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
10379 # Disable libitm, libsanitizer, libvtv if we're not building C++
10380 case ,${enable_languages}, in
10382 # Disable libitm, libsanitizer if we're not building libstdc++
10383 case "${noconfigdirs}" in
10384 *target-libstdc
++-v3*)
10385 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
10391 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
10395 case ,${enable_languages}, in
10397 case " ${noconfigdirs} " in
10398 *\ target-libstdc
++-v3\
*)
10399 # Disable target libgrust if we're not building target libstdc++.
10400 noconfigdirs
="$noconfigdirs target-libgrust"
10403 case "${target}" in
10406 # Build fails in 'libgrust/libproc_macro_internal/':
10407 # sorry, unimplemented: exception handling not supported
10408 noconfigdirs
="$noconfigdirs target-libgrust"
10416 # If gcc/ is not in the source tree then we'll not be building a
10417 # target compiler, assume in that case we don't want to build any
10418 # target libraries or tools.
10420 # This was added primarily for the benefit for binutils-gdb who reuse
10421 # this configure script, but don't always have target tools available.
10422 if test ! -d ${srcdir}/gcc
; then
10423 skipdirs
="${skipdirs} ${target_configdirs}"
10426 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
10427 # $build_configdirs and $target_configdirs.
10428 # If we have the source for $noconfigdirs entries, add them to $notsupp.
10431 for dir
in .
$skipdirs $noconfigdirs ; do
10432 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
10433 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10434 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
10435 if test -r $srcdir/$dirname/configure
; then
10436 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10439 notsupp
="$notsupp $dir"
10443 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10444 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
10445 if test -r $srcdir/$dirname/configure
; then
10446 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10449 notsupp
="$notsupp $dir"
10453 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10454 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
10455 if test -r $srcdir/$dirname/configure
; then
10456 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10459 notsupp
="$notsupp $dir"
10465 # Quietly strip out all directories which aren't configurable in this tree.
10466 # This relies on all configurable subdirectories being autoconfiscated, which
10468 build_configdirs_all
="$build_configdirs"
10470 for i
in ${build_configdirs_all} ; do
10471 j
=`echo $i | sed -e s/build-//g`
10472 if test -f ${srcdir}/$j/configure
; then
10473 build_configdirs
="${build_configdirs} $i"
10477 configdirs_all
="$configdirs"
10479 for i
in ${configdirs_all} ; do
10480 if test -f ${srcdir}/$i/configure
; then
10481 configdirs
="${configdirs} $i"
10485 target_configdirs_all
="$target_configdirs"
10487 for i
in ${target_configdirs_all} ; do
10488 j
=`echo $i | sed -e s/target-//g`
10489 if test -f ${srcdir}/$j/configure
; then
10490 target_configdirs
="${target_configdirs} $i"
10494 # libiberty-linker-plugin is special: it doesn't have its own source directory,
10495 # so we have to add it after the preceding checks.
10496 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
10498 case " $configdirs " in
10500 # If we can build libiberty, we can also build libiberty-linker-plugin.
10501 configdirs
="$configdirs libiberty-linker-plugin"
10502 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
10503 --with-libiberty=../libiberty-linker-plugin";;
10505 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
10509 # Sometimes we have special requirements for the host libiberty.
10510 extra_host_libiberty_configure_flags
=
10511 case " $configdirs " in
10512 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
10513 # When these are to be built as shared libraries, the same applies to
10515 extra_host_libiberty_configure_flags
=--enable-shared
10520 # Sometimes we have special requirements for the host zlib.
10521 extra_host_zlib_configure_flags
=
10522 case " $configdirs " in
10524 # When bfd is to be built as a shared library, the same applies to
10526 if test "$enable_shared" = "yes"; then
10527 extra_host_zlib_configure_flags
=--enable-host-shared
10533 # Produce a warning message for the subdirs we can't configure.
10534 # This isn't especially interesting in the Cygnus tree, but in the individual
10535 # FSF releases, it's important to let people know when their machine isn't
10536 # supported by the one or two programs in a package.
10538 if test -n "${notsupp}" && test -z "${norecursion}" ; then
10539 # If $appdirs is non-empty, at least one of those directories must still
10540 # be configured, or we error out. (E.g., if the gas release supports a
10541 # specified target in some subdirs but not the gas subdir, we shouldn't
10542 # pretend that all is well.)
10543 if test -n "$appdirs" ; then
10544 for dir
in $appdirs ; do
10545 if test -r $dir/Makefile.
in ; then
10546 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10550 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
10556 if test -n "$appdirs" ; then
10557 echo "*** This configuration is not supported by this package." 1>&2
10561 # Okay, some application will build, or we don't care to check. Still
10562 # notify of subdirs not getting built.
10563 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
10564 echo " ${notsupp}" 1>&2
10565 echo " (Any other directories should still work fine.)" 1>&2
10573 # To find our prefix, in gcc_cv_tool_prefix.
10575 # The user is always right.
10576 if test "${PATH_SEPARATOR+set}" != set; then
10577 echo "#! /bin/sh" >conf$$.sh
10578 echo "exit 0" >>conf$$.sh
10580 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10589 get_gcc_base_ver
="cat"
10591 # Check whether --with-gcc-major-version-only was given.
10592 if test "${with_gcc_major_version_only+set}" = set; then :
10593 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
10594 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
10604 if test "x$exec_prefix" = xNONE
; then
10605 if test "x$prefix" = xNONE
; then
10606 gcc_cv_tool_prefix
=$ac_default_prefix
10608 gcc_cv_tool_prefix
=$prefix
10611 gcc_cv_tool_prefix
=$exec_prefix
10614 # If there is no compiler in the tree, use the PATH only. In any
10615 # case, if there is no compiler in the tree nobody should use
10616 # AS_FOR_TARGET and LD_FOR_TARGET.
10617 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
10618 if test x
$with_gcc_major_version_only = xyes
; then
10619 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
10621 gcc_version
=`cat $srcdir/gcc/BASE-VER`
10623 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10624 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
10625 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10626 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
10627 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10628 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
10633 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
10634 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
10642 # Check whether --with-build-sysroot was given.
10643 if test "${with_build_sysroot+set}" = set; then :
10644 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
10645 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
10648 SYSROOT_CFLAGS_FOR_TARGET
=
10654 # Check whether --with-debug-prefix-map was given.
10655 if test "${with_debug_prefix_map+set}" = set; then :
10656 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
10657 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
10658 for debug_map
in $withval; do
10659 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
10663 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
10668 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
10669 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
10670 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
10671 # We want to ensure that TARGET libraries (which we know are built with
10672 # gcc) are built with "-O2 -g", so include those options when setting
10673 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
10674 if test "x$CFLAGS_FOR_TARGET" = x
; then
10675 if test "x${is_cross_compiler}" = xyes
; then
10676 CFLAGS_FOR_TARGET
="-g -O2"
10678 CFLAGS_FOR_TARGET
=$CFLAGS
10679 case " $CFLAGS " in
10681 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
10683 case " $CFLAGS " in
10684 *" -g "* |
*" -g3 "*) ;;
10685 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
10691 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
10692 if test "x${is_cross_compiler}" = xyes
; then
10693 CXXFLAGS_FOR_TARGET
="-g -O2"
10695 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
10696 case " $CXXFLAGS " in
10698 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
10700 case " $CXXFLAGS " in
10701 *" -g "* |
*" -g3 "*) ;;
10702 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
10710 # Handle --with-headers=XXX. If the value is not "yes", the contents of
10711 # the named directory are copied to $(tooldir)/sys-include.
10712 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
10713 if test x
${is_cross_compiler} = xno
; then
10714 echo 1>&2 '***' --with-headers is only supported when cross compiling
10717 if test x
"${with_headers}" != xyes
; then
10718 x
=${gcc_cv_tool_prefix}
10719 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
10723 # Handle --with-libs=XXX. If the value is not "yes", the contents of
10724 # the name directories are copied to $(tooldir)/lib. Multiple directories
10726 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
10727 if test x
${is_cross_compiler} = xno
; then
10728 echo 1>&2 '***' --with-libs is only supported when cross compiling
10731 if test x
"${with_libs}" != xyes
; then
10732 # Copy the libraries in reverse order, so that files in the first named
10733 # library override files in subsequent libraries.
10734 x
=${gcc_cv_tool_prefix}
10735 for l
in ${with_libs}; do
10736 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
10741 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
10743 # This is done by determining whether or not the appropriate directory
10744 # is available, and by checking whether or not specific configurations
10745 # have requested that this magic not happen.
10747 # The command line options always override the explicit settings in
10748 # configure.ac, and the settings in configure.ac override this magic.
10750 # If the default for a toolchain is to use GNU as and ld, and you don't
10751 # want to do that, then you should use the --without-gnu-as and
10752 # --without-gnu-ld options for the configure script. Similarly, if
10753 # the default is to use the included zlib and you don't want to do that,
10754 # you should use the --with-system-zlib option for the configure script.
10756 if test x
${use_gnu_as} = x
&&
10757 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
10759 extra_host_args
="$extra_host_args --with-gnu-as"
10762 if test x
${use_gnu_ld} = x
&&
10763 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
10765 extra_host_args
="$extra_host_args --with-gnu-ld"
10768 if test x
${use_included_zlib} = x
&&
10769 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
10772 with_system_zlib
=yes
10773 extra_host_args
="$extra_host_args --with-system-zlib"
10776 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
10777 # can detect this case.
10779 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
10781 extra_host_args
="$extra_host_args --with-newlib"
10784 # Handle ${copy_dirs}
10785 set fnord
${copy_dirs}
10787 while test $# != 0 ; do
10788 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
10791 echo Copying
$1 to
$2
10793 # Use the install script to create the directory and all required
10794 # parent directories.
10795 if test -d $2 ; then
10799 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
10802 # Copy the directory, assuming we have tar.
10803 # FIXME: Should we use B in the second tar? Not all systems support it.
10804 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
10806 # It is the responsibility of the user to correctly adjust all
10807 # symlinks. If somebody can figure out how to handle them correctly
10808 # here, feel free to add the code.
10810 echo $1 > $2/COPIED
10815 # Determine a target-dependent exec_prefix that the installed
10816 # gcc will search in. Keep this list sorted by triplet, with
10817 # the *-*-osname triplets last.
10819 case "${target}" in
10820 i
[34567]86-pc-msdosdjgpp*)
10821 md_exec_prefix
=/dev
/env
/DJDIR
/bin
10826 md_exec_prefix
=/usr
/ccs
/bin
10830 extra_arflags_for_target
=
10831 extra_nmflags_for_target
=
10832 extra_ranlibflags_for_target
=
10833 target_makefile_frag
=/dev
/null
10834 case "${target}" in
10836 target_makefile_frag
="config/mt-spu"
10838 loongarch
*-*linux
* | loongarch
*-*gnu
*)
10839 target_makefile_frag
="config/mt-loongarch-gnu"
10842 target_makefile_frag
="config/mt-loongarch-elf"
10844 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
10845 target_makefile_frag
="config/mt-sde"
10847 mipsisa
*-*-elfoabi*)
10848 target_makefile_frag
="config/mt-mips-elfoabi"
10850 mips
*-*-*linux
* | mips
*-*-gnu*)
10851 target_makefile_frag
="config/mt-mips-gnu"
10853 *-*-linux-android*)
10854 target_makefile_frag
="config/mt-android"
10856 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
10857 target_makefile_frag
="config/mt-gnu"
10859 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
10860 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
10861 # commands to handle both 32-bit and 64-bit objects. These flags are
10862 # harmless if we're using GNU nm or ar.
10863 extra_arflags_for_target
=" -X32_64"
10864 extra_nmflags_for_target
=" -B -X32_64"
10868 alphaieee_frag
=/dev
/null
10871 # This just makes sure to use the -mieee option to build target libs.
10872 # This should probably be set individually by each library.
10873 alphaieee_frag
="config/mt-alphaieee"
10877 # If --enable-target-optspace always use -Os instead of -O2 to build
10878 # the target libraries, similarly if it is not specified, use -Os
10879 # on selected platforms.
10880 ospace_frag
=/dev
/null
10881 case "${enable_target_optspace}:${target}" in
10883 ospace_frag
="config/mt-ospace"
10886 ospace_frag
="config/mt-d30v"
10888 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
10889 ospace_frag
="config/mt-ospace"
10894 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
10898 # Some systems (e.g., one of the i386-aix systems the gas testers are
10899 # using) don't handle "\$" correctly, so don't use it here.
10900 tooldir
='${exec_prefix}'/${target_noncanonical}
10901 build_tooldir
=${tooldir}
10903 # Create a .gdbinit file which runs the one in srcdir
10904 # and tells GDB to look there for source files.
10906 if test -r ${srcdir}/.gdbinit
; then
10909 *) cat > .
/.gdbinit
<<EOF
10913 source ${srcdir}/.gdbinit
10919 # Make sure that the compiler is able to generate an executable. If it
10920 # can't, we are probably in trouble. We don't care whether we can run the
10921 # executable--we might be using a cross compiler--we only care whether it
10922 # can be created. At this point the main configure script has set CC.
10924 echo "int main () { return 0; }" > conftest.c
10925 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10926 if test $?
= 0 ; then
10927 if test -s conftest ||
test -s conftest.exe
; then
10933 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
10934 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
10941 # Decide which environment variable is used to find dynamic libraries.
10943 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
10944 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
10945 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
10946 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
10949 # On systems where the dynamic library environment variable is PATH,
10950 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
10951 # built executables to PATH.
10952 if test "$RPATH_ENVVAR" = PATH
; then
10953 GCC_SHLIB_SUBDIR
=/shlib
10958 # Adjust the toplevel makefile according to whether bootstrap was selected.
10959 case $enable_bootstrap in
10961 bootstrap_suffix
=bootstrap
10962 BUILD_CONFIG
=bootstrap-debug
10965 bootstrap_suffix
=no-bootstrap
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
10971 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
10974 # Check whether --with-build-config was given.
10975 if test "${with_build_config+set}" = set; then :
10976 withval
=$with_build_config; case $with_build_config in
10977 yes) with_build_config
= ;;
10978 no
) with_build_config
= BUILD_CONFIG
= ;;
10983 if test "x${with_build_config}" != x
; then
10984 BUILD_CONFIG
=$with_build_config
10986 case $BUILD_CONFIG in
10988 if echo "int f (void) { return 0; }" > conftest.c
&&
10989 ${CC} -c conftest.c
&&
10990 mv conftest.o conftest.o.g0
&&
10991 ${CC} -c -g conftest.c
&&
10992 mv conftest.o conftest.o.g
&&
10993 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
10998 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
11003 $as_echo "$BUILD_CONFIG" >&6; }
11006 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
11008 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
11009 # Check whether --enable-vtable-verify was given.
11010 if test "${enable_vtable_verify+set}" = set; then :
11011 enableval
=$enable_vtable_verify; case "$enableval" in
11012 yes) enable_vtable_verify
=yes ;;
11013 no
) enable_vtable_verify
=no
;;
11014 *) enable_vtable_verify
=no
;;
11017 enable_vtable_verify
=no
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
11021 $as_echo "$enable_vtable_verify" >&6; }
11023 # Record target_configdirs and the configure arguments for target and
11024 # build configuration in Makefile.
11025 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
11026 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
11027 bootstrap_fixincludes
=no
11029 # If we are building libgomp, bootstrap it.
11030 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
11031 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
11034 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
11035 # or bootstrap-ubsan, bootstrap it.
11036 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
11037 case "$BUILD_CONFIG" in
11038 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
11039 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
11040 bootstrap_fixincludes
=yes
11045 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
11046 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
11047 test "$enable_vtable_verify" != no
; then
11048 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
11051 # If we are building libatomic and the list of enabled languages includes the
11052 # D frontend, bootstrap it.
11053 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
11054 case ,${enable_languages}, in
11056 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
11061 # Determine whether gdb needs tk/tcl or not.
11062 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
11063 # and in that case we want gdb to be built without tk. Ugh!
11064 # In fact I believe gdb is the *only* package directly dependent on tk,
11065 # so we should be able to put the 'maybe's in unconditionally and
11066 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
11067 # 100% sure that that's safe though.
11069 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
11070 case "$enable_gdbtk" in
11074 GDB_TK
="${gdb_tk}" ;;
11076 # Only add the dependency on gdbtk when GDBtk is part of the gdb
11077 # distro. Eventually someone will fix this and move Insight, nee
11078 # gdbtk to a separate directory.
11079 if test -d ${srcdir}/gdb
/gdbtk
; then
11086 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
11087 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
11089 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
11090 # else does, only include them if one of these is built. The Makefile
11091 # provides the ordering, so it's enough here to add to the list.
11092 case " ${configdirs} " in
11094 configdirs
="${configdirs} gnulib gdbsupport"
11097 configdirs
="${configdirs} gnulib gdbsupport"
11100 configdirs
="${configdirs} gnulib"
11104 # Strip out unwanted targets.
11106 # While at that, we remove Makefiles if we were started for recursive
11107 # configuration, so that the top-level Makefile reconfigures them,
11108 # like we used to do when configure itself was recursive.
11110 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
11111 # but now we're fixing up the Makefile ourselves with the additional
11112 # commands passed to AC_CONFIG_FILES. Use separate variables
11113 # extrasub-{build,host,target} not because there is any reason to split
11114 # the substitutions up that way, but only to remain below the limit of
11115 # 99 commands in a script, for HP-UX sed.
11117 # Do not nest @if/@endif or @unless/@endunless pairs, because
11118 # configure will not warn you at all.
11120 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
11121 yes:yes:*\ gold\
*:*,c
++,*) ;;
11122 yes:yes:*\ gold\
*:*)
11123 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
11127 # Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
11128 # Note C++ is always enabled for stage1 now.
11129 case "$enable_bootstrap:${noconfigdirs}" in
11130 yes:*target-libstdc
++-v3*)
11131 as_fn_error $?
"bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
11137 for module
in ${build_configdirs} ; do
11138 if test -z "${no_recursion}" \
11139 && test -f ${build_subdir}/${module}/Makefile
; then
11140 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
11141 rm -f ${build_subdir}/${module}/Makefile
11143 extrasub_build
="$extrasub_build
11144 /^@if build-$module\$/d
11145 /^@endif build-$module\$/d
11146 /^@unless build-$module\$/,/^@endunless build-$module\$/d
11147 /^@if build-$module-$bootstrap_suffix\$/d
11148 /^@endif build-$module-$bootstrap_suffix\$/d
11149 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
11152 for module
in ${configdirs} ; do
11153 if test -z "${no_recursion}"; then
11154 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
11155 if test -f ${file}; then
11156 echo 1>&2 "*** removing ${file} to force reconfigure"
11161 case ${module},${bootstrap_fixincludes} in
11162 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
11163 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
11165 extrasub_host
="$extrasub_host
11167 /^@endif $module\$/d
11168 /^@unless $module\$/,/^@endunless $module\$/d
11169 /^@if $module-$host_bootstrap_suffix\$/d
11170 /^@endif $module-$host_bootstrap_suffix\$/d
11171 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
11174 for module
in ${target_configdirs} ; do
11175 if test -z "${no_recursion}" \
11176 && test -f ${target_subdir}/${module}/Makefile
; then
11177 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
11178 rm -f ${target_subdir}/${module}/Makefile
11181 # We only bootstrap target libraries listed in bootstrap_target_libs.
11182 case $bootstrap_target_libs in
11183 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
11184 *) target_bootstrap_suffix
=no-bootstrap
;;
11187 extrasub_target
="$extrasub_target
11188 /^@if target-$module\$/d
11189 /^@endif target-$module\$/d
11190 /^@unless target-$module\$/,/^@endunless target-$module\$/d
11191 /^@if target-$module-$target_bootstrap_suffix\$/d
11192 /^@endif target-$module-$target_bootstrap_suffix\$/d
11193 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
11196 # Do the final fixup along with target modules.
11197 extrasub_target
="$extrasub_target
11198 /^@if /,/^@endif /d
11202 if test "$enable_pgo_build" != "no"; then
11203 extrasub_build
="$extrasub_build
11204 /^@if pgo-build\$/d
11205 /^@endif pgo-build\$/d"
11208 # Create the serialization dependencies. This uses a temporary file.
11210 # Check whether --enable-serial-configure was given.
11211 if test "${enable_serial_configure+set}" = set; then :
11212 enableval
=$enable_serial_configure;
11216 case ${enable_serial_configure} in
11218 enable_serial_build_configure
=yes
11219 enable_serial_host_configure
=yes
11220 enable_serial_target_configure
=yes
11224 # These force 'configure's to be done one at a time, to avoid problems
11225 # with contention over a shared config.cache.
11227 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
11228 echo '# serdep.tmp' > serdep.tmp
11231 test "x${enable_serial_build_configure}" = xyes
&&
11232 for item
in ${build_configdirs} ; do
11235 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
11240 test "x${enable_serial_host_configure}" = xyes
&&
11241 for item
in ${configdirs} ; do
11244 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
11249 test "x${enable_serial_target_configure}" = xyes
&&
11250 for item
in ${target_configdirs} ; do
11253 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
11257 serialization_dependencies
=serdep.tmp
11260 # Base args. Strip norecursion, cache-file, srcdir, host, build,
11261 # target, nonopt, and variable assignments. These are the ones we
11262 # might not want to pass down to subconfigures. The exception being
11263 # --cache-file=/dev/null, which is used to turn off the use of cache
11264 # files altogether, and which should be passed on to subconfigures.
11265 # Also strip program-prefix, program-suffix, and program-transform-name,
11266 # so that we can pass down a consistent program-transform-name.
11272 eval "set -- $ac_configure_args"
11275 if test X
"$skip_next" = X
"yes"; then
11279 if test X
"$keep_next" = X
"yes"; then
11282 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11284 hbaseargs
="$hbaseargs '$ac_arg'"
11285 bbaseargs
="$bbaseargs '$ac_arg'"
11286 tbaseargs
="$tbaseargs '$ac_arg'"
11291 # Handle separated arguments. Based on the logic generated by
11294 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
11295 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
11296 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
11297 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
11312 --with-* |
--without-*)
11313 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
11317 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
11320 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
11323 lib
=`echo "$libopt" | sed 's,[-_]prefix$,,'`
11326 lib
=`echo "$libopt" | sed 's,[-_]type$,,'`
11335 mpc | mpfr | gmp | isl
)
11336 # If we're processing --with-$lib, --with-$lib-include or
11337 # --with-$lib-lib, for one of the libs above, and target is
11338 # different from host, don't pass the current argument to any
11339 # target library's configure.
11340 if test x
$is_cross_compiler = xyes
; then
11344 libintl | libiconv
)
11345 # We don't want libintl (and co.) in anything but the host arguments.
11354 --cache-file=/dev
/null | \
11355 -cache-file=/dev
/null
)
11356 # Handled here to avoid the test to skip args below.
11357 hbaseargs
="$hbaseargs '$ac_arg'"
11358 bbaseargs
="$bbaseargs '$ac_arg'"
11359 tbaseargs
="$tbaseargs '$ac_arg'"
11360 # Assert: $separate_arg should always be no.
11361 keep_next
=$separate_arg
11377 -program-prefix* | \
11378 -program-suffix* | \
11379 -program-transform-name* )
11380 skip_next
=$separate_arg
11384 # An option. Add it.
11387 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11389 hbaseargs
="$hbaseargs '$ac_arg'"
11390 if test X
"$skip_barg" = Xno
; then
11391 bbaseargs
="$bbaseargs '$ac_arg'"
11393 if test X
"$skip_targ" = Xno
; then
11394 tbaseargs
="$tbaseargs '$ac_arg'"
11396 keep_next
=$separate_arg
11399 # Either a variable assignment, or a nonopt (triplet). Don't
11400 # pass it down; let the Makefile handle this.
11405 # Remove the initial space we just introduced and, as these will be
11406 # expanded by make, quote '$'.
11407 hbaseargs
=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11408 bbaseargs
=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11410 # Add in --program-transform-name, after --program-prefix and
11411 # --program-suffix have been applied to it. Autoconf has already
11412 # doubled dollar signs and backslashes in program_transform_name; we want
11413 # the backslashes un-doubled, and then the entire thing wrapped in single
11414 # quotes, because this will be expanded first by make and then by the shell.
11415 # Also, because we want to override the logic in subdir configure scripts to
11416 # choose program_transform_name, replace any s,x,x, with s,y,y,.
11417 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
11418 ${program_transform_name}
11420 gcc_transform_name
=`cat conftestsed.out`
11421 rm -f conftestsed.out
11422 hbaseargs
="$hbaseargs --program-transform-name='${gcc_transform_name}'"
11423 bbaseargs
="$bbaseargs --program-transform-name='${gcc_transform_name}'"
11424 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
11425 if test "$silent" = yes; then
11426 bbaseargs
="$bbaseargs --silent"
11427 hbaseargs
="$hbaseargs --silent"
11428 tbaseargs
="$tbaseargs --silent"
11431 bbaseargs
="$bbaseargs --disable-option-checking"
11432 hbaseargs
="$hbaseargs --disable-option-checking"
11433 tbaseargs
="$tbaseargs --disable-option-checking"
11435 if test "$enable_year2038" = no
; then
11436 bbaseargs
="$bbaseargs --disable-year2038"
11437 hbaseargs
="$hbaseargs --disable-year2038"
11438 tbaseargs
="$tbaseargs --disable-year2038"
11441 # Record and document user additions to sub configure arguments.
11446 # For the build-side libraries, we just need to pretend we're native,
11447 # and not use the same cache file. Multilibs are neither needed nor
11448 # desired. We can't even use the same cache file for all build-side
11449 # libraries, as they're compiled differently; some with C, some with
11450 # C++ or with different feature-enabling options.
11451 build_configargs
="$build_configargs --cache-file=./config.cache ${bbaseargs}"
11453 # For host modules, accept cache file option, or specification as blank.
11454 case "${cache_file}" in
11456 cache_file_option
="" ;;
11457 /* |
[A-Za-z
]:[\\/]* ) # absolute path
11458 cache_file_option
="--cache-file=${cache_file}" ;;
11460 cache_file_option
="--cache-file=../${cache_file}" ;;
11463 # Host dirs don't like to share a cache file either, horribly enough.
11464 # This seems to be due to autoconf 2.5x stupidity.
11465 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
11467 target_configargs
="$target_configargs ${tbaseargs}"
11469 # Passing a --with-cross-host argument lets the target libraries know
11470 # whether they are being built with a cross-compiler or being built
11471 # native. However, it would be better to use other mechanisms to make the
11472 # sorts of decisions they want to make on this basis. Please consider
11473 # this option to be deprecated. FIXME.
11474 if test x
${is_cross_compiler} = xyes
; then
11475 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
11478 # Special user-friendly check for native x86_64-linux build, if
11479 # multilib is not explicitly enabled.
11480 case "$target:$have_compiler:$host:$target:$enable_multilib" in
11481 x86_64-
*linux
*:yes:$build:$build:)
11482 # Make sure we have a development environment that handles 32-bit
11484 echo "int main () { return 0; }" > conftest.c
11485 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
11486 if test $?
= 0 ; then
11487 if test -s conftest ||
test -s conftest.exe
; then
11492 if test x
${dev64} != xyes
; then
11493 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
11498 # Default to --enable-multilib.
11499 if test x
${enable_multilib} = x
; then
11500 target_configargs
="--enable-multilib ${target_configargs}"
11503 # Pass --with-newlib if appropriate. Note that target_configdirs has
11504 # changed from the earlier setting of with_newlib.
11505 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
11506 target_configargs
="--with-newlib ${target_configargs}"
11509 # Different target subdirs use different values of certain variables
11510 # (notably CXX). Worse, multilibs use *lots* of different values.
11511 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
11512 # it doesn't automatically accept command-line overrides of them.
11513 # This means it's not safe for target subdirs to share a cache file,
11514 # which is disgusting, but there you have it. Hopefully this can be
11515 # fixed in future. It's still worthwhile to use a cache file for each
11516 # directory. I think.
11518 # Pass the appropriate --build, --host, --target and --cache-file arguments.
11519 # We need to pass --target, as newer autoconf's requires consistency
11520 # for target_alias and gcc doesn't manage it consistently.
11521 target_configargs
="--cache-file=./config.cache ${target_configargs}"
11524 case " $target_configdirs " in
11526 case " $target_configargs " in
11527 *" --with-newlib "*)
11530 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
11534 # If we're not building GCC, don't discard standard headers.
11535 if test -d ${srcdir}/gcc
; then
11536 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
11538 if test "${build}" != "${host}"; then
11539 # On Canadian crosses, CC_FOR_TARGET will have already been set
11540 # by `configure', so we won't have an opportunity to add -Bgcc/
11541 # to it. This is right: we don't want to search that directory
11542 # for binaries, but we want the header files in there, so add
11544 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
11546 # Someone might think of using the pre-installed headers on
11547 # Canadian crosses, in case the installed compiler is not fully
11548 # compatible with the compiler being built. In this case, it
11549 # would be better to flag an error than risking having
11550 # incompatible object files being constructed. We can't
11551 # guarantee that an error will be flagged, but let's hope the
11552 # compiler will do it, when presented with incompatible header
11557 case "${target}-${is_cross_compiler}" in
11558 i
[3456789]86-*-linux*-no)
11559 # Here host == target, so we don't need to build gcc,
11560 # so we don't want to discard standard headers.
11561 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
11564 # If we're building newlib, use its generic headers last, but search
11565 # for any libc-related directories first (so make it the last -B
11567 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
11569 # If we're building libgloss, find the startup file, simulator library
11570 # and linker script.
11571 case " $target_configdirs " in
11573 # Look for startup file, simulator library and maybe linker script.
11574 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
11575 # Look for libnosys.a in case the target needs it.
11576 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
11577 # Most targets have the linker script in the source directory.
11578 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
11589 x86_64-
*mingw
* |
*-w64-mingw*)
11590 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
11591 # however, use a symlink named 'mingw' in ${prefix} .
11592 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
11595 # MinGW can't be handled as Cygwin above since it does not use newlib.
11596 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'
11600 # Allow the user to override the flags for
11601 # our build compiler if desired.
11602 if test x
"${build}" = x
"${host}" ; then
11603 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
11604 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
11605 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
11606 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
11609 if test -d ${srcdir}/gcc
; then
11610 # On Canadian crosses, we'll be searching the right directories for the
11611 # previously-installed cross compiler, so don't bother to add flags for
11612 # executable directories within the install tree of the compiler being built;
11613 # programs in there won't even run.
11614 if test "${build}" = "${host}"; then
11615 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/'
11618 # Search for pre-installed headers if nothing else fits.
11619 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
11622 if test "x${use_gnu_ld}" = x
&&
11623 echo " ${configdirs} " |
grep " ld " > /dev
/null
; then
11624 # Arrange for us to find uninstalled linker scripts.
11625 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
11628 # Search for other target-specific linker scripts and such.
11629 case "${target}" in
11631 FLAGS_FOR_TARGET
="$FLAGS_FOR_TARGET -mlibrary"
11633 # The VxWorks support for shared libraries is getting in
11634 # incrementally. Make sure it doesn't get activated implicitly:
11636 if test "${enable_shared-unset}" = unset ; then
11638 # So the build of libraries knows ...
11639 target_configargs
="${target_configargs} --disable-shared"
11641 host_configargs
="${host_configargs} --disable-shared"
11646 # Makefile fragments.
11647 for frag
in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag
;
11649 eval fragval
=\$
$frag
11650 if test $fragval != /dev
/null
; then
11651 eval $frag=${srcdir}/$fragval
11659 # Miscellanea: directories, flags, etc.
11668 # Build module lists & subconfigure args.
11672 # Host module lists & subconfigure args.
11677 # Target module lists & subconfigure args.
11703 # Generate default definitions for YACC, M4, LEX and other programs that run
11704 # on the build machine. These are used if the Makefile can't locate these
11705 # programs in objdir.
11706 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
11708 for ac_prog
in 'bison -y' byacc
yacc
11710 # Extract the first word of "$ac_prog", so it can be a program name with args.
11711 set dummy
$ac_prog; ac_word
=$2
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11713 $as_echo_n "checking for $ac_word... " >&6; }
11714 if ${ac_cv_prog_YACC+:} false
; then :
11715 $as_echo_n "(cached) " >&6
11717 if test -n "$YACC"; then
11718 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
11720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11721 for as_dir
in $PATH
11724 test -z "$as_dir" && as_dir
=.
11725 for ac_exec_ext
in '' $ac_executable_extensions; do
11726 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11727 ac_cv_prog_YACC
="$ac_prog"
11728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737 YACC
=$ac_cv_prog_YACC
11738 if test -n "$YACC"; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11740 $as_echo "$YACC" >&6; }
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11747 test -n "$YACC" && break
11749 test -n "$YACC" || YACC
="$MISSING bison -y"
11751 case " $build_configdirs " in
11752 *" bison "*) YACC
='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
11755 for ac_prog
in bison
11757 # Extract the first word of "$ac_prog", so it can be a program name with args.
11758 set dummy
$ac_prog; ac_word
=$2
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11760 $as_echo_n "checking for $ac_word... " >&6; }
11761 if ${ac_cv_prog_BISON+:} false
; then :
11762 $as_echo_n "(cached) " >&6
11764 if test -n "$BISON"; then
11765 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
11767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11768 for as_dir
in $PATH
11771 test -z "$as_dir" && as_dir
=.
11772 for ac_exec_ext
in '' $ac_executable_extensions; do
11773 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11774 ac_cv_prog_BISON
="$ac_prog"
11775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 BISON
=$ac_cv_prog_BISON
11785 if test -n "$BISON"; then
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
11787 $as_echo "$BISON" >&6; }
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790 $as_echo "no" >&6; }
11794 test -n "$BISON" && break
11796 test -n "$BISON" || BISON
="$MISSING bison"
11798 case " $build_configdirs " in
11799 *" bison "*) BISON
='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
11802 for ac_prog
in gm4 gnum4
m4
11804 # Extract the first word of "$ac_prog", so it can be a program name with args.
11805 set dummy
$ac_prog; 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_M4+:} false
; then :
11809 $as_echo_n "(cached) " >&6
11811 if test -n "$M4"; then
11812 ac_cv_prog_M4
="$M4" # 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_M4
="$ac_prog"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 if test -n "$M4"; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
11834 $as_echo "$M4" >&6; }
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 $as_echo "no" >&6; }
11841 test -n "$M4" && break
11843 test -n "$M4" || M4
="$MISSING m4"
11845 case " $build_configdirs " in
11846 *" m4 "*) M4
='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
11849 for ac_prog
in flex
lex
11851 # Extract the first word of "$ac_prog", so it can be a program name with args.
11852 set dummy
$ac_prog; ac_word
=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if ${ac_cv_prog_LEX+:} false
; then :
11856 $as_echo_n "(cached) " >&6
11858 if test -n "$LEX"; then
11859 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
11861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11862 for as_dir
in $PATH
11865 test -z "$as_dir" && as_dir
=.
11866 for ac_exec_ext
in '' $ac_executable_extensions; do
11867 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11868 ac_cv_prog_LEX
="$ac_prog"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11878 LEX
=$ac_cv_prog_LEX
11879 if test -n "$LEX"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11881 $as_echo "$LEX" >&6; }
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11888 test -n "$LEX" && break
11890 test -n "$LEX" || LEX
="$MISSING flex"
11892 case " $build_configdirs " in
11893 *" flex "*) LEX
='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11894 *" lex "*) LEX
='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
11897 for ac_prog
in flex
11899 # Extract the first word of "$ac_prog", so it can be a program name with args.
11900 set dummy
$ac_prog; ac_word
=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if ${ac_cv_prog_FLEX+:} false
; then :
11904 $as_echo_n "(cached) " >&6
11906 if test -n "$FLEX"; then
11907 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
11909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11910 for as_dir
in $PATH
11913 test -z "$as_dir" && as_dir
=.
11914 for ac_exec_ext
in '' $ac_executable_extensions; do
11915 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11916 ac_cv_prog_FLEX
="$ac_prog"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 FLEX
=$ac_cv_prog_FLEX
11927 if test -n "$FLEX"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
11929 $as_echo "$FLEX" >&6; }
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11936 test -n "$FLEX" && break
11938 test -n "$FLEX" || FLEX
="$MISSING flex"
11940 case " $build_configdirs " in
11941 *" flex "*) FLEX
='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11944 for ac_prog
in makeinfo
11946 # Extract the first word of "$ac_prog", so it can be a program name with args.
11947 set dummy
$ac_prog; ac_word
=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_prog_MAKEINFO+:} false
; then :
11951 $as_echo_n "(cached) " >&6
11953 if test -n "$MAKEINFO"; then
11954 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
11956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11957 for as_dir
in $PATH
11960 test -z "$as_dir" && as_dir
=.
11961 for ac_exec_ext
in '' $ac_executable_extensions; do
11962 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_MAKEINFO
="$ac_prog"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11973 MAKEINFO
=$ac_cv_prog_MAKEINFO
11974 if test -n "$MAKEINFO"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11976 $as_echo "$MAKEINFO" >&6; }
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11983 test -n "$MAKEINFO" && break
11985 test -n "$MAKEINFO" || MAKEINFO
="$MISSING makeinfo"
11987 case " $build_configdirs " in
11988 *" texinfo "*) MAKEINFO
='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
11991 # For an installed makeinfo, we require it to be from texinfo 4.7 or
11992 # higher, else we use the "missing" dummy.
11993 if ${MAKEINFO} --version \
11994 |
egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev
/null
2>&1; then
11997 MAKEINFO
="$MISSING makeinfo"
12003 # FIXME: expect and dejagnu may become build tools?
12005 for ac_prog
in expect
12007 # Extract the first word of "$ac_prog", so it can be a program name with args.
12008 set dummy
$ac_prog; ac_word
=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if ${ac_cv_prog_EXPECT+:} false
; then :
12012 $as_echo_n "(cached) " >&6
12014 if test -n "$EXPECT"; then
12015 ac_cv_prog_EXPECT
="$EXPECT" # Let the user override the test.
12017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12018 for as_dir
in $PATH
12021 test -z "$as_dir" && as_dir
=.
12022 for ac_exec_ext
in '' $ac_executable_extensions; do
12023 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12024 ac_cv_prog_EXPECT
="$ac_prog"
12025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12034 EXPECT
=$ac_cv_prog_EXPECT
12035 if test -n "$EXPECT"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
12037 $as_echo "$EXPECT" >&6; }
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12044 test -n "$EXPECT" && break
12046 test -n "$EXPECT" || EXPECT
="expect"
12048 case " $configdirs " in
12050 test $host = $build && EXPECT
='$$r/$(HOST_SUBDIR)/expect/expect'
12054 for ac_prog
in runtest
12056 # Extract the first word of "$ac_prog", so it can be a program name with args.
12057 set dummy
$ac_prog; ac_word
=$2
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12059 $as_echo_n "checking for $ac_word... " >&6; }
12060 if ${ac_cv_prog_RUNTEST+:} false
; then :
12061 $as_echo_n "(cached) " >&6
12063 if test -n "$RUNTEST"; then
12064 ac_cv_prog_RUNTEST
="$RUNTEST" # Let the user override the test.
12066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12067 for as_dir
in $PATH
12070 test -z "$as_dir" && as_dir
=.
12071 for ac_exec_ext
in '' $ac_executable_extensions; do
12072 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12073 ac_cv_prog_RUNTEST
="$ac_prog"
12074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12083 RUNTEST
=$ac_cv_prog_RUNTEST
12084 if test -n "$RUNTEST"; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
12086 $as_echo "$RUNTEST" >&6; }
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089 $as_echo "no" >&6; }
12093 test -n "$RUNTEST" && break
12095 test -n "$RUNTEST" || RUNTEST
="runtest"
12097 case " $configdirs " in
12099 test $host = $build && RUNTEST
='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
12106 test -n "$host_alias" && ncn_tool_prefix
=$host_alias-
12107 ncn_target_tool_prefix
=
12108 test -n "$target_alias" && ncn_target_tool_prefix
=$target_alias-
12112 if test -n "$AR"; then
12114 elif test -n "$ac_cv_prog_AR"; then
12118 if test -n "$ac_cv_prog_AR"; then
12119 for ncn_progname
in ar; do
12120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12121 set dummy
${ncn_progname}; ac_word
=$2
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123 $as_echo_n "checking for $ac_word... " >&6; }
12124 if ${ac_cv_prog_AR+:} false
; then :
12125 $as_echo_n "(cached) " >&6
12127 if test -n "$AR"; then
12128 ac_cv_prog_AR
="$AR" # Let the user override the test.
12130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12131 for as_dir
in $PATH
12134 test -z "$as_dir" && as_dir
=.
12135 for ac_exec_ext
in '' $ac_executable_extensions; do
12136 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12137 ac_cv_prog_AR
="${ncn_progname}"
12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12148 if test -n "$AR"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12150 $as_echo "$AR" >&6; }
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12160 for ncn_progname
in ar; do
12161 if test -n "$ncn_tool_prefix"; then
12162 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12163 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165 $as_echo_n "checking for $ac_word... " >&6; }
12166 if ${ac_cv_prog_AR+:} false
; then :
12167 $as_echo_n "(cached) " >&6
12169 if test -n "$AR"; then
12170 ac_cv_prog_AR
="$AR" # Let the user override the test.
12172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12173 for as_dir
in $PATH
12176 test -z "$as_dir" && as_dir
=.
12177 for ac_exec_ext
in '' $ac_executable_extensions; do
12178 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12179 ac_cv_prog_AR
="${ncn_tool_prefix}${ncn_progname}"
12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12190 if test -n "$AR"; then
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12192 $as_echo "$AR" >&6; }
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; }
12200 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
12201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12202 set dummy
${ncn_progname}; ac_word
=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if ${ac_cv_prog_AR+:} false
; then :
12206 $as_echo_n "(cached) " >&6
12208 if test -n "$AR"; then
12209 ac_cv_prog_AR
="$AR" # Let the user override the test.
12211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12212 for as_dir
in $PATH
12215 test -z "$as_dir" && as_dir
=.
12216 for ac_exec_ext
in '' $ac_executable_extensions; do
12217 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12218 ac_cv_prog_AR
="${ncn_progname}"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12229 if test -n "$AR"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12231 $as_echo "$AR" >&6; }
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12239 test -n "$ac_cv_prog_AR" && break
12242 if test -z "$ac_cv_prog_AR" ; then
12244 if test $build = $host ; then
12247 AR
="${ncn_tool_prefix}$2"
12253 if test -n "$AS"; then
12255 elif test -n "$ac_cv_prog_AS"; then
12259 if test -n "$ac_cv_prog_AS"; then
12260 for ncn_progname
in as
; do
12261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12262 set dummy
${ncn_progname}; ac_word
=$2
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12264 $as_echo_n "checking for $ac_word... " >&6; }
12265 if ${ac_cv_prog_AS+:} false
; then :
12266 $as_echo_n "(cached) " >&6
12268 if test -n "$AS"; then
12269 ac_cv_prog_AS
="$AS" # Let the user override the test.
12271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12272 for as_dir
in $PATH
12275 test -z "$as_dir" && as_dir
=.
12276 for ac_exec_ext
in '' $ac_executable_extensions; do
12277 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12278 ac_cv_prog_AS
="${ncn_progname}"
12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 if test -n "$AS"; then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12291 $as_echo "$AS" >&6; }
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294 $as_echo "no" >&6; }
12301 for ncn_progname
in as
; do
12302 if test -n "$ncn_tool_prefix"; then
12303 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12304 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306 $as_echo_n "checking for $ac_word... " >&6; }
12307 if ${ac_cv_prog_AS+:} false
; then :
12308 $as_echo_n "(cached) " >&6
12310 if test -n "$AS"; then
12311 ac_cv_prog_AS
="$AS" # Let the user override the test.
12313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12314 for as_dir
in $PATH
12317 test -z "$as_dir" && as_dir
=.
12318 for ac_exec_ext
in '' $ac_executable_extensions; do
12319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12320 ac_cv_prog_AS
="${ncn_tool_prefix}${ncn_progname}"
12321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 if test -n "$AS"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12333 $as_echo "$AS" >&6; }
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336 $as_echo "no" >&6; }
12341 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
12342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12343 set dummy
${ncn_progname}; ac_word
=$2
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345 $as_echo_n "checking for $ac_word... " >&6; }
12346 if ${ac_cv_prog_AS+:} false
; then :
12347 $as_echo_n "(cached) " >&6
12349 if test -n "$AS"; then
12350 ac_cv_prog_AS
="$AS" # Let the user override the test.
12352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12353 for as_dir
in $PATH
12356 test -z "$as_dir" && as_dir
=.
12357 for ac_exec_ext
in '' $ac_executable_extensions; do
12358 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12359 ac_cv_prog_AS
="${ncn_progname}"
12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370 if test -n "$AS"; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12372 $as_echo "$AS" >&6; }
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 $as_echo "no" >&6; }
12380 test -n "$ac_cv_prog_AS" && break
12383 if test -z "$ac_cv_prog_AS" ; then
12385 if test $build = $host ; then
12388 AS
="${ncn_tool_prefix}$2"
12394 if test -n "$DLLTOOL"; then
12395 ac_cv_prog_DLLTOOL
=$DLLTOOL
12396 elif test -n "$ac_cv_prog_DLLTOOL"; then
12397 DLLTOOL
=$ac_cv_prog_DLLTOOL
12400 if test -n "$ac_cv_prog_DLLTOOL"; then
12401 for ncn_progname
in dlltool
; do
12402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12403 set dummy
${ncn_progname}; ac_word
=$2
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 $as_echo_n "checking for $ac_word... " >&6; }
12406 if ${ac_cv_prog_DLLTOOL+:} false
; then :
12407 $as_echo_n "(cached) " >&6
12409 if test -n "$DLLTOOL"; then
12410 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
12412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12413 for as_dir
in $PATH
12416 test -z "$as_dir" && as_dir
=.
12417 for ac_exec_ext
in '' $ac_executable_extensions; do
12418 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12419 ac_cv_prog_DLLTOOL
="${ncn_progname}"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12429 DLLTOOL
=$ac_cv_prog_DLLTOOL
12430 if test -n "$DLLTOOL"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12432 $as_echo "$DLLTOOL" >&6; }
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; }
12442 for ncn_progname
in dlltool
; do
12443 if test -n "$ncn_tool_prefix"; then
12444 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12445 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447 $as_echo_n "checking for $ac_word... " >&6; }
12448 if ${ac_cv_prog_DLLTOOL+:} false
; then :
12449 $as_echo_n "(cached) " >&6
12451 if test -n "$DLLTOOL"; then
12452 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
12454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12455 for as_dir
in $PATH
12458 test -z "$as_dir" && as_dir
=.
12459 for ac_exec_ext
in '' $ac_executable_extensions; do
12460 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12461 ac_cv_prog_DLLTOOL
="${ncn_tool_prefix}${ncn_progname}"
12462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12471 DLLTOOL
=$ac_cv_prog_DLLTOOL
12472 if test -n "$DLLTOOL"; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12474 $as_echo "$DLLTOOL" >&6; }
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12482 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
12483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12484 set dummy
${ncn_progname}; ac_word
=$2
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12486 $as_echo_n "checking for $ac_word... " >&6; }
12487 if ${ac_cv_prog_DLLTOOL+:} false
; then :
12488 $as_echo_n "(cached) " >&6
12490 if test -n "$DLLTOOL"; then
12491 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
12493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12494 for as_dir
in $PATH
12497 test -z "$as_dir" && as_dir
=.
12498 for ac_exec_ext
in '' $ac_executable_extensions; do
12499 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12500 ac_cv_prog_DLLTOOL
="${ncn_progname}"
12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12510 DLLTOOL
=$ac_cv_prog_DLLTOOL
12511 if test -n "$DLLTOOL"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12513 $as_echo "$DLLTOOL" >&6; }
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12521 test -n "$ac_cv_prog_DLLTOOL" && break
12524 if test -z "$ac_cv_prog_DLLTOOL" ; then
12526 if test $build = $host ; then
12529 DLLTOOL
="${ncn_tool_prefix}$2"
12535 if test -n "$DSYMUTIL"; then
12536 ac_cv_prog_DSYMUTIL
=$DSYMUTIL
12537 elif test -n "$ac_cv_prog_DSYMUTIL"; then
12538 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
12541 if test -n "$ac_cv_prog_DSYMUTIL"; then
12542 for ncn_progname
in dsymutil
; do
12543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12544 set dummy
${ncn_progname}; ac_word
=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
12548 $as_echo_n "(cached) " >&6
12550 if test -n "$DSYMUTIL"; then
12551 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
12553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12554 for as_dir
in $PATH
12557 test -z "$as_dir" && as_dir
=.
12558 for ac_exec_ext
in '' $ac_executable_extensions; do
12559 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12560 ac_cv_prog_DSYMUTIL
="${ncn_progname}"
12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12570 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
12571 if test -n "$DSYMUTIL"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12573 $as_echo "$DSYMUTIL" >&6; }
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12583 for ncn_progname
in dsymutil
; do
12584 if test -n "$ncn_tool_prefix"; then
12585 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12586 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
12590 $as_echo_n "(cached) " >&6
12592 if test -n "$DSYMUTIL"; then
12593 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
12595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12596 for as_dir
in $PATH
12599 test -z "$as_dir" && as_dir
=.
12600 for ac_exec_ext
in '' $ac_executable_extensions; do
12601 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12602 ac_cv_prog_DSYMUTIL
="${ncn_tool_prefix}${ncn_progname}"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
12613 if test -n "$DSYMUTIL"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12615 $as_echo "$DSYMUTIL" >&6; }
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12623 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
12624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12625 set dummy
${ncn_progname}; ac_word
=$2
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627 $as_echo_n "checking for $ac_word... " >&6; }
12628 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
12629 $as_echo_n "(cached) " >&6
12631 if test -n "$DSYMUTIL"; then
12632 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
12634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12635 for as_dir
in $PATH
12638 test -z "$as_dir" && as_dir
=.
12639 for ac_exec_ext
in '' $ac_executable_extensions; do
12640 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12641 ac_cv_prog_DSYMUTIL
="${ncn_progname}"
12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12651 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
12652 if test -n "$DSYMUTIL"; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12654 $as_echo "$DSYMUTIL" >&6; }
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657 $as_echo "no" >&6; }
12662 test -n "$ac_cv_prog_DSYMUTIL" && break
12665 if test -z "$ac_cv_prog_DSYMUTIL" ; then
12667 if test $build = $host ; then
12670 DSYMUTIL
="${ncn_tool_prefix}$2"
12676 if test -n "$LD"; then
12678 elif test -n "$ac_cv_prog_LD"; then
12682 if test -n "$ac_cv_prog_LD"; then
12683 for ncn_progname
in ld
; do
12684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12685 set dummy
${ncn_progname}; ac_word
=$2
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687 $as_echo_n "checking for $ac_word... " >&6; }
12688 if ${ac_cv_prog_LD+:} false
; then :
12689 $as_echo_n "(cached) " >&6
12691 if test -n "$LD"; then
12692 ac_cv_prog_LD
="$LD" # Let the user override the test.
12694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12695 for as_dir
in $PATH
12698 test -z "$as_dir" && as_dir
=.
12699 for ac_exec_ext
in '' $ac_executable_extensions; do
12700 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12701 ac_cv_prog_LD
="${ncn_progname}"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712 if test -n "$LD"; then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12714 $as_echo "$LD" >&6; }
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12724 for ncn_progname
in ld
; do
12725 if test -n "$ncn_tool_prefix"; then
12726 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12727 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729 $as_echo_n "checking for $ac_word... " >&6; }
12730 if ${ac_cv_prog_LD+:} false
; then :
12731 $as_echo_n "(cached) " >&6
12733 if test -n "$LD"; then
12734 ac_cv_prog_LD
="$LD" # Let the user override the test.
12736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12737 for as_dir
in $PATH
12740 test -z "$as_dir" && as_dir
=.
12741 for ac_exec_ext
in '' $ac_executable_extensions; do
12742 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12743 ac_cv_prog_LD
="${ncn_tool_prefix}${ncn_progname}"
12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754 if test -n "$LD"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12756 $as_echo "$LD" >&6; }
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12764 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
12765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12766 set dummy
${ncn_progname}; ac_word
=$2
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12768 $as_echo_n "checking for $ac_word... " >&6; }
12769 if ${ac_cv_prog_LD+:} false
; then :
12770 $as_echo_n "(cached) " >&6
12772 if test -n "$LD"; then
12773 ac_cv_prog_LD
="$LD" # Let the user override the test.
12775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12776 for as_dir
in $PATH
12779 test -z "$as_dir" && as_dir
=.
12780 for ac_exec_ext
in '' $ac_executable_extensions; do
12781 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12782 ac_cv_prog_LD
="${ncn_progname}"
12783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 if test -n "$LD"; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12795 $as_echo "$LD" >&6; }
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12803 test -n "$ac_cv_prog_LD" && break
12806 if test -z "$ac_cv_prog_LD" ; then
12808 if test $build = $host ; then
12811 LD
="${ncn_tool_prefix}$2"
12817 if test -n "$LIPO"; then
12818 ac_cv_prog_LIPO
=$LIPO
12819 elif test -n "$ac_cv_prog_LIPO"; then
12820 LIPO
=$ac_cv_prog_LIPO
12823 if test -n "$ac_cv_prog_LIPO"; then
12824 for ncn_progname
in lipo
; do
12825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12826 set dummy
${ncn_progname}; ac_word
=$2
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828 $as_echo_n "checking for $ac_word... " >&6; }
12829 if ${ac_cv_prog_LIPO+:} false
; then :
12830 $as_echo_n "(cached) " >&6
12832 if test -n "$LIPO"; then
12833 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
12835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12836 for as_dir
in $PATH
12839 test -z "$as_dir" && as_dir
=.
12840 for ac_exec_ext
in '' $ac_executable_extensions; do
12841 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12842 ac_cv_prog_LIPO
="${ncn_progname}"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12852 LIPO
=$ac_cv_prog_LIPO
12853 if test -n "$LIPO"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12855 $as_echo "$LIPO" >&6; }
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12865 for ncn_progname
in lipo
; do
12866 if test -n "$ncn_tool_prefix"; then
12867 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12868 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870 $as_echo_n "checking for $ac_word... " >&6; }
12871 if ${ac_cv_prog_LIPO+:} false
; then :
12872 $as_echo_n "(cached) " >&6
12874 if test -n "$LIPO"; then
12875 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
12877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12878 for as_dir
in $PATH
12881 test -z "$as_dir" && as_dir
=.
12882 for ac_exec_ext
in '' $ac_executable_extensions; do
12883 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12884 ac_cv_prog_LIPO
="${ncn_tool_prefix}${ncn_progname}"
12885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 LIPO
=$ac_cv_prog_LIPO
12895 if test -n "$LIPO"; then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12897 $as_echo "$LIPO" >&6; }
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12905 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
12906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12907 set dummy
${ncn_progname}; ac_word
=$2
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12909 $as_echo_n "checking for $ac_word... " >&6; }
12910 if ${ac_cv_prog_LIPO+:} false
; then :
12911 $as_echo_n "(cached) " >&6
12913 if test -n "$LIPO"; then
12914 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
12916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12917 for as_dir
in $PATH
12920 test -z "$as_dir" && as_dir
=.
12921 for ac_exec_ext
in '' $ac_executable_extensions; do
12922 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12923 ac_cv_prog_LIPO
="${ncn_progname}"
12924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12933 LIPO
=$ac_cv_prog_LIPO
12934 if test -n "$LIPO"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12936 $as_echo "$LIPO" >&6; }
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939 $as_echo "no" >&6; }
12944 test -n "$ac_cv_prog_LIPO" && break
12947 if test -z "$ac_cv_prog_LIPO" ; then
12949 if test $build = $host ; then
12952 LIPO
="${ncn_tool_prefix}$2"
12958 if test -n "$NM"; then
12960 elif test -n "$ac_cv_prog_NM"; then
12964 if test -n "$ac_cv_prog_NM"; then
12965 for ncn_progname
in nm
; do
12966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12967 set dummy
${ncn_progname}; ac_word
=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969 $as_echo_n "checking for $ac_word... " >&6; }
12970 if ${ac_cv_prog_NM+:} false
; then :
12971 $as_echo_n "(cached) " >&6
12973 if test -n "$NM"; then
12974 ac_cv_prog_NM
="$NM" # Let the user override the test.
12976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12977 for as_dir
in $PATH
12980 test -z "$as_dir" && as_dir
=.
12981 for ac_exec_ext
in '' $ac_executable_extensions; do
12982 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12983 ac_cv_prog_NM
="${ncn_progname}"
12984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12994 if test -n "$NM"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12996 $as_echo "$NM" >&6; }
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13006 for ncn_progname
in nm
; do
13007 if test -n "$ncn_tool_prefix"; then
13008 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13009 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011 $as_echo_n "checking for $ac_word... " >&6; }
13012 if ${ac_cv_prog_NM+:} false
; then :
13013 $as_echo_n "(cached) " >&6
13015 if test -n "$NM"; then
13016 ac_cv_prog_NM
="$NM" # Let the user override the test.
13018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13019 for as_dir
in $PATH
13022 test -z "$as_dir" && as_dir
=.
13023 for ac_exec_ext
in '' $ac_executable_extensions; do
13024 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13025 ac_cv_prog_NM
="${ncn_tool_prefix}${ncn_progname}"
13026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13036 if test -n "$NM"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
13038 $as_echo "$NM" >&6; }
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13046 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
13047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13048 set dummy
${ncn_progname}; ac_word
=$2
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13050 $as_echo_n "checking for $ac_word... " >&6; }
13051 if ${ac_cv_prog_NM+:} false
; then :
13052 $as_echo_n "(cached) " >&6
13054 if test -n "$NM"; then
13055 ac_cv_prog_NM
="$NM" # Let the user override the test.
13057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13058 for as_dir
in $PATH
13061 test -z "$as_dir" && as_dir
=.
13062 for ac_exec_ext
in '' $ac_executable_extensions; do
13063 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13064 ac_cv_prog_NM
="${ncn_progname}"
13065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13075 if test -n "$NM"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
13077 $as_echo "$NM" >&6; }
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13085 test -n "$ac_cv_prog_NM" && break
13088 if test -z "$ac_cv_prog_NM" ; then
13090 if test $build = $host ; then
13093 NM
="${ncn_tool_prefix}$2"
13099 if test -n "$RANLIB"; then
13100 ac_cv_prog_RANLIB
=$RANLIB
13101 elif test -n "$ac_cv_prog_RANLIB"; then
13102 RANLIB
=$ac_cv_prog_RANLIB
13105 if test -n "$ac_cv_prog_RANLIB"; then
13106 for ncn_progname
in ranlib
; do
13107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13108 set dummy
${ncn_progname}; ac_word
=$2
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13110 $as_echo_n "checking for $ac_word... " >&6; }
13111 if ${ac_cv_prog_RANLIB+:} false
; then :
13112 $as_echo_n "(cached) " >&6
13114 if test -n "$RANLIB"; then
13115 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
13117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13118 for as_dir
in $PATH
13121 test -z "$as_dir" && as_dir
=.
13122 for ac_exec_ext
in '' $ac_executable_extensions; do
13123 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13124 ac_cv_prog_RANLIB
="${ncn_progname}"
13125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13134 RANLIB
=$ac_cv_prog_RANLIB
13135 if test -n "$RANLIB"; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13137 $as_echo "$RANLIB" >&6; }
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140 $as_echo "no" >&6; }
13147 for ncn_progname
in ranlib
; do
13148 if test -n "$ncn_tool_prefix"; then
13149 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13150 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152 $as_echo_n "checking for $ac_word... " >&6; }
13153 if ${ac_cv_prog_RANLIB+:} false
; then :
13154 $as_echo_n "(cached) " >&6
13156 if test -n "$RANLIB"; then
13157 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
13159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13160 for as_dir
in $PATH
13163 test -z "$as_dir" && as_dir
=.
13164 for ac_exec_ext
in '' $ac_executable_extensions; do
13165 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13166 ac_cv_prog_RANLIB
="${ncn_tool_prefix}${ncn_progname}"
13167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13176 RANLIB
=$ac_cv_prog_RANLIB
13177 if test -n "$RANLIB"; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13179 $as_echo "$RANLIB" >&6; }
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182 $as_echo "no" >&6; }
13187 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
13188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13189 set dummy
${ncn_progname}; ac_word
=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 $as_echo_n "checking for $ac_word... " >&6; }
13192 if ${ac_cv_prog_RANLIB+:} false
; then :
13193 $as_echo_n "(cached) " >&6
13195 if test -n "$RANLIB"; then
13196 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
13198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13199 for as_dir
in $PATH
13202 test -z "$as_dir" && as_dir
=.
13203 for ac_exec_ext
in '' $ac_executable_extensions; do
13204 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13205 ac_cv_prog_RANLIB
="${ncn_progname}"
13206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13215 RANLIB
=$ac_cv_prog_RANLIB
13216 if test -n "$RANLIB"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13218 $as_echo "$RANLIB" >&6; }
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13226 test -n "$ac_cv_prog_RANLIB" && break
13229 if test -z "$ac_cv_prog_RANLIB" ; then
13235 if test -n "$STRIP"; then
13236 ac_cv_prog_STRIP
=$STRIP
13237 elif test -n "$ac_cv_prog_STRIP"; then
13238 STRIP
=$ac_cv_prog_STRIP
13241 if test -n "$ac_cv_prog_STRIP"; then
13242 for ncn_progname
in strip
; do
13243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13244 set dummy
${ncn_progname}; ac_word
=$2
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13246 $as_echo_n "checking for $ac_word... " >&6; }
13247 if ${ac_cv_prog_STRIP+:} false
; then :
13248 $as_echo_n "(cached) " >&6
13250 if test -n "$STRIP"; then
13251 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
13253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13254 for as_dir
in $PATH
13257 test -z "$as_dir" && as_dir
=.
13258 for ac_exec_ext
in '' $ac_executable_extensions; do
13259 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13260 ac_cv_prog_STRIP
="${ncn_progname}"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13270 STRIP
=$ac_cv_prog_STRIP
13271 if test -n "$STRIP"; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13273 $as_echo "$STRIP" >&6; }
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 $as_echo "no" >&6; }
13283 for ncn_progname
in strip
; do
13284 if test -n "$ncn_tool_prefix"; then
13285 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13286 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288 $as_echo_n "checking for $ac_word... " >&6; }
13289 if ${ac_cv_prog_STRIP+:} false
; then :
13290 $as_echo_n "(cached) " >&6
13292 if test -n "$STRIP"; then
13293 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
13295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13296 for as_dir
in $PATH
13299 test -z "$as_dir" && as_dir
=.
13300 for ac_exec_ext
in '' $ac_executable_extensions; do
13301 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13302 ac_cv_prog_STRIP
="${ncn_tool_prefix}${ncn_progname}"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13312 STRIP
=$ac_cv_prog_STRIP
13313 if test -n "$STRIP"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13315 $as_echo "$STRIP" >&6; }
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13323 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
13324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13325 set dummy
${ncn_progname}; ac_word
=$2
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13327 $as_echo_n "checking for $ac_word... " >&6; }
13328 if ${ac_cv_prog_STRIP+:} false
; then :
13329 $as_echo_n "(cached) " >&6
13331 if test -n "$STRIP"; then
13332 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
13334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13335 for as_dir
in $PATH
13338 test -z "$as_dir" && as_dir
=.
13339 for ac_exec_ext
in '' $ac_executable_extensions; do
13340 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13341 ac_cv_prog_STRIP
="${ncn_progname}"
13342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13351 STRIP
=$ac_cv_prog_STRIP
13352 if test -n "$STRIP"; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13354 $as_echo "$STRIP" >&6; }
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13357 $as_echo "no" >&6; }
13362 test -n "$ac_cv_prog_STRIP" && break
13365 if test -z "$ac_cv_prog_STRIP" ; then
13371 if test -n "$WINDRES"; then
13372 ac_cv_prog_WINDRES
=$WINDRES
13373 elif test -n "$ac_cv_prog_WINDRES"; then
13374 WINDRES
=$ac_cv_prog_WINDRES
13377 if test -n "$ac_cv_prog_WINDRES"; then
13378 for ncn_progname
in windres
; do
13379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13380 set dummy
${ncn_progname}; ac_word
=$2
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382 $as_echo_n "checking for $ac_word... " >&6; }
13383 if ${ac_cv_prog_WINDRES+:} false
; then :
13384 $as_echo_n "(cached) " >&6
13386 if test -n "$WINDRES"; then
13387 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
13389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13390 for as_dir
in $PATH
13393 test -z "$as_dir" && as_dir
=.
13394 for ac_exec_ext
in '' $ac_executable_extensions; do
13395 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13396 ac_cv_prog_WINDRES
="${ncn_progname}"
13397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13406 WINDRES
=$ac_cv_prog_WINDRES
13407 if test -n "$WINDRES"; then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13409 $as_echo "$WINDRES" >&6; }
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412 $as_echo "no" >&6; }
13419 for ncn_progname
in windres
; do
13420 if test -n "$ncn_tool_prefix"; then
13421 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13422 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if ${ac_cv_prog_WINDRES+:} false
; then :
13426 $as_echo_n "(cached) " >&6
13428 if test -n "$WINDRES"; then
13429 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
13431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13432 for as_dir
in $PATH
13435 test -z "$as_dir" && as_dir
=.
13436 for ac_exec_ext
in '' $ac_executable_extensions; do
13437 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13438 ac_cv_prog_WINDRES
="${ncn_tool_prefix}${ncn_progname}"
13439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13448 WINDRES
=$ac_cv_prog_WINDRES
13449 if test -n "$WINDRES"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13451 $as_echo "$WINDRES" >&6; }
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13459 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
13460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13461 set dummy
${ncn_progname}; ac_word
=$2
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13463 $as_echo_n "checking for $ac_word... " >&6; }
13464 if ${ac_cv_prog_WINDRES+:} false
; then :
13465 $as_echo_n "(cached) " >&6
13467 if test -n "$WINDRES"; then
13468 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
13470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13471 for as_dir
in $PATH
13474 test -z "$as_dir" && as_dir
=.
13475 for ac_exec_ext
in '' $ac_executable_extensions; do
13476 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13477 ac_cv_prog_WINDRES
="${ncn_progname}"
13478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13487 WINDRES
=$ac_cv_prog_WINDRES
13488 if test -n "$WINDRES"; then
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13490 $as_echo "$WINDRES" >&6; }
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493 $as_echo "no" >&6; }
13498 test -n "$ac_cv_prog_WINDRES" && break
13501 if test -z "$ac_cv_prog_WINDRES" ; then
13503 if test $build = $host ; then
13506 WINDRES
="${ncn_tool_prefix}$2"
13512 if test -n "$WINDMC"; then
13513 ac_cv_prog_WINDMC
=$WINDMC
13514 elif test -n "$ac_cv_prog_WINDMC"; then
13515 WINDMC
=$ac_cv_prog_WINDMC
13518 if test -n "$ac_cv_prog_WINDMC"; then
13519 for ncn_progname
in windmc
; do
13520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13521 set dummy
${ncn_progname}; ac_word
=$2
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523 $as_echo_n "checking for $ac_word... " >&6; }
13524 if ${ac_cv_prog_WINDMC+:} false
; then :
13525 $as_echo_n "(cached) " >&6
13527 if test -n "$WINDMC"; then
13528 ac_cv_prog_WINDMC
="$WINDMC" # Let the user override the test.
13530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13531 for as_dir
in $PATH
13534 test -z "$as_dir" && as_dir
=.
13535 for ac_exec_ext
in '' $ac_executable_extensions; do
13536 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13537 ac_cv_prog_WINDMC
="${ncn_progname}"
13538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13547 WINDMC
=$ac_cv_prog_WINDMC
13548 if test -n "$WINDMC"; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13550 $as_echo "$WINDMC" >&6; }
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13560 for ncn_progname
in windmc
; do
13561 if test -n "$ncn_tool_prefix"; then
13562 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13563 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13565 $as_echo_n "checking for $ac_word... " >&6; }
13566 if ${ac_cv_prog_WINDMC+:} false
; then :
13567 $as_echo_n "(cached) " >&6
13569 if test -n "$WINDMC"; then
13570 ac_cv_prog_WINDMC
="$WINDMC" # Let the user override the test.
13572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13573 for as_dir
in $PATH
13576 test -z "$as_dir" && as_dir
=.
13577 for ac_exec_ext
in '' $ac_executable_extensions; do
13578 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13579 ac_cv_prog_WINDMC
="${ncn_tool_prefix}${ncn_progname}"
13580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13589 WINDMC
=$ac_cv_prog_WINDMC
13590 if test -n "$WINDMC"; then
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13592 $as_echo "$WINDMC" >&6; }
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13600 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
13601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13602 set dummy
${ncn_progname}; ac_word
=$2
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604 $as_echo_n "checking for $ac_word... " >&6; }
13605 if ${ac_cv_prog_WINDMC+:} false
; then :
13606 $as_echo_n "(cached) " >&6
13608 if test -n "$WINDMC"; then
13609 ac_cv_prog_WINDMC
="$WINDMC" # Let the user override the test.
13611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13612 for as_dir
in $PATH
13615 test -z "$as_dir" && as_dir
=.
13616 for ac_exec_ext
in '' $ac_executable_extensions; do
13617 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13618 ac_cv_prog_WINDMC
="${ncn_progname}"
13619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13628 WINDMC
=$ac_cv_prog_WINDMC
13629 if test -n "$WINDMC"; then
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13631 $as_echo "$WINDMC" >&6; }
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634 $as_echo "no" >&6; }
13639 test -n "$ac_cv_prog_WINDMC" && break
13642 if test -z "$ac_cv_prog_WINDMC" ; then
13644 if test $build = $host ; then
13647 WINDMC
="${ncn_tool_prefix}$2"
13653 if test -n "$OBJCOPY"; then
13654 ac_cv_prog_OBJCOPY
=$OBJCOPY
13655 elif test -n "$ac_cv_prog_OBJCOPY"; then
13656 OBJCOPY
=$ac_cv_prog_OBJCOPY
13659 if test -n "$ac_cv_prog_OBJCOPY"; then
13660 for ncn_progname
in objcopy
; do
13661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13662 set dummy
${ncn_progname}; ac_word
=$2
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13664 $as_echo_n "checking for $ac_word... " >&6; }
13665 if ${ac_cv_prog_OBJCOPY+:} false
; then :
13666 $as_echo_n "(cached) " >&6
13668 if test -n "$OBJCOPY"; then
13669 ac_cv_prog_OBJCOPY
="$OBJCOPY" # Let the user override the test.
13671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13672 for as_dir
in $PATH
13675 test -z "$as_dir" && as_dir
=.
13676 for ac_exec_ext
in '' $ac_executable_extensions; do
13677 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13678 ac_cv_prog_OBJCOPY
="${ncn_progname}"
13679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13688 OBJCOPY
=$ac_cv_prog_OBJCOPY
13689 if test -n "$OBJCOPY"; then
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13691 $as_echo "$OBJCOPY" >&6; }
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694 $as_echo "no" >&6; }
13701 for ncn_progname
in objcopy
; do
13702 if test -n "$ncn_tool_prefix"; then
13703 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13704 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13706 $as_echo_n "checking for $ac_word... " >&6; }
13707 if ${ac_cv_prog_OBJCOPY+:} false
; then :
13708 $as_echo_n "(cached) " >&6
13710 if test -n "$OBJCOPY"; then
13711 ac_cv_prog_OBJCOPY
="$OBJCOPY" # Let the user override the test.
13713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13714 for as_dir
in $PATH
13717 test -z "$as_dir" && as_dir
=.
13718 for ac_exec_ext
in '' $ac_executable_extensions; do
13719 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13720 ac_cv_prog_OBJCOPY
="${ncn_tool_prefix}${ncn_progname}"
13721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13730 OBJCOPY
=$ac_cv_prog_OBJCOPY
13731 if test -n "$OBJCOPY"; then
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13733 $as_echo "$OBJCOPY" >&6; }
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736 $as_echo "no" >&6; }
13741 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
13742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13743 set dummy
${ncn_progname}; ac_word
=$2
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13745 $as_echo_n "checking for $ac_word... " >&6; }
13746 if ${ac_cv_prog_OBJCOPY+:} false
; then :
13747 $as_echo_n "(cached) " >&6
13749 if test -n "$OBJCOPY"; then
13750 ac_cv_prog_OBJCOPY
="$OBJCOPY" # Let the user override the test.
13752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13753 for as_dir
in $PATH
13756 test -z "$as_dir" && as_dir
=.
13757 for ac_exec_ext
in '' $ac_executable_extensions; do
13758 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13759 ac_cv_prog_OBJCOPY
="${ncn_progname}"
13760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 OBJCOPY
=$ac_cv_prog_OBJCOPY
13770 if test -n "$OBJCOPY"; then
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13772 $as_echo "$OBJCOPY" >&6; }
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775 $as_echo "no" >&6; }
13780 test -n "$ac_cv_prog_OBJCOPY" && break
13783 if test -z "$ac_cv_prog_OBJCOPY" ; then
13785 if test $build = $host ; then
13788 OBJCOPY
="${ncn_tool_prefix}$2"
13794 if test -n "$OBJDUMP"; then
13795 ac_cv_prog_OBJDUMP
=$OBJDUMP
13796 elif test -n "$ac_cv_prog_OBJDUMP"; then
13797 OBJDUMP
=$ac_cv_prog_OBJDUMP
13800 if test -n "$ac_cv_prog_OBJDUMP"; then
13801 for ncn_progname
in objdump
; do
13802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13803 set dummy
${ncn_progname}; ac_word
=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 $as_echo_n "checking for $ac_word... " >&6; }
13806 if ${ac_cv_prog_OBJDUMP+:} false
; then :
13807 $as_echo_n "(cached) " >&6
13809 if test -n "$OBJDUMP"; then
13810 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
13812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13813 for as_dir
in $PATH
13816 test -z "$as_dir" && as_dir
=.
13817 for ac_exec_ext
in '' $ac_executable_extensions; do
13818 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13819 ac_cv_prog_OBJDUMP
="${ncn_progname}"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13829 OBJDUMP
=$ac_cv_prog_OBJDUMP
13830 if test -n "$OBJDUMP"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13832 $as_echo "$OBJDUMP" >&6; }
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835 $as_echo "no" >&6; }
13842 for ncn_progname
in objdump
; do
13843 if test -n "$ncn_tool_prefix"; then
13844 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13845 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13847 $as_echo_n "checking for $ac_word... " >&6; }
13848 if ${ac_cv_prog_OBJDUMP+:} false
; then :
13849 $as_echo_n "(cached) " >&6
13851 if test -n "$OBJDUMP"; then
13852 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
13854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13855 for as_dir
in $PATH
13858 test -z "$as_dir" && as_dir
=.
13859 for ac_exec_ext
in '' $ac_executable_extensions; do
13860 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13861 ac_cv_prog_OBJDUMP
="${ncn_tool_prefix}${ncn_progname}"
13862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13871 OBJDUMP
=$ac_cv_prog_OBJDUMP
13872 if test -n "$OBJDUMP"; then
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13874 $as_echo "$OBJDUMP" >&6; }
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13877 $as_echo "no" >&6; }
13882 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
13883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13884 set dummy
${ncn_progname}; ac_word
=$2
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13886 $as_echo_n "checking for $ac_word... " >&6; }
13887 if ${ac_cv_prog_OBJDUMP+:} false
; then :
13888 $as_echo_n "(cached) " >&6
13890 if test -n "$OBJDUMP"; then
13891 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
13893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13894 for as_dir
in $PATH
13897 test -z "$as_dir" && as_dir
=.
13898 for ac_exec_ext
in '' $ac_executable_extensions; do
13899 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13900 ac_cv_prog_OBJDUMP
="${ncn_progname}"
13901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13910 OBJDUMP
=$ac_cv_prog_OBJDUMP
13911 if test -n "$OBJDUMP"; then
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13913 $as_echo "$OBJDUMP" >&6; }
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916 $as_echo "no" >&6; }
13921 test -n "$ac_cv_prog_OBJDUMP" && break
13924 if test -z "$ac_cv_prog_OBJDUMP" ; then
13926 if test $build = $host ; then
13929 OBJDUMP
="${ncn_tool_prefix}$2"
13935 if test -n "$OTOOL"; then
13936 ac_cv_prog_OTOOL
=$OTOOL
13937 elif test -n "$ac_cv_prog_OTOOL"; then
13938 OTOOL
=$ac_cv_prog_OTOOL
13941 if test -n "$ac_cv_prog_OTOOL"; then
13942 for ncn_progname
in otool
; do
13943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13944 set dummy
${ncn_progname}; ac_word
=$2
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13946 $as_echo_n "checking for $ac_word... " >&6; }
13947 if ${ac_cv_prog_OTOOL+:} false
; then :
13948 $as_echo_n "(cached) " >&6
13950 if test -n "$OTOOL"; then
13951 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
13953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13954 for as_dir
in $PATH
13957 test -z "$as_dir" && as_dir
=.
13958 for ac_exec_ext
in '' $ac_executable_extensions; do
13959 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13960 ac_cv_prog_OTOOL
="${ncn_progname}"
13961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13970 OTOOL
=$ac_cv_prog_OTOOL
13971 if test -n "$OTOOL"; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13973 $as_echo "$OTOOL" >&6; }
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976 $as_echo "no" >&6; }
13983 for ncn_progname
in otool
; do
13984 if test -n "$ncn_tool_prefix"; then
13985 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13986 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13988 $as_echo_n "checking for $ac_word... " >&6; }
13989 if ${ac_cv_prog_OTOOL+:} false
; then :
13990 $as_echo_n "(cached) " >&6
13992 if test -n "$OTOOL"; then
13993 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
13995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13996 for as_dir
in $PATH
13999 test -z "$as_dir" && as_dir
=.
14000 for ac_exec_ext
in '' $ac_executable_extensions; do
14001 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14002 ac_cv_prog_OTOOL
="${ncn_tool_prefix}${ncn_progname}"
14003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14012 OTOOL
=$ac_cv_prog_OTOOL
14013 if test -n "$OTOOL"; then
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14015 $as_echo "$OTOOL" >&6; }
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018 $as_echo "no" >&6; }
14023 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
14024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14025 set dummy
${ncn_progname}; ac_word
=$2
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14027 $as_echo_n "checking for $ac_word... " >&6; }
14028 if ${ac_cv_prog_OTOOL+:} false
; then :
14029 $as_echo_n "(cached) " >&6
14031 if test -n "$OTOOL"; then
14032 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
14034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14035 for as_dir
in $PATH
14038 test -z "$as_dir" && as_dir
=.
14039 for ac_exec_ext
in '' $ac_executable_extensions; do
14040 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14041 ac_cv_prog_OTOOL
="${ncn_progname}"
14042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14051 OTOOL
=$ac_cv_prog_OTOOL
14052 if test -n "$OTOOL"; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14054 $as_echo "$OTOOL" >&6; }
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057 $as_echo "no" >&6; }
14062 test -n "$ac_cv_prog_OTOOL" && break
14065 if test -z "$ac_cv_prog_OTOOL" ; then
14067 if test $build = $host ; then
14070 OTOOL
="${ncn_tool_prefix}$2"
14076 if test -n "$READELF"; then
14077 ac_cv_prog_READELF
=$READELF
14078 elif test -n "$ac_cv_prog_READELF"; then
14079 READELF
=$ac_cv_prog_READELF
14082 if test -n "$ac_cv_prog_READELF"; then
14083 for ncn_progname
in readelf
; do
14084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14085 set dummy
${ncn_progname}; ac_word
=$2
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14087 $as_echo_n "checking for $ac_word... " >&6; }
14088 if ${ac_cv_prog_READELF+:} false
; then :
14089 $as_echo_n "(cached) " >&6
14091 if test -n "$READELF"; then
14092 ac_cv_prog_READELF
="$READELF" # Let the user override the test.
14094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14095 for as_dir
in $PATH
14098 test -z "$as_dir" && as_dir
=.
14099 for ac_exec_ext
in '' $ac_executable_extensions; do
14100 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14101 ac_cv_prog_READELF
="${ncn_progname}"
14102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14111 READELF
=$ac_cv_prog_READELF
14112 if test -n "$READELF"; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14114 $as_echo "$READELF" >&6; }
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14117 $as_echo "no" >&6; }
14124 for ncn_progname
in readelf
; do
14125 if test -n "$ncn_tool_prefix"; then
14126 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
14127 set dummy
${ncn_tool_prefix}${ncn_progname}; ac_word
=$2
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14129 $as_echo_n "checking for $ac_word... " >&6; }
14130 if ${ac_cv_prog_READELF+:} false
; then :
14131 $as_echo_n "(cached) " >&6
14133 if test -n "$READELF"; then
14134 ac_cv_prog_READELF
="$READELF" # Let the user override the test.
14136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14137 for as_dir
in $PATH
14140 test -z "$as_dir" && as_dir
=.
14141 for ac_exec_ext
in '' $ac_executable_extensions; do
14142 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14143 ac_cv_prog_READELF
="${ncn_tool_prefix}${ncn_progname}"
14144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14153 READELF
=$ac_cv_prog_READELF
14154 if test -n "$READELF"; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14156 $as_echo "$READELF" >&6; }
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159 $as_echo "no" >&6; }
14164 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
14165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14166 set dummy
${ncn_progname}; ac_word
=$2
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14168 $as_echo_n "checking for $ac_word... " >&6; }
14169 if ${ac_cv_prog_READELF+:} false
; then :
14170 $as_echo_n "(cached) " >&6
14172 if test -n "$READELF"; then
14173 ac_cv_prog_READELF
="$READELF" # Let the user override the test.
14175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14176 for as_dir
in $PATH
14179 test -z "$as_dir" && as_dir
=.
14180 for ac_exec_ext
in '' $ac_executable_extensions; do
14181 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14182 ac_cv_prog_READELF
="${ncn_progname}"
14183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14192 READELF
=$ac_cv_prog_READELF
14193 if test -n "$READELF"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14195 $as_echo "$READELF" >&6; }
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198 $as_echo "no" >&6; }
14203 test -n "$ac_cv_prog_READELF" && break
14206 if test -z "$ac_cv_prog_READELF" ; then
14208 if test $build = $host ; then
14211 READELF
="${ncn_tool_prefix}$2"
14221 GDCFLAGS
=${GDCFLAGS-${CFLAGS}}
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
14225 $as_echo_n "checking for -plugin option... " >&6; }
14227 plugin_names
="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
14229 for plugin
in $plugin_names; do
14230 plugin_so
=`${CC} ${CFLAGS} --print-prog-name $plugin`
14231 if test x
$plugin_so = x
$plugin; then
14232 plugin_so
=`${CC} ${CFLAGS} --print-file-name $plugin`
14234 if test x
$plugin_so != x
$plugin; then
14235 plugin_option
="--plugin $plugin_so"
14239 if test -n "$ac_tool_prefix"; then
14240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14241 set dummy
${ac_tool_prefix}ar; ac_word
=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 $as_echo_n "checking for $ac_word... " >&6; }
14244 if ${ac_cv_prog_AR+:} false
; then :
14245 $as_echo_n "(cached) " >&6
14247 if test -n "$AR"; then
14248 ac_cv_prog_AR
="$AR" # Let the user override the test.
14250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14251 for as_dir
in $PATH
14254 test -z "$as_dir" && as_dir
=.
14255 for ac_exec_ext
in '' $ac_executable_extensions; do
14256 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14257 ac_cv_prog_AR
="${ac_tool_prefix}ar"
14258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14268 if test -n "$AR"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14270 $as_echo "$AR" >&6; }
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273 $as_echo "no" >&6; }
14278 if test -z "$ac_cv_prog_AR"; then
14280 # Extract the first word of "ar", so it can be a program name with args.
14281 set dummy
ar; ac_word
=$2
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14283 $as_echo_n "checking for $ac_word... " >&6; }
14284 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
14285 $as_echo_n "(cached) " >&6
14287 if test -n "$ac_ct_AR"; then
14288 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
14290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14291 for as_dir
in $PATH
14294 test -z "$as_dir" && as_dir
=.
14295 for ac_exec_ext
in '' $ac_executable_extensions; do
14296 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14297 ac_cv_prog_ac_ct_AR
="ar"
14298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14307 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
14308 if test -n "$ac_ct_AR"; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14310 $as_echo "$ac_ct_AR" >&6; }
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14316 if test "x$ac_ct_AR" = x
; then
14319 case $cross_compiling:$ac_tool_warned in
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14323 ac_tool_warned
=yes ;;
14328 AR
="$ac_cv_prog_AR"
14331 if test "${AR}" = "" ; then
14332 as_fn_error $?
"Required archive tool 'ar' not found on PATH." "$LINENO" 5
14335 ${AR} $plugin_option rc conftest.a conftest.c
14336 if test "$?" != 0; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
14338 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
14342 if test -n "$plugin_option"; then
14343 PLUGIN_OPTION
="$plugin_option"
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
14345 $as_echo "$plugin_option" >&6; }
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14352 RANLIB_PLUGIN_OPTION
=
14353 if test -n "$PLUGIN_OPTION"; then
14354 if $AR --help 2>&1 |
grep -q "\--plugin"; then
14355 AR_PLUGIN_OPTION
="$PLUGIN_OPTION"
14357 if $RANLIB --help 2>&1 |
grep -q "\--plugin"; then
14358 RANLIB_PLUGIN_OPTION
="$PLUGIN_OPTION"
14366 # Check whether --with-build-time-tools was given.
14367 if test "${with_build_time_tools+set}" = set; then :
14368 withval
=$with_build_time_tools; case x
"$withval" in
14371 with_build_time_tools
=
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
14373 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
14377 with_build_time_tools
=
14383 if test -n "$CC_FOR_TARGET"; then
14384 ac_cv_prog_CC_FOR_TARGET
=$CC_FOR_TARGET
14385 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14386 CC_FOR_TARGET
=$ac_cv_prog_CC_FOR_TARGET
14389 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14390 for ncn_progname
in cc gcc
; do
14391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14392 set dummy
${ncn_progname}; ac_word
=$2
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14394 $as_echo_n "checking for $ac_word... " >&6; }
14395 if ${ac_cv_prog_CC_FOR_TARGET+:} false
; then :
14396 $as_echo_n "(cached) " >&6
14398 if test -n "$CC_FOR_TARGET"; then
14399 ac_cv_prog_CC_FOR_TARGET
="$CC_FOR_TARGET" # Let the user override the test.
14401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14402 for as_dir
in $PATH
14405 test -z "$as_dir" && as_dir
=.
14406 for ac_exec_ext
in '' $ac_executable_extensions; do
14407 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14408 ac_cv_prog_CC_FOR_TARGET
="${ncn_progname}"
14409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14418 CC_FOR_TARGET
=$ac_cv_prog_CC_FOR_TARGET
14419 if test -n "$CC_FOR_TARGET"; then
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14421 $as_echo "$CC_FOR_TARGET" >&6; }
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424 $as_echo "no" >&6; }
14431 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14432 for ncn_progname
in cc gcc
; do
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14434 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14435 if test -x $with_build_time_tools/${ncn_progname}; then
14436 ac_cv_prog_CC_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14438 $as_echo "yes" >&6; }
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 $as_echo "no" >&6; }
14447 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
14448 for ncn_progname
in cc gcc
; do
14449 if test -n "$ncn_target_tool_prefix"; then
14450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14451 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453 $as_echo_n "checking for $ac_word... " >&6; }
14454 if ${ac_cv_prog_CC_FOR_TARGET+:} false
; then :
14455 $as_echo_n "(cached) " >&6
14457 if test -n "$CC_FOR_TARGET"; then
14458 ac_cv_prog_CC_FOR_TARGET
="$CC_FOR_TARGET" # Let the user override the test.
14460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14461 for as_dir
in $PATH
14464 test -z "$as_dir" && as_dir
=.
14465 for ac_exec_ext
in '' $ac_executable_extensions; do
14466 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14467 ac_cv_prog_CC_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
14468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14477 CC_FOR_TARGET
=$ac_cv_prog_CC_FOR_TARGET
14478 if test -n "$CC_FOR_TARGET"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14480 $as_echo "$CC_FOR_TARGET" >&6; }
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14488 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
14489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14490 set dummy
${ncn_progname}; ac_word
=$2
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14492 $as_echo_n "checking for $ac_word... " >&6; }
14493 if ${ac_cv_prog_CC_FOR_TARGET+:} false
; then :
14494 $as_echo_n "(cached) " >&6
14496 if test -n "$CC_FOR_TARGET"; then
14497 ac_cv_prog_CC_FOR_TARGET
="$CC_FOR_TARGET" # Let the user override the test.
14499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14500 for as_dir
in $PATH
14503 test -z "$as_dir" && as_dir
=.
14504 for ac_exec_ext
in '' $ac_executable_extensions; do
14505 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14506 ac_cv_prog_CC_FOR_TARGET
="${ncn_progname}"
14507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14516 CC_FOR_TARGET
=$ac_cv_prog_CC_FOR_TARGET
14517 if test -n "$CC_FOR_TARGET"; then
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14519 $as_echo "$CC_FOR_TARGET" >&6; }
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14522 $as_echo "no" >&6; }
14527 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
14531 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
14533 if test $build = $target ; then
14536 CC_FOR_TARGET
="${ncn_target_tool_prefix}$2"
14539 CC_FOR_TARGET
="$ac_cv_prog_CC_FOR_TARGET"
14544 if test -n "$CXX_FOR_TARGET"; then
14545 ac_cv_prog_CXX_FOR_TARGET
=$CXX_FOR_TARGET
14546 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14547 CXX_FOR_TARGET
=$ac_cv_prog_CXX_FOR_TARGET
14550 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14551 for ncn_progname
in c
++ g
++ cxx gxx
; do
14552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14553 set dummy
${ncn_progname}; ac_word
=$2
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14555 $as_echo_n "checking for $ac_word... " >&6; }
14556 if ${ac_cv_prog_CXX_FOR_TARGET+:} false
; then :
14557 $as_echo_n "(cached) " >&6
14559 if test -n "$CXX_FOR_TARGET"; then
14560 ac_cv_prog_CXX_FOR_TARGET
="$CXX_FOR_TARGET" # Let the user override the test.
14562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14563 for as_dir
in $PATH
14566 test -z "$as_dir" && as_dir
=.
14567 for ac_exec_ext
in '' $ac_executable_extensions; do
14568 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14569 ac_cv_prog_CXX_FOR_TARGET
="${ncn_progname}"
14570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14579 CXX_FOR_TARGET
=$ac_cv_prog_CXX_FOR_TARGET
14580 if test -n "$CXX_FOR_TARGET"; then
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14582 $as_echo "$CXX_FOR_TARGET" >&6; }
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14585 $as_echo "no" >&6; }
14592 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
14593 for ncn_progname
in c
++ g
++ cxx gxx
; do
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14595 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14596 if test -x $with_build_time_tools/${ncn_progname}; then
14597 ac_cv_prog_CXX_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14599 $as_echo "yes" >&6; }
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14603 $as_echo "no" >&6; }
14608 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
14609 for ncn_progname
in c
++ g
++ cxx gxx
; do
14610 if test -n "$ncn_target_tool_prefix"; then
14611 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14612 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14614 $as_echo_n "checking for $ac_word... " >&6; }
14615 if ${ac_cv_prog_CXX_FOR_TARGET+:} false
; then :
14616 $as_echo_n "(cached) " >&6
14618 if test -n "$CXX_FOR_TARGET"; then
14619 ac_cv_prog_CXX_FOR_TARGET
="$CXX_FOR_TARGET" # Let the user override the test.
14621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14622 for as_dir
in $PATH
14625 test -z "$as_dir" && as_dir
=.
14626 for ac_exec_ext
in '' $ac_executable_extensions; do
14627 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14628 ac_cv_prog_CXX_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
14629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14638 CXX_FOR_TARGET
=$ac_cv_prog_CXX_FOR_TARGET
14639 if test -n "$CXX_FOR_TARGET"; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14641 $as_echo "$CXX_FOR_TARGET" >&6; }
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14644 $as_echo "no" >&6; }
14649 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
14650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14651 set dummy
${ncn_progname}; ac_word
=$2
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14653 $as_echo_n "checking for $ac_word... " >&6; }
14654 if ${ac_cv_prog_CXX_FOR_TARGET+:} false
; then :
14655 $as_echo_n "(cached) " >&6
14657 if test -n "$CXX_FOR_TARGET"; then
14658 ac_cv_prog_CXX_FOR_TARGET
="$CXX_FOR_TARGET" # Let the user override the test.
14660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14661 for as_dir
in $PATH
14664 test -z "$as_dir" && as_dir
=.
14665 for ac_exec_ext
in '' $ac_executable_extensions; do
14666 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14667 ac_cv_prog_CXX_FOR_TARGET
="${ncn_progname}"
14668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14677 CXX_FOR_TARGET
=$ac_cv_prog_CXX_FOR_TARGET
14678 if test -n "$CXX_FOR_TARGET"; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14680 $as_echo "$CXX_FOR_TARGET" >&6; }
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14683 $as_echo "no" >&6; }
14688 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
14692 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
14693 set dummy c
++ g
++ cxx gxx
14694 if test $build = $target ; then
14695 CXX_FOR_TARGET
="$2"
14697 CXX_FOR_TARGET
="${ncn_target_tool_prefix}$2"
14700 CXX_FOR_TARGET
="$ac_cv_prog_CXX_FOR_TARGET"
14705 if test -n "$GCC_FOR_TARGET"; then
14706 ac_cv_prog_GCC_FOR_TARGET
=$GCC_FOR_TARGET
14707 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14708 GCC_FOR_TARGET
=$ac_cv_prog_GCC_FOR_TARGET
14711 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14712 for ncn_progname
in gcc
; do
14713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14714 set dummy
${ncn_progname}; ac_word
=$2
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14716 $as_echo_n "checking for $ac_word... " >&6; }
14717 if ${ac_cv_prog_GCC_FOR_TARGET+:} false
; then :
14718 $as_echo_n "(cached) " >&6
14720 if test -n "$GCC_FOR_TARGET"; then
14721 ac_cv_prog_GCC_FOR_TARGET
="$GCC_FOR_TARGET" # Let the user override the test.
14723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14724 for as_dir
in $PATH
14727 test -z "$as_dir" && as_dir
=.
14728 for ac_exec_ext
in '' $ac_executable_extensions; do
14729 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14730 ac_cv_prog_GCC_FOR_TARGET
="${ncn_progname}"
14731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14740 GCC_FOR_TARGET
=$ac_cv_prog_GCC_FOR_TARGET
14741 if test -n "$GCC_FOR_TARGET"; then
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14743 $as_echo "$GCC_FOR_TARGET" >&6; }
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14746 $as_echo "no" >&6; }
14753 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14754 for ncn_progname
in gcc
; do
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14756 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14757 if test -x $with_build_time_tools/${ncn_progname}; then
14758 ac_cv_prog_GCC_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14760 $as_echo "yes" >&6; }
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14764 $as_echo "no" >&6; }
14769 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
14770 for ncn_progname
in gcc
; do
14771 if test -n "$ncn_target_tool_prefix"; then
14772 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14773 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14775 $as_echo_n "checking for $ac_word... " >&6; }
14776 if ${ac_cv_prog_GCC_FOR_TARGET+:} false
; then :
14777 $as_echo_n "(cached) " >&6
14779 if test -n "$GCC_FOR_TARGET"; then
14780 ac_cv_prog_GCC_FOR_TARGET
="$GCC_FOR_TARGET" # Let the user override the test.
14782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14783 for as_dir
in $PATH
14786 test -z "$as_dir" && as_dir
=.
14787 for ac_exec_ext
in '' $ac_executable_extensions; do
14788 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14789 ac_cv_prog_GCC_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
14790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14799 GCC_FOR_TARGET
=$ac_cv_prog_GCC_FOR_TARGET
14800 if test -n "$GCC_FOR_TARGET"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14802 $as_echo "$GCC_FOR_TARGET" >&6; }
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14805 $as_echo "no" >&6; }
14810 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
14811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14812 set dummy
${ncn_progname}; ac_word
=$2
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14814 $as_echo_n "checking for $ac_word... " >&6; }
14815 if ${ac_cv_prog_GCC_FOR_TARGET+:} false
; then :
14816 $as_echo_n "(cached) " >&6
14818 if test -n "$GCC_FOR_TARGET"; then
14819 ac_cv_prog_GCC_FOR_TARGET
="$GCC_FOR_TARGET" # Let the user override the test.
14821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14822 for as_dir
in $PATH
14825 test -z "$as_dir" && as_dir
=.
14826 for ac_exec_ext
in '' $ac_executable_extensions; do
14827 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14828 ac_cv_prog_GCC_FOR_TARGET
="${ncn_progname}"
14829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14838 GCC_FOR_TARGET
=$ac_cv_prog_GCC_FOR_TARGET
14839 if test -n "$GCC_FOR_TARGET"; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14841 $as_echo "$GCC_FOR_TARGET" >&6; }
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14844 $as_echo "no" >&6; }
14849 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
14853 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
14854 GCC_FOR_TARGET
="${CC_FOR_TARGET}"
14856 GCC_FOR_TARGET
="$ac_cv_prog_GCC_FOR_TARGET"
14861 if test -n "$GFORTRAN_FOR_TARGET"; then
14862 ac_cv_prog_GFORTRAN_FOR_TARGET
=$GFORTRAN_FOR_TARGET
14863 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14864 GFORTRAN_FOR_TARGET
=$ac_cv_prog_GFORTRAN_FOR_TARGET
14867 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14868 for ncn_progname
in gfortran
; do
14869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14870 set dummy
${ncn_progname}; ac_word
=$2
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14872 $as_echo_n "checking for $ac_word... " >&6; }
14873 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false
; then :
14874 $as_echo_n "(cached) " >&6
14876 if test -n "$GFORTRAN_FOR_TARGET"; then
14877 ac_cv_prog_GFORTRAN_FOR_TARGET
="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14880 for as_dir
in $PATH
14883 test -z "$as_dir" && as_dir
=.
14884 for ac_exec_ext
in '' $ac_executable_extensions; do
14885 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14886 ac_cv_prog_GFORTRAN_FOR_TARGET
="${ncn_progname}"
14887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14896 GFORTRAN_FOR_TARGET
=$ac_cv_prog_GFORTRAN_FOR_TARGET
14897 if test -n "$GFORTRAN_FOR_TARGET"; then
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14899 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902 $as_echo "no" >&6; }
14909 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
14910 for ncn_progname
in gfortran
; do
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14912 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14913 if test -x $with_build_time_tools/${ncn_progname}; then
14914 ac_cv_prog_GFORTRAN_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14916 $as_echo "yes" >&6; }
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14920 $as_echo "no" >&6; }
14925 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14926 for ncn_progname
in gfortran
; do
14927 if test -n "$ncn_target_tool_prefix"; then
14928 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14929 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14931 $as_echo_n "checking for $ac_word... " >&6; }
14932 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false
; then :
14933 $as_echo_n "(cached) " >&6
14935 if test -n "$GFORTRAN_FOR_TARGET"; then
14936 ac_cv_prog_GFORTRAN_FOR_TARGET
="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14939 for as_dir
in $PATH
14942 test -z "$as_dir" && as_dir
=.
14943 for ac_exec_ext
in '' $ac_executable_extensions; do
14944 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14945 ac_cv_prog_GFORTRAN_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
14946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14955 GFORTRAN_FOR_TARGET
=$ac_cv_prog_GFORTRAN_FOR_TARGET
14956 if test -n "$GFORTRAN_FOR_TARGET"; then
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14958 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14961 $as_echo "no" >&6; }
14966 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
14967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14968 set dummy
${ncn_progname}; ac_word
=$2
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14970 $as_echo_n "checking for $ac_word... " >&6; }
14971 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false
; then :
14972 $as_echo_n "(cached) " >&6
14974 if test -n "$GFORTRAN_FOR_TARGET"; then
14975 ac_cv_prog_GFORTRAN_FOR_TARGET
="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14978 for as_dir
in $PATH
14981 test -z "$as_dir" && as_dir
=.
14982 for ac_exec_ext
in '' $ac_executable_extensions; do
14983 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14984 ac_cv_prog_GFORTRAN_FOR_TARGET
="${ncn_progname}"
14985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14994 GFORTRAN_FOR_TARGET
=$ac_cv_prog_GFORTRAN_FOR_TARGET
14995 if test -n "$GFORTRAN_FOR_TARGET"; then
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14997 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000 $as_echo "no" >&6; }
15005 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
15009 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
15011 if test $build = $target ; then
15012 GFORTRAN_FOR_TARGET
="$2"
15014 GFORTRAN_FOR_TARGET
="${ncn_target_tool_prefix}$2"
15017 GFORTRAN_FOR_TARGET
="$ac_cv_prog_GFORTRAN_FOR_TARGET"
15022 if test -n "$GOC_FOR_TARGET"; then
15023 ac_cv_prog_GOC_FOR_TARGET
=$GOC_FOR_TARGET
15024 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
15025 GOC_FOR_TARGET
=$ac_cv_prog_GOC_FOR_TARGET
15028 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
15029 for ncn_progname
in gccgo
; do
15030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15031 set dummy
${ncn_progname}; ac_word
=$2
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15033 $as_echo_n "checking for $ac_word... " >&6; }
15034 if ${ac_cv_prog_GOC_FOR_TARGET+:} false
; then :
15035 $as_echo_n "(cached) " >&6
15037 if test -n "$GOC_FOR_TARGET"; then
15038 ac_cv_prog_GOC_FOR_TARGET
="$GOC_FOR_TARGET" # Let the user override the test.
15040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15041 for as_dir
in $PATH
15044 test -z "$as_dir" && as_dir
=.
15045 for ac_exec_ext
in '' $ac_executable_extensions; do
15046 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15047 ac_cv_prog_GOC_FOR_TARGET
="${ncn_progname}"
15048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15057 GOC_FOR_TARGET
=$ac_cv_prog_GOC_FOR_TARGET
15058 if test -n "$GOC_FOR_TARGET"; then
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15060 $as_echo "$GOC_FOR_TARGET" >&6; }
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15063 $as_echo "no" >&6; }
15070 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15071 for ncn_progname
in gccgo
; do
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15073 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15074 if test -x $with_build_time_tools/${ncn_progname}; then
15075 ac_cv_prog_GOC_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15077 $as_echo "yes" >&6; }
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15081 $as_echo "no" >&6; }
15086 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
15087 for ncn_progname
in gccgo
; do
15088 if test -n "$ncn_target_tool_prefix"; then
15089 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15090 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15092 $as_echo_n "checking for $ac_word... " >&6; }
15093 if ${ac_cv_prog_GOC_FOR_TARGET+:} false
; then :
15094 $as_echo_n "(cached) " >&6
15096 if test -n "$GOC_FOR_TARGET"; then
15097 ac_cv_prog_GOC_FOR_TARGET
="$GOC_FOR_TARGET" # Let the user override the test.
15099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15100 for as_dir
in $PATH
15103 test -z "$as_dir" && as_dir
=.
15104 for ac_exec_ext
in '' $ac_executable_extensions; do
15105 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15106 ac_cv_prog_GOC_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
15107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15116 GOC_FOR_TARGET
=$ac_cv_prog_GOC_FOR_TARGET
15117 if test -n "$GOC_FOR_TARGET"; then
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15119 $as_echo "$GOC_FOR_TARGET" >&6; }
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15122 $as_echo "no" >&6; }
15127 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
15128 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15129 set dummy
${ncn_progname}; ac_word
=$2
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15131 $as_echo_n "checking for $ac_word... " >&6; }
15132 if ${ac_cv_prog_GOC_FOR_TARGET+:} false
; then :
15133 $as_echo_n "(cached) " >&6
15135 if test -n "$GOC_FOR_TARGET"; then
15136 ac_cv_prog_GOC_FOR_TARGET
="$GOC_FOR_TARGET" # Let the user override the test.
15138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15139 for as_dir
in $PATH
15142 test -z "$as_dir" && as_dir
=.
15143 for ac_exec_ext
in '' $ac_executable_extensions; do
15144 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15145 ac_cv_prog_GOC_FOR_TARGET
="${ncn_progname}"
15146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15155 GOC_FOR_TARGET
=$ac_cv_prog_GOC_FOR_TARGET
15156 if test -n "$GOC_FOR_TARGET"; then
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15158 $as_echo "$GOC_FOR_TARGET" >&6; }
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161 $as_echo "no" >&6; }
15166 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
15170 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
15172 if test $build = $target ; then
15173 GOC_FOR_TARGET
="$2"
15175 GOC_FOR_TARGET
="${ncn_target_tool_prefix}$2"
15178 GOC_FOR_TARGET
="$ac_cv_prog_GOC_FOR_TARGET"
15183 if test -n "$GDC_FOR_TARGET"; then
15184 ac_cv_prog_GDC_FOR_TARGET
=$GDC_FOR_TARGET
15185 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15186 GDC_FOR_TARGET
=$ac_cv_prog_GDC_FOR_TARGET
15189 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15190 for ncn_progname
in gdc
; do
15191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15192 set dummy
${ncn_progname}; ac_word
=$2
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15194 $as_echo_n "checking for $ac_word... " >&6; }
15195 if ${ac_cv_prog_GDC_FOR_TARGET+:} false
; then :
15196 $as_echo_n "(cached) " >&6
15198 if test -n "$GDC_FOR_TARGET"; then
15199 ac_cv_prog_GDC_FOR_TARGET
="$GDC_FOR_TARGET" # Let the user override the test.
15201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15202 for as_dir
in $PATH
15205 test -z "$as_dir" && as_dir
=.
15206 for ac_exec_ext
in '' $ac_executable_extensions; do
15207 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15208 ac_cv_prog_GDC_FOR_TARGET
="${ncn_progname}"
15209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15218 GDC_FOR_TARGET
=$ac_cv_prog_GDC_FOR_TARGET
15219 if test -n "$GDC_FOR_TARGET"; then
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15221 $as_echo "$GDC_FOR_TARGET" >&6; }
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15224 $as_echo "no" >&6; }
15231 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15232 for ncn_progname
in gdc
; do
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15234 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15235 if test -x $with_build_time_tools/${ncn_progname}; then
15236 ac_cv_prog_GDC_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15238 $as_echo "yes" >&6; }
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242 $as_echo "no" >&6; }
15247 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
15248 for ncn_progname
in gdc
; do
15249 if test -n "$ncn_target_tool_prefix"; then
15250 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15251 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15253 $as_echo_n "checking for $ac_word... " >&6; }
15254 if ${ac_cv_prog_GDC_FOR_TARGET+:} false
; then :
15255 $as_echo_n "(cached) " >&6
15257 if test -n "$GDC_FOR_TARGET"; then
15258 ac_cv_prog_GDC_FOR_TARGET
="$GDC_FOR_TARGET" # Let the user override the test.
15260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15261 for as_dir
in $PATH
15264 test -z "$as_dir" && as_dir
=.
15265 for ac_exec_ext
in '' $ac_executable_extensions; do
15266 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15267 ac_cv_prog_GDC_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
15268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15277 GDC_FOR_TARGET
=$ac_cv_prog_GDC_FOR_TARGET
15278 if test -n "$GDC_FOR_TARGET"; then
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15280 $as_echo "$GDC_FOR_TARGET" >&6; }
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15283 $as_echo "no" >&6; }
15288 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
15289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15290 set dummy
${ncn_progname}; ac_word
=$2
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15292 $as_echo_n "checking for $ac_word... " >&6; }
15293 if ${ac_cv_prog_GDC_FOR_TARGET+:} false
; then :
15294 $as_echo_n "(cached) " >&6
15296 if test -n "$GDC_FOR_TARGET"; then
15297 ac_cv_prog_GDC_FOR_TARGET
="$GDC_FOR_TARGET" # Let the user override the test.
15299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15300 for as_dir
in $PATH
15303 test -z "$as_dir" && as_dir
=.
15304 for ac_exec_ext
in '' $ac_executable_extensions; do
15305 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15306 ac_cv_prog_GDC_FOR_TARGET
="${ncn_progname}"
15307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15316 GDC_FOR_TARGET
=$ac_cv_prog_GDC_FOR_TARGET
15317 if test -n "$GDC_FOR_TARGET"; then
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15319 $as_echo "$GDC_FOR_TARGET" >&6; }
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15322 $as_echo "no" >&6; }
15327 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
15331 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
15333 if test $build = $target ; then
15334 GDC_FOR_TARGET
="$2"
15336 GDC_FOR_TARGET
="${ncn_target_tool_prefix}$2"
15339 GDC_FOR_TARGET
="$ac_cv_prog_GDC_FOR_TARGET"
15344 if test -n "$GM2_FOR_TARGET"; then
15345 ac_cv_prog_GM2_FOR_TARGET
=$GM2_FOR_TARGET
15346 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15347 GM2_FOR_TARGET
=$ac_cv_prog_GM2_FOR_TARGET
15350 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15351 for ncn_progname
in gm2
; do
15352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15353 set dummy
${ncn_progname}; ac_word
=$2
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15355 $as_echo_n "checking for $ac_word... " >&6; }
15356 if ${ac_cv_prog_GM2_FOR_TARGET+:} false
; then :
15357 $as_echo_n "(cached) " >&6
15359 if test -n "$GM2_FOR_TARGET"; then
15360 ac_cv_prog_GM2_FOR_TARGET
="$GM2_FOR_TARGET" # Let the user override the test.
15362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15363 for as_dir
in $PATH
15366 test -z "$as_dir" && as_dir
=.
15367 for ac_exec_ext
in '' $ac_executable_extensions; do
15368 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15369 ac_cv_prog_GM2_FOR_TARGET
="${ncn_progname}"
15370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15379 GM2_FOR_TARGET
=$ac_cv_prog_GM2_FOR_TARGET
15380 if test -n "$GM2_FOR_TARGET"; then
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15382 $as_echo "$GM2_FOR_TARGET" >&6; }
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15385 $as_echo "no" >&6; }
15392 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
15393 for ncn_progname
in gm2
; do
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15395 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15396 if test -x $with_build_time_tools/${ncn_progname}; then
15397 ac_cv_prog_GM2_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15399 $as_echo "yes" >&6; }
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15408 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
15409 for ncn_progname
in gm2
; do
15410 if test -n "$ncn_target_tool_prefix"; then
15411 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15412 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15414 $as_echo_n "checking for $ac_word... " >&6; }
15415 if ${ac_cv_prog_GM2_FOR_TARGET+:} false
; then :
15416 $as_echo_n "(cached) " >&6
15418 if test -n "$GM2_FOR_TARGET"; then
15419 ac_cv_prog_GM2_FOR_TARGET
="$GM2_FOR_TARGET" # Let the user override the test.
15421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15422 for as_dir
in $PATH
15425 test -z "$as_dir" && as_dir
=.
15426 for ac_exec_ext
in '' $ac_executable_extensions; do
15427 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15428 ac_cv_prog_GM2_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
15429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15438 GM2_FOR_TARGET
=$ac_cv_prog_GM2_FOR_TARGET
15439 if test -n "$GM2_FOR_TARGET"; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15441 $as_echo "$GM2_FOR_TARGET" >&6; }
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15444 $as_echo "no" >&6; }
15449 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
15450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15451 set dummy
${ncn_progname}; ac_word
=$2
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15453 $as_echo_n "checking for $ac_word... " >&6; }
15454 if ${ac_cv_prog_GM2_FOR_TARGET+:} false
; then :
15455 $as_echo_n "(cached) " >&6
15457 if test -n "$GM2_FOR_TARGET"; then
15458 ac_cv_prog_GM2_FOR_TARGET
="$GM2_FOR_TARGET" # Let the user override the test.
15460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15461 for as_dir
in $PATH
15464 test -z "$as_dir" && as_dir
=.
15465 for ac_exec_ext
in '' $ac_executable_extensions; do
15466 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15467 ac_cv_prog_GM2_FOR_TARGET
="${ncn_progname}"
15468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15477 GM2_FOR_TARGET
=$ac_cv_prog_GM2_FOR_TARGET
15478 if test -n "$GM2_FOR_TARGET"; then
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15480 $as_echo "$GM2_FOR_TARGET" >&6; }
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15483 $as_echo "no" >&6; }
15488 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
15492 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
15494 if test $build = $target ; then
15495 GM2_FOR_TARGET
="$2"
15497 GM2_FOR_TARGET
="${ncn_target_tool_prefix}$2"
15500 GM2_FOR_TARGET
="$ac_cv_prog_GM2_FOR_TARGET"
15505 cat > conftest.c
<< \EOF
15510 if ($GCC_FOR_TARGET -E conftest.c |
grep gcc_yay
) > /dev
/null
2>&1; then
15511 have_gcc_for_target
=yes
15513 GCC_FOR_TARGET
=${ncn_target_tool_prefix}gcc
15514 have_gcc_for_target
=no
15521 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15522 if test -n "$with_build_time_tools"; then
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
15524 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
15525 if test -x $with_build_time_tools/ar; then
15526 AR_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ar
15527 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
15529 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15532 $as_echo "no" >&6; }
15534 elif test $build != $host && test $have_gcc_for_target = yes; then
15535 AR_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ar`
15536 test $AR_FOR_TARGET = ar && AR_FOR_TARGET
=
15537 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
15540 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15541 # Extract the first word of "ar", so it can be a program name with args.
15542 set dummy
ar; ac_word
=$2
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15544 $as_echo_n "checking for $ac_word... " >&6; }
15545 if ${ac_cv_path_AR_FOR_TARGET+:} false
; then :
15546 $as_echo_n "(cached) " >&6
15548 case $AR_FOR_TARGET in
15550 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a path.
15553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15554 for as_dir
in $gcc_cv_tool_dirs
15557 test -z "$as_dir" && as_dir
=.
15558 for ac_exec_ext
in '' $ac_executable_extensions; do
15559 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15560 ac_cv_path_AR_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
15561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15571 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
15572 if test -n "$AR_FOR_TARGET"; then
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15574 $as_echo "$AR_FOR_TARGET" >&6; }
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577 $as_echo "no" >&6; }
15582 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15585 if test -n "$AR_FOR_TARGET"; then
15586 ac_cv_prog_AR_FOR_TARGET
=$AR_FOR_TARGET
15587 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15588 AR_FOR_TARGET
=$ac_cv_prog_AR_FOR_TARGET
15591 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15592 for ncn_progname
in ar; do
15593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15594 set dummy
${ncn_progname}; ac_word
=$2
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15596 $as_echo_n "checking for $ac_word... " >&6; }
15597 if ${ac_cv_prog_AR_FOR_TARGET+:} false
; then :
15598 $as_echo_n "(cached) " >&6
15600 if test -n "$AR_FOR_TARGET"; then
15601 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
15603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15604 for as_dir
in $PATH
15607 test -z "$as_dir" && as_dir
=.
15608 for ac_exec_ext
in '' $ac_executable_extensions; do
15609 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15610 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
15611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15620 AR_FOR_TARGET
=$ac_cv_prog_AR_FOR_TARGET
15621 if test -n "$AR_FOR_TARGET"; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15623 $as_echo "$AR_FOR_TARGET" >&6; }
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626 $as_echo "no" >&6; }
15633 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
15634 for ncn_progname
in ar; do
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15636 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15637 if test -x $with_build_time_tools/${ncn_progname}; then
15638 ac_cv_prog_AR_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15640 $as_echo "yes" >&6; }
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15644 $as_echo "no" >&6; }
15649 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
15650 for ncn_progname
in ar; do
15651 if test -n "$ncn_target_tool_prefix"; then
15652 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15653 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15655 $as_echo_n "checking for $ac_word... " >&6; }
15656 if ${ac_cv_prog_AR_FOR_TARGET+:} false
; then :
15657 $as_echo_n "(cached) " >&6
15659 if test -n "$AR_FOR_TARGET"; then
15660 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
15662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15663 for as_dir
in $PATH
15666 test -z "$as_dir" && as_dir
=.
15667 for ac_exec_ext
in '' $ac_executable_extensions; do
15668 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15669 ac_cv_prog_AR_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
15670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15679 AR_FOR_TARGET
=$ac_cv_prog_AR_FOR_TARGET
15680 if test -n "$AR_FOR_TARGET"; then
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15682 $as_echo "$AR_FOR_TARGET" >&6; }
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15685 $as_echo "no" >&6; }
15690 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
15691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15692 set dummy
${ncn_progname}; ac_word
=$2
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15694 $as_echo_n "checking for $ac_word... " >&6; }
15695 if ${ac_cv_prog_AR_FOR_TARGET+:} false
; then :
15696 $as_echo_n "(cached) " >&6
15698 if test -n "$AR_FOR_TARGET"; then
15699 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
15701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15702 for as_dir
in $PATH
15705 test -z "$as_dir" && as_dir
=.
15706 for ac_exec_ext
in '' $ac_executable_extensions; do
15707 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15708 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
15709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15718 AR_FOR_TARGET
=$ac_cv_prog_AR_FOR_TARGET
15719 if test -n "$AR_FOR_TARGET"; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15721 $as_echo "$AR_FOR_TARGET" >&6; }
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15724 $as_echo "no" >&6; }
15729 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
15733 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
15735 if test $build = $target ; then
15738 AR_FOR_TARGET
="${ncn_target_tool_prefix}$2"
15741 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
15745 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
15751 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15752 if test -n "$with_build_time_tools"; then
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
15754 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
15755 if test -x $with_build_time_tools/as
; then
15756 AS_FOR_TARGET
=`cd $with_build_time_tools && pwd`/as
15757 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
15759 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762 $as_echo "no" >&6; }
15764 elif test $build != $host && test $have_gcc_for_target = yes; then
15765 AS_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=as`
15766 test $AS_FOR_TARGET = as
&& AS_FOR_TARGET
=
15767 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
15770 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15771 # Extract the first word of "as", so it can be a program name with args.
15772 set dummy as
; ac_word
=$2
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15774 $as_echo_n "checking for $ac_word... " >&6; }
15775 if ${ac_cv_path_AS_FOR_TARGET+:} false
; then :
15776 $as_echo_n "(cached) " >&6
15778 case $AS_FOR_TARGET in
15780 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a path.
15783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15784 for as_dir
in $gcc_cv_tool_dirs
15787 test -z "$as_dir" && as_dir
=.
15788 for ac_exec_ext
in '' $ac_executable_extensions; do
15789 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15790 ac_cv_path_AS_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
15791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15801 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
15802 if test -n "$AS_FOR_TARGET"; then
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15804 $as_echo "$AS_FOR_TARGET" >&6; }
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15807 $as_echo "no" >&6; }
15812 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15815 if test -n "$AS_FOR_TARGET"; then
15816 ac_cv_prog_AS_FOR_TARGET
=$AS_FOR_TARGET
15817 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15818 AS_FOR_TARGET
=$ac_cv_prog_AS_FOR_TARGET
15821 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15822 for ncn_progname
in as
; do
15823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15824 set dummy
${ncn_progname}; ac_word
=$2
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15826 $as_echo_n "checking for $ac_word... " >&6; }
15827 if ${ac_cv_prog_AS_FOR_TARGET+:} false
; then :
15828 $as_echo_n "(cached) " >&6
15830 if test -n "$AS_FOR_TARGET"; then
15831 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
15833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15834 for as_dir
in $PATH
15837 test -z "$as_dir" && as_dir
=.
15838 for ac_exec_ext
in '' $ac_executable_extensions; do
15839 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15840 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
15841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15850 AS_FOR_TARGET
=$ac_cv_prog_AS_FOR_TARGET
15851 if test -n "$AS_FOR_TARGET"; then
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15853 $as_echo "$AS_FOR_TARGET" >&6; }
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856 $as_echo "no" >&6; }
15863 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
15864 for ncn_progname
in as
; do
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15866 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15867 if test -x $with_build_time_tools/${ncn_progname}; then
15868 ac_cv_prog_AS_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15870 $as_echo "yes" >&6; }
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15874 $as_echo "no" >&6; }
15879 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
15880 for ncn_progname
in as
; do
15881 if test -n "$ncn_target_tool_prefix"; then
15882 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15883 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15885 $as_echo_n "checking for $ac_word... " >&6; }
15886 if ${ac_cv_prog_AS_FOR_TARGET+:} false
; then :
15887 $as_echo_n "(cached) " >&6
15889 if test -n "$AS_FOR_TARGET"; then
15890 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
15892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15893 for as_dir
in $PATH
15896 test -z "$as_dir" && as_dir
=.
15897 for ac_exec_ext
in '' $ac_executable_extensions; do
15898 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15899 ac_cv_prog_AS_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
15900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15909 AS_FOR_TARGET
=$ac_cv_prog_AS_FOR_TARGET
15910 if test -n "$AS_FOR_TARGET"; then
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15912 $as_echo "$AS_FOR_TARGET" >&6; }
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915 $as_echo "no" >&6; }
15920 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
15921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15922 set dummy
${ncn_progname}; ac_word
=$2
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15924 $as_echo_n "checking for $ac_word... " >&6; }
15925 if ${ac_cv_prog_AS_FOR_TARGET+:} false
; then :
15926 $as_echo_n "(cached) " >&6
15928 if test -n "$AS_FOR_TARGET"; then
15929 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
15931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15932 for as_dir
in $PATH
15935 test -z "$as_dir" && as_dir
=.
15936 for ac_exec_ext
in '' $ac_executable_extensions; do
15937 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15938 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
15939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15948 AS_FOR_TARGET
=$ac_cv_prog_AS_FOR_TARGET
15949 if test -n "$AS_FOR_TARGET"; then
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15951 $as_echo "$AS_FOR_TARGET" >&6; }
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15954 $as_echo "no" >&6; }
15959 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
15963 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
15965 if test $build = $target ; then
15968 AS_FOR_TARGET
="${ncn_target_tool_prefix}$2"
15971 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
15975 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
15981 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15982 if test -n "$with_build_time_tools"; then
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
15984 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
15985 if test -x $with_build_time_tools/dlltool
; then
15986 DLLTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dlltool
15987 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
15989 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15992 $as_echo "no" >&6; }
15994 elif test $build != $host && test $have_gcc_for_target = yes; then
15995 DLLTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dlltool`
15996 test $DLLTOOL_FOR_TARGET = dlltool
&& DLLTOOL_FOR_TARGET
=
15997 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
16000 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16001 # Extract the first word of "dlltool", so it can be a program name with args.
16002 set dummy dlltool
; ac_word
=$2
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16004 $as_echo_n "checking for $ac_word... " >&6; }
16005 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false
; then :
16006 $as_echo_n "(cached) " >&6
16008 case $DLLTOOL_FOR_TARGET in
16010 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
16013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16014 for as_dir
in $gcc_cv_tool_dirs
16017 test -z "$as_dir" && as_dir
=.
16018 for ac_exec_ext
in '' $ac_executable_extensions; do
16019 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16020 ac_cv_path_DLLTOOL_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
16021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16031 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
16032 if test -n "$DLLTOOL_FOR_TARGET"; then
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16034 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16037 $as_echo "no" >&6; }
16042 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
16045 if test -n "$DLLTOOL_FOR_TARGET"; then
16046 ac_cv_prog_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
16047 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16048 DLLTOOL_FOR_TARGET
=$ac_cv_prog_DLLTOOL_FOR_TARGET
16051 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16052 for ncn_progname
in dlltool
; do
16053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16054 set dummy
${ncn_progname}; ac_word
=$2
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16056 $as_echo_n "checking for $ac_word... " >&6; }
16057 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false
; then :
16058 $as_echo_n "(cached) " >&6
16060 if test -n "$DLLTOOL_FOR_TARGET"; then
16061 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16064 for as_dir
in $PATH
16067 test -z "$as_dir" && as_dir
=.
16068 for ac_exec_ext
in '' $ac_executable_extensions; do
16069 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16070 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
16071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16080 DLLTOOL_FOR_TARGET
=$ac_cv_prog_DLLTOOL_FOR_TARGET
16081 if test -n "$DLLTOOL_FOR_TARGET"; then
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16083 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16086 $as_echo "no" >&6; }
16093 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16094 for ncn_progname
in dlltool
; do
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16096 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16097 if test -x $with_build_time_tools/${ncn_progname}; then
16098 ac_cv_prog_DLLTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16100 $as_echo "yes" >&6; }
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16104 $as_echo "no" >&6; }
16109 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16110 for ncn_progname
in dlltool
; do
16111 if test -n "$ncn_target_tool_prefix"; then
16112 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16113 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115 $as_echo_n "checking for $ac_word... " >&6; }
16116 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false
; then :
16117 $as_echo_n "(cached) " >&6
16119 if test -n "$DLLTOOL_FOR_TARGET"; then
16120 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16123 for as_dir
in $PATH
16126 test -z "$as_dir" && as_dir
=.
16127 for ac_exec_ext
in '' $ac_executable_extensions; do
16128 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16129 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
16130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16139 DLLTOOL_FOR_TARGET
=$ac_cv_prog_DLLTOOL_FOR_TARGET
16140 if test -n "$DLLTOOL_FOR_TARGET"; then
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16142 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145 $as_echo "no" >&6; }
16150 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
16151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16152 set dummy
${ncn_progname}; ac_word
=$2
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16154 $as_echo_n "checking for $ac_word... " >&6; }
16155 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false
; then :
16156 $as_echo_n "(cached) " >&6
16158 if test -n "$DLLTOOL_FOR_TARGET"; then
16159 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16162 for as_dir
in $PATH
16165 test -z "$as_dir" && as_dir
=.
16166 for ac_exec_ext
in '' $ac_executable_extensions; do
16167 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16168 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
16169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16178 DLLTOOL_FOR_TARGET
=$ac_cv_prog_DLLTOOL_FOR_TARGET
16179 if test -n "$DLLTOOL_FOR_TARGET"; then
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16181 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184 $as_echo "no" >&6; }
16189 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
16193 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
16195 if test $build = $target ; then
16196 DLLTOOL_FOR_TARGET
="$2"
16198 DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
16201 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
16205 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
16211 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16212 if test -n "$with_build_time_tools"; then
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
16214 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
16215 if test -x $with_build_time_tools/dsymutil
; then
16216 DSYMUTIL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dsymutil
16217 ac_cv_path_DSYMUTIL_FOR_TARGET
=$DSYMUTIL_FOR_TARGET
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
16219 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222 $as_echo "no" >&6; }
16224 elif test $build != $host && test $have_gcc_for_target = yes; then
16225 DSYMUTIL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
16226 test $DSYMUTIL_FOR_TARGET = dsymutil
&& DSYMUTIL_FOR_TARGET
=
16227 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET
=$DSYMUTIL_FOR_TARGET
16230 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16231 # Extract the first word of "dsymutil", so it can be a program name with args.
16232 set dummy dsymutil
; ac_word
=$2
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16234 $as_echo_n "checking for $ac_word... " >&6; }
16235 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false
; then :
16236 $as_echo_n "(cached) " >&6
16238 case $DSYMUTIL_FOR_TARGET in
16240 ac_cv_path_DSYMUTIL_FOR_TARGET
="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
16243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16244 for as_dir
in $gcc_cv_tool_dirs
16247 test -z "$as_dir" && as_dir
=.
16248 for ac_exec_ext
in '' $ac_executable_extensions; do
16249 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16250 ac_cv_path_DSYMUTIL_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
16251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16261 DSYMUTIL_FOR_TARGET
=$ac_cv_path_DSYMUTIL_FOR_TARGET
16262 if test -n "$DSYMUTIL_FOR_TARGET"; then
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16264 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16267 $as_echo "no" >&6; }
16272 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16275 if test -n "$DSYMUTIL_FOR_TARGET"; then
16276 ac_cv_prog_DSYMUTIL_FOR_TARGET
=$DSYMUTIL_FOR_TARGET
16277 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16278 DSYMUTIL_FOR_TARGET
=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16281 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16282 for ncn_progname
in dsymutil
; do
16283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16284 set dummy
${ncn_progname}; ac_word
=$2
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16286 $as_echo_n "checking for $ac_word... " >&6; }
16287 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false
; then :
16288 $as_echo_n "(cached) " >&6
16290 if test -n "$DSYMUTIL_FOR_TARGET"; then
16291 ac_cv_prog_DSYMUTIL_FOR_TARGET
="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16294 for as_dir
in $PATH
16297 test -z "$as_dir" && as_dir
=.
16298 for ac_exec_ext
in '' $ac_executable_extensions; do
16299 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16300 ac_cv_prog_DSYMUTIL_FOR_TARGET
="${ncn_progname}"
16301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16310 DSYMUTIL_FOR_TARGET
=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16311 if test -n "$DSYMUTIL_FOR_TARGET"; then
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16313 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16316 $as_echo "no" >&6; }
16323 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16324 for ncn_progname
in dsymutil
; do
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16326 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16327 if test -x $with_build_time_tools/${ncn_progname}; then
16328 ac_cv_prog_DSYMUTIL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16330 $as_echo "yes" >&6; }
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16334 $as_echo "no" >&6; }
16339 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16340 for ncn_progname
in dsymutil
; do
16341 if test -n "$ncn_target_tool_prefix"; then
16342 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16343 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16345 $as_echo_n "checking for $ac_word... " >&6; }
16346 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false
; then :
16347 $as_echo_n "(cached) " >&6
16349 if test -n "$DSYMUTIL_FOR_TARGET"; then
16350 ac_cv_prog_DSYMUTIL_FOR_TARGET
="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16353 for as_dir
in $PATH
16356 test -z "$as_dir" && as_dir
=.
16357 for ac_exec_ext
in '' $ac_executable_extensions; do
16358 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16359 ac_cv_prog_DSYMUTIL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
16360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16369 DSYMUTIL_FOR_TARGET
=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16370 if test -n "$DSYMUTIL_FOR_TARGET"; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16372 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16375 $as_echo "no" >&6; }
16380 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
16381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16382 set dummy
${ncn_progname}; ac_word
=$2
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16384 $as_echo_n "checking for $ac_word... " >&6; }
16385 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false
; then :
16386 $as_echo_n "(cached) " >&6
16388 if test -n "$DSYMUTIL_FOR_TARGET"; then
16389 ac_cv_prog_DSYMUTIL_FOR_TARGET
="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16392 for as_dir
in $PATH
16395 test -z "$as_dir" && as_dir
=.
16396 for ac_exec_ext
in '' $ac_executable_extensions; do
16397 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16398 ac_cv_prog_DSYMUTIL_FOR_TARGET
="${ncn_progname}"
16399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16408 DSYMUTIL_FOR_TARGET
=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16409 if test -n "$DSYMUTIL_FOR_TARGET"; then
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16411 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16414 $as_echo "no" >&6; }
16419 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
16423 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
16425 if test $build = $target ; then
16426 DSYMUTIL_FOR_TARGET
="$2"
16428 DSYMUTIL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
16431 DSYMUTIL_FOR_TARGET
="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
16435 DSYMUTIL_FOR_TARGET
=$ac_cv_path_DSYMUTIL_FOR_TARGET
16441 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16442 if test -n "$with_build_time_tools"; then
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
16444 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
16445 if test -x $with_build_time_tools/ld
; then
16446 LD_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ld
16447 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
16449 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452 $as_echo "no" >&6; }
16454 elif test $build != $host && test $have_gcc_for_target = yes; then
16455 LD_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ld`
16456 test $LD_FOR_TARGET = ld
&& LD_FOR_TARGET
=
16457 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
16460 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16461 # Extract the first word of "ld", so it can be a program name with args.
16462 set dummy ld
; ac_word
=$2
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16464 $as_echo_n "checking for $ac_word... " >&6; }
16465 if ${ac_cv_path_LD_FOR_TARGET+:} false
; then :
16466 $as_echo_n "(cached) " >&6
16468 case $LD_FOR_TARGET in
16470 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a path.
16473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16474 for as_dir
in $gcc_cv_tool_dirs
16477 test -z "$as_dir" && as_dir
=.
16478 for ac_exec_ext
in '' $ac_executable_extensions; do
16479 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16480 ac_cv_path_LD_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
16481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16491 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
16492 if test -n "$LD_FOR_TARGET"; then
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16494 $as_echo "$LD_FOR_TARGET" >&6; }
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16497 $as_echo "no" >&6; }
16502 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16505 if test -n "$LD_FOR_TARGET"; then
16506 ac_cv_prog_LD_FOR_TARGET
=$LD_FOR_TARGET
16507 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16508 LD_FOR_TARGET
=$ac_cv_prog_LD_FOR_TARGET
16511 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16512 for ncn_progname
in ld
; do
16513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16514 set dummy
${ncn_progname}; ac_word
=$2
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16516 $as_echo_n "checking for $ac_word... " >&6; }
16517 if ${ac_cv_prog_LD_FOR_TARGET+:} false
; then :
16518 $as_echo_n "(cached) " >&6
16520 if test -n "$LD_FOR_TARGET"; then
16521 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
16523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16524 for as_dir
in $PATH
16527 test -z "$as_dir" && as_dir
=.
16528 for ac_exec_ext
in '' $ac_executable_extensions; do
16529 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16530 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
16531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16540 LD_FOR_TARGET
=$ac_cv_prog_LD_FOR_TARGET
16541 if test -n "$LD_FOR_TARGET"; then
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16543 $as_echo "$LD_FOR_TARGET" >&6; }
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546 $as_echo "no" >&6; }
16553 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
16554 for ncn_progname
in ld
; do
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16556 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16557 if test -x $with_build_time_tools/${ncn_progname}; then
16558 ac_cv_prog_LD_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16560 $as_echo "yes" >&6; }
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16564 $as_echo "no" >&6; }
16569 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
16570 for ncn_progname
in ld
; do
16571 if test -n "$ncn_target_tool_prefix"; then
16572 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16573 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16575 $as_echo_n "checking for $ac_word... " >&6; }
16576 if ${ac_cv_prog_LD_FOR_TARGET+:} false
; then :
16577 $as_echo_n "(cached) " >&6
16579 if test -n "$LD_FOR_TARGET"; then
16580 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
16582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16583 for as_dir
in $PATH
16586 test -z "$as_dir" && as_dir
=.
16587 for ac_exec_ext
in '' $ac_executable_extensions; do
16588 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16589 ac_cv_prog_LD_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
16590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16599 LD_FOR_TARGET
=$ac_cv_prog_LD_FOR_TARGET
16600 if test -n "$LD_FOR_TARGET"; then
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16602 $as_echo "$LD_FOR_TARGET" >&6; }
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16605 $as_echo "no" >&6; }
16610 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
16611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16612 set dummy
${ncn_progname}; ac_word
=$2
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16614 $as_echo_n "checking for $ac_word... " >&6; }
16615 if ${ac_cv_prog_LD_FOR_TARGET+:} false
; then :
16616 $as_echo_n "(cached) " >&6
16618 if test -n "$LD_FOR_TARGET"; then
16619 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
16621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16622 for as_dir
in $PATH
16625 test -z "$as_dir" && as_dir
=.
16626 for ac_exec_ext
in '' $ac_executable_extensions; do
16627 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16628 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
16629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16638 LD_FOR_TARGET
=$ac_cv_prog_LD_FOR_TARGET
16639 if test -n "$LD_FOR_TARGET"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16641 $as_echo "$LD_FOR_TARGET" >&6; }
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16644 $as_echo "no" >&6; }
16649 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
16653 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
16655 if test $build = $target ; then
16658 LD_FOR_TARGET
="${ncn_target_tool_prefix}$2"
16661 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
16665 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
16671 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16672 if test -n "$with_build_time_tools"; then
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
16674 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
16675 if test -x $with_build_time_tools/lipo
; then
16676 LIPO_FOR_TARGET
=`cd $with_build_time_tools && pwd`/lipo
16677 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
16679 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16682 $as_echo "no" >&6; }
16684 elif test $build != $host && test $have_gcc_for_target = yes; then
16685 LIPO_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=lipo`
16686 test $LIPO_FOR_TARGET = lipo
&& LIPO_FOR_TARGET
=
16687 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
16690 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16691 # Extract the first word of "lipo", so it can be a program name with args.
16692 set dummy lipo
; ac_word
=$2
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16694 $as_echo_n "checking for $ac_word... " >&6; }
16695 if ${ac_cv_path_LIPO_FOR_TARGET+:} false
; then :
16696 $as_echo_n "(cached) " >&6
16698 case $LIPO_FOR_TARGET in
16700 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a path.
16703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16704 for as_dir
in $gcc_cv_tool_dirs
16707 test -z "$as_dir" && as_dir
=.
16708 for ac_exec_ext
in '' $ac_executable_extensions; do
16709 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16710 ac_cv_path_LIPO_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
16711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16721 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
16722 if test -n "$LIPO_FOR_TARGET"; then
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16724 $as_echo "$LIPO_FOR_TARGET" >&6; }
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16727 $as_echo "no" >&6; }
16732 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16735 if test -n "$LIPO_FOR_TARGET"; then
16736 ac_cv_prog_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
16737 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16738 LIPO_FOR_TARGET
=$ac_cv_prog_LIPO_FOR_TARGET
16741 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16742 for ncn_progname
in lipo
; do
16743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16744 set dummy
${ncn_progname}; ac_word
=$2
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16746 $as_echo_n "checking for $ac_word... " >&6; }
16747 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false
; then :
16748 $as_echo_n "(cached) " >&6
16750 if test -n "$LIPO_FOR_TARGET"; then
16751 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
16753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16754 for as_dir
in $PATH
16757 test -z "$as_dir" && as_dir
=.
16758 for ac_exec_ext
in '' $ac_executable_extensions; do
16759 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16760 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
16761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16770 LIPO_FOR_TARGET
=$ac_cv_prog_LIPO_FOR_TARGET
16771 if test -n "$LIPO_FOR_TARGET"; then
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16773 $as_echo "$LIPO_FOR_TARGET" >&6; }
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16776 $as_echo "no" >&6; }
16783 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
16784 for ncn_progname
in lipo
; do
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16786 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16787 if test -x $with_build_time_tools/${ncn_progname}; then
16788 ac_cv_prog_LIPO_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16790 $as_echo "yes" >&6; }
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16794 $as_echo "no" >&6; }
16799 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
16800 for ncn_progname
in lipo
; do
16801 if test -n "$ncn_target_tool_prefix"; then
16802 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16803 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16805 $as_echo_n "checking for $ac_word... " >&6; }
16806 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false
; then :
16807 $as_echo_n "(cached) " >&6
16809 if test -n "$LIPO_FOR_TARGET"; then
16810 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
16812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16813 for as_dir
in $PATH
16816 test -z "$as_dir" && as_dir
=.
16817 for ac_exec_ext
in '' $ac_executable_extensions; do
16818 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16819 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
16820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16829 LIPO_FOR_TARGET
=$ac_cv_prog_LIPO_FOR_TARGET
16830 if test -n "$LIPO_FOR_TARGET"; then
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16832 $as_echo "$LIPO_FOR_TARGET" >&6; }
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16835 $as_echo "no" >&6; }
16840 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
16841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16842 set dummy
${ncn_progname}; ac_word
=$2
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16844 $as_echo_n "checking for $ac_word... " >&6; }
16845 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false
; then :
16846 $as_echo_n "(cached) " >&6
16848 if test -n "$LIPO_FOR_TARGET"; then
16849 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
16851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16852 for as_dir
in $PATH
16855 test -z "$as_dir" && as_dir
=.
16856 for ac_exec_ext
in '' $ac_executable_extensions; do
16857 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16858 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
16859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16868 LIPO_FOR_TARGET
=$ac_cv_prog_LIPO_FOR_TARGET
16869 if test -n "$LIPO_FOR_TARGET"; then
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16871 $as_echo "$LIPO_FOR_TARGET" >&6; }
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16874 $as_echo "no" >&6; }
16879 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
16883 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
16885 if test $build = $target ; then
16886 LIPO_FOR_TARGET
="$2"
16888 LIPO_FOR_TARGET
="${ncn_target_tool_prefix}$2"
16891 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
16895 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
16901 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16902 if test -n "$with_build_time_tools"; then
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
16904 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
16905 if test -x $with_build_time_tools/nm
; then
16906 NM_FOR_TARGET
=`cd $with_build_time_tools && pwd`/nm
16907 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
16909 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16912 $as_echo "no" >&6; }
16914 elif test $build != $host && test $have_gcc_for_target = yes; then
16915 NM_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=nm`
16916 test $NM_FOR_TARGET = nm
&& NM_FOR_TARGET
=
16917 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
16920 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16921 # Extract the first word of "nm", so it can be a program name with args.
16922 set dummy nm
; ac_word
=$2
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16924 $as_echo_n "checking for $ac_word... " >&6; }
16925 if ${ac_cv_path_NM_FOR_TARGET+:} false
; then :
16926 $as_echo_n "(cached) " >&6
16928 case $NM_FOR_TARGET in
16930 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a path.
16933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16934 for as_dir
in $gcc_cv_tool_dirs
16937 test -z "$as_dir" && as_dir
=.
16938 for ac_exec_ext
in '' $ac_executable_extensions; do
16939 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16940 ac_cv_path_NM_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
16941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16951 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
16952 if test -n "$NM_FOR_TARGET"; then
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16954 $as_echo "$NM_FOR_TARGET" >&6; }
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16957 $as_echo "no" >&6; }
16962 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16965 if test -n "$NM_FOR_TARGET"; then
16966 ac_cv_prog_NM_FOR_TARGET
=$NM_FOR_TARGET
16967 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16968 NM_FOR_TARGET
=$ac_cv_prog_NM_FOR_TARGET
16971 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16972 for ncn_progname
in nm
; do
16973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16974 set dummy
${ncn_progname}; ac_word
=$2
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16976 $as_echo_n "checking for $ac_word... " >&6; }
16977 if ${ac_cv_prog_NM_FOR_TARGET+:} false
; then :
16978 $as_echo_n "(cached) " >&6
16980 if test -n "$NM_FOR_TARGET"; then
16981 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
16983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16984 for as_dir
in $PATH
16987 test -z "$as_dir" && as_dir
=.
16988 for ac_exec_ext
in '' $ac_executable_extensions; do
16989 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16990 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
16991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17000 NM_FOR_TARGET
=$ac_cv_prog_NM_FOR_TARGET
17001 if test -n "$NM_FOR_TARGET"; then
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
17003 $as_echo "$NM_FOR_TARGET" >&6; }
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17006 $as_echo "no" >&6; }
17013 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
17014 for ncn_progname
in nm
; do
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17016 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17017 if test -x $with_build_time_tools/${ncn_progname}; then
17018 ac_cv_prog_NM_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17020 $as_echo "yes" >&6; }
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024 $as_echo "no" >&6; }
17029 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
17030 for ncn_progname
in nm
; do
17031 if test -n "$ncn_target_tool_prefix"; then
17032 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17033 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17035 $as_echo_n "checking for $ac_word... " >&6; }
17036 if ${ac_cv_prog_NM_FOR_TARGET+:} false
; then :
17037 $as_echo_n "(cached) " >&6
17039 if test -n "$NM_FOR_TARGET"; then
17040 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
17042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17043 for as_dir
in $PATH
17046 test -z "$as_dir" && as_dir
=.
17047 for ac_exec_ext
in '' $ac_executable_extensions; do
17048 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17049 ac_cv_prog_NM_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
17050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17059 NM_FOR_TARGET
=$ac_cv_prog_NM_FOR_TARGET
17060 if test -n "$NM_FOR_TARGET"; then
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
17062 $as_echo "$NM_FOR_TARGET" >&6; }
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17065 $as_echo "no" >&6; }
17070 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
17071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17072 set dummy
${ncn_progname}; ac_word
=$2
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17074 $as_echo_n "checking for $ac_word... " >&6; }
17075 if ${ac_cv_prog_NM_FOR_TARGET+:} false
; then :
17076 $as_echo_n "(cached) " >&6
17078 if test -n "$NM_FOR_TARGET"; then
17079 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
17081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17082 for as_dir
in $PATH
17085 test -z "$as_dir" && as_dir
=.
17086 for ac_exec_ext
in '' $ac_executable_extensions; do
17087 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17088 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
17089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17098 NM_FOR_TARGET
=$ac_cv_prog_NM_FOR_TARGET
17099 if test -n "$NM_FOR_TARGET"; then
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
17101 $as_echo "$NM_FOR_TARGET" >&6; }
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17104 $as_echo "no" >&6; }
17109 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
17113 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
17115 if test $build = $target ; then
17118 NM_FOR_TARGET
="${ncn_target_tool_prefix}$2"
17121 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
17125 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
17131 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17132 if test -n "$with_build_time_tools"; then
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
17134 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
17135 if test -x $with_build_time_tools/objcopy
; then
17136 OBJCOPY_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objcopy
17137 ac_cv_path_OBJCOPY_FOR_TARGET
=$OBJCOPY_FOR_TARGET
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
17139 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17142 $as_echo "no" >&6; }
17144 elif test $build != $host && test $have_gcc_for_target = yes; then
17145 OBJCOPY_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objcopy`
17146 test $OBJCOPY_FOR_TARGET = objcopy
&& OBJCOPY_FOR_TARGET
=
17147 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET
=$OBJCOPY_FOR_TARGET
17150 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17151 # Extract the first word of "objcopy", so it can be a program name with args.
17152 set dummy objcopy
; ac_word
=$2
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17154 $as_echo_n "checking for $ac_word... " >&6; }
17155 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false
; then :
17156 $as_echo_n "(cached) " >&6
17158 case $OBJCOPY_FOR_TARGET in
17160 ac_cv_path_OBJCOPY_FOR_TARGET
="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
17163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17164 for as_dir
in $gcc_cv_tool_dirs
17167 test -z "$as_dir" && as_dir
=.
17168 for ac_exec_ext
in '' $ac_executable_extensions; do
17169 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17170 ac_cv_path_OBJCOPY_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
17171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17181 OBJCOPY_FOR_TARGET
=$ac_cv_path_OBJCOPY_FOR_TARGET
17182 if test -n "$OBJCOPY_FOR_TARGET"; then
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17184 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187 $as_echo "no" >&6; }
17192 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17195 if test -n "$OBJCOPY_FOR_TARGET"; then
17196 ac_cv_prog_OBJCOPY_FOR_TARGET
=$OBJCOPY_FOR_TARGET
17197 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17198 OBJCOPY_FOR_TARGET
=$ac_cv_prog_OBJCOPY_FOR_TARGET
17201 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17202 for ncn_progname
in objcopy
; do
17203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17204 set dummy
${ncn_progname}; ac_word
=$2
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17206 $as_echo_n "checking for $ac_word... " >&6; }
17207 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false
; then :
17208 $as_echo_n "(cached) " >&6
17210 if test -n "$OBJCOPY_FOR_TARGET"; then
17211 ac_cv_prog_OBJCOPY_FOR_TARGET
="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17214 for as_dir
in $PATH
17217 test -z "$as_dir" && as_dir
=.
17218 for ac_exec_ext
in '' $ac_executable_extensions; do
17219 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17220 ac_cv_prog_OBJCOPY_FOR_TARGET
="${ncn_progname}"
17221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17230 OBJCOPY_FOR_TARGET
=$ac_cv_prog_OBJCOPY_FOR_TARGET
17231 if test -n "$OBJCOPY_FOR_TARGET"; then
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17233 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17236 $as_echo "no" >&6; }
17243 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
17244 for ncn_progname
in objcopy
; do
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17246 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17247 if test -x $with_build_time_tools/${ncn_progname}; then
17248 ac_cv_prog_OBJCOPY_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17250 $as_echo "yes" >&6; }
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17254 $as_echo "no" >&6; }
17259 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17260 for ncn_progname
in objcopy
; do
17261 if test -n "$ncn_target_tool_prefix"; then
17262 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17263 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17265 $as_echo_n "checking for $ac_word... " >&6; }
17266 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false
; then :
17267 $as_echo_n "(cached) " >&6
17269 if test -n "$OBJCOPY_FOR_TARGET"; then
17270 ac_cv_prog_OBJCOPY_FOR_TARGET
="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17273 for as_dir
in $PATH
17276 test -z "$as_dir" && as_dir
=.
17277 for ac_exec_ext
in '' $ac_executable_extensions; do
17278 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17279 ac_cv_prog_OBJCOPY_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
17280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17289 OBJCOPY_FOR_TARGET
=$ac_cv_prog_OBJCOPY_FOR_TARGET
17290 if test -n "$OBJCOPY_FOR_TARGET"; then
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17292 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17295 $as_echo "no" >&6; }
17300 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
17301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17302 set dummy
${ncn_progname}; ac_word
=$2
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17304 $as_echo_n "checking for $ac_word... " >&6; }
17305 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false
; then :
17306 $as_echo_n "(cached) " >&6
17308 if test -n "$OBJCOPY_FOR_TARGET"; then
17309 ac_cv_prog_OBJCOPY_FOR_TARGET
="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17312 for as_dir
in $PATH
17315 test -z "$as_dir" && as_dir
=.
17316 for ac_exec_ext
in '' $ac_executable_extensions; do
17317 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17318 ac_cv_prog_OBJCOPY_FOR_TARGET
="${ncn_progname}"
17319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17328 OBJCOPY_FOR_TARGET
=$ac_cv_prog_OBJCOPY_FOR_TARGET
17329 if test -n "$OBJCOPY_FOR_TARGET"; then
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17331 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334 $as_echo "no" >&6; }
17339 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
17343 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
17345 if test $build = $target ; then
17346 OBJCOPY_FOR_TARGET
="$2"
17348 OBJCOPY_FOR_TARGET
="${ncn_target_tool_prefix}$2"
17351 OBJCOPY_FOR_TARGET
="$ac_cv_prog_OBJCOPY_FOR_TARGET"
17355 OBJCOPY_FOR_TARGET
=$ac_cv_path_OBJCOPY_FOR_TARGET
17361 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17362 if test -n "$with_build_time_tools"; then
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
17364 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
17365 if test -x $with_build_time_tools/objdump
; then
17366 OBJDUMP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objdump
17367 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
17369 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372 $as_echo "no" >&6; }
17374 elif test $build != $host && test $have_gcc_for_target = yes; then
17375 OBJDUMP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objdump`
17376 test $OBJDUMP_FOR_TARGET = objdump
&& OBJDUMP_FOR_TARGET
=
17377 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
17380 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17381 # Extract the first word of "objdump", so it can be a program name with args.
17382 set dummy objdump
; ac_word
=$2
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17384 $as_echo_n "checking for $ac_word... " >&6; }
17385 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false
; then :
17386 $as_echo_n "(cached) " >&6
17388 case $OBJDUMP_FOR_TARGET in
17390 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
17393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17394 for as_dir
in $gcc_cv_tool_dirs
17397 test -z "$as_dir" && as_dir
=.
17398 for ac_exec_ext
in '' $ac_executable_extensions; do
17399 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17400 ac_cv_path_OBJDUMP_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
17401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17411 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
17412 if test -n "$OBJDUMP_FOR_TARGET"; then
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17414 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17417 $as_echo "no" >&6; }
17422 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17425 if test -n "$OBJDUMP_FOR_TARGET"; then
17426 ac_cv_prog_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
17427 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17428 OBJDUMP_FOR_TARGET
=$ac_cv_prog_OBJDUMP_FOR_TARGET
17431 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17432 for ncn_progname
in objdump
; do
17433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17434 set dummy
${ncn_progname}; ac_word
=$2
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17436 $as_echo_n "checking for $ac_word... " >&6; }
17437 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false
; then :
17438 $as_echo_n "(cached) " >&6
17440 if test -n "$OBJDUMP_FOR_TARGET"; then
17441 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17444 for as_dir
in $PATH
17447 test -z "$as_dir" && as_dir
=.
17448 for ac_exec_ext
in '' $ac_executable_extensions; do
17449 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17450 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
17451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17460 OBJDUMP_FOR_TARGET
=$ac_cv_prog_OBJDUMP_FOR_TARGET
17461 if test -n "$OBJDUMP_FOR_TARGET"; then
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17463 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17466 $as_echo "no" >&6; }
17473 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17474 for ncn_progname
in objdump
; do
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17476 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17477 if test -x $with_build_time_tools/${ncn_progname}; then
17478 ac_cv_prog_OBJDUMP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17480 $as_echo "yes" >&6; }
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17484 $as_echo "no" >&6; }
17489 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17490 for ncn_progname
in objdump
; do
17491 if test -n "$ncn_target_tool_prefix"; then
17492 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17493 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17495 $as_echo_n "checking for $ac_word... " >&6; }
17496 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false
; then :
17497 $as_echo_n "(cached) " >&6
17499 if test -n "$OBJDUMP_FOR_TARGET"; then
17500 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17503 for as_dir
in $PATH
17506 test -z "$as_dir" && as_dir
=.
17507 for ac_exec_ext
in '' $ac_executable_extensions; do
17508 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17509 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
17510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17519 OBJDUMP_FOR_TARGET
=$ac_cv_prog_OBJDUMP_FOR_TARGET
17520 if test -n "$OBJDUMP_FOR_TARGET"; then
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17522 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17525 $as_echo "no" >&6; }
17530 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
17531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17532 set dummy
${ncn_progname}; ac_word
=$2
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17534 $as_echo_n "checking for $ac_word... " >&6; }
17535 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false
; then :
17536 $as_echo_n "(cached) " >&6
17538 if test -n "$OBJDUMP_FOR_TARGET"; then
17539 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17542 for as_dir
in $PATH
17545 test -z "$as_dir" && as_dir
=.
17546 for ac_exec_ext
in '' $ac_executable_extensions; do
17547 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17548 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
17549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17558 OBJDUMP_FOR_TARGET
=$ac_cv_prog_OBJDUMP_FOR_TARGET
17559 if test -n "$OBJDUMP_FOR_TARGET"; then
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17561 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17564 $as_echo "no" >&6; }
17569 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
17573 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
17575 if test $build = $target ; then
17576 OBJDUMP_FOR_TARGET
="$2"
17578 OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
17581 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
17585 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
17591 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17592 if test -n "$with_build_time_tools"; then
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
17594 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
17595 if test -x $with_build_time_tools/otool
; then
17596 OTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/otool
17597 ac_cv_path_OTOOL_FOR_TARGET
=$OTOOL_FOR_TARGET
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
17599 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17602 $as_echo "no" >&6; }
17604 elif test $build != $host && test $have_gcc_for_target = yes; then
17605 OTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=otool`
17606 test $OTOOL_FOR_TARGET = otool
&& OTOOL_FOR_TARGET
=
17607 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET
=$OTOOL_FOR_TARGET
17610 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17611 # Extract the first word of "otool", so it can be a program name with args.
17612 set dummy otool
; ac_word
=$2
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17614 $as_echo_n "checking for $ac_word... " >&6; }
17615 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false
; then :
17616 $as_echo_n "(cached) " >&6
17618 case $OTOOL_FOR_TARGET in
17620 ac_cv_path_OTOOL_FOR_TARGET
="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
17623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17624 for as_dir
in $gcc_cv_tool_dirs
17627 test -z "$as_dir" && as_dir
=.
17628 for ac_exec_ext
in '' $ac_executable_extensions; do
17629 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17630 ac_cv_path_OTOOL_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
17631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17641 OTOOL_FOR_TARGET
=$ac_cv_path_OTOOL_FOR_TARGET
17642 if test -n "$OTOOL_FOR_TARGET"; then
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17644 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17647 $as_echo "no" >&6; }
17652 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17655 if test -n "$OTOOL_FOR_TARGET"; then
17656 ac_cv_prog_OTOOL_FOR_TARGET
=$OTOOL_FOR_TARGET
17657 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17658 OTOOL_FOR_TARGET
=$ac_cv_prog_OTOOL_FOR_TARGET
17661 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17662 for ncn_progname
in otool
; do
17663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17664 set dummy
${ncn_progname}; ac_word
=$2
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17666 $as_echo_n "checking for $ac_word... " >&6; }
17667 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false
; then :
17668 $as_echo_n "(cached) " >&6
17670 if test -n "$OTOOL_FOR_TARGET"; then
17671 ac_cv_prog_OTOOL_FOR_TARGET
="$OTOOL_FOR_TARGET" # Let the user override the test.
17673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17674 for as_dir
in $PATH
17677 test -z "$as_dir" && as_dir
=.
17678 for ac_exec_ext
in '' $ac_executable_extensions; do
17679 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17680 ac_cv_prog_OTOOL_FOR_TARGET
="${ncn_progname}"
17681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17690 OTOOL_FOR_TARGET
=$ac_cv_prog_OTOOL_FOR_TARGET
17691 if test -n "$OTOOL_FOR_TARGET"; then
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17693 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17696 $as_echo "no" >&6; }
17703 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
17704 for ncn_progname
in otool
; do
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17706 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17707 if test -x $with_build_time_tools/${ncn_progname}; then
17708 ac_cv_prog_OTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17710 $as_echo "yes" >&6; }
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714 $as_echo "no" >&6; }
17719 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17720 for ncn_progname
in otool
; do
17721 if test -n "$ncn_target_tool_prefix"; then
17722 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17723 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17725 $as_echo_n "checking for $ac_word... " >&6; }
17726 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false
; then :
17727 $as_echo_n "(cached) " >&6
17729 if test -n "$OTOOL_FOR_TARGET"; then
17730 ac_cv_prog_OTOOL_FOR_TARGET
="$OTOOL_FOR_TARGET" # Let the user override the test.
17732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17733 for as_dir
in $PATH
17736 test -z "$as_dir" && as_dir
=.
17737 for ac_exec_ext
in '' $ac_executable_extensions; do
17738 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17739 ac_cv_prog_OTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
17740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17749 OTOOL_FOR_TARGET
=$ac_cv_prog_OTOOL_FOR_TARGET
17750 if test -n "$OTOOL_FOR_TARGET"; then
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17752 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17755 $as_echo "no" >&6; }
17760 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
17761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17762 set dummy
${ncn_progname}; ac_word
=$2
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17764 $as_echo_n "checking for $ac_word... " >&6; }
17765 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false
; then :
17766 $as_echo_n "(cached) " >&6
17768 if test -n "$OTOOL_FOR_TARGET"; then
17769 ac_cv_prog_OTOOL_FOR_TARGET
="$OTOOL_FOR_TARGET" # Let the user override the test.
17771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17772 for as_dir
in $PATH
17775 test -z "$as_dir" && as_dir
=.
17776 for ac_exec_ext
in '' $ac_executable_extensions; do
17777 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17778 ac_cv_prog_OTOOL_FOR_TARGET
="${ncn_progname}"
17779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17788 OTOOL_FOR_TARGET
=$ac_cv_prog_OTOOL_FOR_TARGET
17789 if test -n "$OTOOL_FOR_TARGET"; then
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17791 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17794 $as_echo "no" >&6; }
17799 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
17803 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
17805 if test $build = $target ; then
17806 OTOOL_FOR_TARGET
="$2"
17808 OTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
17811 OTOOL_FOR_TARGET
="$ac_cv_prog_OTOOL_FOR_TARGET"
17815 OTOOL_FOR_TARGET
=$ac_cv_path_OTOOL_FOR_TARGET
17821 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17822 if test -n "$with_build_time_tools"; then
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
17824 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
17825 if test -x $with_build_time_tools/ranlib
; then
17826 RANLIB_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ranlib
17827 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
17829 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17832 $as_echo "no" >&6; }
17834 elif test $build != $host && test $have_gcc_for_target = yes; then
17835 RANLIB_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ranlib`
17836 test $RANLIB_FOR_TARGET = ranlib
&& RANLIB_FOR_TARGET
=
17837 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
17840 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17841 # Extract the first word of "ranlib", so it can be a program name with args.
17842 set dummy ranlib
; ac_word
=$2
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17844 $as_echo_n "checking for $ac_word... " >&6; }
17845 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false
; then :
17846 $as_echo_n "(cached) " >&6
17848 case $RANLIB_FOR_TARGET in
17850 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
17853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17854 for as_dir
in $gcc_cv_tool_dirs
17857 test -z "$as_dir" && as_dir
=.
17858 for ac_exec_ext
in '' $ac_executable_extensions; do
17859 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17860 ac_cv_path_RANLIB_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
17861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17871 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
17872 if test -n "$RANLIB_FOR_TARGET"; then
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17874 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17877 $as_echo "no" >&6; }
17882 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17885 if test -n "$RANLIB_FOR_TARGET"; then
17886 ac_cv_prog_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
17887 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17888 RANLIB_FOR_TARGET
=$ac_cv_prog_RANLIB_FOR_TARGET
17891 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17892 for ncn_progname
in ranlib
; do
17893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17894 set dummy
${ncn_progname}; ac_word
=$2
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17896 $as_echo_n "checking for $ac_word... " >&6; }
17897 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false
; then :
17898 $as_echo_n "(cached) " >&6
17900 if test -n "$RANLIB_FOR_TARGET"; then
17901 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
17903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17904 for as_dir
in $PATH
17907 test -z "$as_dir" && as_dir
=.
17908 for ac_exec_ext
in '' $ac_executable_extensions; do
17909 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17910 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
17911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17920 RANLIB_FOR_TARGET
=$ac_cv_prog_RANLIB_FOR_TARGET
17921 if test -n "$RANLIB_FOR_TARGET"; then
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17923 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17926 $as_echo "no" >&6; }
17933 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
17934 for ncn_progname
in ranlib
; do
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17936 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17937 if test -x $with_build_time_tools/${ncn_progname}; then
17938 ac_cv_prog_RANLIB_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17940 $as_echo "yes" >&6; }
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17944 $as_echo "no" >&6; }
17949 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17950 for ncn_progname
in ranlib
; do
17951 if test -n "$ncn_target_tool_prefix"; then
17952 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17953 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17955 $as_echo_n "checking for $ac_word... " >&6; }
17956 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false
; then :
17957 $as_echo_n "(cached) " >&6
17959 if test -n "$RANLIB_FOR_TARGET"; then
17960 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
17962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17963 for as_dir
in $PATH
17966 test -z "$as_dir" && as_dir
=.
17967 for ac_exec_ext
in '' $ac_executable_extensions; do
17968 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17969 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
17970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17979 RANLIB_FOR_TARGET
=$ac_cv_prog_RANLIB_FOR_TARGET
17980 if test -n "$RANLIB_FOR_TARGET"; then
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17982 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17985 $as_echo "no" >&6; }
17990 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
17991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17992 set dummy
${ncn_progname}; ac_word
=$2
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17994 $as_echo_n "checking for $ac_word... " >&6; }
17995 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false
; then :
17996 $as_echo_n "(cached) " >&6
17998 if test -n "$RANLIB_FOR_TARGET"; then
17999 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
18001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18002 for as_dir
in $PATH
18005 test -z "$as_dir" && as_dir
=.
18006 for ac_exec_ext
in '' $ac_executable_extensions; do
18007 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18008 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
18009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18018 RANLIB_FOR_TARGET
=$ac_cv_prog_RANLIB_FOR_TARGET
18019 if test -n "$RANLIB_FOR_TARGET"; then
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
18021 $as_echo "$RANLIB_FOR_TARGET" >&6; }
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18024 $as_echo "no" >&6; }
18029 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
18033 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
18035 if test $build = $target ; then
18036 RANLIB_FOR_TARGET
="$2"
18038 RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}$2"
18041 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
18045 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
18051 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18052 if test -n "$with_build_time_tools"; then
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
18054 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
18055 if test -x $with_build_time_tools/readelf
; then
18056 READELF_FOR_TARGET
=`cd $with_build_time_tools && pwd`/readelf
18057 ac_cv_path_READELF_FOR_TARGET
=$READELF_FOR_TARGET
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
18059 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18062 $as_echo "no" >&6; }
18064 elif test $build != $host && test $have_gcc_for_target = yes; then
18065 READELF_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=readelf`
18066 test $READELF_FOR_TARGET = readelf
&& READELF_FOR_TARGET
=
18067 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET
=$READELF_FOR_TARGET
18070 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18071 # Extract the first word of "readelf", so it can be a program name with args.
18072 set dummy readelf
; ac_word
=$2
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18074 $as_echo_n "checking for $ac_word... " >&6; }
18075 if ${ac_cv_path_READELF_FOR_TARGET+:} false
; then :
18076 $as_echo_n "(cached) " >&6
18078 case $READELF_FOR_TARGET in
18080 ac_cv_path_READELF_FOR_TARGET
="$READELF_FOR_TARGET" # Let the user override the test with a path.
18083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18084 for as_dir
in $gcc_cv_tool_dirs
18087 test -z "$as_dir" && as_dir
=.
18088 for ac_exec_ext
in '' $ac_executable_extensions; do
18089 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18090 ac_cv_path_READELF_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
18091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18101 READELF_FOR_TARGET
=$ac_cv_path_READELF_FOR_TARGET
18102 if test -n "$READELF_FOR_TARGET"; then
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18104 $as_echo "$READELF_FOR_TARGET" >&6; }
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18107 $as_echo "no" >&6; }
18112 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18115 if test -n "$READELF_FOR_TARGET"; then
18116 ac_cv_prog_READELF_FOR_TARGET
=$READELF_FOR_TARGET
18117 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18118 READELF_FOR_TARGET
=$ac_cv_prog_READELF_FOR_TARGET
18121 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18122 for ncn_progname
in readelf
; do
18123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18124 set dummy
${ncn_progname}; ac_word
=$2
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18126 $as_echo_n "checking for $ac_word... " >&6; }
18127 if ${ac_cv_prog_READELF_FOR_TARGET+:} false
; then :
18128 $as_echo_n "(cached) " >&6
18130 if test -n "$READELF_FOR_TARGET"; then
18131 ac_cv_prog_READELF_FOR_TARGET
="$READELF_FOR_TARGET" # Let the user override the test.
18133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18134 for as_dir
in $PATH
18137 test -z "$as_dir" && as_dir
=.
18138 for ac_exec_ext
in '' $ac_executable_extensions; do
18139 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18140 ac_cv_prog_READELF_FOR_TARGET
="${ncn_progname}"
18141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18150 READELF_FOR_TARGET
=$ac_cv_prog_READELF_FOR_TARGET
18151 if test -n "$READELF_FOR_TARGET"; then
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18153 $as_echo "$READELF_FOR_TARGET" >&6; }
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18156 $as_echo "no" >&6; }
18163 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
18164 for ncn_progname
in readelf
; do
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18166 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18167 if test -x $with_build_time_tools/${ncn_progname}; then
18168 ac_cv_prog_READELF_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18170 $as_echo "yes" >&6; }
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18174 $as_echo "no" >&6; }
18179 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
18180 for ncn_progname
in readelf
; do
18181 if test -n "$ncn_target_tool_prefix"; then
18182 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18183 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18185 $as_echo_n "checking for $ac_word... " >&6; }
18186 if ${ac_cv_prog_READELF_FOR_TARGET+:} false
; then :
18187 $as_echo_n "(cached) " >&6
18189 if test -n "$READELF_FOR_TARGET"; then
18190 ac_cv_prog_READELF_FOR_TARGET
="$READELF_FOR_TARGET" # Let the user override the test.
18192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18193 for as_dir
in $PATH
18196 test -z "$as_dir" && as_dir
=.
18197 for ac_exec_ext
in '' $ac_executable_extensions; do
18198 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18199 ac_cv_prog_READELF_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
18200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18209 READELF_FOR_TARGET
=$ac_cv_prog_READELF_FOR_TARGET
18210 if test -n "$READELF_FOR_TARGET"; then
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18212 $as_echo "$READELF_FOR_TARGET" >&6; }
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18215 $as_echo "no" >&6; }
18220 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
18221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18222 set dummy
${ncn_progname}; ac_word
=$2
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18224 $as_echo_n "checking for $ac_word... " >&6; }
18225 if ${ac_cv_prog_READELF_FOR_TARGET+:} false
; then :
18226 $as_echo_n "(cached) " >&6
18228 if test -n "$READELF_FOR_TARGET"; then
18229 ac_cv_prog_READELF_FOR_TARGET
="$READELF_FOR_TARGET" # Let the user override the test.
18231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18232 for as_dir
in $PATH
18235 test -z "$as_dir" && as_dir
=.
18236 for ac_exec_ext
in '' $ac_executable_extensions; do
18237 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18238 ac_cv_prog_READELF_FOR_TARGET
="${ncn_progname}"
18239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18248 READELF_FOR_TARGET
=$ac_cv_prog_READELF_FOR_TARGET
18249 if test -n "$READELF_FOR_TARGET"; then
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18251 $as_echo "$READELF_FOR_TARGET" >&6; }
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18254 $as_echo "no" >&6; }
18259 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
18263 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
18265 if test $build = $target ; then
18266 READELF_FOR_TARGET
="$2"
18268 READELF_FOR_TARGET
="${ncn_target_tool_prefix}$2"
18271 READELF_FOR_TARGET
="$ac_cv_prog_READELF_FOR_TARGET"
18275 READELF_FOR_TARGET
=$ac_cv_path_READELF_FOR_TARGET
18281 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18282 if test -n "$with_build_time_tools"; then
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
18284 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
18285 if test -x $with_build_time_tools/strip
; then
18286 STRIP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/strip
18287 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
18289 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18292 $as_echo "no" >&6; }
18294 elif test $build != $host && test $have_gcc_for_target = yes; then
18295 STRIP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=strip`
18296 test $STRIP_FOR_TARGET = strip
&& STRIP_FOR_TARGET
=
18297 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
18300 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18301 # Extract the first word of "strip", so it can be a program name with args.
18302 set dummy strip
; ac_word
=$2
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18304 $as_echo_n "checking for $ac_word... " >&6; }
18305 if ${ac_cv_path_STRIP_FOR_TARGET+:} false
; then :
18306 $as_echo_n "(cached) " >&6
18308 case $STRIP_FOR_TARGET in
18310 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a path.
18313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18314 for as_dir
in $gcc_cv_tool_dirs
18317 test -z "$as_dir" && as_dir
=.
18318 for ac_exec_ext
in '' $ac_executable_extensions; do
18319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18320 ac_cv_path_STRIP_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
18321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18331 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
18332 if test -n "$STRIP_FOR_TARGET"; then
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18334 $as_echo "$STRIP_FOR_TARGET" >&6; }
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18337 $as_echo "no" >&6; }
18342 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18345 if test -n "$STRIP_FOR_TARGET"; then
18346 ac_cv_prog_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
18347 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18348 STRIP_FOR_TARGET
=$ac_cv_prog_STRIP_FOR_TARGET
18351 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18352 for ncn_progname
in strip
; do
18353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18354 set dummy
${ncn_progname}; ac_word
=$2
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18356 $as_echo_n "checking for $ac_word... " >&6; }
18357 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false
; then :
18358 $as_echo_n "(cached) " >&6
18360 if test -n "$STRIP_FOR_TARGET"; then
18361 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
18363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18364 for as_dir
in $PATH
18367 test -z "$as_dir" && as_dir
=.
18368 for ac_exec_ext
in '' $ac_executable_extensions; do
18369 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18370 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
18371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18380 STRIP_FOR_TARGET
=$ac_cv_prog_STRIP_FOR_TARGET
18381 if test -n "$STRIP_FOR_TARGET"; then
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18383 $as_echo "$STRIP_FOR_TARGET" >&6; }
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386 $as_echo "no" >&6; }
18393 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
18394 for ncn_progname
in strip
; do
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18396 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18397 if test -x $with_build_time_tools/${ncn_progname}; then
18398 ac_cv_prog_STRIP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18400 $as_echo "yes" >&6; }
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404 $as_echo "no" >&6; }
18409 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
18410 for ncn_progname
in strip
; do
18411 if test -n "$ncn_target_tool_prefix"; then
18412 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18413 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18415 $as_echo_n "checking for $ac_word... " >&6; }
18416 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false
; then :
18417 $as_echo_n "(cached) " >&6
18419 if test -n "$STRIP_FOR_TARGET"; then
18420 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
18422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18423 for as_dir
in $PATH
18426 test -z "$as_dir" && as_dir
=.
18427 for ac_exec_ext
in '' $ac_executable_extensions; do
18428 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18429 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
18430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18439 STRIP_FOR_TARGET
=$ac_cv_prog_STRIP_FOR_TARGET
18440 if test -n "$STRIP_FOR_TARGET"; then
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18442 $as_echo "$STRIP_FOR_TARGET" >&6; }
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18445 $as_echo "no" >&6; }
18450 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
18451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18452 set dummy
${ncn_progname}; ac_word
=$2
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18454 $as_echo_n "checking for $ac_word... " >&6; }
18455 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false
; then :
18456 $as_echo_n "(cached) " >&6
18458 if test -n "$STRIP_FOR_TARGET"; then
18459 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
18461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18462 for as_dir
in $PATH
18465 test -z "$as_dir" && as_dir
=.
18466 for ac_exec_ext
in '' $ac_executable_extensions; do
18467 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18468 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
18469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18478 STRIP_FOR_TARGET
=$ac_cv_prog_STRIP_FOR_TARGET
18479 if test -n "$STRIP_FOR_TARGET"; then
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18481 $as_echo "$STRIP_FOR_TARGET" >&6; }
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18484 $as_echo "no" >&6; }
18489 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
18493 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
18495 if test $build = $target ; then
18496 STRIP_FOR_TARGET
="$2"
18498 STRIP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
18501 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
18505 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
18511 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18512 if test -n "$with_build_time_tools"; then
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
18514 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
18515 if test -x $with_build_time_tools/windres
; then
18516 WINDRES_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windres
18517 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
18519 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18522 $as_echo "no" >&6; }
18524 elif test $build != $host && test $have_gcc_for_target = yes; then
18525 WINDRES_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windres`
18526 test $WINDRES_FOR_TARGET = windres
&& WINDRES_FOR_TARGET
=
18527 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
18530 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18531 # Extract the first word of "windres", so it can be a program name with args.
18532 set dummy windres
; ac_word
=$2
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18534 $as_echo_n "checking for $ac_word... " >&6; }
18535 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false
; then :
18536 $as_echo_n "(cached) " >&6
18538 case $WINDRES_FOR_TARGET in
18540 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
18543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18544 for as_dir
in $gcc_cv_tool_dirs
18547 test -z "$as_dir" && as_dir
=.
18548 for ac_exec_ext
in '' $ac_executable_extensions; do
18549 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18550 ac_cv_path_WINDRES_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
18551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18561 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
18562 if test -n "$WINDRES_FOR_TARGET"; then
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18564 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18567 $as_echo "no" >&6; }
18572 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18575 if test -n "$WINDRES_FOR_TARGET"; then
18576 ac_cv_prog_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
18577 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18578 WINDRES_FOR_TARGET
=$ac_cv_prog_WINDRES_FOR_TARGET
18581 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18582 for ncn_progname
in windres
; do
18583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18584 set dummy
${ncn_progname}; ac_word
=$2
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18586 $as_echo_n "checking for $ac_word... " >&6; }
18587 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false
; then :
18588 $as_echo_n "(cached) " >&6
18590 if test -n "$WINDRES_FOR_TARGET"; then
18591 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
18593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18594 for as_dir
in $PATH
18597 test -z "$as_dir" && as_dir
=.
18598 for ac_exec_ext
in '' $ac_executable_extensions; do
18599 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18600 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
18601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18610 WINDRES_FOR_TARGET
=$ac_cv_prog_WINDRES_FOR_TARGET
18611 if test -n "$WINDRES_FOR_TARGET"; then
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18613 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18616 $as_echo "no" >&6; }
18623 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
18624 for ncn_progname
in windres
; do
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18626 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18627 if test -x $with_build_time_tools/${ncn_progname}; then
18628 ac_cv_prog_WINDRES_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18630 $as_echo "yes" >&6; }
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18634 $as_echo "no" >&6; }
18639 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18640 for ncn_progname
in windres
; do
18641 if test -n "$ncn_target_tool_prefix"; then
18642 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18643 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18645 $as_echo_n "checking for $ac_word... " >&6; }
18646 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false
; then :
18647 $as_echo_n "(cached) " >&6
18649 if test -n "$WINDRES_FOR_TARGET"; then
18650 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
18652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18653 for as_dir
in $PATH
18656 test -z "$as_dir" && as_dir
=.
18657 for ac_exec_ext
in '' $ac_executable_extensions; do
18658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18659 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
18660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18669 WINDRES_FOR_TARGET
=$ac_cv_prog_WINDRES_FOR_TARGET
18670 if test -n "$WINDRES_FOR_TARGET"; then
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18672 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18675 $as_echo "no" >&6; }
18680 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
18681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18682 set dummy
${ncn_progname}; ac_word
=$2
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18684 $as_echo_n "checking for $ac_word... " >&6; }
18685 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false
; then :
18686 $as_echo_n "(cached) " >&6
18688 if test -n "$WINDRES_FOR_TARGET"; then
18689 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
18691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18692 for as_dir
in $PATH
18695 test -z "$as_dir" && as_dir
=.
18696 for ac_exec_ext
in '' $ac_executable_extensions; do
18697 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18698 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
18699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18708 WINDRES_FOR_TARGET
=$ac_cv_prog_WINDRES_FOR_TARGET
18709 if test -n "$WINDRES_FOR_TARGET"; then
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18711 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18714 $as_echo "no" >&6; }
18719 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
18723 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
18725 if test $build = $target ; then
18726 WINDRES_FOR_TARGET
="$2"
18728 WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}$2"
18731 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
18735 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
18741 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18742 if test -n "$with_build_time_tools"; then
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
18744 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
18745 if test -x $with_build_time_tools/windmc
; then
18746 WINDMC_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windmc
18747 ac_cv_path_WINDMC_FOR_TARGET
=$WINDMC_FOR_TARGET
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
18749 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752 $as_echo "no" >&6; }
18754 elif test $build != $host && test $have_gcc_for_target = yes; then
18755 WINDMC_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windmc`
18756 test $WINDMC_FOR_TARGET = windmc
&& WINDMC_FOR_TARGET
=
18757 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET
=$WINDMC_FOR_TARGET
18760 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18761 # Extract the first word of "windmc", so it can be a program name with args.
18762 set dummy windmc
; ac_word
=$2
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18764 $as_echo_n "checking for $ac_word... " >&6; }
18765 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false
; then :
18766 $as_echo_n "(cached) " >&6
18768 case $WINDMC_FOR_TARGET in
18770 ac_cv_path_WINDMC_FOR_TARGET
="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
18773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18774 for as_dir
in $gcc_cv_tool_dirs
18777 test -z "$as_dir" && as_dir
=.
18778 for ac_exec_ext
in '' $ac_executable_extensions; do
18779 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18780 ac_cv_path_WINDMC_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
18781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18791 WINDMC_FOR_TARGET
=$ac_cv_path_WINDMC_FOR_TARGET
18792 if test -n "$WINDMC_FOR_TARGET"; then
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18794 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18797 $as_echo "no" >&6; }
18802 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18805 if test -n "$WINDMC_FOR_TARGET"; then
18806 ac_cv_prog_WINDMC_FOR_TARGET
=$WINDMC_FOR_TARGET
18807 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18808 WINDMC_FOR_TARGET
=$ac_cv_prog_WINDMC_FOR_TARGET
18811 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18812 for ncn_progname
in windmc
; do
18813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18814 set dummy
${ncn_progname}; ac_word
=$2
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18816 $as_echo_n "checking for $ac_word... " >&6; }
18817 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false
; then :
18818 $as_echo_n "(cached) " >&6
18820 if test -n "$WINDMC_FOR_TARGET"; then
18821 ac_cv_prog_WINDMC_FOR_TARGET
="$WINDMC_FOR_TARGET" # Let the user override the test.
18823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18824 for as_dir
in $PATH
18827 test -z "$as_dir" && as_dir
=.
18828 for ac_exec_ext
in '' $ac_executable_extensions; do
18829 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18830 ac_cv_prog_WINDMC_FOR_TARGET
="${ncn_progname}"
18831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18840 WINDMC_FOR_TARGET
=$ac_cv_prog_WINDMC_FOR_TARGET
18841 if test -n "$WINDMC_FOR_TARGET"; then
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18843 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18846 $as_echo "no" >&6; }
18853 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
18854 for ncn_progname
in windmc
; do
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18856 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18857 if test -x $with_build_time_tools/${ncn_progname}; then
18858 ac_cv_prog_WINDMC_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18860 $as_echo "yes" >&6; }
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18864 $as_echo "no" >&6; }
18869 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18870 for ncn_progname
in windmc
; do
18871 if test -n "$ncn_target_tool_prefix"; then
18872 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18873 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18875 $as_echo_n "checking for $ac_word... " >&6; }
18876 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false
; then :
18877 $as_echo_n "(cached) " >&6
18879 if test -n "$WINDMC_FOR_TARGET"; then
18880 ac_cv_prog_WINDMC_FOR_TARGET
="$WINDMC_FOR_TARGET" # Let the user override the test.
18882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18883 for as_dir
in $PATH
18886 test -z "$as_dir" && as_dir
=.
18887 for ac_exec_ext
in '' $ac_executable_extensions; do
18888 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18889 ac_cv_prog_WINDMC_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
18890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18899 WINDMC_FOR_TARGET
=$ac_cv_prog_WINDMC_FOR_TARGET
18900 if test -n "$WINDMC_FOR_TARGET"; then
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18902 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18905 $as_echo "no" >&6; }
18910 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
18911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18912 set dummy
${ncn_progname}; ac_word
=$2
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18914 $as_echo_n "checking for $ac_word... " >&6; }
18915 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false
; then :
18916 $as_echo_n "(cached) " >&6
18918 if test -n "$WINDMC_FOR_TARGET"; then
18919 ac_cv_prog_WINDMC_FOR_TARGET
="$WINDMC_FOR_TARGET" # Let the user override the test.
18921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18922 for as_dir
in $PATH
18925 test -z "$as_dir" && as_dir
=.
18926 for ac_exec_ext
in '' $ac_executable_extensions; do
18927 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18928 ac_cv_prog_WINDMC_FOR_TARGET
="${ncn_progname}"
18929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18938 WINDMC_FOR_TARGET
=$ac_cv_prog_WINDMC_FOR_TARGET
18939 if test -n "$WINDMC_FOR_TARGET"; then
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18941 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18944 $as_echo "no" >&6; }
18949 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
18953 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
18955 if test $build = $target ; then
18956 WINDMC_FOR_TARGET
="$2"
18958 WINDMC_FOR_TARGET
="${ncn_target_tool_prefix}$2"
18961 WINDMC_FOR_TARGET
="$ac_cv_prog_WINDMC_FOR_TARGET"
18965 WINDMC_FOR_TARGET
=$ac_cv_path_WINDMC_FOR_TARGET
18969 RAW_CXX_FOR_TARGET
="$CXX_FOR_TARGET"
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
18972 $as_echo_n "checking where to find the target ar... " >&6; }
18973 if test "x${build}" != "x${host}" ; then
18974 if expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
18975 # We already found the complete path
18976 ac_dir
=`dirname $AR_FOR_TARGET`
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18978 $as_echo "pre-installed in $ac_dir" >&6; }
18980 # Canadian cross, just use what we found
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18982 $as_echo "pre-installed" >&6; }
18986 case " ${configdirs} " in
18991 if test $ok = yes; then
18992 # An in-tree tool is available and we can use it
18993 AR_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ar'
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18995 $as_echo "just compiled" >&6; }
18996 elif expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
18997 # We already found the complete path
18998 ac_dir
=`dirname $AR_FOR_TARGET`
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19000 $as_echo "pre-installed in $ac_dir" >&6; }
19001 elif test "x$target" = "x$host"; then
19002 # We can use an host tool
19003 AR_FOR_TARGET
='$(AR)'
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19005 $as_echo "host tool" >&6; }
19007 # We need a cross tool
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19009 $as_echo "pre-installed" >&6; }
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
19014 $as_echo_n "checking where to find the target as... " >&6; }
19015 if test "x${build}" != "x${host}" ; then
19016 if expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
19017 # We already found the complete path
19018 ac_dir
=`dirname $AS_FOR_TARGET`
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19020 $as_echo "pre-installed in $ac_dir" >&6; }
19022 # Canadian cross, just use what we found
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19024 $as_echo "pre-installed" >&6; }
19028 case " ${configdirs} " in
19033 if test $ok = yes; then
19034 # An in-tree tool is available and we can use it
19035 AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gas/as-new'
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19037 $as_echo "just compiled" >&6; }
19038 elif expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
19039 # We already found the complete path
19040 ac_dir
=`dirname $AS_FOR_TARGET`
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19042 $as_echo "pre-installed in $ac_dir" >&6; }
19043 elif test "x$target" = "x$host"; then
19044 # We can use an host tool
19045 AS_FOR_TARGET
='$(AS)'
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19047 $as_echo "host tool" >&6; }
19049 # We need a cross tool
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19051 $as_echo "pre-installed" >&6; }
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
19056 $as_echo_n "checking where to find the target cc... " >&6; }
19057 if test "x${build}" != "x${host}" ; then
19058 if expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
19059 # We already found the complete path
19060 ac_dir
=`dirname $CC_FOR_TARGET`
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19062 $as_echo "pre-installed in $ac_dir" >&6; }
19064 # Canadian cross, just use what we found
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19066 $as_echo "pre-installed" >&6; }
19070 case " ${configdirs} " in
19075 if test $ok = yes; then
19076 # An in-tree tool is available and we can use it
19077 CC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19079 $as_echo "just compiled" >&6; }
19080 elif expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
19081 # We already found the complete path
19082 ac_dir
=`dirname $CC_FOR_TARGET`
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19084 $as_echo "pre-installed in $ac_dir" >&6; }
19085 elif test "x$target" = "x$host"; then
19086 # We can use an host tool
19087 CC_FOR_TARGET
='$(CC)'
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19089 $as_echo "host tool" >&6; }
19091 # We need a cross tool
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19093 $as_echo "pre-installed" >&6; }
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
19100 $as_echo_n "checking where to find the target c++... " >&6; }
19101 if test "x${build}" != "x${host}" ; then
19102 if expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
19103 # We already found the complete path
19104 ac_dir
=`dirname $CXX_FOR_TARGET`
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19106 $as_echo "pre-installed in $ac_dir" >&6; }
19108 # Canadian cross, just use what we found
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19110 $as_echo "pre-installed" >&6; }
19114 case " ${configdirs} " in
19118 case ,${enable_languages}, in
19122 if test $ok = yes; then
19123 # An in-tree tool is available and we can use it
19124 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` -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19126 $as_echo "just compiled" >&6; }
19127 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
19128 # We already found the complete path
19129 ac_dir
=`dirname $CXX_FOR_TARGET`
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19131 $as_echo "pre-installed in $ac_dir" >&6; }
19132 elif test "x$target" = "x$host"; then
19133 # We can use an host tool
19134 CXX_FOR_TARGET
='$(CXX)'
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19136 $as_echo "host tool" >&6; }
19138 # We need a cross tool
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19140 $as_echo "pre-installed" >&6; }
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
19145 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
19146 if test "x${build}" != "x${host}" ; then
19147 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
19148 # We already found the complete path
19149 ac_dir
=`dirname $RAW_CXX_FOR_TARGET`
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19151 $as_echo "pre-installed in $ac_dir" >&6; }
19153 # Canadian cross, just use what we found
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19155 $as_echo "pre-installed" >&6; }
19159 case " ${configdirs} " in
19163 case ,${enable_languages}, in
19167 if test $ok = yes; then
19168 # An in-tree tool is available and we can use it
19169 RAW_CXX_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19171 $as_echo "just compiled" >&6; }
19172 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
19173 # We already found the complete path
19174 ac_dir
=`dirname $RAW_CXX_FOR_TARGET`
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19176 $as_echo "pre-installed in $ac_dir" >&6; }
19177 elif test "x$target" = "x$host"; then
19178 # We can use an host tool
19179 RAW_CXX_FOR_TARGET
='$(CXX)'
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19181 $as_echo "host tool" >&6; }
19183 # We need a cross tool
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19185 $as_echo "pre-installed" >&6; }
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
19192 $as_echo_n "checking where to find the target c++... " >&6; }
19193 if test "x${build}" != "x${host}" ; then
19194 if expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
19195 # We already found the complete path
19196 ac_dir
=`dirname $CXX_FOR_TARGET`
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19198 $as_echo "pre-installed in $ac_dir" >&6; }
19200 # Canadian cross, just use what we found
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19202 $as_echo "pre-installed" >&6; }
19206 case " ${configdirs} " in
19210 case ,${enable_languages}, in
19214 if test $ok = yes; then
19215 # An in-tree tool is available and we can use it
19216 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'
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19218 $as_echo "just compiled" >&6; }
19219 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
19220 # We already found the complete path
19221 ac_dir
=`dirname $CXX_FOR_TARGET`
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19223 $as_echo "pre-installed in $ac_dir" >&6; }
19224 elif test "x$target" = "x$host"; then
19225 # We can use an host tool
19226 CXX_FOR_TARGET
='$(CXX)'
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19228 $as_echo "host tool" >&6; }
19230 # We need a cross tool
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19232 $as_echo "pre-installed" >&6; }
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
19237 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
19238 if test "x${build}" != "x${host}" ; then
19239 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
19240 # We already found the complete path
19241 ac_dir
=`dirname $RAW_CXX_FOR_TARGET`
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19243 $as_echo "pre-installed in $ac_dir" >&6; }
19245 # Canadian cross, just use what we found
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19247 $as_echo "pre-installed" >&6; }
19251 case " ${configdirs} " in
19255 case ,${enable_languages}, in
19259 if test $ok = yes; then
19260 # An in-tree tool is available and we can use it
19261 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'
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19263 $as_echo "just compiled" >&6; }
19264 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
19265 # We already found the complete path
19266 ac_dir
=`dirname $RAW_CXX_FOR_TARGET`
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19268 $as_echo "pre-installed in $ac_dir" >&6; }
19269 elif test "x$target" = "x$host"; then
19270 # We can use an host tool
19271 RAW_CXX_FOR_TARGET
='$(CXX)'
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19273 $as_echo "host tool" >&6; }
19275 # We need a cross tool
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19277 $as_echo "pre-installed" >&6; }
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
19284 $as_echo_n "checking where to find the target dlltool... " >&6; }
19285 if test "x${build}" != "x${host}" ; then
19286 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
19287 # We already found the complete path
19288 ac_dir
=`dirname $DLLTOOL_FOR_TARGET`
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19290 $as_echo "pre-installed in $ac_dir" >&6; }
19292 # Canadian cross, just use what we found
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19294 $as_echo "pre-installed" >&6; }
19298 case " ${configdirs} " in
19303 if test $ok = yes; then
19304 # An in-tree tool is available and we can use it
19305 DLLTOOL_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/dlltool'
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19307 $as_echo "just compiled" >&6; }
19308 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
19309 # We already found the complete path
19310 ac_dir
=`dirname $DLLTOOL_FOR_TARGET`
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19312 $as_echo "pre-installed in $ac_dir" >&6; }
19313 elif test "x$target" = "x$host"; then
19314 # We can use an host tool
19315 DLLTOOL_FOR_TARGET
='$(DLLTOOL)'
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19317 $as_echo "host tool" >&6; }
19319 # We need a cross tool
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19321 $as_echo "pre-installed" >&6; }
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
19326 $as_echo_n "checking where to find the target dsymutil... " >&6; }
19327 if test "x${build}" != "x${host}" ; then
19328 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev
/null
; then
19329 # We already found the complete path
19330 ac_dir
=`dirname $DSYMUTIL_FOR_TARGET`
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19332 $as_echo "pre-installed in $ac_dir" >&6; }
19334 # Canadian cross, just use what we found
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19336 $as_echo "pre-installed" >&6; }
19339 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev
/null
; then
19340 # We already found the complete path
19341 ac_dir
=`dirname $DSYMUTIL_FOR_TARGET`
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19343 $as_echo "pre-installed in $ac_dir" >&6; }
19344 elif test "x$target" = "x$host"; then
19345 # We can use an host tool
19346 DSYMUTIL_FOR_TARGET
='$(DSYMUTIL)'
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19348 $as_echo "host tool" >&6; }
19350 # We need a cross tool
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19352 $as_echo "pre-installed" >&6; }
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
19357 $as_echo_n "checking where to find the target gcc... " >&6; }
19358 if test "x${build}" != "x${host}" ; then
19359 if expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
19360 # We already found the complete path
19361 ac_dir
=`dirname $GCC_FOR_TARGET`
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19363 $as_echo "pre-installed in $ac_dir" >&6; }
19365 # Canadian cross, just use what we found
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19367 $as_echo "pre-installed" >&6; }
19371 case " ${configdirs} " in
19376 if test $ok = yes; then
19377 # An in-tree tool is available and we can use it
19378 GCC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19380 $as_echo "just compiled" >&6; }
19381 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
19382 # We already found the complete path
19383 ac_dir
=`dirname $GCC_FOR_TARGET`
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19385 $as_echo "pre-installed in $ac_dir" >&6; }
19386 elif test "x$target" = "x$host"; then
19387 # We can use an host tool
19388 GCC_FOR_TARGET
='$()'
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19390 $as_echo "host tool" >&6; }
19392 # We need a cross tool
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19394 $as_echo "pre-installed" >&6; }
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
19399 $as_echo_n "checking where to find the target gfortran... " >&6; }
19400 if test "x${build}" != "x${host}" ; then
19401 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
19402 # We already found the complete path
19403 ac_dir
=`dirname $GFORTRAN_FOR_TARGET`
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19405 $as_echo "pre-installed in $ac_dir" >&6; }
19407 # Canadian cross, just use what we found
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19409 $as_echo "pre-installed" >&6; }
19413 case " ${configdirs} " in
19417 case ,${enable_languages}, in
19421 if test $ok = yes; then
19422 # An in-tree tool is available and we can use it
19423 GFORTRAN_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19425 $as_echo "just compiled" >&6; }
19426 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
19427 # We already found the complete path
19428 ac_dir
=`dirname $GFORTRAN_FOR_TARGET`
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19430 $as_echo "pre-installed in $ac_dir" >&6; }
19431 elif test "x$target" = "x$host"; then
19432 # We can use an host tool
19433 GFORTRAN_FOR_TARGET
='$(GFORTRAN)'
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19435 $as_echo "host tool" >&6; }
19437 # We need a cross tool
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19439 $as_echo "pre-installed" >&6; }
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
19444 $as_echo_n "checking where to find the target gccgo... " >&6; }
19445 if test "x${build}" != "x${host}" ; then
19446 if expr "x$GOC_FOR_TARGET" : "x/" > /dev
/null
; then
19447 # We already found the complete path
19448 ac_dir
=`dirname $GOC_FOR_TARGET`
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19450 $as_echo "pre-installed in $ac_dir" >&6; }
19452 # Canadian cross, just use what we found
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19454 $as_echo "pre-installed" >&6; }
19458 case " ${configdirs} " in
19462 case ,${enable_languages}, in
19466 if test $ok = yes; then
19467 # An in-tree tool is available and we can use it
19468 GOC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19470 $as_echo "just compiled" >&6; }
19471 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev
/null
; then
19472 # We already found the complete path
19473 ac_dir
=`dirname $GOC_FOR_TARGET`
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19475 $as_echo "pre-installed in $ac_dir" >&6; }
19476 elif test "x$target" = "x$host"; then
19477 # We can use an host tool
19478 GOC_FOR_TARGET
='$(GOC)'
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19480 $as_echo "host tool" >&6; }
19482 # We need a cross tool
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19484 $as_echo "pre-installed" >&6; }
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
19489 $as_echo_n "checking where to find the target gdc... " >&6; }
19490 if test "x${build}" != "x${host}" ; then
19491 if expr "x$GDC_FOR_TARGET" : "x/" > /dev
/null
; then
19492 # We already found the complete path
19493 ac_dir
=`dirname $GDC_FOR_TARGET`
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19495 $as_echo "pre-installed in $ac_dir" >&6; }
19497 # Canadian cross, just use what we found
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19499 $as_echo "pre-installed" >&6; }
19503 case " ${configdirs} " in
19507 case ,${enable_languages}, in
19511 if test $ok = yes; then
19512 # An in-tree tool is available and we can use it
19513 GDC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19515 $as_echo "just compiled" >&6; }
19516 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev
/null
; then
19517 # We already found the complete path
19518 ac_dir
=`dirname $GDC_FOR_TARGET`
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19520 $as_echo "pre-installed in $ac_dir" >&6; }
19521 elif test "x$target" = "x$host"; then
19522 # We can use an host tool
19523 GDC_FOR_TARGET
='$(GDC)'
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19525 $as_echo "host tool" >&6; }
19527 # We need a cross tool
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19529 $as_echo "pre-installed" >&6; }
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
19534 $as_echo_n "checking where to find the target gm2... " >&6; }
19535 if test "x${build}" != "x${host}" ; then
19536 if expr "x$GM2_FOR_TARGET" : "x/" > /dev
/null
; then
19537 # We already found the complete path
19538 ac_dir
=`dirname $GM2_FOR_TARGET`
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19540 $as_echo "pre-installed in $ac_dir" >&6; }
19542 # Canadian cross, just use what we found
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19544 $as_echo "pre-installed" >&6; }
19548 case " ${configdirs} " in
19552 case ,${enable_languages}, in
19556 if test $ok = yes; then
19557 # An in-tree tool is available and we can use it
19558 GM2_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19560 $as_echo "just compiled" >&6; }
19561 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev
/null
; then
19562 # We already found the complete path
19563 ac_dir
=`dirname $GM2_FOR_TARGET`
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19565 $as_echo "pre-installed in $ac_dir" >&6; }
19566 elif test "x$target" = "x$host"; then
19567 # We can use an host tool
19568 GM2_FOR_TARGET
='$(GM2)'
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19570 $as_echo "host tool" >&6; }
19572 # We need a cross tool
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19574 $as_echo "pre-installed" >&6; }
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
19579 $as_echo_n "checking where to find the target ld... " >&6; }
19580 if test "x${build}" != "x${host}" ; then
19581 if expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
19582 # We already found the complete path
19583 ac_dir
=`dirname $LD_FOR_TARGET`
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19585 $as_echo "pre-installed in $ac_dir" >&6; }
19587 # Canadian cross, just use what we found
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19589 $as_echo "pre-installed" >&6; }
19593 case " ${configdirs} " in
19598 if test $ok = yes; then
19599 # An in-tree tool is available and we can use it
19600 LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/ld/ld-new'
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19602 $as_echo "just compiled" >&6; }
19603 elif expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
19604 # We already found the complete path
19605 ac_dir
=`dirname $LD_FOR_TARGET`
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19607 $as_echo "pre-installed in $ac_dir" >&6; }
19608 elif test "x$target" = "x$host"; then
19609 # We can use an host tool
19610 LD_FOR_TARGET
='$(LD)'
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19612 $as_echo "host tool" >&6; }
19614 # We need a cross tool
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19616 $as_echo "pre-installed" >&6; }
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
19621 $as_echo_n "checking where to find the target lipo... " >&6; }
19622 if test "x${build}" != "x${host}" ; then
19623 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
19624 # We already found the complete path
19625 ac_dir
=`dirname $LIPO_FOR_TARGET`
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19627 $as_echo "pre-installed in $ac_dir" >&6; }
19629 # Canadian cross, just use what we found
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19631 $as_echo "pre-installed" >&6; }
19634 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
19635 # We already found the complete path
19636 ac_dir
=`dirname $LIPO_FOR_TARGET`
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19638 $as_echo "pre-installed in $ac_dir" >&6; }
19639 elif test "x$target" = "x$host"; then
19640 # We can use an host tool
19641 LIPO_FOR_TARGET
='$(LIPO)'
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19643 $as_echo "host tool" >&6; }
19645 # We need a cross tool
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19647 $as_echo "pre-installed" >&6; }
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
19652 $as_echo_n "checking where to find the target nm... " >&6; }
19653 if test "x${build}" != "x${host}" ; then
19654 if expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
19655 # We already found the complete path
19656 ac_dir
=`dirname $NM_FOR_TARGET`
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19658 $as_echo "pre-installed in $ac_dir" >&6; }
19660 # Canadian cross, just use what we found
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19662 $as_echo "pre-installed" >&6; }
19666 case " ${configdirs} " in
19671 if test $ok = yes; then
19672 # An in-tree tool is available and we can use it
19673 NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/nm-new'
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19675 $as_echo "just compiled" >&6; }
19676 elif expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
19677 # We already found the complete path
19678 ac_dir
=`dirname $NM_FOR_TARGET`
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19680 $as_echo "pre-installed in $ac_dir" >&6; }
19681 elif test "x$target" = "x$host"; then
19682 # We can use an host tool
19683 NM_FOR_TARGET
='$(NM)'
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19685 $as_echo "host tool" >&6; }
19687 # We need a cross tool
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19689 $as_echo "pre-installed" >&6; }
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
19694 $as_echo_n "checking where to find the target objcopy... " >&6; }
19695 if test "x${build}" != "x${host}" ; then
19696 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev
/null
; then
19697 # We already found the complete path
19698 ac_dir
=`dirname $OBJCOPY_FOR_TARGET`
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19700 $as_echo "pre-installed in $ac_dir" >&6; }
19702 # Canadian cross, just use what we found
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19704 $as_echo "pre-installed" >&6; }
19708 case " ${configdirs} " in
19713 if test $ok = yes; then
19714 # An in-tree tool is available and we can use it
19715 OBJCOPY_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objcopy'
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19717 $as_echo "just compiled" >&6; }
19718 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev
/null
; then
19719 # We already found the complete path
19720 ac_dir
=`dirname $OBJCOPY_FOR_TARGET`
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19722 $as_echo "pre-installed in $ac_dir" >&6; }
19723 elif test "x$target" = "x$host"; then
19724 # We can use an host tool
19725 OBJCOPY_FOR_TARGET
='$(OBJCOPY)'
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19727 $as_echo "host tool" >&6; }
19729 # We need a cross tool
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19731 $as_echo "pre-installed" >&6; }
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
19736 $as_echo_n "checking where to find the target objdump... " >&6; }
19737 if test "x${build}" != "x${host}" ; then
19738 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
19739 # We already found the complete path
19740 ac_dir
=`dirname $OBJDUMP_FOR_TARGET`
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19742 $as_echo "pre-installed in $ac_dir" >&6; }
19744 # Canadian cross, just use what we found
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19746 $as_echo "pre-installed" >&6; }
19750 case " ${configdirs} " in
19755 if test $ok = yes; then
19756 # An in-tree tool is available and we can use it
19757 OBJDUMP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objdump'
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19759 $as_echo "just compiled" >&6; }
19760 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
19761 # We already found the complete path
19762 ac_dir
=`dirname $OBJDUMP_FOR_TARGET`
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19764 $as_echo "pre-installed in $ac_dir" >&6; }
19765 elif test "x$target" = "x$host"; then
19766 # We can use an host tool
19767 OBJDUMP_FOR_TARGET
='$(OBJDUMP)'
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19769 $as_echo "host tool" >&6; }
19771 # We need a cross tool
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19773 $as_echo "pre-installed" >&6; }
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
19778 $as_echo_n "checking where to find the target otool... " >&6; }
19779 if test "x${build}" != "x${host}" ; then
19780 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
19781 # We already found the complete path
19782 ac_dir
=`dirname $OTOOL_FOR_TARGET`
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19784 $as_echo "pre-installed in $ac_dir" >&6; }
19786 # Canadian cross, just use what we found
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19788 $as_echo "pre-installed" >&6; }
19791 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
19792 # We already found the complete path
19793 ac_dir
=`dirname $OTOOL_FOR_TARGET`
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19795 $as_echo "pre-installed in $ac_dir" >&6; }
19796 elif test "x$target" = "x$host"; then
19797 # We can use an host tool
19798 OTOOL_FOR_TARGET
='$(OTOOL)'
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19800 $as_echo "host tool" >&6; }
19802 # We need a cross tool
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19804 $as_echo "pre-installed" >&6; }
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
19809 $as_echo_n "checking where to find the target ranlib... " >&6; }
19810 if test "x${build}" != "x${host}" ; then
19811 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
19812 # We already found the complete path
19813 ac_dir
=`dirname $RANLIB_FOR_TARGET`
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19815 $as_echo "pre-installed in $ac_dir" >&6; }
19817 # Canadian cross, just use what we found
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19819 $as_echo "pre-installed" >&6; }
19823 case " ${configdirs} " in
19828 if test $ok = yes; then
19829 # An in-tree tool is available and we can use it
19830 RANLIB_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ranlib'
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19832 $as_echo "just compiled" >&6; }
19833 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
19834 # We already found the complete path
19835 ac_dir
=`dirname $RANLIB_FOR_TARGET`
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19837 $as_echo "pre-installed in $ac_dir" >&6; }
19838 elif test "x$target" = "x$host"; then
19839 # We can use an host tool
19840 RANLIB_FOR_TARGET
='$(RANLIB)'
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19842 $as_echo "host tool" >&6; }
19844 # We need a cross tool
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19846 $as_echo "pre-installed" >&6; }
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
19851 $as_echo_n "checking where to find the target readelf... " >&6; }
19852 if test "x${build}" != "x${host}" ; then
19853 if expr "x$READELF_FOR_TARGET" : "x/" > /dev
/null
; then
19854 # We already found the complete path
19855 ac_dir
=`dirname $READELF_FOR_TARGET`
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19857 $as_echo "pre-installed in $ac_dir" >&6; }
19859 # Canadian cross, just use what we found
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19861 $as_echo "pre-installed" >&6; }
19865 case " ${configdirs} " in
19870 if test $ok = yes; then
19871 # An in-tree tool is available and we can use it
19872 READELF_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/readelf'
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19874 $as_echo "just compiled" >&6; }
19875 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev
/null
; then
19876 # We already found the complete path
19877 ac_dir
=`dirname $READELF_FOR_TARGET`
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19879 $as_echo "pre-installed in $ac_dir" >&6; }
19880 elif test "x$target" = "x$host"; then
19881 # We can use an host tool
19882 READELF_FOR_TARGET
='$(READELF)'
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19884 $as_echo "host tool" >&6; }
19886 # We need a cross tool
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19888 $as_echo "pre-installed" >&6; }
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
19893 $as_echo_n "checking where to find the target strip... " >&6; }
19894 if test "x${build}" != "x${host}" ; then
19895 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
19896 # We already found the complete path
19897 ac_dir
=`dirname $STRIP_FOR_TARGET`
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19899 $as_echo "pre-installed in $ac_dir" >&6; }
19901 # Canadian cross, just use what we found
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19903 $as_echo "pre-installed" >&6; }
19907 case " ${configdirs} " in
19912 if test $ok = yes; then
19913 # An in-tree tool is available and we can use it
19914 STRIP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/strip-new'
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19916 $as_echo "just compiled" >&6; }
19917 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
19918 # We already found the complete path
19919 ac_dir
=`dirname $STRIP_FOR_TARGET`
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19921 $as_echo "pre-installed in $ac_dir" >&6; }
19922 elif test "x$target" = "x$host"; then
19923 # We can use an host tool
19924 STRIP_FOR_TARGET
='$(STRIP)'
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19926 $as_echo "host tool" >&6; }
19928 # We need a cross tool
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19930 $as_echo "pre-installed" >&6; }
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
19935 $as_echo_n "checking where to find the target windres... " >&6; }
19936 if test "x${build}" != "x${host}" ; then
19937 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
19938 # We already found the complete path
19939 ac_dir
=`dirname $WINDRES_FOR_TARGET`
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19941 $as_echo "pre-installed in $ac_dir" >&6; }
19943 # Canadian cross, just use what we found
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19945 $as_echo "pre-installed" >&6; }
19949 case " ${configdirs} " in
19954 if test $ok = yes; then
19955 # An in-tree tool is available and we can use it
19956 WINDRES_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windres'
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19958 $as_echo "just compiled" >&6; }
19959 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
19960 # We already found the complete path
19961 ac_dir
=`dirname $WINDRES_FOR_TARGET`
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19963 $as_echo "pre-installed in $ac_dir" >&6; }
19964 elif test "x$target" = "x$host"; then
19965 # We can use an host tool
19966 WINDRES_FOR_TARGET
='$(WINDRES)'
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19968 $as_echo "host tool" >&6; }
19970 # We need a cross tool
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19972 $as_echo "pre-installed" >&6; }
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
19977 $as_echo_n "checking where to find the target windmc... " >&6; }
19978 if test "x${build}" != "x${host}" ; then
19979 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev
/null
; then
19980 # We already found the complete path
19981 ac_dir
=`dirname $WINDMC_FOR_TARGET`
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19983 $as_echo "pre-installed in $ac_dir" >&6; }
19985 # Canadian cross, just use what we found
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19987 $as_echo "pre-installed" >&6; }
19991 case " ${configdirs} " in
19996 if test $ok = yes; then
19997 # An in-tree tool is available and we can use it
19998 WINDMC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windmc'
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
20000 $as_echo "just compiled" >&6; }
20001 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev
/null
; then
20002 # We already found the complete path
20003 ac_dir
=`dirname $WINDMC_FOR_TARGET`
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
20005 $as_echo "pre-installed in $ac_dir" >&6; }
20006 elif test "x$target" = "x$host"; then
20007 # We can use an host tool
20008 WINDMC_FOR_TARGET
='$(WINDMC)'
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
20010 $as_echo "host tool" >&6; }
20012 # We need a cross tool
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
20014 $as_echo "pre-installed" >&6; }
20022 # Certain tools may need extra flags.
20023 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
20024 RANLIB_FOR_TARGET
=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
20025 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
20027 # When building target libraries, except in a Canadian cross, we use
20028 # the same toolchain as the compiler we just built.
20029 COMPILER_AS_FOR_TARGET
='$(AS_FOR_TARGET)'
20030 COMPILER_LD_FOR_TARGET
='$(LD_FOR_TARGET)'
20031 COMPILER_NM_FOR_TARGET
='$(NM_FOR_TARGET)'
20032 if test $host = $build; then
20033 case " $configdirs " in
20035 COMPILER_AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/as'
20036 COMPILER_LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
20037 COMPILER_NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20047 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20048 # Check whether --enable-maintainer-mode was given.
20049 if test "${enable_maintainer_mode+set}" = set; then :
20050 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
20052 USE_MAINTAINER_MODE
=no
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20056 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20059 if test "$USE_MAINTAINER_MODE" = yes; then
20060 MAINTAINER_MODE_TRUE
=
20061 MAINTAINER_MODE_FALSE
='#'
20063 MAINTAINER_MODE_TRUE
='#'
20064 MAINTAINER_MODE_FALSE
=
20066 MAINT
=$MAINTAINER_MODE_TRUE
20068 # ---------------------
20069 # GCC bootstrap support
20070 # ---------------------
20072 # Stage specific cflags for build.
20077 yes) stage1_cflags
="-g -Wa,-J" ;;
20078 *) stage1_cflags
="-g -J" ;;
20084 # Enable --enable-checking in stage1 of the compiler.
20085 # Check whether --enable-stage1-checking was given.
20086 if test "${enable_stage1_checking+set}" = set; then :
20087 enableval
=$enable_stage1_checking; stage1_checking
=--enable-checking=${enable_stage1_checking}
20089 if test "x$enable_checking" = xno ||
test "x$enable_checking" = x
; then
20090 # For --disable-checking or implicit --enable-checking=release, avoid
20091 # setting --enable-checking=gc in the default stage1 checking for LTO
20092 # bootstraps. See PR62077.
20093 case $BUILD_CONFIG in
20095 stage1_checking
=--enable-checking=release
,misc
,gimple
,rtlflag
,tree
,types
;;
20097 stage1_checking
=--enable-checking=yes,types
;;
20099 if test "x$enable_checking" = x
&& \
20100 test -d ${srcdir}/gcc
&& \
20101 test x
"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental
; then
20102 stage1_checking
=--enable-checking=yes,types
,extra
20105 stage1_checking
=--enable-checking=$enable_checking,types
20111 # Enable -Werror in bootstrap stage2 and later.
20112 # Check whether --enable-werror was given.
20113 if test "${enable_werror+set}" = set; then :
20114 enableval
=$enable_werror;
20115 case ${enable_werror} in
20116 yes) stage2_werror_flag
="--enable-werror-always" ;;
20117 *) stage2_werror_flag
="" ;;
20122 if test -d ${srcdir}/gcc
&& test x
"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental
; then
20123 case $BUILD_CONFIG in
20125 stage2_werror_flag
="--enable-werror-always" ;;
20127 stage2_werror_flag
="--enable-werror-always" ;;
20136 # Specify what files to not compare during bootstrap.
20138 compare_exclusions
="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
20139 compare_exclusions
="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
20140 compare_exclusions
="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
20141 compare_exclusions
="$compare_exclusions | gcc/m2/gm2version*"
20142 compare_exclusions
="$compare_exclusions | gcc/cobol/parse\$(objext)"
20144 hppa
*64*-*-hpux*) ;;
20145 powerpc
*-ibm-aix*) compare_exclusions
="$compare_exclusions | *libgomp*\$(objext)" ;;
20149 ac_config_files
="$ac_config_files Makefile"
20151 cat >confcache
<<\_ACEOF
20152 # This file is a shell script that caches the results of configure
20153 # tests run on this system so they can be shared between configure
20154 # scripts and configure runs, see configure's option --config-cache.
20155 # It is not useful on other systems. If it contains results you don't
20156 # want to keep, you may remove or edit it.
20158 # config.status only pays attention to the cache file if you give it
20159 # the --recheck option to rerun configure.
20161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20163 # following values.
20167 # The following way of writing the cache mishandles newlines in values,
20168 # but we know of no workaround that is simple, portable, and efficient.
20169 # So, we kill variables containing newlines.
20170 # Ultrix sh set writes to stderr and can't be redirected directly,
20171 # and sets the high bit in the cache file unless we assign to the vars.
20173 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20174 eval ac_val
=\$
$ac_var
20178 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20179 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20182 _ | IFS | as_nl
) ;; #(
20183 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20184 *) { eval $ac_var=; unset $ac_var;} ;;
20190 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20191 *${as_nl}ac_space
=\
*)
20192 # `set' does not quote correctly, so add quotes: double-quote
20193 # substitution turns \\\\ into \\, and sed turns \\ into \.
20196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20199 # `set' quotes correctly as required by POSIX, so do not add quotes.
20200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20213 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20214 if test -w "$cache_file"; then
20215 if test "x$cache_file" != "x/dev/null"; then
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20217 $as_echo "$as_me: updating cache $cache_file" >&6;}
20218 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
20219 cat confcache
>"$cache_file"
20221 case $cache_file in #(
20223 mv -f confcache
"$cache_file"$$
&&
20224 mv -f "$cache_file"$$
"$cache_file" ;; #(
20226 mv -f confcache
"$cache_file" ;;
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20232 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20237 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20238 # Let make expand exec_prefix.
20239 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20241 # Transform confdefs.h into DEFS.
20242 # Protect against shell expansion while executing Makefile rules.
20243 # Protect against Makefile macro expansion.
20245 # If the first sed substitution is executed (which looks for macros that
20246 # take arguments), then branch to the quote section. Otherwise,
20247 # look for a macro that doesn't take arguments.
20257 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20259 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20263 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20276 DEFS
=`sed -n "$ac_script" confdefs.h`
20282 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20283 # 1. Remove the extension, and $U if already installed.
20284 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20285 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20286 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20287 # will be set to the directory where LIBOBJS objects are built.
20288 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20289 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20291 LIBOBJS
=$ac_libobjs
20293 LTLIBOBJS
=$ac_ltlibobjs
20297 : "${CONFIG_STATUS=./config.status}"
20299 ac_clean_files_save
=$ac_clean_files
20300 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20302 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20304 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20306 # Generated by $as_me.
20307 # Run this file to recreate the current configuration.
20308 # Compiler output produced by configure, useful for debugging
20309 # configure, is in config.log if it exists.
20312 ac_cs_recheck=false
20315 SHELL=\${CONFIG_SHELL-$SHELL}
20318 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20319 ## -------------------- ##
20320 ## M4sh Initialization. ##
20321 ## -------------------- ##
20323 # Be more Bourne compatible
20324 DUALCASE
=1; export DUALCASE
# for MKS sh
20325 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20328 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20329 # is contrary to our usage. Disable this feature.
20330 alias -g '${1+"$@"}'='"$@"'
20331 setopt NO_GLOB_SUBST
20333 case `(set -o) 2>/dev/null` in #(
20345 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20346 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20347 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20348 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20349 # Prefer a ksh shell builtin over an external printf program on Solaris,
20350 # but without wasting forks for bash or zsh.
20351 if test -z "$BASH_VERSION$ZSH_VERSION" \
20352 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20353 as_echo='print
-r --'
20354 as_echo_n='print
-rn --'
20355 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20356 as_echo='printf %s
\n'
20357 as_echo_n='printf %s
'
20359 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20360 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20361 as_echo_n='/usr
/ucb
/echo -n'
20363 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20364 as_echo_n_body='eval
20368 expr "X$arg" : "X\\(.*\\)$as_nl";
20369 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20371 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20373 export as_echo_n_body
20374 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20376 export as_echo_body
20377 as_echo='sh
-c $as_echo_body as_echo
'
20380 # The user is always right.
20381 if test "${PATH_SEPARATOR+set}" != set; then
20383 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20384 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20391 # We need space, tab and new line, in precisely that order. Quoting is
20392 # there to prevent editors from complaining about space-tab.
20393 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20394 # splitting by setting IFS to empty value.)
20397 # Find who we are. Look in the path if we contain no directory separator.
20400 *[\\/]* ) as_myself=$0 ;;
20401 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20402 for as_dir in $PATH
20405 test -z "$as_dir" && as_dir=.
20406 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20412 # We did not find ourselves, most probably we were run as `sh COMMAND'
20413 # in which case we are not to be found in the path.
20414 if test "x$as_myself" = x
; then
20417 if test ! -f "$as_myself"; then
20418 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20422 # Unset variables that we do not need and which cause bugs (e.g. in
20423 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20424 # suppresses any "Segmentation fault" message there. '((' could
20425 # trigger a bug in pdksh 5.2.14.
20426 for as_var
in BASH_ENV ENV MAIL MAILPATH
20427 do eval test x\
${$as_var+set} = xset \
20428 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20441 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20444 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20445 # ----------------------------------------
20446 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20447 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20448 # script with STATUS, using 1 if that was 0.
20451 as_status
=$1; test $as_status -eq 0 && as_status
=1
20453 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20454 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20456 $as_echo "$as_me: error: $2" >&2
20457 as_fn_exit
$as_status
20461 # as_fn_set_status STATUS
20462 # -----------------------
20463 # Set $? to STATUS, without forking.
20464 as_fn_set_status
()
20467 } # as_fn_set_status
20469 # as_fn_exit STATUS
20470 # -----------------
20471 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20475 as_fn_set_status
$1
20481 # Portably unset VAR.
20484 { eval $1=; unset $1;}
20486 as_unset
=as_fn_unset
20487 # as_fn_append VAR VALUE
20488 # ----------------------
20489 # Append the text in VALUE to the end of the definition contained in VAR. Take
20490 # advantage of any shell optimizations that allow amortized linear growth over
20491 # repeated appends, instead of the typical quadratic growth present in naive
20493 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20494 eval 'as_fn_append ()
20505 # as_fn_arith ARG...
20506 # ------------------
20507 # Perform arithmetic evaluation on the ARGs, and store the result in the
20508 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20509 # must be portable across $(()) and expr.
20510 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20511 eval 'as_fn_arith ()
20518 as_val
=`expr "$@" || test $? -eq 1`
20523 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20524 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20530 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20531 as_basename
=basename
20536 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20542 as_me
=`$as_basename -- "$0" ||
20543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20544 X"$0" : 'X\(//\)$' \| \
20545 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20547 sed '/^.*\/\([^/][^/]*\)\/*$/{
20561 # Avoid depending upon Character Ranges.
20562 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20563 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20564 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20565 as_cr_digits
='0123456789'
20566 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20568 ECHO_C
= ECHO_N
= ECHO_T
=
20569 case `echo -n x` in #(((((
20571 case `echo 'xy\c'` in
20572 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20574 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20581 rm -f conf$$ conf$$.exe conf$$.
file
20582 if test -d conf$$.dir
; then
20583 rm -f conf$$.dir
/conf$$.
file
20586 mkdir conf$$.dir
2>/dev
/null
20588 if (echo >conf$$.
file) 2>/dev
/null
; then
20589 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20591 # ... but there are two gotchas:
20592 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20593 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20594 # In both cases, we have to default to `cp -pR'.
20595 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20597 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20605 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20606 rmdir conf$$.dir
2>/dev
/null
20611 # Create "$as_dir" as a directory, including parents if necessary.
20616 -*) as_dir
=.
/$as_dir;;
20618 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20622 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20623 *) as_qdir
=$as_dir;;
20625 as_dirs
="'$as_qdir' $as_dirs"
20626 as_dir
=`$as_dirname -- "$as_dir" ||
20627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20628 X"$as_dir" : 'X\(//\)[^/]' \| \
20629 X"$as_dir" : 'X\(//\)$' \| \
20630 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20631 $as_echo X"$as_dir" |
20632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20636 /^X\(\/\/\)[^/].*/{
20649 test -d "$as_dir" && break
20651 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20652 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20656 if mkdir
-p .
2>/dev
/null
; then
20657 as_mkdir_p
='mkdir -p "$as_dir"'
20659 test -d .
/-p && rmdir .
/-p
20664 # as_fn_executable_p FILE
20665 # -----------------------
20666 # Test if FILE is an executable regular file.
20667 as_fn_executable_p
()
20669 test -f "$1" && test -x "$1"
20670 } # as_fn_executable_p
20671 as_test_x
='test -x'
20672 as_executable_p
=as_fn_executable_p
20674 # Sed expression to map a string onto a valid CPP name.
20675 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20677 # Sed expression to map a string onto a valid variable name.
20678 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20682 ## ----------------------------------- ##
20683 ## Main body of $CONFIG_STATUS script. ##
20684 ## ----------------------------------- ##
20686 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20689 # Save the log message, to keep $0 and so on meaningful, and to
20690 # report actual input values of CONFIG_FILES etc. instead of their
20691 # values after options handling.
20693 This file was extended by $as_me, which was
20694 generated by GNU Autoconf 2.69. Invocation command line was
20696 CONFIG_FILES = $CONFIG_FILES
20697 CONFIG_HEADERS = $CONFIG_HEADERS
20698 CONFIG_LINKS = $CONFIG_LINKS
20699 CONFIG_COMMANDS = $CONFIG_COMMANDS
20702 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20707 case $ac_config_files in *"
20708 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20714 # Files that config.status was made for.
20715 config_files="$ac_config_files"
20719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20721 \`$as_me' instantiates files and other configuration actions
20722 from templates according to the current configuration. Unless the files
20723 and actions are specified as TAGs, all are instantiated by default.
20725 Usage: $0 [OPTION]... [TAG]...
20727 -h, --help print this help, then exit
20728 -V, --version print version number and configuration settings, then exit
20729 --config print configuration, then exit
20730 -q, --quiet, --silent
20731 do not print progress messages
20732 -d, --debug don't remove temporary files
20733 --recheck update $as_me by reconfiguring in the same conditions
20734 --file=FILE[:TEMPLATE]
20735 instantiate the configuration file FILE
20737 Configuration files:
20740 Report bugs to the package provider."
20743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20744 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20747 configured by $0, generated by GNU Autoconf 2.69,
20748 with options \\"\$ac_cs_config\\"
20750 Copyright (C) 2012 Free Software Foundation, Inc.
20751 This config.status script is free software; the Free Software Foundation
20752 gives unlimited permission to copy, distribute and modify it."
20758 test -n "\$AWK" || AWK=awk
20761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20762 # The default lists apply if the user does not specify any file.
20768 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20769 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20773 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20785 # Handling of the options.
20786 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20788 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20789 $as_echo "$ac_cs_version"; exit ;;
20790 --config |
--confi |
--conf |
--con |
--co |
--c )
20791 $as_echo "$ac_cs_config"; exit ;;
20792 --debug |
--debu |
--deb |
--de |
--d |
-d )
20794 --file |
--fil |
--fi |
--f )
20797 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20798 '') as_fn_error $?
"missing file argument" ;;
20800 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20801 ac_need_defaults
=false
;;
20802 --he |
--h |
--help |
--hel |
-h )
20803 $as_echo "$ac_cs_usage"; exit ;;
20804 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20805 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20808 # This is an error.
20809 -*) as_fn_error $?
"unrecognized option: \`$1'
20810 Try \`$0 --help' for more information." ;;
20812 *) as_fn_append ac_config_targets
" $1"
20813 ac_need_defaults
=false
;;
20819 ac_configure_extra_args
=
20821 if $ac_cs_silent; then
20823 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20828 if \$ac_cs_recheck; then
20829 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20831 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20832 CONFIG_SHELL='$SHELL'
20833 export CONFIG_SHELL
20838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20842 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20843 ## Running $as_me. ##
20849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20853 extrasub_build="$extrasub_build"
20854 extrasub_host="$extrasub_host"
20855 extrasub_target="$extrasub_target"
20859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20861 # Handling of arguments.
20862 for ac_config_target
in $ac_config_targets
20864 case $ac_config_target in
20865 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20867 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20872 # If the user did not use the arguments to specify the items to instantiate,
20873 # then the envvar interface is used. Set only those that are not.
20874 # We use the long form for the default assignment because of an extremely
20875 # bizarre bug on SunOS 4.1.3.
20876 if $ac_need_defaults; then
20877 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20880 # Have a temporary directory for convenience. Make it in the build tree
20881 # simply because there is no reason against having it here, and in addition,
20882 # creating and moving files from /tmp can sometimes cause problems.
20883 # Hook for its removal unless debugging.
20884 # Note that there is a small window in which the directory will not be cleaned:
20885 # after its creation but before its name has been assigned to `$tmp'.
20889 trap 'exit_status=$?
20890 : "${ac_tmp:=$tmp}"
20891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20893 trap 'as_fn_exit 1' 1 2 13 15
20895 # Create a (secure) tmp directory for tmp files.
20898 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20902 tmp
=.
/conf$$
-$RANDOM
20903 (umask 077 && mkdir
"$tmp")
20904 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20907 # Set up the scripts for CONFIG_FILES section.
20908 # No need to generate them if there are no CONFIG_FILES.
20909 # This happens for instance with `./config.status config.h'.
20910 if test -n "$CONFIG_FILES"; then
20912 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20913 ac_cs_awk_getline
=:
20914 ac_cs_awk_pipe_init
=
20915 ac_cs_awk_read_file
='
20916 while ((getline aline < (F[key])) > 0)
20919 ac_cs_awk_pipe_fini
=
20921 ac_cs_awk_getline
=false
20922 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20923 ac_cs_awk_read_file
='
20925 print "cat " F[key] " &&"
20926 '$ac_cs_awk_pipe_init
20927 # The final `:' finishes the AND list.
20928 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20930 ac_cr
=`echo X | tr X '\015'`
20931 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20932 # But we know of no other shell where ac_cr would be empty at this
20933 # point, so we can use a bashism as a fallback.
20934 if test "x$ac_cr" = x
; then
20935 eval ac_cr
=\$
\'\\r
\'
20937 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20938 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20941 ac_cs_awk_cr
=$ac_cr
20944 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20947 # Create commands to substitute file output variables.
20949 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20950 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20951 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20954 } >conf$
$files.sh
&&
20955 . .
/conf$
$files.sh ||
20956 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20957 rm -f conf$
$files.sh
20960 echo "cat >conf$$subs.awk <<_ACEOF" &&
20961 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20963 } >conf$$subs.sh ||
20964 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20965 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20967 for ac_last_try in false false false false false :; do
20968 . ./conf$$subs.sh ||
20969 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20971 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20972 if test $ac_delim_n = $ac_delim_num; then
20974 elif $ac_last_try; then
20975 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20977 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20980 rm -f conf$$subs.sh
20982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20983 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20987 s/^/S["/; s
/!.
*/"]=/
20997 s/\(.\{148\}\)..*/\1/
20999 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
21004 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21011 s/\(.\{148\}\)..*/\1/
21013 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
21017 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21022 ' <conf$$subs.awk | sed '
21027 ' >>$CONFIG_STATUS || ac_write_fail=1
21028 rm -f conf$$subs.awk
21029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21031 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
21032 for (key in S) S_is_set[key] = 1
21034 \$ac_cs_awk_pipe_init
21038 nfields = split(line, field, "@
")
21040 len = length(field[1])
21041 for (i = 2; i < nfields; i++) {
21043 keylen = length(key)
21044 if (S_is_set[key]) {
21046 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21047 len += length(value) + length(field[++i])
21052 if (nfields == 3 && !substed) {
21054 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21055 \$ac_cs_awk_read_file
21061 \$ac_cs_awk_pipe_fini
21064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21065 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21066 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
21069 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
21070 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
21073 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21074 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
21075 # trailing colons and then remove the whole line if VPATH becomes empty
21076 # (actually we leave an empty line to preserve line numbers).
21077 if test "x
$srcdir" = x.; then
21078 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21097 fi # test -n "$CONFIG_FILES"
21100 eval set X " :F
$CONFIG_FILES "
21105 :[FHLC]) ac_mode=$ac_tag; continue;;
21107 case $ac_mode$ac_tag in
21109 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
21110 :[FH]-) ac_tag=-:-;;
21111 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21128 -) ac_f="$ac_tmp/stdin";;
21129 *) # Look for the file first in the build tree, then in the source tree
21130 # (if the path is not absolute). The absolute path cannot be DOS-style,
21131 # because $ac_f cannot contain `:'.
21135 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21137 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21139 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
21140 as_fn_append ac_file_inputs " '$ac_f'"
21143 # Let's still pretend it is `configure' which instantiates (i.e., don't
21144 # use $as_me), people would be surprised to read:
21145 # /* config.h. Generated by config.status. */
21146 configure_input='Generated from '`
21147 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21149 if test x"$ac_file" != x-; then
21150 configure_input="$ac_file.
$configure_input"
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
21152 $as_echo "$as_me: creating
$ac_file" >&6;}
21154 # Neutralize special characters interpreted by sed in replacement strings.
21155 case $configure_input in #(
21156 *\&* | *\|* | *\\* )
21157 ac_sed_conf_input=`$as_echo "$configure_input" |
21158 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21159 *) ac_sed_conf_input=$configure_input;;
21163 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
21164 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
21169 ac_dir=`$as_dirname -- "$ac_file" ||
21170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21171 X"$ac_file" : 'X\(//\)[^/]' \| \
21172 X"$ac_file" : 'X\(//\)$' \| \
21173 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21174 $as_echo X"$ac_file" |
21175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21179 /^X\(\/\/\)[^/].*/{
21192 as_dir="$ac_dir"; as_fn_mkdir_p
21196 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21198 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21199 # A "..
" for each directory in $ac_dir_suffix.
21200 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21201 case $ac_top_builddir_sub in
21202 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21203 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21206 ac_abs_top_builddir=$ac_pwd
21207 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21208 # for backward compatibility:
21209 ac_top_builddir=$ac_top_build_prefix
21212 .) # We are building in place.
21214 ac_top_srcdir=$ac_top_builddir_sub
21215 ac_abs_top_srcdir=$ac_pwd ;;
21216 [\\/]* | ?:[\\/]* ) # Absolute name.
21217 ac_srcdir=$srcdir$ac_dir_suffix;
21218 ac_top_srcdir=$srcdir
21219 ac_abs_top_srcdir=$srcdir ;;
21220 *) # Relative name.
21221 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21222 ac_top_srcdir=$ac_top_build_prefix$srcdir
21223 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21225 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21235 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21236 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21241 # If the template does not know about datarootdir, expand it.
21242 # FIXME: This hack should be removed a few years after 2.60.
21243 ac_datarootdir_hack=; ac_datarootdir_seen=
21254 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
21255 *datarootdir*) ac_datarootdir_seen=yes;;
21256 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
21258 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
21260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21261 ac_datarootdir_hack='
21262 s&@datadir@&$datadir&g
21263 s&@docdir@&$docdir&g
21264 s&@infodir@&$infodir&g
21265 s&@localedir@&$localedir&g
21266 s&@mandir@&$mandir&g
21267 s&\\\${datarootdir}&$datarootdir&g' ;;
21271 # Neutralize VPATH when `$srcdir' = `.'.
21272 # Shell code in configure.ac might set extrasub.
21273 # FIXME: do we really want to maintain this feature?
21274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21275 ac_sed_extra="$ac_vpsub
21278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21280 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21281 s|@configure_input@|
$ac_sed_conf_input|
;t t
21282 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21283 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21284 s
&@srcdir@
&$ac_srcdir&;t t
21285 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21286 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21287 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21288 s
&@builddir@
&$ac_builddir&;t t
21289 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21290 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21291 s
&@INSTALL@
&$ac_INSTALL&;t t
21292 $ac_datarootdir_hack
21294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21295 if $ac_cs_awk_getline; then
21296 $AWK -f "$ac_tmp/subs.
awk"
21298 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21300 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21302 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21303 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21304 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21305 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21307 which seems to be undefined. Please make sure it is defined" >&5
21308 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21309 which seems to be undefined. Please make sure it is defined" >&2;}
21311 rm -f "$ac_tmp/stdin"
21313 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21314 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21324 case $ac_file$ac_mode in
21325 "Makefile":F) sed "$extrasub_build" Makefile |
21326 sed "$extrasub_host" |
21327 sed "$extrasub_target" > mf$$
21328 mv -f mf$$ Makefile ;;
21336 ac_clean_files=$ac_clean_files_save
21338 test $ac_write_fail = 0 ||
21339 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21342 # configure is writing to config.log, and then calls config.status.
21343 # config.status does its own redirection, appending to config.log.
21344 # Unfortunately, on DOS this fails, as config.log is still kept open
21345 # by configure, so config.status won't be able to
write to it
; its
21346 # output is simply discarded. So we exec the FD to /dev/null,
21347 # effectively closing config.log, so it can be properly (re)opened and
21348 # appended to by config.status. When coming back to configure, we
21349 # need to make the FD available again.
21350 if test "$no_create" != yes; then
21352 ac_config_status_args
=
21353 test "$silent" = yes &&
21354 ac_config_status_args
="$ac_config_status_args --quiet"
21356 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21358 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21359 # would make configure fail if this is the last instruction.
21360 $ac_cs_success || as_fn_exit
1
21362 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21364 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}