2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="move-if-change"
586 enable_option_checking
=no
587 ac_subst_vars
='LTLIBOBJS
594 MAINTAINER_MODE_FALSE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
685 DEBUG_PREFIX_CFLAGS_FOR_TARGET
686 SYSROOT_CFLAGS_FOR_TARGET
688 extra_host_zlib_configure_flags
689 extra_host_libiberty_configure_flags
696 extra_linker_plugin_flags
697 extra_linker_plugin_configure_flags
704 extra_isl_gmp_configure_flags
705 extra_mpc_mpfr_configure_flags
706 extra_mpc_gmp_configure_flags
707 extra_mpfr_configure_flags
755 TOPLEVEL_CONFIGURE_ARGUMENTS
783 program_transform_name
794 ac_subst_files
='serialization_dependencies
800 enable_option_checking
804 enable_as_accelerator_for
805 enable_offload_targets
806 enable_offload_defaulted
810 enable_compressed_debug_sections
811 enable_default_compressed_debug_sections_algorithm
813 enable_libquadmath_support
830 with_static_standard_libraries
837 enable_isl_version_check
839 enable_linker_plugin_configure_flags
840 enable_linker_plugin_flags
843 enable_stage1_languages
846 with_target_bdw_gc_include
847 with_target_bdw_gc_lib
848 with_gcc_major_version_only
850 with_debug_prefix_map
853 enable_serial_configure
854 with_build_time_tools
855 enable_maintainer_mode
856 enable_stage1_checking
859 ac_precious_vars
='build_alias
912 # Initialize some variables set by options.
914 ac_init_version
=false
915 ac_unrecognized_opts
=
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
926 program_transform_name
=s
,x
,x
,
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir
='${exec_prefix}/bin'
941 sbindir
='${exec_prefix}/sbin'
942 libexecdir
='${exec_prefix}/libexec'
943 datarootdir
='${prefix}/share'
944 datadir
='${datarootdir}'
945 sysconfdir
='${prefix}/etc'
946 sharedstatedir
='${prefix}/com'
947 localstatedir
='${prefix}/var'
948 includedir
='${prefix}/include'
949 oldincludedir
='/usr/include'
950 docdir
='${datarootdir}/doc/${PACKAGE}'
951 infodir
='${datarootdir}/info'
956 libdir
='${exec_prefix}/lib'
957 localedir
='${datarootdir}/locale'
958 mandir
='${datarootdir}/man'
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\
$ac_option
972 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
983 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
985 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
988 -build |
--build |
--buil |
--bui |
--bu)
989 ac_prev
=build_alias
;;
990 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
991 build_alias
=$ac_optarg ;;
993 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
994 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
995 ac_prev
=cache_file
;;
996 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
997 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
998 cache_file
=$ac_optarg ;;
1000 --config-cache |
-C)
1001 cache_file
=config.cache
;;
1003 -datadir |
--datadir |
--datadi |
--datad)
1005 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1006 datadir
=$ac_optarg ;;
1008 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1009 |
--dataroo |
--dataro |
--datar)
1010 ac_prev
=datarootdir
;;
1011 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1012 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1013 datarootdir
=$ac_optarg ;;
1015 -disable-* |
--disable-*)
1016 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1019 as_fn_error $?
"invalid feature name: $ac_useropt"
1020 ac_useropt_orig
=$ac_useropt
1021 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1024 "enable_
$ac_useropt"
1026 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep
=', ';;
1029 eval enable_
$ac_useropt=no
;;
1031 -docdir |
--docdir |
--docdi |
--doc |
--do)
1033 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1034 docdir
=$ac_optarg ;;
1036 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1038 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1039 dvidir
=$ac_optarg ;;
1041 -enable-* |
--enable-*)
1042 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1045 as_fn_error $?
"invalid feature name: $ac_useropt"
1046 ac_useropt_orig
=$ac_useropt
1047 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_
$ac_useropt"
1052 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep
=', ';;
1055 eval enable_
$ac_useropt=\
$ac_optarg ;;
1057 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1058 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1059 |
--exec |
--exe |
--ex)
1060 ac_prev
=exec_prefix
;;
1061 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1062 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1063 |
--exec=* |
--exe=* |
--ex=*)
1064 exec_prefix
=$ac_optarg ;;
1066 -gas |
--gas |
--ga |
--g)
1067 # Obsolete; use --with-gas.
1070 -help |
--help |
--hel |
--he |
-h)
1071 ac_init_help
=long
;;
1072 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1073 ac_init_help
=recursive
;;
1074 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1075 ac_init_help
=short
;;
1077 -host |
--host |
--hos |
--ho)
1078 ac_prev
=host_alias
;;
1079 -host=* |
--host=* |
--hos=* |
--ho=*)
1080 host_alias
=$ac_optarg ;;
1082 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1084 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1086 htmldir
=$ac_optarg ;;
1088 -includedir |
--includedir |
--includedi |
--included |
--include \
1089 |
--includ |
--inclu |
--incl |
--inc)
1090 ac_prev
=includedir
;;
1091 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1092 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1093 includedir
=$ac_optarg ;;
1095 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1097 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1098 infodir
=$ac_optarg ;;
1100 -libdir |
--libdir |
--libdi |
--libd)
1102 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1103 libdir
=$ac_optarg ;;
1105 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1106 |
--libexe |
--libex |
--libe)
1107 ac_prev
=libexecdir
;;
1108 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1109 |
--libexe=* |
--libex=* |
--libe=*)
1110 libexecdir
=$ac_optarg ;;
1112 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1113 ac_prev
=localedir
;;
1114 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1115 localedir
=$ac_optarg ;;
1117 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1118 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1119 ac_prev
=localstatedir
;;
1120 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1121 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1122 localstatedir
=$ac_optarg ;;
1124 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1126 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1127 mandir
=$ac_optarg ;;
1129 -nfp |
--nfp |
--nf)
1130 # Obsolete; use --without-fp.
1133 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1134 |
--no-cr |
--no-c |
-n)
1137 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1138 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1141 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1142 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1143 |
--oldin |
--oldi |
--old |
--ol |
--o)
1144 ac_prev
=oldincludedir
;;
1145 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1146 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1147 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1148 oldincludedir
=$ac_optarg ;;
1150 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1152 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1153 prefix
=$ac_optarg ;;
1155 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1156 |
--program-pre |
--program-pr |
--program-p)
1157 ac_prev
=program_prefix
;;
1158 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1159 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1160 program_prefix
=$ac_optarg ;;
1162 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1163 |
--program-suf |
--program-su |
--program-s)
1164 ac_prev
=program_suffix
;;
1165 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1166 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1167 program_suffix
=$ac_optarg ;;
1169 -program-transform-name |
--program-transform-name \
1170 |
--program-transform-nam |
--program-transform-na \
1171 |
--program-transform-n |
--program-transform- \
1172 |
--program-transform |
--program-transfor \
1173 |
--program-transfo |
--program-transf \
1174 |
--program-trans |
--program-tran \
1175 |
--progr-tra |
--program-tr |
--program-t)
1176 ac_prev
=program_transform_name
;;
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 program_transform_name
=$ac_optarg ;;
1186 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1188 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1189 pdfdir
=$ac_optarg ;;
1191 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1193 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1196 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1197 |
-silent |
--silent |
--silen |
--sile |
--sil)
1200 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1202 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1204 sbindir
=$ac_optarg ;;
1206 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1207 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1208 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1210 ac_prev
=sharedstatedir
;;
1211 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1212 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1213 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1215 sharedstatedir
=$ac_optarg ;;
1217 -site |
--site |
--sit)
1219 -site=* |
--site=* |
--sit=*)
1222 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1224 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1225 srcdir
=$ac_optarg ;;
1227 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1228 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1229 ac_prev
=sysconfdir
;;
1230 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1231 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1232 sysconfdir
=$ac_optarg ;;
1234 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1235 ac_prev
=target_alias
;;
1236 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1237 target_alias
=$ac_optarg ;;
1239 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1242 -version |
--version |
--versio |
--versi |
--vers |
-V)
1243 ac_init_version
=: ;;
1246 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1249 as_fn_error $?
"invalid package name: $ac_useropt"
1250 ac_useropt_orig
=$ac_useropt
1251 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1256 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257 ac_unrecognized_sep
=', ';;
1259 eval with_
$ac_useropt=\
$ac_optarg ;;
1261 -without-* |
--without-*)
1262 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1265 as_fn_error $?
"invalid package name: $ac_useropt"
1266 ac_useropt_orig
=$ac_useropt
1267 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1272 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep
=', ';;
1275 eval with_
$ac_useropt=no
;;
1278 # Obsolete; use --with-x.
1281 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1282 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1283 ac_prev
=x_includes
;;
1284 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1285 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1286 x_includes
=$ac_optarg ;;
1288 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1289 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1290 ac_prev
=x_libraries
;;
1291 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1292 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1293 x_libraries
=$ac_optarg ;;
1295 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1296 Try \`$0 --help' for more information"
1300 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
1302 case $ac_envvar in #(
1303 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1304 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1306 eval $ac_envvar=\
$ac_optarg
1307 export $ac_envvar ;;
1310 # FIXME: should be removed in autoconf 3.0.
1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320 if test -n "$ac_prev"; then
1321 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1322 as_fn_error $?
"missing argument to $ac_option"
1325 if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1328 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 # Check all directory arguments for consistency.
1334 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1339 eval ac_val
=\$
$ac_var
1340 # Remove trailing slashes.
1343 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344 eval $ac_var=\
$ac_val;;
1346 # Be sure to have absolute directory names.
1348 [\\/$
]* | ?
:[\\/]* ) continue;;
1349 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1351 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1359 target
=$target_alias
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x
; then
1363 if test "x$build_alias" = x
; then
1364 cross_compiling
=maybe
1365 elif test "x$build_alias" != "x$host_alias"; then
1371 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1373 test "$silent" = yes && exec 6>/dev
/null
1376 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1377 ac_ls_di
=`ls -di .` &&
1378 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1379 as_fn_error $?
"working directory cannot be determined"
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381 as_fn_error $?
"pwd does not report name of working directory"
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386 ac_srcdir_defaulted
=yes
1387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir
=`$as_dirname -- "$as_myself" ||
1389 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$as_myself" : 'X\(//\)[^/]' \| \
1391 X"$as_myself" : 'X\(//\)$' \| \
1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393 $as_echo X"$as_myself" |
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1416 ac_srcdir_defaulted
=no
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1420 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1422 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1434 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 as_fn_error $?
"path to source, $srcdir, contains spaces"
1441 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1443 for ac_var
in $ac_precious_vars; do
1444 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1445 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1446 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1447 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1451 # Report the --help message.
1453 if test "$ac_init_help" = "long"; then
1454 # Omit some internal or obsolete options to make the list less imposing.
1455 # This message is too long to be a string in the A/UX 3.1 sh.
1457 \`configure' configures this package to adapt to many kinds of systems.
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE. See below for descriptions of some of the useful variables.
1464 Defaults for the options are specified in brackets.
1467 -h, --help display this help and exit
1468 --help=short display options specific to this package
1469 --help=recursive display the short help of all the included packages
1470 -V, --version display version information and exit
1471 -q, --quiet, --silent do not print \`checking ...' messages
1472 --cache-file=FILE cache test results in FILE [disabled]
1473 -C, --config-cache alias for \`--cache-file=config.cache'
1474 -n, --no-create do not create output files
1475 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477 Installation directories:
1478 --prefix=PREFIX install architecture-independent files in PREFIX
1479 [$ac_default_prefix]
1480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1488 For better control, use the options below.
1490 Fine tuning of the installation directories:
1491 --bindir=DIR user executables [EPREFIX/bin]
1492 --sbindir=DIR system admin executables [EPREFIX/sbin]
1493 --libexecdir=DIR program executables [EPREFIX/libexec]
1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1497 --libdir=DIR object code libraries [EPREFIX/lib]
1498 --includedir=DIR C header files [PREFIX/include]
1499 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1500 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1501 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1502 --infodir=DIR info documentation [DATAROOTDIR/info]
1503 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1504 --mandir=DIR man documentation [DATAROOTDIR/man]
1505 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1506 --htmldir=DIR html documentation [DOCDIR]
1507 --dvidir=DIR dvi documentation [DOCDIR]
1508 --pdfdir=DIR pdf documentation [DOCDIR]
1509 --psdir=DIR ps documentation [DOCDIR]
1515 --program-prefix=PREFIX prepend PREFIX to installed program names
1516 --program-suffix=SUFFIX append SUFFIX to installed program names
1517 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1520 --build=BUILD configure
for building on BUILD
[guessed
]
1521 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1522 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1526 if test -n "$ac_init_help"; then
1531 --disable-option-checking ignore unrecognized
--enable/--with options
1532 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1533 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1534 --enable-as-accelerator-for=ARG
1535 build as offload target compiler. Specify offload
1537 --enable-offload-targets=LIST
1538 enable offloading to devices from comma-separated
1539 LIST of TARGET
[=DIR
]. Use optional path to
find
1540 offload target compiler during the build
1541 --enable-offload-defaulted
1542 If enabled
, configured but not installed offload compilers and
1543 libgomp plugins are silently ignored. Useful
for distribution
1544 compilers where those are
in separate optional packages.
1546 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1547 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1548 --enable-gprofng[=ARG
] build gprofng
[ARG
={yes,no
}]
1549 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1550 Enable compressed debug sections
for gas
, gold or ld
1552 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1553 Default compression algorithm
for
1554 --enable-compressed-debug-sections.
1555 --disable-libquadmath do not build libquadmath directory
1556 --disable-libquadmath-support
1557 disable libquadmath support
for Fortran
1558 --enable-libada build libada directory
1559 --enable-libgm2 build libgm2 directory
1560 --enable-libssp build libssp directory
1561 --disable-libstdcxx do not build libstdc
++-v3 directory
1562 --enable-bootstrap enable bootstrapping
[yes if native build
]
1563 --enable-pgo-build[=lto
]
1564 enable the PGO build
1565 --disable-isl-version-check
1566 disable check
for isl version
1567 --enable-lto enable link
time optimization support
1568 --enable-linker-plugin-configure-flags=FLAGS
1569 additional flags
for configuring linker plugins
1571 --enable-linker-plugin-flags=FLAGS
1572 additional flags
for configuring and building linker
1574 --enable-host-pie build position independent
host executables
1575 --enable-host-shared build
host code as shared libraries
1576 --enable-stage1-languages[=all
]
1577 choose additional languages to build during stage1.
1578 Mostly useful
for compiler development
1579 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1581 --enable-vtable-verify Enable vtable verification feature
1582 --enable-serial-[{host,target,build}-]configure
1583 force sequential configuration of sub-packages for
1584 the host, target or build machine, or all
1586 --enable-maintainer-mode
1587 enable make rules and dependencies not useful (and
1588 sometimes confusing) to the casual installer
1589 --enable-stage1-checking[=all]
1590 choose additional checking for stage1 of the
1592 --enable-werror enable -Werror in bootstrap stage2 and later
1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1597 --with-build-libsubdir=DIR Directory where to find libraries for build system
1598 --with-system-zlib use installed libz
1599 --with-zstd Support zstd compressed debug sections
1601 --with-mpc=PATH specify prefix directory for installed MPC package.
1602 Equivalent to --with-mpc-include=PATH/include plus
1603 --with-mpc-lib=PATH/lib
1604 --with-mpc-include=PATH specify directory for installed MPC include files
1605 --with-mpc-lib=PATH specify directory for the installed MPC library
1606 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1607 Equivalent to --with-mpfr-include=PATH/include plus
1608 --with-mpfr-lib=PATH/lib
1609 --with-mpfr-include=PATH
1610 specify directory for installed MPFR include files
1611 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1612 --with-gmp=PATH specify prefix directory for the installed GMP
1613 package. Equivalent to
1614 --with-gmp-include=PATH/include plus
1615 --with-gmp-lib=PATH/lib
1616 --with-gmp-include=PATH specify directory for installed GMP include files
1617 --with-gmp-lib=PATH specify directory for the installed GMP library
1618 --with-stage1-libs=LIBS libraries for stage1
1619 --with-static-standard-libraries
1620 use -static-libstdc++ and -static-libgcc
1622 --with-stage1-ldflags=FLAGS
1623 linker flags for stage1
1624 --with-boot-libs=LIBS libraries for stage2 and later
1625 --with-boot-ldflags=FLAGS
1626 linker flags for stage2 and later
1627 --with-isl=PATH Specify prefix directory for the installed isl
1628 package. Equivalent to
1629 --with-isl-include=PATH/include plus
1630 --with-isl-lib=PATH/lib
1631 --with-isl-include=PATH Specify directory for installed isl include files
1632 --with-isl-lib=PATH Specify the directory for the installed isl library
1633 --with-target-bdw-gc=PATHLIST
1634 specify prefix directory for installed bdw-gc
1635 package. Equivalent to
1636 --with-target-bdw-gc-include=PATH/include plus
1637 --with-target-bdw-gc-lib=PATH/lib
1638 --with-target-bdw-gc-include=PATHLIST
1639 specify directories for installed bdw-gc include
1641 --with-target-bdw-gc-lib=PATHLIST
1642 specify directories for installed bdw-gc library
1643 --with-gcc-major-version-only
1644 use only GCC major number in filesystem paths
1645 --with-build-sysroot=SYSROOT
1646 use sysroot as the system root during the build
1647 --with-debug-prefix-map='A
=B C
=D ...
'
1648 map A to B, C to D ... in debug information
1649 --with-build-config='NAME NAME2...
'
1650 use config/NAME.mk build configuration
1651 --with-build-time-tools=PATH
1652 use given path to find target tools during the build
1654 Some influential environment variables:
1655 CC C compiler command
1656 CFLAGS C compiler flags
1657 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1658 nonstandard directory <lib dir>
1659 LIBS libraries to pass to the linker, e.g. -l<library>
1660 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1661 you have headers in a nonstandard directory <include dir>
1662 CXX C++ compiler command
1663 CXXFLAGS C++ compiler flags
1665 additional configure arguments for build directories
1667 additional configure arguments for host directories
1669 additional configure arguments for target directories
1672 DLLTOOL DLLTOOL for the host
1673 DSYMUTIL DSYMUTIL for the host
1675 LIPO LIPO for the host
1677 RANLIB RANLIB for the host
1678 STRIP STRIP for the host
1679 WINDRES WINDRES for the host
1680 WINDMC WINDMC for the host
1681 OBJCOPY OBJCOPY for the host
1682 OBJDUMP OBJDUMP for the host
1683 OTOOL OTOOL for the host
1684 READELF READELF for the host
1692 GFORTRAN for the target
1704 DLLTOOL for the target
1706 DSYMUTIL for the target
1714 OBJCOPY for the target
1716 OBJDUMP for the target
1718 OTOOL for the target
1720 RANLIB for the target
1722 READELF for the target
1724 STRIP for the target
1726 WINDRES for the target
1728 WINDMC for the target
1730 Use these variables to override the choices made by `configure' or to
help
1731 it to
find libraries and programs with nonstandard names
/locations.
1733 Report bugs to the package provider.
1738 if test "$ac_init_help" = "recursive"; then
1739 # If there are subdirs, report their specific --help.
1740 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1741 test -d "$ac_dir" ||
1742 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1747 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1749 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1750 # A ".." for each directory in $ac_dir_suffix.
1751 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1752 case $ac_top_builddir_sub in
1753 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1754 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1757 ac_abs_top_builddir
=$ac_pwd
1758 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1759 # for backward compatibility:
1760 ac_top_builddir
=$ac_top_build_prefix
1763 .
) # We are building in place.
1765 ac_top_srcdir
=$ac_top_builddir_sub
1766 ac_abs_top_srcdir
=$ac_pwd ;;
1767 [\\/]* | ?
:[\\/]* ) # Absolute name.
1768 ac_srcdir
=$srcdir$ac_dir_suffix;
1769 ac_top_srcdir
=$srcdir
1770 ac_abs_top_srcdir
=$srcdir ;;
1772 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1773 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1774 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1776 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1778 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1779 # Check for guested configure.
1780 if test -f "$ac_srcdir/configure.gnu"; then
1782 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1783 elif test -f "$ac_srcdir/configure"; then
1785 $SHELL "$ac_srcdir/configure" --help=recursive
1787 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1789 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1793 test -n "$ac_init_help" && exit $ac_status
1794 if $ac_init_version; then
1797 generated by GNU Autoconf
2.69
1799 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1800 This configure
script is free software
; the Free Software Foundation
1801 gives unlimited permission to copy
, distribute and modify it.
1806 ## ------------------------ ##
1807 ## Autoconf initialization. ##
1808 ## ------------------------ ##
1810 # ac_fn_c_try_compile LINENO
1811 # --------------------------
1812 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_c_try_compile
()
1815 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1816 rm -f conftest.
$ac_objext
1817 if { { ac_try
="$ac_compile"
1819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_compile") 2>conftest.err
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_c_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest.$ac_objext; then :
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
1846 } # ac_fn_c_try_compile
1848 # ac_fn_cxx_try_compile LINENO
1849 # ----------------------------
1850 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_cxx_try_compile ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext
1855 if { { ac_try="$ac_compile"
1857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1858 *) ac_try_echo
=$ac_try;;
1860 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_compile") 2>conftest.err
1864 if test -s conftest.err
; then
1865 grep -v '^ *+' conftest.err
>conftest.er1
1866 cat conftest.er1
>&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_cxx_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest.
$ac_objext; then :
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.
$ac_ext >&5
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status
$ac_retval
1884 } # ac_fn_cxx_try_compile
1886 # ac_fn_cxx_try_link LINENO
1887 # -------------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_link
()
1891 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1892 rm -f conftest.
$ac_objext conftest
$ac_exeext
1893 if { { ac_try
="$ac_link"
1895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>conftest.err
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest$ac_exeext && {
1912 test "$cross_compiling" = yes ||
1913 test -x conftest$ac_exeext
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1922 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1923 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1924 # interfere with the next link command; also delete a directory that is
1925 # left behind by Apple's compiler. We do this before executing the actions.
1926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 as_fn_set_status $ac_retval
1930 } # ac_fn_cxx_try_link
1932 # ac_fn_c_try_link LINENO
1933 # -----------------------
1934 # Try to link conftest.$ac_ext, and return whether this succeeded.
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext conftest$ac_exeext
1939 if { { ac_try="$ac_link"
1941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1942 *) ac_try_echo
=$ac_try;;
1944 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>conftest.err
1948 if test -s conftest.err
; then
1949 grep -v '^ *+' conftest.err
>conftest.er1
1950 cat conftest.er1
>&5
1951 mv -f conftest.er1 conftest.err
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_c_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest
$ac_exeext && {
1958 test "$cross_compiling" = yes ||
1959 test -x conftest
$ac_exeext
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.
$ac_ext >&5
1968 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970 # interfere with the next link command; also delete a directory that is
1971 # left behind by Apple's compiler. We do this before executing the actions.
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 as_fn_set_status
$ac_retval
1976 } # ac_fn_c_try_link
1977 cat >config.log
<<_ACEOF
1978 This file contains any messages produced by compilers while
1979 running configure, to aid debugging if configure makes a mistake.
1981 It was created by $as_me, which was
1982 generated by GNU Autoconf 2.69. Invocation command line was
1994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2006 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir
=.
2018 $as_echo "PATH: $as_dir"
2034 # Keep a trace of the command line.
2035 # Strip out --no-create and --no-recursion so they do not pile up.
2036 # Strip out --silent because we don't want to record it for future runs.
2037 # Also quote any args containing shell meta-characters.
2038 # Make two passes to allow for proper duplicate-argument suppression.
2042 ac_must_keep_next
=false
2048 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2049 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2050 |
-silent |
--silent |
--silen |
--sile |
--sil)
2053 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2056 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2058 as_fn_append ac_configure_args1
" '$ac_arg'"
2059 if test $ac_must_keep_next = true
; then
2060 ac_must_keep_next
=false
# Got value, back to normal.
2063 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2064 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2065 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2066 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2067 case "$ac_configure_args0 " in
2068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2071 -* ) ac_must_keep_next
=true
;;
2074 as_fn_append ac_configure_args
" '$ac_arg'"
2079 { ac_configure_args0
=; unset ac_configure_args0
;}
2080 { ac_configure_args1
=; unset ac_configure_args1
;}
2082 # When interrupted or exit'd, cleanup temporary files, and complete
2083 # config.log. We remove comments because anyway the quotes in there
2084 # would cause problems or look ugly.
2085 # WARNING: Use '\'' to represent an apostrophe within the trap.
2086 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2087 trap 'exit_status=$?
2088 # Save into config.log some information that might help in debugging.
2092 $as_echo "## ---------------- ##
2093 ## Cache variables. ##
2094 ## ---------------- ##"
2096 # The following way of writing the cache mishandles newlines in values,
2098 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2099 eval ac_val=\$$ac_var
2103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2104 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2107 _ | IFS | as_nl) ;; #(
2108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2109 *) { eval $ac_var=; unset $ac_var;} ;;
2114 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2115 *${as_nl}ac_space=\ *)
2117 "s/'\''/'\''\\\\'\'''\''/g;
2118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2128 $as_echo "## ----------------- ##
2129 ## Output variables. ##
2130 ## ----------------- ##"
2132 for ac_var in $ac_subst_vars
2134 eval ac_val=\$$ac_var
2136 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2138 $as_echo "$ac_var='\''$ac_val'\''"
2142 if test -n "$ac_subst_files"; then
2143 $as_echo "## ------------------- ##
2144 ## File substitutions. ##
2145 ## ------------------- ##"
2147 for ac_var
in $ac_subst_files
2149 eval ac_val
=\$
$ac_var
2151 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2153 $as_echo "$ac_var='\''$ac_val'\''"
2158 if test -s confdefs.h; then
2159 $as_echo "## ----------- ##
2166 test "$ac_signal" != 0 &&
2167 $as_echo "$as_me: caught signal $ac_signal"
2168 $as_echo "$as_me: exit $exit_status"
2170 rm -f core *.core core.conftest.* &&
2171 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2174 for ac_signal
in 1 2 13 15; do
2175 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2180 rm -f -r conftest
* confdefs.h
2182 $as_echo "/* confdefs.h */" > confdefs.h
2184 # Predefined preprocessor variables.
2186 cat >>confdefs.h
<<_ACEOF
2187 #define PACKAGE_NAME "$PACKAGE_NAME"
2190 cat >>confdefs.h
<<_ACEOF
2191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2194 cat >>confdefs.h
<<_ACEOF
2195 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2198 cat >>confdefs.h
<<_ACEOF
2199 #define PACKAGE_STRING "$PACKAGE_STRING"
2202 cat >>confdefs.h
<<_ACEOF
2203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2206 cat >>confdefs.h
<<_ACEOF
2207 #define PACKAGE_URL "$PACKAGE_URL"
2211 # Let the site file select an alternate cache file if it wants to.
2212 # Prefer an explicitly selected file to automatically selected ones.
2215 if test -n "$CONFIG_SITE"; then
2216 # We do not want a PATH search for config.site.
2217 case $CONFIG_SITE in #((
2218 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2219 */*) ac_site_file1
=$CONFIG_SITE;;
2220 *) ac_site_file1
=.
/$CONFIG_SITE;;
2222 elif test "x$prefix" != xNONE
; then
2223 ac_site_file1
=$prefix/share
/config.site
2224 ac_site_file2
=$prefix/etc
/config.site
2226 ac_site_file1
=$ac_default_prefix/share
/config.site
2227 ac_site_file2
=$ac_default_prefix/etc
/config.site
2229 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2231 test "x$ac_site_file" = xNONE
&& continue
2232 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2234 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2235 sed 's/^/| /' "$ac_site_file" >&5
2237 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2239 as_fn_error $?
"failed to load site script $ac_site_file
2240 See \`config.log' for more details" "$LINENO" 5; }
2244 if test -r "$cache_file"; then
2245 # Some versions of bash will fail to source /dev/null (special files
2246 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2247 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2249 $as_echo "$as_me: loading cache $cache_file" >&6;}
2251 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2252 *) .
"./$cache_file";;
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2257 $as_echo "$as_me: creating cache $cache_file" >&6;}
2261 # Check that the precious variables saved in the cache have kept the same
2263 ac_cache_corrupted
=false
2264 for ac_var
in $ac_precious_vars; do
2265 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2266 eval ac_new_set
=\
$ac_env_${ac_var}_set
2267 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2268 eval ac_new_val
=\
$ac_env_${ac_var}_value
2269 case $ac_old_set,$ac_new_set in
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2272 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2273 ac_cache_corrupted
=: ;;
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2276 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2277 ac_cache_corrupted
=: ;;
2280 if test "x$ac_old_val" != "x$ac_new_val"; then
2281 # differences in whitespace do not lead to failure.
2282 ac_old_val_w
=`echo x $ac_old_val`
2283 ac_new_val_w
=`echo x $ac_new_val`
2284 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2286 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2287 ac_cache_corrupted
=:
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2290 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2291 eval $ac_var=\
$ac_old_val
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2294 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2296 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2299 # Pass precious variables to config.status.
2300 if test "$ac_new_set" = set; then
2302 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2303 *) ac_arg
=$ac_var=$ac_new_val ;;
2305 case " $ac_configure_args " in
2306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2307 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2311 if $ac_cache_corrupted; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2315 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2316 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2318 ## -------------------- ##
2319 ## Main body of script. ##
2320 ## -------------------- ##
2323 ac_cpp
='$CPP $CPPFLAGS'
2324 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2325 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2326 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2336 # if PWD already has a value, it is probably wrong.
2337 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2339 # Export original configure arguments for use by sub-configures.
2340 # Quote arguments with shell meta charatcers.
2341 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2342 set -- "$progname" "$@"
2346 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2347 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2348 # if the argument is of the form -foo=baz, quote the baz part only
2349 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2352 # Add the quoted argument to the list.
2353 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2355 if test "$silent" = yes; then
2356 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2358 # Remove the initial space we just introduced and, as these will be
2359 # expanded by make, quote '$'.
2360 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2363 # Find the build, host, and target systems.
2365 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2366 if test -f "$ac_dir/install-sh"; then
2368 ac_install_sh
="$ac_aux_dir/install-sh -c"
2370 elif test -f "$ac_dir/install.sh"; then
2372 ac_install_sh
="$ac_aux_dir/install.sh -c"
2374 elif test -f "$ac_dir/shtool"; then
2376 ac_install_sh
="$ac_aux_dir/shtool install -c"
2380 if test -z "$ac_aux_dir"; then
2381 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2384 # These three variables are undocumented and unsupported,
2385 # and are intended to be withdrawn in a future Autoconf release.
2386 # They can cause serious problems if a builder's source tree is in a directory
2387 # whose full name contains unusual characters.
2388 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2389 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2390 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2393 # Make sure we can run config.sub.
2394 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2395 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2398 $as_echo_n "checking build system type... " >&6; }
2399 if ${ac_cv_build+:} false
; then :
2400 $as_echo_n "(cached) " >&6
2402 ac_build_alias
=$build_alias
2403 test "x$ac_build_alias" = x
&&
2404 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2405 test "x$ac_build_alias" = x
&&
2406 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2407 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2408 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2412 $as_echo "$ac_cv_build" >&6; }
2413 case $ac_cv_build in
2415 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2418 ac_save_IFS
=$IFS; IFS
='-'
2424 # Remember, the first character of IFS is used to create $*,
2425 # except with old shells:
2428 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2431 case ${build_alias} in
2432 "") build_noncanonical
=${build} ;;
2433 *) build_noncanonical
=${build_alias} ;;
2438 case ${host_alias} in
2439 "") host_noncanonical
=${build_noncanonical} ;;
2440 *) host_noncanonical
=${host_alias} ;;
2445 case ${target_alias} in
2446 "") target_noncanonical
=${host_noncanonical} ;;
2447 *) target_noncanonical
=${target_alias} ;;
2453 test "$host_noncanonical" = "$target_noncanonical" &&
2454 test "$program_prefix$program_suffix$program_transform_name" = \
2456 program_transform_name
=s
,y
,y
,
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2459 $as_echo_n "checking host system type... " >&6; }
2460 if ${ac_cv_host+:} false
; then :
2461 $as_echo_n "(cached) " >&6
2463 if test "x$host_alias" = x
; then
2464 ac_cv_host
=$ac_cv_build
2466 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2467 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2472 $as_echo "$ac_cv_host" >&6; }
2475 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2478 ac_save_IFS
=$IFS; IFS
='-'
2484 # Remember, the first character of IFS is used to create $*,
2485 # except with old shells:
2488 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2492 $as_echo_n "checking target system type... " >&6; }
2493 if ${ac_cv_target+:} false
; then :
2494 $as_echo_n "(cached) " >&6
2496 if test "x$target_alias" = x
; then
2497 ac_cv_target
=$ac_cv_host
2499 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2500 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2505 $as_echo "$ac_cv_target" >&6; }
2506 case $ac_cv_target in
2508 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2510 target
=$ac_cv_target
2511 ac_save_IFS
=$IFS; IFS
='-'
2517 # Remember, the first character of IFS is used to create $*,
2518 # except with old shells:
2521 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2524 # The aliases save the names the user supplied, while $host etc.
2525 # will get canonicalized.
2526 test -n "$target_alias" &&
2527 test "$program_prefix$program_suffix$program_transform_name" = \
2529 program_prefix
=${target_alias}-
2531 test "$program_prefix" != NONE
&&
2532 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2533 # Use a double $ so make ignores it.
2534 test "$program_suffix" != NONE
&&
2535 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2536 # Double any \ or $.
2537 # By default was `s,x,x', remove it if useless.
2538 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2539 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2543 # Get 'install' or 'install-sh' and its variants.
2544 # Find a good install program. We prefer a C program (faster),
2545 # so one script is as good as another. But avoid the broken or
2546 # incompatible versions:
2547 # SysV /etc/install, /usr/sbin/install
2548 # SunOS /usr/etc/install
2549 # IRIX /sbin/install
2551 # AmigaOS /C/install, which installs bootblocks on floppy discs
2552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2555 # OS/2's system install, which has a completely different semantic
2556 # ./install, which can be erroneously created by make from ./install.sh.
2557 # Reject install programs that cannot install multiple files.
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2559 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2560 if test -z "$INSTALL"; then
2561 if ${ac_cv_path_install+:} false
; then :
2562 $as_echo_n "(cached) " >&6
2564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir
=.
2569 # Account for people who put trailing slashes in PATH elements.
2570 case $as_dir/ in #((
2571 .
/ | .
// |
/[cC
]/* | \
2572 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2573 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2576 # OSF1 and SCO ODT 3.0 have their own names for install.
2577 # Don't use installbsd from OSF since it installs stuff as root
2579 for ac_prog
in ginstall scoinst
install; do
2580 for ac_exec_ext
in '' $ac_executable_extensions; do
2581 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2582 if test $ac_prog = install &&
2583 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2584 # AIX install. It has an incompatible calling convention.
2586 elif test $ac_prog = install &&
2587 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2588 # program-specific install script used by HP pwplus--don't use.
2591 rm -rf conftest.one conftest.two conftest.dir
2592 echo one
> conftest.one
2593 echo two
> conftest.two
2595 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2596 test -s conftest.one
&& test -s conftest.two
&&
2597 test -s conftest.dir
/conftest.one
&&
2598 test -s conftest.dir
/conftest.two
2600 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2613 rm -rf conftest.one conftest.two conftest.dir
2616 if test "${ac_cv_path_install+set}" = set; then
2617 INSTALL
=$ac_cv_path_install
2619 # As a last resort, use the slow shell script. Don't cache a
2620 # value for INSTALL within a source directory, because that will
2621 # break other packages using the cache if that directory is
2622 # removed, or if the value is a relative name.
2623 INSTALL
=$ac_install_sh
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2627 $as_echo "$INSTALL" >&6; }
2629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2630 # It thinks the first close brace ends the variable substitution.
2631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2635 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2638 $as_echo_n "checking whether ln works... " >&6; }
2639 if ${acx_cv_prog_LN+:} false
; then :
2640 $as_echo_n "(cached) " >&6
2642 rm -f conftestdata_t
2643 echo >conftestdata_f
2644 if ln conftestdata_f conftestdata_t
2>/dev
/null
2650 rm -f conftestdata_f conftestdata_t
2653 if test $acx_cv_prog_LN = no
; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2656 $as_echo "no, using $LN" >&6; }
2658 LN
="$acx_cv_prog_LN"
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2660 $as_echo "yes" >&6; }
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2664 $as_echo_n "checking whether ln -s works... " >&6; }
2666 if test "$LN_S" = "ln -s"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668 $as_echo "yes" >&6; }
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2671 $as_echo "no, using $LN_S" >&6; }
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2675 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2676 if ${ac_cv_path_SED+:} false
; then :
2677 $as_echo_n "(cached) " >&6
2679 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2680 for ac_i
in 1 2 3 4 5 6 7; do
2681 ac_script
="$ac_script$as_nl$ac_script"
2683 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2684 { ac_script
=; unset ac_script
;}
2685 if test -z "$SED"; then
2686 ac_path_SED_found
=false
2687 # Loop through the user's path and test for each of PROGNAME-LIST
2688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir
=.
2693 for ac_prog
in sed gsed
; do
2694 for ac_exec_ext
in '' $ac_executable_extensions; do
2695 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2696 as_fn_executable_p
"$ac_path_SED" ||
continue
2697 # Check for GNU ac_path_SED and select it if it is found.
2698 # Check for GNU $ac_path_SED
2699 case `"$ac_path_SED" --version 2>&1` in
2701 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2704 $as_echo_n 0123456789 >"conftest.in"
2707 cat "conftest.in" "conftest.in" >"conftest.tmp"
2708 mv "conftest.tmp" "conftest.in"
2709 cp "conftest.in" "conftest.nl"
2710 $as_echo '' >> "conftest.nl"
2711 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2712 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2713 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2714 if test $ac_count -gt ${ac_path_SED_max-0}; then
2715 # Best one so far, save it but keep looking for a better one
2716 ac_cv_path_SED
="$ac_path_SED"
2717 ac_path_SED_max
=$ac_count
2719 # 10*(2^10) chars as input seems more than enough
2720 test $ac_count -gt 10 && break
2722 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2725 $ac_path_SED_found && break 3
2730 if test -z "$ac_cv_path_SED"; then
2731 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2739 $as_echo "$ac_cv_path_SED" >&6; }
2740 SED
="$ac_cv_path_SED"
2743 for ac_prog
in gawk mawk nawk
awk
2745 # Extract the first word of "$ac_prog", so it can be a program name with args.
2746 set dummy
$ac_prog; ac_word
=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if ${ac_cv_prog_AWK+:} false
; then :
2750 $as_echo_n "(cached) " >&6
2752 if test -n "$AWK"; then
2753 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2759 test -z "$as_dir" && as_dir
=.
2760 for ac_exec_ext
in '' $ac_executable_extensions; do
2761 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2762 ac_cv_prog_AWK
="$ac_prog"
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 if test -n "$AWK"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2775 $as_echo "$AWK" >&6; }
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2782 test -n "$AWK" && break
2786 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2788 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2790 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2791 INSTALL
="${srcpwd}/install-sh -c"
2794 # Set srcdir to "." if that's what it is.
2795 # This is important for multilib support.
2797 if test "${pwd}" = "${srcpwd}" ; then
2805 ### To add a new directory to the tree, first choose whether it is a target
2806 ### or a host dependent tool. Then put it into the appropriate list
2807 ### (library or tools, host or target), doing a dependency sort.
2809 # Subdirs will be configured in the order listed in build_configdirs,
2810 # configdirs, or target_configdirs; see the serialization section below.
2812 # Dependency sorting is only needed when *configuration* must be done in
2813 # a particular order. In all cases a dependency should be specified in
2814 # the Makefile, whether or not it's implicitly specified here.
2816 # Double entries in build_configdirs, configdirs, or target_configdirs may
2817 # cause circular dependencies and break everything horribly.
2819 # these library is used by various programs built for the build
2822 build_libs
="build-libiberty build-libcpp"
2824 # these tools are built for the build environment
2825 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2827 # these libraries are used by various programs built for the host environment
2829 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2831 # these tools are built for the host environment
2832 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2833 # know that we are building the simulator.
2834 # binutils, gas and ld appear in that order because it makes sense to run
2835 # "make check" in that particular order.
2836 # If --enable-gold is used, "gold" may replace "ld".
2837 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"
2839 # these libraries are built for the target environment, and are built after
2840 # the host libraries and the host tools (which may be a cross compiler)
2841 # Note that libiberty is not a target library.
2842 target_libraries
="target-libgcc \
2843 target-libbacktrace \
2849 target-libstdc++-v3 \
2850 target-libsanitizer \
2853 target-libquadmath \
2854 target-libgfortran \
2863 # these tools are built using the target libraries, and are intended to
2864 # run only in the target environment
2866 # note: any program that *uses* libraries that are in the "target_libraries"
2867 # list belongs in this list.
2869 target_tools
="target-rda"
2871 ################################################################################
2873 ## All tools belong in one of the four categories, and are assigned above
2874 ## We assign ${configdirs} this way to remove all embedded newlines. This
2875 ## is important because configure will choke if they ever get through.
2876 ## ${configdirs} is directories we build using the host tools.
2877 ## ${target_configdirs} is directories we build using the target tools.
2878 configdirs
=`echo ${host_libs} ${host_tools}`
2879 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2880 build_configdirs
=`echo ${build_libs} ${build_tools}`
2884 ################################################################################
2886 srcname
="gnu development package"
2888 # This gets set non-empty for some net releases of packages.
2891 # Define is_cross_compiler to save on calls to 'test'.
2893 if test x
"${host}" = x
"${target}" ; then
2894 is_cross_compiler
=no
2896 is_cross_compiler
=yes
2899 # Find the build and target subdir names.
2901 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2902 # have matching libraries, they should use host libraries: Makefile.tpl
2903 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2904 # However, they still use the build modules, because the corresponding
2905 # host modules (e.g. bison) are only built for the host when bootstrap
2907 # - build_subdir is where we find build modules, and never changes.
2908 # - build_libsubdir is where we find build libraries, and can be overridden.
2910 # Prefix 'build-' so this never conflicts with target_subdir.
2911 build_subdir
="build-${build_noncanonical}"
2913 # Check whether --with-build-libsubdir was given.
2914 if test "${with_build_libsubdir+set}" = set; then :
2915 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2917 build_libsubdir
="$build_subdir"
2920 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2921 if ( test $srcdir = .
&& test -d gcc
) \
2922 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2923 host_subdir
="host-${host_noncanonical}"
2928 target_subdir
=${target_noncanonical}
2930 # Be sure to cover against remnants of an in-tree build.
2931 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2932 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2933 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2936 # Skipdirs are removed silently.
2938 # Noconfigdirs are removed loudly.
2942 # Make sure we don't let GNU ld be added if we didn't want it.
2943 if test x
$with_gnu_ld = xno
; then
2945 noconfigdirs
="$noconfigdirs ld gold"
2949 # Make sure we don't let GNU as be added if we didn't want it.
2950 if test x
$with_gnu_as = xno
; then
2952 noconfigdirs
="$noconfigdirs gas"
2957 # Check whether --with-system-zlib was given.
2958 if test "${with_system_zlib+set}" = set; then :
2959 withval
=$with_system_zlib;
2962 # Make sure we don't let ZLIB be added if we didn't want it.
2963 if test x
$with_system_zlib = xyes
; then
2964 use_included_zlib
=no
2965 noconfigdirs
="$noconfigdirs zlib"
2968 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2970 if test x
$with_system_readline = xyes
; then
2971 noconfigdirs
="$noconfigdirs readline"
2975 # Check whether --with-zstd was given.
2976 if test "${with_zstd+set}" = set; then :
2981 # some tools are so dependent upon X11 that if we're not building with X,
2982 # it's not even worth trying to configure, much less build, that tool.
2985 yes |
"") ;; # the default value for this tree is that X11 is available
2987 skipdirs
="${skipdirs} tk itcl libgui"
2988 # We won't be able to build gdbtk without X.
2991 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2994 # Some are only suitable for cross toolchains.
2995 # Remove these if host=target.
2996 cross_only
="target-libgloss target-newlib target-opcodes"
2998 case $is_cross_compiler in
2999 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
3002 # If both --with-headers and --with-libs are specified, default to
3004 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
3005 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
3006 if test x
"${with_newlib}" = x
; then
3011 # Recognize --with-newlib/--without-newlib.
3012 case ${with_newlib} in
3013 no
) skipdirs
="${skipdirs} target-newlib" ;;
3014 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3017 # Check whether --enable-as-accelerator-for was given.
3018 if test "${enable_as_accelerator_for+set}" = set; then :
3019 enableval
=$enable_as_accelerator_for;
3023 # Check whether --enable-offload-targets was given.
3024 if test "${enable_offload_targets+set}" = set; then :
3025 enableval
=$enable_offload_targets;
3026 if test x
"$enable_offload_targets" = x
; then
3027 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3031 enable_offload_targets
=
3035 # Check whether --enable-offload-defaulted was given.
3036 if test "${enable_offload_defaulted+set}" = set; then :
3037 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3039 enable_offload_defaulted
=
3043 # Handle --enable-gold, --enable-ld.
3044 # --disable-gold [--enable-ld]
3045 # Build only ld. Default option.
3046 # --enable-gold [--enable-ld]
3047 # Build both gold and ld. Install gold as "ld.gold", install ld
3048 # as "ld.bfd" and "ld".
3049 # --enable-gold=default [--enable-ld]
3050 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3051 # install ld as "ld.bfd".
3052 # --enable-gold[=default] --disable-ld
3053 # Build only gold, which is then installed as both "ld.gold" and "ld".
3054 # --enable-gold --enable-ld=default
3055 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3057 # In other words, ld is default
3058 # --enable-gold=default --enable-ld=default
3062 # Check whether --enable-gold was given.
3063 if test "${enable_gold+set}" = set; then :
3064 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3069 case "${ENABLE_GOLD}" in
3071 # Check for ELF target.
3074 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3075 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3076 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3077 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3079 *-*-linux*aout
* |
*-*-linux*oldld
*)
3087 if test "$is_elf" = "yes"; then
3088 # Check for target supported by gold.
3090 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3091 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3092 configdirs
="$configdirs gold"
3093 if test x
${ENABLE_GOLD} = xdefault
; then
3104 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3108 # Check whether --enable-ld was given.
3109 if test "${enable_ld+set}" = set; then :
3110 enableval
=$enable_ld; ENABLE_LD
=$enableval
3116 case "${ENABLE_LD}" in
3118 if test x
${default_ld} != x
; then
3119 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3125 if test x
${ENABLE_GOLD} != xyes
; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3127 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3129 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3132 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3136 # Check whether --enable-gprofng was given.
3137 if test "${enable_gprofng+set}" = set; then :
3138 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3143 if test "$enable_gprofng" = "yes"; then
3145 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux*)
3146 configdirs
="$configdirs gprofng"
3153 # Decide the default method for compressing debug sections.
3154 # Provide a configure time option to override our default.
3155 # Check whether --enable-compressed_debug_sections was given.
3156 if test "${enable_compressed_debug_sections+set}" = set; then :
3157 enableval
=$enable_compressed_debug_sections;
3158 if test x
"$enable_compressed_debug_sections" = xyes
; then
3159 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3163 enable_compressed_debug_sections
=
3167 # Select default compression algorithm.
3168 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3169 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3170 enableval
=$enable_default_compressed_debug_sections_algorithm;
3172 default_compressed_debug_sections_algorithm
=
3176 # Configure extra directories which are host specific
3180 configdirs
="$configdirs libtermcap" ;;
3183 # A target can indicate whether a language isn't supported for some reason.
3184 # Only spaces may be used in this macro; not newlines or tabs.
3185 unsupported_languages
=
3187 # Remove more programs from consideration, based on the host or
3188 # target this usually means that a port of the program doesn't
3192 i
[3456789]86-*-msdosdjgpp*)
3193 noconfigdirs
="$noconfigdirs tcl tk itcl"
3198 # Check whether --enable-libquadmath was given.
3199 if test "${enable_libquadmath+set}" = set; then :
3200 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3202 ENABLE_LIBQUADMATH
=yes
3205 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3206 noconfigdirs
="$noconfigdirs target-libquadmath"
3210 # Check whether --enable-libquadmath-support was given.
3211 if test "${enable_libquadmath_support+set}" = set; then :
3212 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3214 ENABLE_LIBQUADMATH_SUPPORT
=yes
3217 enable_libquadmath_support
=
3218 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3219 enable_libquadmath_support
=no
3223 # Check whether --enable-libada was given.
3224 if test "${enable_libada+set}" = set; then :
3225 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3230 if test "${ENABLE_LIBADA}" != "yes" ; then
3231 noconfigdirs
="$noconfigdirs gnattools"
3234 # Check whether --enable-libgm2 was given.
3235 if test "${enable_libgm2+set}" = set; then :
3236 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3241 if test "${ENABLE_LIBGM2}" != "yes" ; then
3242 noconfigdirs
="$noconfigdirs gm2tools"
3245 # Check whether --enable-libssp was given.
3246 if test "${enable_libssp+set}" = set; then :
3247 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3253 # Check whether --enable-libstdcxx was given.
3254 if test "${enable_libstdcxx+set}" = set; then :
3255 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3257 ENABLE_LIBSTDCXX
=default
3260 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3261 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3264 # Enable libgomp by default on hosted POSIX systems, and a few others.
3265 if test x
$enable_libgomp = x
; then
3267 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3269 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3271 *-*-solaris2* |
*-*-hpux11*)
3273 *-*-darwin* |
*-*-aix*)
3275 nvptx
*-*-* | amdgcn
*-*-*)
3278 noconfigdirs
="$noconfigdirs target-libgomp"
3283 # Disable libatomic on unsupported systems.
3284 if test -d ${srcdir}/libatomic
; then
3285 if test x
$enable_libatomic = x
; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3287 $as_echo_n "checking for libatomic support... " >&6; }
3288 if (srcdir
=${srcdir}/libatomic
; \
3289 .
${srcdir}/configure.tgt
; \
3290 test -n "$UNSUPPORTED")
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs
="$noconfigdirs target-libatomic"
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3302 # Disable libitm on unsupported systems.
3303 if test -d ${srcdir}/libitm
; then
3304 if test x
$enable_libitm = x
; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3306 $as_echo_n "checking for libitm support... " >&6; }
3307 if (srcdir
=${srcdir}/libitm
; \
3308 .
${srcdir}/configure.tgt
; \
3309 test -n "$UNSUPPORTED")
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 noconfigdirs
="$noconfigdirs target-libitm"
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3321 # Disable libsanitizer on unsupported systems.
3322 if test -d ${srcdir}/libsanitizer
; then
3323 if test x
$enable_libsanitizer = x
; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3325 $as_echo_n "checking for libsanitizer support... " >&6; }
3326 if (srcdir
=${srcdir}/libsanitizer
; \
3327 .
${srcdir}/configure.tgt
; \
3328 test -n "$UNSUPPORTED")
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 noconfigdirs
="$noconfigdirs target-libsanitizer"
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3340 # Disable libvtv on unsupported systems.
3341 if test -d ${srcdir}/libvtv
; then
3342 if test x
$enable_libvtv = x
; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3344 $as_echo_n "checking for libvtv support... " >&6; }
3345 if (srcdir
=${srcdir}/libvtv
; \
3346 .
${srcdir}/configure.tgt
; \
3347 test "$VTV_SUPPORTED" != "yes")
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 noconfigdirs
="$noconfigdirs target-libvtv"
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354 $as_echo "yes" >&6; }
3359 # Disable libquadmath for some systems.
3362 noconfigdirs
="$noconfigdirs target-libquadmath"
3364 # libquadmath is unused on AIX and libquadmath build process use of
3365 # LD_LIBRARY_PATH can break AIX bootstrap.
3366 powerpc-
*-aix* | rs6000-
*-aix*)
3367 noconfigdirs
="$noconfigdirs target-libquadmath"
3371 # Disable libssp for some systems.
3374 # No hosted I/O support.
3375 noconfigdirs
="$noconfigdirs target-libssp"
3378 noconfigdirs
="$noconfigdirs target-libssp"
3380 powerpc-
*-aix* | rs6000-
*-aix*)
3381 noconfigdirs
="$noconfigdirs target-libssp"
3384 # No hosted I/O support.
3385 noconfigdirs
="$noconfigdirs target-libssp"
3388 # libssp uses a misaligned load to trigger a fault, but the RL78
3389 # doesn't fault for those - instead, it gives a build-time error
3390 # for explicit misaligned loads.
3391 noconfigdirs
="$noconfigdirs target-libssp"
3394 # No hosted I/O support.
3395 noconfigdirs
="$noconfigdirs target-libssp"
3399 # Disable libstdc++-v3 for some systems.
3400 # Allow user to override this if they pass --enable-libstdcxx
3401 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3404 # VxWorks uses the Dinkumware C++ library.
3405 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3408 # Not ported/fails to build when using newlib.
3409 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3412 # the C++ libraries don't build on top of CE's C libraries
3413 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3416 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3419 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3422 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3427 # Disable C++ on systems where it is known to not work.
3428 # For testing, you can override this with --enable-languages=c++.
3429 case ,${enable_languages}, in
3435 unsupported_languages
="$unsupported_languages c++"
3441 # Disable Objc on systems where it is known to not work.
3442 # For testing, you can override this with --enable-languages=objc.
3443 case ,${enable_languages}, in
3449 unsupported_languages
="$unsupported_languages objc"
3455 # Disable D on systems where it is known to not work.
3456 # For testing, you can override this with --enable-languages=d.
3457 case ,${enable_languages}, in
3463 unsupported_languages
="$unsupported_languages d"
3469 # Disable libphobos on unsupported systems.
3470 # For testing, you can override this with --enable-libphobos.
3471 if test -d ${srcdir}/libphobos
; then
3472 if test x
$enable_libphobos = x
; then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3474 $as_echo_n "checking for libphobos support... " >&6; }
3475 if (srcdir
=${srcdir}/libphobos
; \
3476 .
${srcdir}/configure.tgt
; \
3477 test "$LIBPHOBOS_SUPPORTED" != "yes")
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3481 noconfigdirs
="$noconfigdirs target-libphobos"
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484 $as_echo "yes" >&6; }
3489 # Disable Fortran for some systems.
3492 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3493 unsupported_languages
="$unsupported_languages fortran"
3496 unsupported_languages
="$unsupported_languages fortran"
3500 # Disable libffi for some systems.
3504 i
[3456789]86-*-darwin*)
3506 x86_64-
*-darwin[912]*)
3509 noconfigdirs
="$noconfigdirs target-libffi"
3512 noconfigdirs
="$noconfigdirs target-libffi"
3515 noconfigdirs
="$noconfigdirs target-libffi"
3518 noconfigdirs
="$noconfigdirs target-libffi"
3521 noconfigdirs
="$noconfigdirs target-libffi"
3524 noconfigdirs
="$noconfigdirs target-libffi"
3527 noconfigdirs
="$noconfigdirs target-libffi"
3529 aarch64
*-*-freebsd*)
3530 noconfigdirs
="$noconfigdirs target-libffi"
3533 noconfigdirs
="$noconfigdirs target-libffi"
3536 noconfigdirs
="$noconfigdirs target-libffi"
3539 noconfigdirs
="$noconfigdirs target-libffi"
3542 noconfigdirs
="$noconfigdirs target-libffi"
3545 noconfigdirs
="$noconfigdirs target-libffi"
3547 cris-
*-* | crisv32-
*-*)
3551 *) # See PR46792 regarding target-libffi.
3552 noconfigdirs
="$noconfigdirs target-libffi";;
3556 noconfigdirs
="$noconfigdirs target-libffi"
3559 noconfigdirs
="$noconfigdirs target-libffi"
3561 i
[3456789]86-w64-mingw*)
3562 noconfigdirs
="$noconfigdirs target-libffi"
3564 i
[3456789]86-*-mingw*)
3565 noconfigdirs
="$noconfigdirs target-libffi"
3568 noconfigdirs
="$noconfigdirs target-libffi"
3571 noconfigdirs
="$noconfigdirs target-libffi"
3578 noconfigdirs
="$noconfigdirs target-libffi"
3581 noconfigdirs
="$noconfigdirs target-libffi"
3585 # Disable the go frontend on systems where it is known to not work. Please keep
3586 # this in sync with contrib/config-list.mk.
3588 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3589 unsupported_languages
="$unsupported_languages go"
3593 # Only allow gdbserver on some systems.
3594 if test -d ${srcdir}/gdbserver
; then
3595 if test x
$enable_gdbserver = x
; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3597 $as_echo_n "checking for gdbserver support... " >&6; }
3598 if (srcdir
=${srcdir}/gdbserver
; \
3599 .
${srcdir}/configure.srv
; \
3600 test -n "$UNSUPPORTED")
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3604 noconfigdirs
="$noconfigdirs gdbserver"
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3607 $as_echo "yes" >&6; }
3612 # Disable libgo for some systems where it is known to not work.
3613 # For testing, you can easily override this with --enable-libgo.
3614 if test x
$enable_libgo = x
; then
3618 noconfigdirs
="$noconfigdirs target-libgo"
3620 *-*-cygwin* |
*-*-mingw*)
3621 noconfigdirs
="$noconfigdirs target-libgo"
3624 noconfigdirs
="$noconfigdirs target-libgo"
3629 # Default libgloss CPU subdirectory.
3630 libgloss_dir
="$target_cpu"
3633 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3637 libgloss_dir
=aarch64
3642 cris-
*-* | crisv32-
*-*)
3652 libgloss_dir
=loongarch
3654 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3655 libgloss_dir
=m68hc11
3657 m68
*-*-* | fido-
*-*)
3674 # Disable newlib and libgloss for various target OSes.
3677 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3679 i
[3456789]86-*-linux*)
3680 # This section makes it possible to build newlib natively on linux.
3681 # If we are using a cross compiler then don't configure newlib.
3682 if test x
${is_cross_compiler} != xno
; then
3683 noconfigdirs
="$noconfigdirs target-newlib"
3685 noconfigdirs
="$noconfigdirs target-libgloss"
3686 # If we are not using a cross compiler, do configure newlib.
3687 # Note however, that newlib will only be configured in this situation
3688 # if the --with-newlib option has been given, because otherwise
3689 # 'target-newlib' will appear in skipdirs.
3691 i
[3456789]86-*-rdos*)
3692 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3694 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3695 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3698 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3701 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3704 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3707 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3710 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3713 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3716 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3718 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3719 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3722 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3725 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3728 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3731 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3734 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3737 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3740 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3748 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3749 noconfigdirs
="$noconfigdirs sim target-rda"
3754 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3755 noconfigdirs
="$noconfigdirs sim target-rda"
3758 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3759 noconfigdirs
="$noconfigdirs sim target-rda"
3761 i
[3456789]86-*-darwin*)
3762 noconfigdirs
="$noconfigdirs ld gprof"
3763 noconfigdirs
="$noconfigdirs sim target-rda"
3765 x86_64-
*-darwin[912]*)
3766 noconfigdirs
="$noconfigdirs ld gas gprof"
3767 noconfigdirs
="$noconfigdirs sim target-rda"
3770 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3771 noconfigdirs
="$noconfigdirs sim target-rda"
3776 if test "x$with_gmp" = x \
3777 && ! test -d ${srcdir}/gmp \
3778 && test -f /usr
/local
/include
/gmp.h
; then
3783 # Remove unsupported stuff on all kaOS configurations.
3784 noconfigdirs
="$noconfigdirs target-libgloss"
3791 noconfigdirs
="$noconfigdirs target-libgloss"
3794 noconfigdirs
="$noconfigdirs target-libgloss"
3796 # The tpf target doesn't support gdb yet.
3798 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3801 noconfigdirs
="$noconfigdirs target-rda"
3806 # ld works, but does not support shared libraries.
3807 # gas doesn't generate exception information.
3808 noconfigdirs
="$noconfigdirs gas ld"
3811 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3814 # newlib is not 64 bit ready
3815 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3818 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3820 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3821 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3824 noconfigdirs
="$noconfigdirs sim"
3827 noconfigdirs
="$noconfigdirs target-libgloss"
3830 noconfigdirs
="$noconfigdirs ld target-libgloss"
3833 if test x
${with_avrlibc} != xno
; then
3834 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3837 c4x-
*-* | tic4x-
*-*)
3838 noconfigdirs
="$noconfigdirs target-libgloss"
3841 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3844 noconfigdirs
="$noconfigdirs target-libgloss"
3847 noconfigdirs
="$noconfigdirs gdb"
3850 noconfigdirs
="$noconfigdirs gdb"
3853 noconfigdirs
="$noconfigdirs target-rda gprof"
3856 noconfigdirs
="$noconfigdirs"
3859 noconfigdirs
="$noconfigdirs target-libgloss"
3862 noconfigdirs
="$noconfigdirs target-libgloss"
3865 noconfigdirs
="$noconfigdirs gdb"
3873 hppa
*-*-openbsd* | \
3879 noconfigdirs
="$noconfigdirs ld"
3882 noconfigdirs
="$noconfigdirs gdb"
3885 # No gdb support yet.
3886 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3889 # No ld support yet.
3890 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3893 # No ld support yet.
3894 noconfigdirs
="$noconfigdirs libgui itcl ld"
3896 i
[3456789]86-w64-mingw*)
3898 i
[3456789]86-*-mingw*)
3899 target_configdirs
="$target_configdirs target-winsup"
3902 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3903 noconfigdirs
="$noconfigdirs target-libgloss"
3904 # always build newlib if winsup directory is present.
3905 if test -d "$srcdir/winsup/cygwin"; then
3906 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3907 elif test -d "$srcdir/newlib"; then
3908 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3912 noconfigdirs
="$noconfigdirs target-libgloss"
3914 i
[3456789]86-*-sco3.2v5
*)
3915 # The linker does not yet know about weak symbols in COFF,
3916 # and is not configured to handle mixed ELF and COFF.
3917 noconfigdirs
="$noconfigdirs ld target-libgloss"
3919 i
[3456789]86-*-sco*)
3920 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3922 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3923 noconfigdirs
="$noconfigdirs target-libgloss"
3925 i
[3456789]86-*-sysv4*)
3926 noconfigdirs
="$noconfigdirs target-libgloss"
3928 i
[3456789]86-*-beos*)
3929 noconfigdirs
="$noconfigdirs gdb"
3931 i
[3456789]86-*-rdos*)
3932 noconfigdirs
="$noconfigdirs gdb"
3935 noconfigdirs
="$noconfigdirs gdb"
3938 noconfigdirs
="$noconfigdirs sim"
3941 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3942 noconfigdirs
="$noconfigdirs $target_libraries"
3945 noconfigdirs
="$noconfigdirs gdb gprof"
3948 # copied from rs6000-*-* entry
3949 noconfigdirs
="$noconfigdirs gprof"
3951 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3952 target_configdirs
="$target_configdirs target-winsup"
3953 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3954 # always build newlib.
3955 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3957 # This is temporary until we can link against shared libraries
3958 powerpcle-
*-solaris*)
3959 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3962 noconfigdirs
="$noconfigdirs gdb"
3965 noconfigdirs
="$noconfigdirs gprof"
3968 noconfigdirs
="$noconfigdirs gprof"
3971 noconfigdirs
="$noconfigdirs gprof"
3974 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3977 noconfigdirs
="$noconfigdirs gprof"
3979 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3980 if test x
$with_newlib = xyes
; then
3981 noconfigdirs
="$noconfigdirs gprof"
3985 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3988 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3991 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3995 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3996 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3997 noconfigdirs
="$noconfigdirs ld gas gprof"
4000 noconfigdirs
="$noconfigdirs gprof"
4003 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4010 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4014 if test x
${is_cross_compiler} = xno
; then
4019 noconfigdirs
="$noconfigdirs sim"
4021 tilepro
*-*-* | tilegx
*-*-*)
4022 noconfigdirs
="$noconfigdirs sim"
4025 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4028 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4031 noconfigdirs
="$noconfigdirs ld"
4033 loongarch
*-*-linux*)
4036 noconfigdirs
="$noconfigdirs gprof"
4040 # If we aren't building newlib, then don't build libgloss, since libgloss
4041 # depends upon some newlib header files.
4042 case "${noconfigdirs}" in
4043 *target-libgloss
*) ;;
4044 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4047 # Work in distributions that contain no compiler tools, like Autoconf.
4048 host_makefile_frag
=/dev
/null
4049 if test -d ${srcdir}/config
; then
4051 i
[3456789]86-*-msdosdjgpp*)
4052 host_makefile_frag
="config/mh-djgpp"
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4057 $as_echo_n "checking to see if cat works as expected... " >&6; }
4058 echo a
>cygwin-cat-check
4059 if test `cat cygwin-cat-check` = a
; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4062 $as_echo "yes" >&6; }
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4067 as_fn_error $?
"The cat command does not ignore carriage return characters.
4068 Please either mount the build directory in binary mode or run the following
4069 commands before running any configure script:
4075 host_makefile_frag
="config/mh-cygwin"
4078 host_makefile_frag
="config/mh-mingw"
4081 host_makefile_frag
="config/mh-alpha-linux"
4084 host_makefile_frag
="config/mh-pa"
4087 host_makefile_frag
="config/mh-pa"
4089 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4090 host_makefile_frag
="config/mh-darwin"
4093 host_makefile_frag
="config/mh-ppc-aix"
4096 host_makefile_frag
="config/mh-ppc-aix"
4101 if test "${build}" != "${host}" ; then
4102 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4103 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4104 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4105 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4106 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4107 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4108 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4109 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4110 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4111 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4112 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4113 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4114 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4115 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4116 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4118 AR_FOR_BUILD
="\$(AR)"
4119 AS_FOR_BUILD
="\$(AS)"
4120 CC_FOR_BUILD
="\$(CC)"
4121 CXX_FOR_BUILD
="\$(CXX)"
4122 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4123 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4124 GOC_FOR_BUILD
="\$(GOC)"
4125 GDC_FOR_BUILD
="\$(GDC)"
4126 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4127 LD_FOR_BUILD
="\$(LD)"
4128 NM_FOR_BUILD
="\$(NM)"
4129 RANLIB_FOR_BUILD
="\$(RANLIB)"
4130 WINDRES_FOR_BUILD
="\$(WINDRES)"
4131 WINDMC_FOR_BUILD
="\$(WINDMC)"
4135 ac_cpp
='$CPP $CPPFLAGS'
4136 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4139 if test -n "$ac_tool_prefix"; then
4140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4141 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_prog_CC+:} false
; then :
4145 $as_echo_n "(cached) " >&6
4147 if test -n "$CC"; then
4148 ac_cv_prog_CC
="$CC" # Let the user override the test.
4150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir
=.
4155 for ac_exec_ext
in '' $ac_executable_extensions; do
4156 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 if test -n "$CC"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4170 $as_echo "$CC" >&6; }
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4178 if test -z "$ac_cv_prog_CC"; then
4180 # Extract the first word of "gcc", so it can be a program name with args.
4181 set dummy gcc
; ac_word
=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4185 $as_echo_n "(cached) " >&6
4187 if test -n "$ac_ct_CC"; then
4188 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir
=.
4195 for ac_exec_ext
in '' $ac_executable_extensions; do
4196 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_ac_ct_CC
="gcc"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4208 if test -n "$ac_ct_CC"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4210 $as_echo "$ac_ct_CC" >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4216 if test "x$ac_ct_CC" = x
; then
4219 case $cross_compiling:$ac_tool_warned in
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4223 ac_tool_warned
=yes ;;
4231 if test -z "$CC"; then
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4234 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_CC+:} false
; then :
4238 $as_echo_n "(cached) " >&6
4240 if test -n "$CC"; then
4241 ac_cv_prog_CC
="$CC" # Let the user override the test.
4243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir
=.
4248 for ac_exec_ext
in '' $ac_executable_extensions; do
4249 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4250 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 if test -n "$CC"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4263 $as_echo "$CC" >&6; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4272 if test -z "$CC"; then
4273 # Extract the first word of "cc", so it can be a program name with args.
4274 set dummy cc
; ac_word
=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_prog_CC+:} false
; then :
4278 $as_echo_n "(cached) " >&6
4280 if test -n "$CC"; then
4281 ac_cv_prog_CC
="$CC" # Let the user override the test.
4284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4288 test -z "$as_dir" && as_dir
=.
4289 for ac_exec_ext
in '' $ac_executable_extensions; do
4290 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4292 ac_prog_rejected
=yes
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 if test $ac_prog_rejected = yes; then
4304 # We found a bogon in the path, so make sure we never use it.
4305 set dummy
$ac_cv_prog_CC
4307 if test $# != 0; then
4308 # We chose a different compiler from the bogus one.
4309 # However, it has the same basename, so the bogon will be chosen
4310 # first if we set CC to just the basename; use the full file name.
4312 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4318 if test -n "$CC"; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4320 $as_echo "$CC" >&6; }
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323 $as_echo "no" >&6; }
4328 if test -z "$CC"; then
4329 if test -n "$ac_tool_prefix"; then
4330 for ac_prog
in cl.exe
4332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4333 set dummy
$ac_tool_prefix$ac_prog; 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_CC+:} false
; then :
4337 $as_echo_n "(cached) " >&6
4339 if test -n "$CC"; then
4340 ac_cv_prog_CC
="$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_CC
="$ac_tool_prefix$ac_prog"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 if test -n "$CC"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4362 $as_echo "$CC" >&6; }
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4369 test -n "$CC" && break
4372 if test -z "$CC"; then
4374 for ac_prog
in cl.exe
4376 # Extract the first word of "$ac_prog", so it can be a program name with args.
4377 set dummy
$ac_prog; ac_word
=$2
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4381 $as_echo_n "(cached) " >&6
4383 if test -n "$ac_ct_CC"; then
4384 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4390 test -z "$as_dir" && as_dir
=.
4391 for ac_exec_ext
in '' $ac_executable_extensions; do
4392 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4393 ac_cv_prog_ac_ct_CC
="$ac_prog"
4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4404 if test -n "$ac_ct_CC"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4406 $as_echo "$ac_ct_CC" >&6; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4413 test -n "$ac_ct_CC" && break
4416 if test "x$ac_ct_CC" = x
; then
4419 case $cross_compiling:$ac_tool_warned in
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4423 ac_tool_warned
=yes ;;
4432 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4434 as_fn_error $?
"no acceptable C compiler found in \$PATH
4435 See \`config.log' for more details" "$LINENO" 5; }
4437 # Provide some information about the compiler.
4438 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4441 for ac_option
in --version -v -V -qversion; do
4442 { { ac_try
="$ac_compiler $ac_option >&5"
4444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448 $as_echo "$ac_try_echo"; } >&5
4449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4451 if test -s conftest.err; then
4453 ... rest of stderr output deleted ...
4454 10q' conftest.err >conftest.er1
4455 cat conftest.er1 >&5
4457 rm -f conftest.er1 conftest.err
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4473 ac_clean_files_save=$ac_clean_files
4474 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4475 # Try to create an executable without -o first, disregard a.out.
4476 # It will help us diagnose broken compilers, and finding out an intuition
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4479 $as_echo_n "checking whether the C compiler works... " >&6; }
4480 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4482 # The possible output files:
4483 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4486 for ac_file in $ac_files
4489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4490 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4495 if { { ac_try="$ac_link_default"
4497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4498 *) ac_try_echo
=$ac_try;;
4500 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_link_default") 2>&5
4504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }; then :
4506 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4507 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4508 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4509 # so that the user can short-circuit this test for compilers unknown to
4511 for ac_file
in $ac_files ''
4513 test -f "$ac_file" ||
continue
4515 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4518 # We found the default executable, but exeext='' is most
4522 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4524 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 # We set ac_cv_exeext here because the later test for it is not
4527 # safe: cross compilers may not add the suffix if given an `-o'
4528 # argument, so we may need to know it at that point already.
4529 # Even if this section looks crufty: it has the advantage of
4536 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4541 if test -z "$ac_file"; then :
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 $as_echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.
$ac_ext >&5
4547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4549 as_fn_error
77 "C compiler cannot create executables
4550 See \`config.log' for more details" "$LINENO" 5; }
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4556 $as_echo_n "checking for C compiler default output file name... " >&6; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4558 $as_echo "$ac_file" >&6; }
4559 ac_exeext
=$ac_cv_exeext
4561 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4562 ac_clean_files
=$ac_clean_files_save
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4564 $as_echo_n "checking for suffix of executables... " >&6; }
4565 if { { ac_try
="$ac_link"
4567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571 $as_echo "$ac_try_echo"; } >&5
4572 (eval "$ac_link") 2>&5
4574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4575 test $ac_status = 0; }; then :
4576 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4577 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4578 # work properly (i.e., refer to `conftest.exe'), while it won't with
4580 for ac_file
in conftest.exe conftest conftest.
*; do
4581 test -f "$ac_file" ||
continue
4583 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4584 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4592 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4593 See \`config.log' for more details" "$LINENO" 5; }
4595 rm -f conftest conftest
$ac_cv_exeext
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4597 $as_echo "$ac_cv_exeext" >&6; }
4599 rm -f conftest.
$ac_ext
4600 EXEEXT
=$ac_cv_exeext
4602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4608 FILE *f = fopen ("conftest.out", "w");
4609 return ferror (f) || fclose (f) != 0;
4615 ac_clean_files
="$ac_clean_files conftest.out"
4616 # Check that the compiler produces executables we can run. If not, either
4617 # the compiler is broken, or we cross compile.
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4619 $as_echo_n "checking whether we are cross compiling... " >&6; }
4620 if test "$cross_compiling" != yes; then
4621 { { ac_try
="$ac_link"
4623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4627 $as_echo "$ac_try_echo"; } >&5
4628 (eval "$ac_link") 2>&5
4630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4631 test $ac_status = 0; }
4632 if { ac_try='./conftest$ac_cv_exeext'
4633 { { case "(($ac_try" in
4634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4635 *) ac_try_echo
=$ac_try;;
4637 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638 $as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_try") 2>&5
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }; }; then
4645 if test "$cross_compiling" = maybe
; then
4648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4650 as_fn_error $?
"cannot run C compiled programs.
4651 If you meant to cross compile, use \`--host'.
4652 See \`config.log' for more details" "$LINENO" 5; }
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4657 $as_echo "$cross_compiling" >&6; }
4659 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4660 ac_clean_files
=$ac_clean_files_save
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4662 $as_echo_n "checking for suffix of object files... " >&6; }
4663 if ${ac_cv_objext+:} false
; then :
4664 $as_echo_n "(cached) " >&6
4666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4677 rm -f conftest.o conftest.obj
4678 if { { ac_try
="$ac_compile"
4680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4684 $as_echo "$ac_try_echo"; } >&5
4685 (eval "$ac_compile") 2>&5
4687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4688 test $ac_status = 0; }; then :
4689 for ac_file in conftest.o conftest.obj conftest.*; do
4690 test -f "$ac_file" || continue;
4692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4698 $as_echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4703 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4704 See \
`config.log' for more details" "$LINENO" 5; }
4706 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4709 $as_echo "$ac_cv_objext" >&6; }
4710 OBJEXT=$ac_cv_objext
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4713 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4714 if ${ac_cv_c_compiler_gnu+:} false; then :
4715 $as_echo_n "(cached) " >&6
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4731 if ac_fn_c_try_compile "$LINENO"; then :
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4741 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4742 if test $ac_compiler_gnu = yes; then
4747 ac_test_CFLAGS=${CFLAGS+set}
4748 ac_save_CFLAGS=$CFLAGS
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4750 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4751 if ${ac_cv_prog_cc_g+:} false; then :
4752 $as_echo_n "(cached) " >&6
4754 ac_save_c_werror_flag=$ac_c_werror_flag
4755 ac_c_werror_flag=yes
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4769 if ac_fn_c_try_compile "$LINENO"; then :
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4784 if ac_fn_c_try_compile "$LINENO"; then :
4787 ac_c_werror_flag=$ac_save_c_werror_flag
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4800 if ac_fn_c_try_compile "$LINENO"; then :
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 ac_c_werror_flag=$ac_save_c_werror_flag
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4811 $as_echo "$ac_cv_prog_cc_g" >&6; }
4812 if test "$ac_test_CFLAGS" = set; then
4813 CFLAGS=$ac_save_CFLAGS
4814 elif test $ac_cv_prog_cc_g = yes; then
4815 if test "$GCC" = yes; then
4821 if test "$GCC" = yes; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4829 if ${ac_cv_prog_cc_c89+:} false; then :
4830 $as_echo_n "(cached) " >&6
4832 ac_cv_prog_cc_c89=no
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4840 struct buf { int x; };
4841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4842 static char *e (p, i)
4848 static char *f (char * (*g) (char **, int), char **p, ...)
4853 s = g (p, va_arg (v,int));
4858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4859 function prototypes and stuff, but not '\xHH' hex character constants.
4860 These don't provoke an error unfortunately, instead are silently treated
4861 as 'x'. The following induces an error, until -std is added to get
4862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4863 array size at least. It's necessary to write '\x00'==0 to get something
4864 that's true only with -std. */
4865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4868 inside strings and character constants. */
4870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4872 int test (int i, double x);
4873 struct s1 {int (*f) (int a);};
4874 struct s2 {int (*f) (double a);};
4875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4889 CC="$ac_save_CC $ac_arg"
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891 ac_cv_prog_cc_c89=$ac_arg
4893 rm -f core conftest.err conftest.$ac_objext
4894 test "x$ac_cv_prog_cc_c89" != "xno" && break
4896 rm -f conftest.$ac_ext
4901 case "x$ac_cv_prog_cc_c89" in
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4904 $as_echo "none needed" >&6; } ;;
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4907 $as_echo "unsupported" >&6; } ;;
4909 CC="$CC $ac_cv_prog_cc_c89"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4913 if test "x$ac_cv_prog_cc_c89" != xno; then :
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4924 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4925 if ${ac_cv_prog_cc_c99+:} false; then :
4926 $as_echo_n "(cached) " >&6
4928 ac_cv_prog_cc_c99=no
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4933 #include <stdbool.h>
4938 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4939 #define debug(...) fprintf (stderr, __VA_ARGS__)
4940 #define showlist(...) puts (#__VA_ARGS__)
4941 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4943 test_varargs_macros (void)
4948 debug ("X = %d\n", x);
4949 showlist (The first, second, and third items.);
4950 report (x>y, "x is %d but y is %d", x, y);
4953 // Check long long types.
4954 #define BIG64 18446744073709551615ull
4955 #define BIG32 4294967295ul
4956 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4958 your preprocessor is broken;
4962 your preprocessor is broken;
4964 static long long int bignum = -9223372036854775807LL;
4965 static unsigned long long int ubignum = BIG64;
4967 struct incomplete_array
4975 const wchar_t *name;
4979 typedef const char *ccp;
4982 test_restrict (ccp restrict text)
4984 // See if C++-style comments work.
4985 // Iterate through items via the restricted pointer.
4986 // Also check for declarations in for loops.
4987 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4992 // Check varargs and va_copy.
4994 test_varargs (const char *format, ...)
4997 va_start (args, format);
4999 va_copy (args_copy, args);
5010 str = va_arg (args_copy, const char *);
5013 number = va_arg (args_copy, int);
5016 fnumber = va_arg (args_copy, double);
5031 _Bool success = false;
5034 if (test_restrict ("String literal") == 0)
5036 char *restrict newvar = "Another string";
5039 test_varargs ("s, d' f .", "string", 65, 34.234);
5040 test_varargs_macros ();
5042 // Check flexible array members.
5043 struct incomplete_array *ia =
5044 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5046 for (int i = 0; i < ia->datasize; ++i)
5047 ia->data[i] = i * 1.234;
5049 // Check named initializers.
5050 struct named_init ni = {
5052 .name = L"Test wide string",
5053 .average = 543.34343,
5058 int dynamic_array[ni.number];
5059 dynamic_array[ni.number - 1] = 543;
5061 // work around unused variable warnings
5062 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5063 || dynamic_array[ni.number - 1] != 543);
5069 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5071 CC="$ac_save_CC $ac_arg"
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073 ac_cv_prog_cc_c99=$ac_arg
5075 rm -f core conftest.err conftest.$ac_objext
5076 test "x$ac_cv_prog_cc_c99" != "xno" && break
5078 rm -f conftest.$ac_ext
5083 case "x$ac_cv_prog_cc_c99" in
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5086 $as_echo "none needed" >&6; } ;;
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5089 $as_echo "unsupported" >&6; } ;;
5091 CC="$CC $ac_cv_prog_cc_c99"
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5093 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5095 if test "x$ac_cv_prog_cc_c99" != xno; then :
5101 ac_cpp='$CXXCPP $CPPFLAGS'
5102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5105 if test -z "$CXX"; then
5106 if test -n "$CCC"; then
5109 if test -n "$ac_tool_prefix"; then
5110 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_prog_CXX+:} false; then :
5117 $as_echo_n "(cached) " >&6
5119 if test -n "$CXX"; then
5120 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 if test -n "$CXX"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5142 $as_echo "$CXX" >&6; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5149 test -n "$CXX" && break
5152 if test -z "$CXX"; then
5154 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5156 # Extract the first word of "$ac_prog", so it can be a program name with args.
5157 set dummy $ac_prog; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5161 $as_echo_n "(cached) " >&6
5163 if test -n "$ac_ct_CXX"; then
5164 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_prog_ac_ct_CXX="$ac_prog"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5184 if test -n "$ac_ct_CXX"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5186 $as_echo "$ac_ct_CXX" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5193 test -n "$ac_ct_CXX" && break
5196 if test "x$ac_ct_CXX" = x; then
5199 case $cross_compiling:$ac_tool_warned in
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203 ac_tool_warned=yes ;;
5211 # Provide some information about the compiler.
5212 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5215 for ac_option in --version -v -V -qversion; do
5216 { { ac_try="$ac_compiler $ac_option >&5"
5218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5219 *) ac_try_echo
=$ac_try;;
5221 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5222 $as_echo "$ac_try_echo"; } >&5
5223 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5225 if test -s conftest.err
; then
5227 ... rest of stderr output deleted ...
5228 10q' conftest.err
>conftest.er1
5229 cat conftest.er1
>&5
5231 rm -f conftest.er1 conftest.err
5232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233 test $ac_status = 0; }
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5237 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5238 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5239 $as_echo_n "(cached) " >&6
5241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5255 if ac_fn_cxx_try_compile
"$LINENO"; then :
5260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5261 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5265 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5266 if test $ac_compiler_gnu = yes; then
5271 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5272 ac_save_CXXFLAGS
=$CXXFLAGS
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5274 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5275 if ${ac_cv_prog_cxx_g+:} false
; then :
5276 $as_echo_n "(cached) " >&6
5278 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5279 ac_cxx_werror_flag
=yes
5282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5293 if ac_fn_cxx_try_compile
"$LINENO"; then :
5294 ac_cv_prog_cxx_g
=yes
5297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5308 if ac_fn_cxx_try_compile
"$LINENO"; then :
5311 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5324 if ac_fn_cxx_try_compile
"$LINENO"; then :
5325 ac_cv_prog_cxx_g
=yes
5327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5332 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5335 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5336 if test "$ac_test_CXXFLAGS" = set; then
5337 CXXFLAGS
=$ac_save_CXXFLAGS
5338 elif test $ac_cv_prog_cxx_g = yes; then
5339 if test "$GXX" = yes; then
5345 if test "$GXX" = yes; then
5352 ac_cpp
='$CPP $CPPFLAGS'
5353 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5358 # We must set the default linker to the linker used by gcc for the correct
5359 # operation of libtool. If LD is not defined and we are using gcc, try to
5360 # set the LD default to the ld used by gcc.
5361 if test -z "$LD"; then
5362 if test "$GCC" = yes; then
5365 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5367 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5369 case $gcc_prog_ld in
5370 # Accept absolute paths.
5371 [\\/]* |
[A-Za-z
]:[\\/]*)
5372 LD
="$gcc_prog_ld" ;;
5377 # Check whether -static-libstdc++ -static-libgcc is supported.
5379 if test "$GCC" = yes; then
5380 saved_LDFLAGS
="$LDFLAGS"
5382 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5384 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5386 ac_cpp
='$CXXCPP $CPPFLAGS'
5387 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5395 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5396 #error -static-libstdc++ not implemented
5400 if ac_fn_cxx_try_link
"$LINENO"; then :
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5402 $as_echo "yes" >&6; }; have_static_libs
=yes
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5407 rm -f core conftest.err conftest.
$ac_objext \
5408 conftest
$ac_exeext conftest.
$ac_ext
5410 ac_cpp
='$CPP $CPPFLAGS'
5411 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5416 LDFLAGS
="$saved_LDFLAGS"
5422 if test -n "$ac_tool_prefix"; then
5423 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5424 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_GNATBIND+:} false
; then :
5428 $as_echo_n "(cached) " >&6
5430 if test -n "$GNATBIND"; then
5431 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir
=.
5438 for ac_exec_ext
in '' $ac_executable_extensions; do
5439 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 GNATBIND
=$ac_cv_prog_GNATBIND
5451 if test -n "$GNATBIND"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5453 $as_echo "$GNATBIND" >&6; }
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5461 if test -z "$ac_cv_prog_GNATBIND"; then
5462 ac_ct_GNATBIND
=$GNATBIND
5463 # Extract the first word of "gnatbind", so it can be a program name with args.
5464 set dummy gnatbind
; ac_word
=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5468 $as_echo_n "(cached) " >&6
5470 if test -n "$ac_ct_GNATBIND"; then
5471 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir
=.
5478 for ac_exec_ext
in '' $ac_executable_extensions; do
5479 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5480 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5491 if test -n "$ac_ct_GNATBIND"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5493 $as_echo "$ac_ct_GNATBIND" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5499 if test "x$ac_ct_GNATBIND" = x
; then
5502 case $cross_compiling:$ac_tool_warned in
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5506 ac_tool_warned
=yes ;;
5508 GNATBIND
=$ac_ct_GNATBIND
5511 GNATBIND
="$ac_cv_prog_GNATBIND"
5514 if test -n "$ac_tool_prefix"; then
5515 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5516 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5520 $as_echo_n "(cached) " >&6
5522 if test -n "$GNATMAKE"; then
5523 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir
=.
5530 for ac_exec_ext
in '' $ac_executable_extensions; do
5531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 GNATMAKE
=$ac_cv_prog_GNATMAKE
5543 if test -n "$GNATMAKE"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5545 $as_echo "$GNATMAKE" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5553 if test -z "$ac_cv_prog_GNATMAKE"; then
5554 ac_ct_GNATMAKE
=$GNATMAKE
5555 # Extract the first word of "gnatmake", so it can be a program name with args.
5556 set dummy gnatmake
; ac_word
=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5560 $as_echo_n "(cached) " >&6
5562 if test -n "$ac_ct_GNATMAKE"; then
5563 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir
=.
5570 for ac_exec_ext
in '' $ac_executable_extensions; do
5571 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5572 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5583 if test -n "$ac_ct_GNATMAKE"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5585 $as_echo "$ac_ct_GNATMAKE" >&6; }
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5591 if test "x$ac_ct_GNATMAKE" = x
; then
5594 case $cross_compiling:$ac_tool_warned in
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5598 ac_tool_warned
=yes ;;
5600 GNATMAKE
=$ac_ct_GNATMAKE
5603 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5607 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5608 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5609 $as_echo_n "(cached) " >&6
5611 cat >conftest.adb
<<EOF
5612 pragma Warnings (Off);
5614 pragma Warnings (On);
5615 use type System.CRTL.int64;
5616 procedure conftest is begin null; end conftest;
5618 acx_cv_cc_gcc_supports_ada
=no
5619 # There is a bug in old released versions of GCC which causes the
5620 # driver to exit successfully when the appropriate language module
5621 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5622 # Therefore we must check for the error message as well as an
5623 # unsuccessful exit.
5624 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5625 # given a .adb file, but produce no object file. So we must check
5626 # if an object file was really produced to guard against this.
5627 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5628 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5629 acx_cv_cc_gcc_supports_ada
=yes
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5634 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5636 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5644 if test -n "$ac_tool_prefix"; then
5645 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5646 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_prog_GDC+:} false
; then :
5650 $as_echo_n "(cached) " >&6
5652 if test -n "$GDC"; then
5653 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5659 test -z "$as_dir" && as_dir
=.
5660 for ac_exec_ext
in '' $ac_executable_extensions; do
5661 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5662 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 if test -n "$GDC"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5675 $as_echo "$GDC" >&6; }
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5683 if test -z "$ac_cv_prog_GDC"; then
5685 # Extract the first word of "gdc", so it can be a program name with args.
5686 set dummy gdc
; ac_word
=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5690 $as_echo_n "(cached) " >&6
5692 if test -n "$ac_ct_GDC"; then
5693 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5699 test -z "$as_dir" && as_dir
=.
5700 for ac_exec_ext
in '' $ac_executable_extensions; do
5701 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_GDC
="gdc"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5713 if test -n "$ac_ct_GDC"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5715 $as_echo "$ac_ct_GDC" >&6; }
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5721 if test "x$ac_ct_GDC" = x
; then
5724 case $cross_compiling:$ac_tool_warned in
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728 ac_tool_warned
=yes ;;
5733 GDC
="$ac_cv_prog_GDC"
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5737 $as_echo_n "checking whether the D compiler works... " >&6; }
5738 if ${acx_cv_d_compiler_works+:} false
; then :
5739 $as_echo_n "(cached) " >&6
5741 cat >conftest.d
<<EOF
5742 module conftest; int main() { return 0; }
5744 acx_cv_d_compiler_works
=no
5745 if test "x$GDC" != xno
; then
5746 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5747 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5748 acx_cv_d_compiler_works
=yes
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5754 $as_echo "$acx_cv_d_compiler_works" >&6; }
5755 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5762 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5763 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5764 $as_echo_n "(cached) " >&6
5768 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5769 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5770 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5773 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5776 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5777 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5780 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5787 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5788 do_compare
="$gcc_cv_prog_cmp_skip"
5792 # Check whether --enable-bootstrap was given.
5793 if test "${enable_bootstrap+set}" = set; then :
5794 enableval
=$enable_bootstrap;
5796 enable_bootstrap
=default
5800 # Issue errors and warnings for invalid/strange bootstrap combinations.
5801 if test -r $srcdir/gcc
/configure
; then
5807 case "$have_compiler:$host:$target:$enable_bootstrap" in
5810 # Default behavior. Enable bootstrap if we have a compiler
5811 # and we are in a native configuration.
5812 yes:$build:$build:default
)
5813 enable_bootstrap
=yes ;;
5816 enable_bootstrap
=no
;;
5818 # We have a compiler and we are in a native configuration, bootstrap is ok
5819 yes:$build:$build:yes)
5822 # Other configurations, but we have a compiler. Assume the user knows
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5826 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5829 # No compiler: if they passed --enable-bootstrap explicitly, fail
5831 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5833 # Fail if wrong command line
5835 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5839 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5840 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5841 # require C++11 (or higher).
5842 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5843 CXX
="$CXX -std=c++11"
5844 elif test "$have_compiler" = yes; then
5845 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5847 ac_cpp
='$CXXCPP $CPPFLAGS'
5848 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5854 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5855 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5856 $as_echo_n "(cached) " >&6
5858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5862 // If the compiler admits that it is not ready for C++11, why torture it?
5863 // Hopefully, this will speed up the test.
5867 #error "This is not a C++ compiler"
5869 #elif __cplusplus < 201103L
5871 #error "This is not a C++11 compiler"
5878 namespace test_static_assert
5881 template <typename T>
5884 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5889 namespace test_final_override
5898 struct Derived : public Base
5900 virtual ~Derived() override {}
5901 virtual void f() override {}
5906 namespace test_double_right_angle_brackets
5909 template < typename T >
5912 typedef check<void> single_type;
5913 typedef check<check<void>> double_type;
5914 typedef check<check<check<void>>> triple_type;
5915 typedef check<check<check<check<void>>>> quadruple_type;
5919 namespace test_decltype
5932 namespace test_type_deduction
5935 template < typename T1, typename T2 >
5938 static const bool value = false;
5941 template < typename T >
5942 struct is_same<T, T>
5944 static const bool value = true;
5947 template < typename T1, typename T2 >
5949 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5955 test(const int c, volatile int v)
5957 static_assert(is_same<int, decltype(0)>::value == true, "");
5958 static_assert(is_same<int, decltype(c)>::value == false, "");
5959 static_assert(is_same<int, decltype(v)>::value == false, "");
5962 auto sumi = ac + av + 'x';
5963 auto sumf = ac + av + 1.0;
5964 static_assert(is_same<int, decltype(ac)>::value == true, "");
5965 static_assert(is_same<int, decltype(av)>::value == true, "");
5966 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5967 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5968 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5969 return (sumf > 0.0) ? sumi : add(c, v);
5974 namespace test_noexcept
5977 int f() { return 0; }
5978 int g() noexcept { return 0; }
5980 static_assert(noexcept(f()) == false, "");
5981 static_assert(noexcept(g()) == true, "");
5985 namespace test_constexpr
5988 template < typename CharT >
5989 unsigned long constexpr
5990 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5992 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5995 template < typename CharT >
5996 unsigned long constexpr
5997 strlen_c(const CharT *const s) noexcept
5999 return strlen_c_r(s, 0UL);
6002 static_assert(strlen_c("") == 0UL, "");
6003 static_assert(strlen_c("1") == 1UL, "");
6004 static_assert(strlen_c("example") == 7UL, "");
6005 static_assert(strlen_c("another\0example") == 7UL, "");
6009 namespace test_rvalue_references
6015 static constexpr int value = N;
6018 answer<1> f(int&) { return answer<1>(); }
6019 answer<2> f(const int&) { return answer<2>(); }
6020 answer<3> f(int&&) { return answer<3>(); }
6027 static_assert(decltype(f(i))::value == 1, "");
6028 static_assert(decltype(f(c))::value == 2, "");
6029 static_assert(decltype(f(0))::value == 3, "");
6034 namespace test_uniform_initialization
6039 static const int zero {};
6040 static const int one {1};
6043 static_assert(test::zero == 0, "");
6044 static_assert(test::one == 1, "");
6048 namespace test_lambdas
6054 auto lambda1 = [](){};
6055 auto lambda2 = lambda1;
6063 auto a = [](int i, int j){ return i + j; }(1, 2);
6064 auto b = []() -> int { return '0'; }();
6065 auto c = [=](){ return a + b; }();
6066 auto d = [&](){ return c; }();
6067 auto e = [a, &b](int x) mutable {
6068 const auto identity = [](int y){ return y; };
6069 for (auto i = 0; i < a; ++i)
6071 return x + identity(a + b);
6073 return a + b + c + d + e;
6079 const auto nullary = [](){ return 0; };
6080 const auto unary = [](int x){ return x; };
6081 using nullary_t = decltype(nullary);
6082 using unary_t = decltype(unary);
6083 const auto higher1st = [](nullary_t f){ return f(); };
6084 const auto higher2nd = [unary](nullary_t f1){
6085 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6087 return higher1st(nullary) + higher2nd(nullary)(unary);
6092 namespace test_variadic_templates
6098 template <int N0, int... N1toN>
6099 struct sum<N0, N1toN...>
6101 static constexpr auto value = N0 + sum<N1toN...>::value;
6107 static constexpr auto value = 0;
6110 static_assert(sum<>::value == 0, "");
6111 static_assert(sum<1>::value == 1, "");
6112 static_assert(sum<23>::value == 23, "");
6113 static_assert(sum<1, 2>::value == 3, "");
6114 static_assert(sum<5, 5, 11>::value == 21, "");
6115 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6119 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6120 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6122 namespace test_template_alias_sfinae
6127 template<typename T>
6128 using member = typename T::member_type;
6130 template<typename T>
6133 template<typename T>
6134 void func(member<T>*) {}
6138 void test() { func<foo>(0); }
6142 } // namespace cxx11
6144 #endif // __cplusplus >= 201103L
6149 if ac_fn_cxx_try_compile
"$LINENO"; then :
6150 ax_cv_cxx_compile_cxx11
=yes
6152 ax_cv_cxx_compile_cxx11
=no
6154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6157 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6158 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6162 if test x
$ac_success = xno
; then
6163 for alternative
in ${ax_cxx_compile_alternatives}; do
6164 switch
="-std=gnu++${alternative}"
6165 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6167 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6168 if eval \
${$cachevar+:} false
; then :
6169 $as_echo_n "(cached) " >&6
6173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6177 // If the compiler admits that it is not ready for C++11, why torture it?
6178 // Hopefully, this will speed up the test.
6182 #error "This is not a C++ compiler"
6184 #elif __cplusplus < 201103L
6186 #error "This is not a C++11 compiler"
6193 namespace test_static_assert
6196 template <typename T>
6199 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6204 namespace test_final_override
6213 struct Derived : public Base
6215 virtual ~Derived() override {}
6216 virtual void f() override {}
6221 namespace test_double_right_angle_brackets
6224 template < typename T >
6227 typedef check<void> single_type;
6228 typedef check<check<void>> double_type;
6229 typedef check<check<check<void>>> triple_type;
6230 typedef check<check<check<check<void>>>> quadruple_type;
6234 namespace test_decltype
6247 namespace test_type_deduction
6250 template < typename T1, typename T2 >
6253 static const bool value = false;
6256 template < typename T >
6257 struct is_same<T, T>
6259 static const bool value = true;
6262 template < typename T1, typename T2 >
6264 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6270 test(const int c, volatile int v)
6272 static_assert(is_same<int, decltype(0)>::value == true, "");
6273 static_assert(is_same<int, decltype(c)>::value == false, "");
6274 static_assert(is_same<int, decltype(v)>::value == false, "");
6277 auto sumi = ac + av + 'x';
6278 auto sumf = ac + av + 1.0;
6279 static_assert(is_same<int, decltype(ac)>::value == true, "");
6280 static_assert(is_same<int, decltype(av)>::value == true, "");
6281 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6282 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6283 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6284 return (sumf > 0.0) ? sumi : add(c, v);
6289 namespace test_noexcept
6292 int f() { return 0; }
6293 int g() noexcept { return 0; }
6295 static_assert(noexcept(f()) == false, "");
6296 static_assert(noexcept(g()) == true, "");
6300 namespace test_constexpr
6303 template < typename CharT >
6304 unsigned long constexpr
6305 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6307 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6310 template < typename CharT >
6311 unsigned long constexpr
6312 strlen_c(const CharT *const s) noexcept
6314 return strlen_c_r(s, 0UL);
6317 static_assert(strlen_c("") == 0UL, "");
6318 static_assert(strlen_c("1") == 1UL, "");
6319 static_assert(strlen_c("example") == 7UL, "");
6320 static_assert(strlen_c("another\0example") == 7UL, "");
6324 namespace test_rvalue_references
6330 static constexpr int value = N;
6333 answer<1> f(int&) { return answer<1>(); }
6334 answer<2> f(const int&) { return answer<2>(); }
6335 answer<3> f(int&&) { return answer<3>(); }
6342 static_assert(decltype(f(i))::value == 1, "");
6343 static_assert(decltype(f(c))::value == 2, "");
6344 static_assert(decltype(f(0))::value == 3, "");
6349 namespace test_uniform_initialization
6354 static const int zero {};
6355 static const int one {1};
6358 static_assert(test::zero == 0, "");
6359 static_assert(test::one == 1, "");
6363 namespace test_lambdas
6369 auto lambda1 = [](){};
6370 auto lambda2 = lambda1;
6378 auto a = [](int i, int j){ return i + j; }(1, 2);
6379 auto b = []() -> int { return '0'; }();
6380 auto c = [=](){ return a + b; }();
6381 auto d = [&](){ return c; }();
6382 auto e = [a, &b](int x) mutable {
6383 const auto identity = [](int y){ return y; };
6384 for (auto i = 0; i < a; ++i)
6386 return x + identity(a + b);
6388 return a + b + c + d + e;
6394 const auto nullary = [](){ return 0; };
6395 const auto unary = [](int x){ return x; };
6396 using nullary_t = decltype(nullary);
6397 using unary_t = decltype(unary);
6398 const auto higher1st = [](nullary_t f){ return f(); };
6399 const auto higher2nd = [unary](nullary_t f1){
6400 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6402 return higher1st(nullary) + higher2nd(nullary)(unary);
6407 namespace test_variadic_templates
6413 template <int N0, int... N1toN>
6414 struct sum<N0, N1toN...>
6416 static constexpr auto value = N0 + sum<N1toN...>::value;
6422 static constexpr auto value = 0;
6425 static_assert(sum<>::value == 0, "");
6426 static_assert(sum<1>::value == 1, "");
6427 static_assert(sum<23>::value == 23, "");
6428 static_assert(sum<1, 2>::value == 3, "");
6429 static_assert(sum<5, 5, 11>::value == 21, "");
6430 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6434 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6435 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6437 namespace test_template_alias_sfinae
6442 template<typename T>
6443 using member = typename T::member_type;
6445 template<typename T>
6448 template<typename T>
6449 void func(member<T>*) {}
6453 void test() { func<foo>(0); }
6457 } // namespace cxx11
6459 #endif // __cplusplus >= 201103L
6464 if ac_fn_cxx_try_compile
"$LINENO"; then :
6469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6472 eval ac_res
=\$
$cachevar
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6474 $as_echo "$ac_res" >&6; }
6475 if eval test x\$
$cachevar = xyes
; then
6477 if test -n "$CXXCPP" ; then
6478 CXXCPP
="$CXXCPP $switch"
6486 if test x
$ac_success = xno
; then
6487 for alternative
in ${ax_cxx_compile_alternatives}; do
6488 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6489 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6491 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6492 if eval \${$cachevar+:} false; then :
6493 $as_echo_n "(cached
) " >&6
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6501 // If the compiler admits that it is not ready for C++11, why torture it?
6502 // Hopefully, this will speed up the test.
6506 #error "This is not a C
++ compiler
"
6508 #elif __cplusplus < 201103L
6510 #error "This is not a C
++11 compiler
"
6517 namespace test_static_assert
6520 template <typename T>
6523 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6528 namespace test_final_override
6537 struct Derived : public Base
6539 virtual ~Derived() override {}
6540 virtual void f() override {}
6545 namespace test_double_right_angle_brackets
6548 template < typename T >
6551 typedef check<void> single_type;
6552 typedef check<check<void>> double_type;
6553 typedef check<check<check<void>>> triple_type;
6554 typedef check<check<check<check<void>>>> quadruple_type;
6558 namespace test_decltype
6571 namespace test_type_deduction
6574 template < typename T1, typename T2 >
6577 static const bool value = false;
6580 template < typename T >
6581 struct is_same<T, T>
6583 static const bool value = true;
6586 template < typename T1, typename T2 >
6588 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6594 test(const int c, volatile int v)
6596 static_assert(is_same<int, decltype(0)>::value == true, "");
6597 static_assert(is_same<int, decltype(c)>::value == false, "");
6598 static_assert(is_same<int, decltype(v)>::value == false, "");
6601 auto sumi = ac + av + 'x';
6602 auto sumf = ac + av + 1.0;
6603 static_assert(is_same<int, decltype(ac)>::value == true, "");
6604 static_assert(is_same<int, decltype(av)>::value == true, "");
6605 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6606 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6607 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6608 return (sumf > 0.0) ? sumi : add(c, v);
6613 namespace test_noexcept
6616 int f() { return 0; }
6617 int g() noexcept { return 0; }
6619 static_assert(noexcept(f()) == false, "");
6620 static_assert(noexcept(g()) == true, "");
6624 namespace test_constexpr
6627 template < typename CharT >
6628 unsigned long constexpr
6629 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6631 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6634 template < typename CharT >
6635 unsigned long constexpr
6636 strlen_c(const CharT *const s) noexcept
6638 return strlen_c_r(s, 0UL);
6641 static_assert(strlen_c("") == 0UL, "");
6642 static_assert(strlen_c("1") == 1UL, "");
6643 static_assert(strlen_c("example
") == 7UL, "");
6644 static_assert(strlen_c("another\
0example
") == 7UL, "");
6648 namespace test_rvalue_references
6654 static constexpr int value = N;
6657 answer<1> f(int&) { return answer<1>(); }
6658 answer<2> f(const int&) { return answer<2>(); }
6659 answer<3> f(int&&) { return answer<3>(); }
6666 static_assert(decltype(f(i))::value == 1, "");
6667 static_assert(decltype(f(c))::value == 2, "");
6668 static_assert(decltype(f(0))::value == 3, "");
6673 namespace test_uniform_initialization
6678 static const int zero {};
6679 static const int one {1};
6682 static_assert(test::zero == 0, "");
6683 static_assert(test::one == 1, "");
6687 namespace test_lambdas
6693 auto lambda1 = [](){};
6694 auto lambda2 = lambda1;
6702 auto a = [](int i, int j){ return i + j; }(1, 2);
6703 auto b = []() -> int { return '0'; }();
6704 auto c = [=](){ return a + b; }();
6705 auto d = [&](){ return c; }();
6706 auto e = [a, &b](int x) mutable {
6707 const auto identity = [](int y){ return y; };
6708 for (auto i = 0; i < a; ++i)
6710 return x + identity(a + b);
6712 return a + b + c + d + e;
6718 const auto nullary = [](){ return 0; };
6719 const auto unary = [](int x){ return x; };
6720 using nullary_t = decltype(nullary);
6721 using unary_t = decltype(unary);
6722 const auto higher1st = [](nullary_t f){ return f(); };
6723 const auto higher2nd = [unary](nullary_t f1){
6724 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6726 return higher1st(nullary) + higher2nd(nullary)(unary);
6731 namespace test_variadic_templates
6737 template <int N0, int... N1toN>
6738 struct sum<N0, N1toN...>
6740 static constexpr auto value = N0 + sum<N1toN...>::value;
6746 static constexpr auto value = 0;
6749 static_assert(sum<>::value == 0, "");
6750 static_assert(sum<1>::value == 1, "");
6751 static_assert(sum<23>::value == 23, "");
6752 static_assert(sum<1, 2>::value == 3, "");
6753 static_assert(sum<5, 5, 11>::value == 21, "");
6754 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6758 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6759 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6761 namespace test_template_alias_sfinae
6766 template<typename T>
6767 using member = typename T::member_type;
6769 template<typename T>
6772 template<typename T>
6773 void func(member<T>*) {}
6777 void test() { func<foo>(0); }
6781 } // namespace cxx11
6783 #endif // __cplusplus >= 201103L
6788 if ac_fn_cxx_try_compile "$LINENO"; then :
6793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 eval ac_res=\$$cachevar
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6798 $as_echo "$ac_res" >&6; }
6799 if eval test x\$$cachevar = xyes; then
6801 if test -n "$CXXCPP" ; then
6802 CXXCPP="$CXXCPP $switch"
6808 if test x$ac_success = xyes; then
6815 ac_cpp='$CPP $CPPFLAGS'
6816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6820 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6821 if test x$ac_success = xno; then
6822 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6825 if test x$ac_success = xno; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6828 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6832 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6838 if test "${build}" != "${host}"; then
6839 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6841 ac_cpp
='$CXXCPP $CPPFLAGS'
6842 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6846 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6847 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6848 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6849 CXX
="$CXX_FOR_BUILD"
6850 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6851 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6853 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6854 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6855 $as_echo_n "(cached) " >&6
6857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6861 // If the compiler admits that it is not ready for C++11, why torture it?
6862 // Hopefully, this will speed up the test.
6866 #error "This is not a C++ compiler"
6868 #elif __cplusplus < 201103L
6870 #error "This is not a C++11 compiler"
6877 namespace test_static_assert
6880 template <typename T>
6883 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6888 namespace test_final_override
6897 struct Derived : public Base
6899 virtual ~Derived() override {}
6900 virtual void f() override {}
6905 namespace test_double_right_angle_brackets
6908 template < typename T >
6911 typedef check<void> single_type;
6912 typedef check<check<void>> double_type;
6913 typedef check<check<check<void>>> triple_type;
6914 typedef check<check<check<check<void>>>> quadruple_type;
6918 namespace test_decltype
6931 namespace test_type_deduction
6934 template < typename T1, typename T2 >
6937 static const bool value = false;
6940 template < typename T >
6941 struct is_same<T, T>
6943 static const bool value = true;
6946 template < typename T1, typename T2 >
6948 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6954 test(const int c, volatile int v)
6956 static_assert(is_same<int, decltype(0)>::value == true, "");
6957 static_assert(is_same<int, decltype(c)>::value == false, "");
6958 static_assert(is_same<int, decltype(v)>::value == false, "");
6961 auto sumi = ac + av + 'x';
6962 auto sumf = ac + av + 1.0;
6963 static_assert(is_same<int, decltype(ac)>::value == true, "");
6964 static_assert(is_same<int, decltype(av)>::value == true, "");
6965 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6966 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6967 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6968 return (sumf > 0.0) ? sumi : add(c, v);
6973 namespace test_noexcept
6976 int f() { return 0; }
6977 int g() noexcept { return 0; }
6979 static_assert(noexcept(f()) == false, "");
6980 static_assert(noexcept(g()) == true, "");
6984 namespace test_constexpr
6987 template < typename CharT >
6988 unsigned long constexpr
6989 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6991 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6994 template < typename CharT >
6995 unsigned long constexpr
6996 strlen_c(const CharT *const s) noexcept
6998 return strlen_c_r(s, 0UL);
7001 static_assert(strlen_c("") == 0UL, "");
7002 static_assert(strlen_c("1") == 1UL, "");
7003 static_assert(strlen_c("example") == 7UL, "");
7004 static_assert(strlen_c("another\0example") == 7UL, "");
7008 namespace test_rvalue_references
7014 static constexpr int value = N;
7017 answer<1> f(int&) { return answer<1>(); }
7018 answer<2> f(const int&) { return answer<2>(); }
7019 answer<3> f(int&&) { return answer<3>(); }
7026 static_assert(decltype(f(i))::value == 1, "");
7027 static_assert(decltype(f(c))::value == 2, "");
7028 static_assert(decltype(f(0))::value == 3, "");
7033 namespace test_uniform_initialization
7038 static const int zero {};
7039 static const int one {1};
7042 static_assert(test::zero == 0, "");
7043 static_assert(test::one == 1, "");
7047 namespace test_lambdas
7053 auto lambda1 = [](){};
7054 auto lambda2 = lambda1;
7062 auto a = [](int i, int j){ return i + j; }(1, 2);
7063 auto b = []() -> int { return '0'; }();
7064 auto c = [=](){ return a + b; }();
7065 auto d = [&](){ return c; }();
7066 auto e = [a, &b](int x) mutable {
7067 const auto identity = [](int y){ return y; };
7068 for (auto i = 0; i < a; ++i)
7070 return x + identity(a + b);
7072 return a + b + c + d + e;
7078 const auto nullary = [](){ return 0; };
7079 const auto unary = [](int x){ return x; };
7080 using nullary_t = decltype(nullary);
7081 using unary_t = decltype(unary);
7082 const auto higher1st = [](nullary_t f){ return f(); };
7083 const auto higher2nd = [unary](nullary_t f1){
7084 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7086 return higher1st(nullary) + higher2nd(nullary)(unary);
7091 namespace test_variadic_templates
7097 template <int N0, int... N1toN>
7098 struct sum<N0, N1toN...>
7100 static constexpr auto value = N0 + sum<N1toN...>::value;
7106 static constexpr auto value = 0;
7109 static_assert(sum<>::value == 0, "");
7110 static_assert(sum<1>::value == 1, "");
7111 static_assert(sum<23>::value == 23, "");
7112 static_assert(sum<1, 2>::value == 3, "");
7113 static_assert(sum<5, 5, 11>::value == 21, "");
7114 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7118 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7119 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7121 namespace test_template_alias_sfinae
7126 template<typename T>
7127 using member = typename T::member_type;
7129 template<typename T>
7132 template<typename T>
7133 void func(member<T>*) {}
7137 void test() { func<foo>(0); }
7141 } // namespace cxx11
7143 #endif // __cplusplus >= 201103L
7148 if ac_fn_cxx_try_compile
"$LINENO"; then :
7149 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7151 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7156 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7157 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7161 if test x
$ac_success = xno
; then
7162 for alternative
in ${ax_cxx_compile_alternatives}; do
7163 switch
="-std=gnu++${alternative}"
7164 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7166 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7167 if eval \
${$cachevar+:} false
; then :
7168 $as_echo_n "(cached) " >&6
7172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7176 // If the compiler admits that it is not ready for C++11, why torture it?
7177 // Hopefully, this will speed up the test.
7181 #error "This is not a C++ compiler"
7183 #elif __cplusplus < 201103L
7185 #error "This is not a C++11 compiler"
7192 namespace test_static_assert
7195 template <typename T>
7198 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7203 namespace test_final_override
7212 struct Derived : public Base
7214 virtual ~Derived() override {}
7215 virtual void f() override {}
7220 namespace test_double_right_angle_brackets
7223 template < typename T >
7226 typedef check<void> single_type;
7227 typedef check<check<void>> double_type;
7228 typedef check<check<check<void>>> triple_type;
7229 typedef check<check<check<check<void>>>> quadruple_type;
7233 namespace test_decltype
7246 namespace test_type_deduction
7249 template < typename T1, typename T2 >
7252 static const bool value = false;
7255 template < typename T >
7256 struct is_same<T, T>
7258 static const bool value = true;
7261 template < typename T1, typename T2 >
7263 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7269 test(const int c, volatile int v)
7271 static_assert(is_same<int, decltype(0)>::value == true, "");
7272 static_assert(is_same<int, decltype(c)>::value == false, "");
7273 static_assert(is_same<int, decltype(v)>::value == false, "");
7276 auto sumi = ac + av + 'x';
7277 auto sumf = ac + av + 1.0;
7278 static_assert(is_same<int, decltype(ac)>::value == true, "");
7279 static_assert(is_same<int, decltype(av)>::value == true, "");
7280 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7281 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7282 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7283 return (sumf > 0.0) ? sumi : add(c, v);
7288 namespace test_noexcept
7291 int f() { return 0; }
7292 int g() noexcept { return 0; }
7294 static_assert(noexcept(f()) == false, "");
7295 static_assert(noexcept(g()) == true, "");
7299 namespace test_constexpr
7302 template < typename CharT >
7303 unsigned long constexpr
7304 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7306 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7309 template < typename CharT >
7310 unsigned long constexpr
7311 strlen_c(const CharT *const s) noexcept
7313 return strlen_c_r(s, 0UL);
7316 static_assert(strlen_c("") == 0UL, "");
7317 static_assert(strlen_c("1") == 1UL, "");
7318 static_assert(strlen_c("example") == 7UL, "");
7319 static_assert(strlen_c("another\0example") == 7UL, "");
7323 namespace test_rvalue_references
7329 static constexpr int value = N;
7332 answer<1> f(int&) { return answer<1>(); }
7333 answer<2> f(const int&) { return answer<2>(); }
7334 answer<3> f(int&&) { return answer<3>(); }
7341 static_assert(decltype(f(i))::value == 1, "");
7342 static_assert(decltype(f(c))::value == 2, "");
7343 static_assert(decltype(f(0))::value == 3, "");
7348 namespace test_uniform_initialization
7353 static const int zero {};
7354 static const int one {1};
7357 static_assert(test::zero == 0, "");
7358 static_assert(test::one == 1, "");
7362 namespace test_lambdas
7368 auto lambda1 = [](){};
7369 auto lambda2 = lambda1;
7377 auto a = [](int i, int j){ return i + j; }(1, 2);
7378 auto b = []() -> int { return '0'; }();
7379 auto c = [=](){ return a + b; }();
7380 auto d = [&](){ return c; }();
7381 auto e = [a, &b](int x) mutable {
7382 const auto identity = [](int y){ return y; };
7383 for (auto i = 0; i < a; ++i)
7385 return x + identity(a + b);
7387 return a + b + c + d + e;
7393 const auto nullary = [](){ return 0; };
7394 const auto unary = [](int x){ return x; };
7395 using nullary_t = decltype(nullary);
7396 using unary_t = decltype(unary);
7397 const auto higher1st = [](nullary_t f){ return f(); };
7398 const auto higher2nd = [unary](nullary_t f1){
7399 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7401 return higher1st(nullary) + higher2nd(nullary)(unary);
7406 namespace test_variadic_templates
7412 template <int N0, int... N1toN>
7413 struct sum<N0, N1toN...>
7415 static constexpr auto value = N0 + sum<N1toN...>::value;
7421 static constexpr auto value = 0;
7424 static_assert(sum<>::value == 0, "");
7425 static_assert(sum<1>::value == 1, "");
7426 static_assert(sum<23>::value == 23, "");
7427 static_assert(sum<1, 2>::value == 3, "");
7428 static_assert(sum<5, 5, 11>::value == 21, "");
7429 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7433 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7434 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7436 namespace test_template_alias_sfinae
7441 template<typename T>
7442 using member = typename T::member_type;
7444 template<typename T>
7447 template<typename T>
7448 void func(member<T>*) {}
7452 void test() { func<foo>(0); }
7456 } // namespace cxx11
7458 #endif // __cplusplus >= 201103L
7463 if ac_fn_cxx_try_compile
"$LINENO"; then :
7468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7471 eval ac_res
=\$
$cachevar
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7473 $as_echo "$ac_res" >&6; }
7474 if eval test x\$
$cachevar = xyes
; then
7476 if test -n "$CXXCPP" ; then
7477 CXXCPP
="$CXXCPP $switch"
7485 if test x
$ac_success = xno
; then
7486 for alternative
in ${ax_cxx_compile_alternatives}; do
7487 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7488 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7490 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7491 if eval \${$cachevar+:} false; then :
7492 $as_echo_n "(cached
) " >&6
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7500 // If the compiler admits that it is not ready for C++11, why torture it?
7501 // Hopefully, this will speed up the test.
7505 #error "This is not a C
++ compiler
"
7507 #elif __cplusplus < 201103L
7509 #error "This is not a C
++11 compiler
"
7516 namespace test_static_assert
7519 template <typename T>
7522 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7527 namespace test_final_override
7536 struct Derived : public Base
7538 virtual ~Derived() override {}
7539 virtual void f() override {}
7544 namespace test_double_right_angle_brackets
7547 template < typename T >
7550 typedef check<void> single_type;
7551 typedef check<check<void>> double_type;
7552 typedef check<check<check<void>>> triple_type;
7553 typedef check<check<check<check<void>>>> quadruple_type;
7557 namespace test_decltype
7570 namespace test_type_deduction
7573 template < typename T1, typename T2 >
7576 static const bool value = false;
7579 template < typename T >
7580 struct is_same<T, T>
7582 static const bool value = true;
7585 template < typename T1, typename T2 >
7587 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7593 test(const int c, volatile int v)
7595 static_assert(is_same<int, decltype(0)>::value == true, "");
7596 static_assert(is_same<int, decltype(c)>::value == false, "");
7597 static_assert(is_same<int, decltype(v)>::value == false, "");
7600 auto sumi = ac + av + 'x';
7601 auto sumf = ac + av + 1.0;
7602 static_assert(is_same<int, decltype(ac)>::value == true, "");
7603 static_assert(is_same<int, decltype(av)>::value == true, "");
7604 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7605 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7606 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7607 return (sumf > 0.0) ? sumi : add(c, v);
7612 namespace test_noexcept
7615 int f() { return 0; }
7616 int g() noexcept { return 0; }
7618 static_assert(noexcept(f()) == false, "");
7619 static_assert(noexcept(g()) == true, "");
7623 namespace test_constexpr
7626 template < typename CharT >
7627 unsigned long constexpr
7628 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7630 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7633 template < typename CharT >
7634 unsigned long constexpr
7635 strlen_c(const CharT *const s) noexcept
7637 return strlen_c_r(s, 0UL);
7640 static_assert(strlen_c("") == 0UL, "");
7641 static_assert(strlen_c("1") == 1UL, "");
7642 static_assert(strlen_c("example
") == 7UL, "");
7643 static_assert(strlen_c("another\
0example
") == 7UL, "");
7647 namespace test_rvalue_references
7653 static constexpr int value = N;
7656 answer<1> f(int&) { return answer<1>(); }
7657 answer<2> f(const int&) { return answer<2>(); }
7658 answer<3> f(int&&) { return answer<3>(); }
7665 static_assert(decltype(f(i))::value == 1, "");
7666 static_assert(decltype(f(c))::value == 2, "");
7667 static_assert(decltype(f(0))::value == 3, "");
7672 namespace test_uniform_initialization
7677 static const int zero {};
7678 static const int one {1};
7681 static_assert(test::zero == 0, "");
7682 static_assert(test::one == 1, "");
7686 namespace test_lambdas
7692 auto lambda1 = [](){};
7693 auto lambda2 = lambda1;
7701 auto a = [](int i, int j){ return i + j; }(1, 2);
7702 auto b = []() -> int { return '0'; }();
7703 auto c = [=](){ return a + b; }();
7704 auto d = [&](){ return c; }();
7705 auto e = [a, &b](int x) mutable {
7706 const auto identity = [](int y){ return y; };
7707 for (auto i = 0; i < a; ++i)
7709 return x + identity(a + b);
7711 return a + b + c + d + e;
7717 const auto nullary = [](){ return 0; };
7718 const auto unary = [](int x){ return x; };
7719 using nullary_t = decltype(nullary);
7720 using unary_t = decltype(unary);
7721 const auto higher1st = [](nullary_t f){ return f(); };
7722 const auto higher2nd = [unary](nullary_t f1){
7723 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7725 return higher1st(nullary) + higher2nd(nullary)(unary);
7730 namespace test_variadic_templates
7736 template <int N0, int... N1toN>
7737 struct sum<N0, N1toN...>
7739 static constexpr auto value = N0 + sum<N1toN...>::value;
7745 static constexpr auto value = 0;
7748 static_assert(sum<>::value == 0, "");
7749 static_assert(sum<1>::value == 1, "");
7750 static_assert(sum<23>::value == 23, "");
7751 static_assert(sum<1, 2>::value == 3, "");
7752 static_assert(sum<5, 5, 11>::value == 21, "");
7753 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7757 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7758 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7760 namespace test_template_alias_sfinae
7765 template<typename T>
7766 using member = typename T::member_type;
7768 template<typename T>
7771 template<typename T>
7772 void func(member<T>*) {}
7776 void test() { func<foo>(0); }
7780 } // namespace cxx11
7782 #endif // __cplusplus >= 201103L
7787 if ac_fn_cxx_try_compile "$LINENO"; then :
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 eval ac_res=\$$cachevar
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7797 $as_echo "$ac_res" >&6; }
7798 if eval test x\$$cachevar = xyes; then
7800 if test -n "$CXXCPP" ; then
7801 CXXCPP="$CXXCPP $switch"
7807 if test x$ac_success = xyes; then
7812 CXX_FOR_BUILD="$CXX"
7813 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7814 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7815 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7816 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7817 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7819 ac_cpp='$CPP $CPPFLAGS'
7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7825 if test x$ac_success = xno; then
7826 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7829 if test x$ac_success = xno; then
7830 HAVE_CXX11_FOR_BUILD=0
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7832 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7834 HAVE_CXX11_FOR_BUILD=1
7836 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7844 # Check whether --enable-pgo-build was given.
7845 if test "${enable_pgo_build+set}" = set; then :
7846 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7852 # Issue errors and warnings for invalid/strange PGO build combinations.
7853 case "$have_compiler:$host:$target:$enable_pgo_build" in
7856 # Allow the PGO build only if we aren't building a compiler and
7857 # we are in a native configuration.
7858 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7860 # Disallow the PGO bootstrap if we are building a compiler.
7861 yes:*:*:yes |
yes:*:*:lto
)
7862 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7865 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7869 if test "$enable_pgo_build" != "no"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7871 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7872 old_CFLAGS
="$CFLAGS"
7873 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7874 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7880 if ac_fn_c_try_compile
"$LINENO"; then :
7883 PGO_BUILD_GEN_CFLAGS
=
7885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7886 CFLAGS
="$old_CFLAGS"
7887 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7889 $as_echo "yes" >&6; }
7890 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7894 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7897 if test "$enable_pgo_build" = "lto"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7899 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7900 old_CFLAGS
="$CFLAGS"
7901 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7902 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7907 if ac_fn_c_try_compile
"$LINENO"; then :
7910 PGO_BUILD_LTO_CFLAGS
=
7912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7913 CFLAGS
="$old_CFLAGS"
7914 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7916 $as_echo "yes" >&6; }
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7921 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7929 # Used for setting $lt_cv_objdir
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7931 $as_echo_n "checking for objdir... " >&6; }
7932 if ${lt_cv_objdir+:} false
; then :
7933 $as_echo_n "(cached) " >&6
7935 rm -f .libs
2>/dev
/null
7936 mkdir .libs
2>/dev
/null
7937 if test -d .libs
; then
7940 # MS-DOS does not allow filenames that begin with a dot.
7943 rmdir .libs
2>/dev
/null
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7946 $as_echo "$lt_cv_objdir" >&6; }
7947 objdir
=$lt_cv_objdir
7953 cat >>confdefs.h
<<_ACEOF
7954 #define LT_OBJDIR "$lt_cv_objdir/"
7959 # Check for GMP, MPFR and MPC
7962 if test -d ${srcdir}/gcc
; then
7966 if test -d ${srcdir}/gdb
; then
7967 if test "x$enable_gdb" != xno
; then
7972 gmplibs
="-lmpfr -lgmp"
7973 if test x
"$require_mpc" = "xyes" ; then
7974 gmplibs
="-lmpc $gmplibs"
7979 # Specify a location for mpc
7980 # check for this first so it ends up on the link line before mpfr.
7982 # Check whether --with-mpc was given.
7983 if test "${with_mpc+set}" = set; then :
7988 # Check whether --with-mpc-include was given.
7989 if test "${with_mpc_include+set}" = set; then :
7990 withval
=$with_mpc_include;
7994 # Check whether --with-mpc-lib was given.
7995 if test "${with_mpc_lib+set}" = set; then :
7996 withval
=$with_mpc_lib;
8000 if test "x$with_mpc" != x
; then
8001 gmplibs
="-L$with_mpc/lib $gmplibs"
8002 gmpinc
="-I$with_mpc/include $gmpinc"
8004 if test "x$with_mpc_include" != x
; then
8005 gmpinc
="-I$with_mpc_include $gmpinc"
8007 if test "x$with_mpc_lib" != x
; then
8008 gmplibs
="-L$with_mpc_lib $gmplibs"
8010 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
8011 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8012 gmpinc
='-I$$s/mpc/src '"$gmpinc"
8013 # Do not test the mpc version. Assume that it is sufficient, since
8014 # it is in the source tree, and the library has not been built yet
8015 # but it would be included on the link line in the version check below
8016 # hence making the test fail.
8020 # Specify a location for mpfr
8021 # check for this first so it ends up on the link line before gmp.
8023 # Check whether --with-mpfr was given.
8024 if test "${with_mpfr+set}" = set; then :
8029 # Check whether --with-mpfr-include was given.
8030 if test "${with_mpfr_include+set}" = set; then :
8031 withval
=$with_mpfr_include;
8035 # Check whether --with-mpfr-lib was given.
8036 if test "${with_mpfr_lib+set}" = set; then :
8037 withval
=$with_mpfr_lib;
8041 if test "x$with_mpfr" != x
; then
8042 gmplibs
="-L$with_mpfr/lib $gmplibs"
8043 gmpinc
="-I$with_mpfr/include $gmpinc"
8045 if test "x$with_mpfr_include" != x
; then
8046 gmpinc
="-I$with_mpfr_include $gmpinc"
8048 if test "x$with_mpfr_lib" != x
; then
8049 gmplibs
="-L$with_mpfr_lib $gmplibs"
8051 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8052 # MPFR v3.1.0 moved the sources into a src sub-directory.
8053 if ! test -d ${srcdir}/mpfr
/src
; then
8054 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8056 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8057 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8058 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8059 # Do not test the mpfr version. Assume that it is sufficient, since
8060 # it is in the source tree, and the library has not been built yet
8061 # but it would be included on the link line in the version check below
8062 # hence making the test fail.
8066 # Specify a location for gmp
8068 # Check whether --with-gmp was given.
8069 if test "${with_gmp+set}" = set; then :
8074 # Check whether --with-gmp-include was given.
8075 if test "${with_gmp_include+set}" = set; then :
8076 withval
=$with_gmp_include;
8080 # Check whether --with-gmp-lib was given.
8081 if test "${with_gmp_lib+set}" = set; then :
8082 withval
=$with_gmp_lib;
8087 if test "x$with_gmp" != x
; then
8088 gmplibs
="-L$with_gmp/lib $gmplibs"
8089 gmpinc
="-I$with_gmp/include $gmpinc"
8091 if test "x$with_gmp_include" != x
; then
8092 gmpinc
="-I$with_gmp_include $gmpinc"
8094 if test "x$with_gmp_lib" != x
; then
8095 gmplibs
="-L$with_gmp_lib $gmplibs"
8097 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8098 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8099 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8100 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8101 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8102 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8103 # Do not test the gmp version. Assume that it is sufficient, since
8104 # it is in the source tree, and the library has not been built yet
8105 # but it would be included on the link line in the version check below
8106 # hence making the test fail.
8110 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8112 saved_CFLAGS
="$CFLAGS"
8113 CFLAGS
="$CFLAGS $gmpinc"
8114 # Check for the recommended and required versions of GMP.
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8116 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8124 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8125 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8126 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8134 if ac_fn_c_try_compile
"$LINENO"; then :
8135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8142 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8143 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8144 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8152 if ac_fn_c_try_compile
"$LINENO"; then :
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8154 $as_echo "yes" >&6; }
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8157 $as_echo "buggy but acceptable" >&6; }
8159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }; have_gmp
=no
8164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8166 # If we have GMP, check the MPFR version.
8167 if test x
"$have_gmp" = xyes
; then
8168 # Check for the recommended and required versions of MPFR.
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8170 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8179 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8187 if ac_fn_c_try_compile
"$LINENO"; then :
8188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8196 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8204 if ac_fn_c_try_compile
"$LINENO"; then :
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8206 $as_echo "yes" >&6; }
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8209 $as_echo "buggy but acceptable" >&6; }
8211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 $as_echo "no" >&6; }; have_gmp
=no
8216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8219 # Check for the MPC header version.
8220 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8221 # Check for the recommended and required versions of MPC.
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8223 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8231 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8239 if ac_fn_c_try_compile
"$LINENO"; then :
8240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8247 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8255 if ac_fn_c_try_compile
"$LINENO"; then :
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8257 $as_echo "yes" >&6; }
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8260 $as_echo "buggy but acceptable" >&6; }
8262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }; have_gmp
=no
8267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8270 # Now check the MPFR library.
8271 if test x
"$have_gmp" = xyes
; then
8273 LIBS
="$LIBS $gmplibs"
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8275 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8288 mpfr_atan2 (n, n, x, MPFR_RNDN);
8289 mpfr_erfc (n, x, MPFR_RNDN);
8290 mpfr_subnormalize (x, t, MPFR_RNDN);
8298 if ac_fn_c_try_link
"$LINENO"; then :
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8300 $as_echo "yes" >&6; }
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }; have_gmp
=no
8305 rm -f core conftest.err conftest.
$ac_objext \
8306 conftest
$ac_exeext conftest.
$ac_ext
8310 # Now check the MPC library
8311 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8313 LIBS
="$LIBS $gmplibs"
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8315 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8325 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8326 mpc_cosh (c, c, MPC_RNDNN);
8327 mpc_pow (c, c, c, MPC_RNDNN);
8328 mpc_acosh (c, c, MPC_RNDNN);
8335 if ac_fn_c_try_link
"$LINENO"; then :
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8337 $as_echo "yes" >&6; }
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }; have_gmp
=no
8342 rm -f core conftest.err conftest.
$ac_objext \
8343 conftest
$ac_exeext conftest.
$ac_ext
8347 CFLAGS
="$saved_CFLAGS"
8349 # The library versions listed in the error message below should match
8350 # the HARD-minimums enforced above.
8351 if test x
$have_gmp != xyes
; then
8352 if test -d ${srcdir}/gcc
; then
8353 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8354 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8355 their locations. Source code for these libraries can be found at
8356 their respective hosting sites as well as at
8357 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8358 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8359 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8360 make sure that you have installed both the libraries and the header
8361 files. They may be located in separate packages." "$LINENO" 5
8363 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8364 Try the --with-gmp and/or --with-mpfr options to specify
8365 their locations. If you obtained GMP and/or MPFR from a vendor
8366 distribution package, make sure that you have installed both the libraries
8367 and the header files. They may be located in separate packages." "$LINENO" 5
8372 # Flags needed for both GMP, MPFR and/or MPC.
8380 # Libraries to use for stage1 or when not bootstrapping.
8382 # Check whether --with-stage1-libs was given.
8383 if test "${with_stage1_libs+set}" = set; then :
8384 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8387 stage1_libs
=$withval
8395 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8396 # default is yes if gcc is being built; no otherwise. The reason for
8397 # this default is that gdb is sometimes linked against GNU Source
8398 # Highlight, which is a shared library that uses C++ exceptions. In
8399 # this case, -static-libstdc++ will cause crashes.
8401 # Check whether --with-static-standard-libraries was given.
8402 if test "${with_static_standard_libraries+set}" = set; then :
8403 withval
=$with_static_standard_libraries;
8405 with_static_standard_libraries
=auto
8408 if test "$with_static_standard_libraries" = auto
; then
8409 with_static_standard_libraries
=$have_compiler
8412 # Linker flags to use for stage1 or when not bootstrapping.
8414 # Check whether --with-stage1-ldflags was given.
8415 if test "${with_stage1_ldflags+set}" = set; then :
8416 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8419 stage1_ldflags
=$withval
8423 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8424 # if supported. But if the user explicitly specified the libraries to use,
8425 # trust that they are doing what they want.
8426 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8427 -a "$have_static_libs" = yes; then
8428 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8434 # Libraries to use for stage2 and later builds.
8436 # Check whether --with-boot-libs was given.
8437 if test "${with_boot_libs+set}" = set; then :
8438 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8441 poststage1_libs
=$withval
8449 # Linker flags to use for stage2 and later builds.
8451 # Check whether --with-boot-ldflags was given.
8452 if test "${with_boot_ldflags+set}" = set; then :
8453 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8456 poststage1_ldflags
=$withval
8460 # In stages 2 and 3, default to linking libstdc++ and libgcc
8461 # statically. But if the user explicitly specified the libraries to
8462 # use, trust that they are doing what they want.
8463 if test "$poststage1_libs" = ""; then
8464 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8470 # GCC GRAPHITE dependency isl.
8471 # Basic setup is inlined here, actual checks are in config/isl.m4
8474 # Check whether --with-isl was given.
8475 if test "${with_isl+set}" = set; then :
8480 # Treat --without-isl as a request to disable
8481 # GRAPHITE support and skip all following checks.
8482 if test "x$with_isl" != "xno"; then
8486 # Check whether --with-isl-include was given.
8487 if test "${with_isl_include+set}" = set; then :
8488 withval
=$with_isl_include;
8492 # Check whether --with-isl-lib was given.
8493 if test "${with_isl_lib+set}" = set; then :
8494 withval
=$with_isl_lib;
8498 # Check whether --enable-isl-version-check was given.
8499 if test "${enable_isl_version_check+set}" = set; then :
8500 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8502 ENABLE_ISL_CHECK
=yes
8506 # Initialize isllibs and islinc.
8515 isllibs
="-L$with_isl/lib"
8516 islinc
="-I$with_isl/include"
8519 if test "x${with_isl_include}" != x
; then
8520 islinc
="-I$with_isl_include"
8522 if test "x${with_isl_lib}" != x
; then
8523 isllibs
="-L$with_isl_lib"
8525 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8526 && test -d ${srcdir}/isl
; then
8527 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8528 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8531 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8534 isllibs
="${isllibs} -lisl"
8538 if test "${ENABLE_ISL_CHECK}" = yes ; then
8539 _isl_saved_CFLAGS
=$CFLAGS
8540 _isl_saved_LDFLAGS
=$LDFLAGS
8541 _isl_saved_LIBS
=$LIBS
8543 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8544 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8545 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8548 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 #include <isl/schedule.h>
8555 isl_options_set_schedule_serialize_sccs (NULL, 0);
8560 if ac_fn_c_try_link
"$LINENO"; then :
8565 rm -f core conftest.err conftest.
$ac_objext \
8566 conftest
$ac_exeext conftest.
$ac_ext
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8568 $as_echo "$gcc_cv_isl" >&6; }
8570 if test "${gcc_cv_isl}" = no
; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8572 $as_echo "required isl version is 0.15 or later" >&6; }
8575 CFLAGS
=$_isl_saved_CFLAGS
8576 LDFLAGS
=$_isl_saved_LDFLAGS
8577 LIBS
=$_isl_saved_LIBS
8585 if test "x${with_isl}" = xno
; then
8586 graphite_requested
=no
8587 elif test "x${with_isl}" != x \
8588 ||
test "x${with_isl_include}" != x \
8589 ||
test "x${with_isl_lib}" != x
; then
8590 graphite_requested
=yes
8592 graphite_requested
=no
8597 if test "${gcc_cv_isl}" = no
; then
8602 if test "${graphite_requested}" = yes \
8603 && test "x${isllibs}" = x \
8604 && test "x${islinc}" = x
; then
8606 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8612 # If the isl check failed, disable builds of in-tree variant of isl
8613 if test "x$with_isl" = xno ||
8614 test "x$gcc_cv_isl" = xno
; then
8615 noconfigdirs
="$noconfigdirs isl"
8622 # Check for LTO support.
8623 # Check whether --enable-lto was given.
8624 if test "${enable_lto+set}" = set; then :
8625 enableval
=$enable_lto; enable_lto
=$enableval
8627 enable_lto
=yes; default_enable_lto
=yes
8636 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8637 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8638 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8647 if test $target_elf = yes; then :
8648 # ELF platforms build the lto-plugin always.
8649 build_lto_plugin
=yes
8652 if test x
"$default_enable_lto" = x
"yes" ; then
8654 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8655 # On other non-ELF platforms, LTO has yet to be validated.
8659 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8660 # It would also be nice to check the binutils support, but we don't
8661 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8662 # warn during gcc/ subconfigure; unless you're bootstrapping with
8663 # -flto it won't be needed until after installation anyway.
8665 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8666 *) if test x
"$enable_lto" = x
"yes"; then
8667 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8672 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8673 # Build it unless LTO was explicitly disabled.
8675 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8682 # Check whether --enable-linker-plugin-configure-flags was given.
8683 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8684 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8686 extra_linker_plugin_configure_flags
=
8690 # Check whether --enable-linker-plugin-flags was given.
8691 if test "${enable_linker_plugin_flags+set}" = set; then :
8692 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8694 extra_linker_plugin_flags
=
8699 # Handle --enable-host-pie
8700 # If host PIE executables are the default (or must be forced on) for some host,
8701 # we must pass that configuration to the gcc directory.
8703 # Check whether --enable-host-pie was given.
8704 if test "${enable_host_pie+set}" = set; then :
8705 enableval
=$enable_host_pie; host_pie
=$enableval
8708 if test x
$host_pie != xyes
; then
8709 # for Darwin20+ this is required.
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8711 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8713 gcc_host_pie
=--enable-host-pie
8720 # Default to PIE (mandatory for aarch64).
8722 gcc_host_pie
=--enable-host-pie
8732 # Enable --enable-host-shared.
8733 # Checked early to determine whether jit is an 'all' language
8734 # Check whether --enable-host-shared was given.
8735 if test "${enable_host_shared+set}" = set; then :
8736 enableval
=$enable_host_shared; host_shared
=$enableval
8738 x86_64-
*-darwin* | aarch64-
*-darwin*)
8739 if test x
$host_shared != xyes
; then
8740 # PIC is the default, and actually cannot be switched off.
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8742 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8746 if test x
$host_pie = xyes
-a x
$host_shared != xyes
; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8748 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8755 # 64B x86_64 and Aarch64 Darwin default to PIC.
8756 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8757 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8758 *-*-darwin*) host_shared
=$host_pie ;;
8766 if test x
$host_shared = xyes
; then
8769 # Since host shared is the default for 64b Darwin, and also enabled for
8770 # host_pie, ensure that we present the PIE flag when host_pie is active.
8771 if test x
$host_pie = xyes
; then
8779 elif test x
$host_pie = xyes
; then
8787 # If we are building PIC/PIE host executables, and we are building dependent
8788 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8791 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8792 host_libs_picflag
='--with-pic'
8796 # By default, C and C++ are the only stage 1 languages.
8797 stage1_languages
=,c
,
8799 # Target libraries that we bootstrap.
8800 bootstrap_target_libs
=,target-libgcc
,
8802 # Figure out what language subdirectories are present.
8803 # Look if the user specified --enable-languages="..."; if not, use
8804 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8806 # NB: embedded tabs in this IF block -- do not untabify
8807 if test -d ${srcdir}/gcc
; then
8808 if test x
"${enable_languages+set}" != xset
; then
8809 if test x
"${LANGUAGES+set}" = xset
; then
8810 enable_languages
="${LANGUAGES}"
8811 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8813 enable_languages
=default
8816 if test x
"${enable_languages}" = x ||
8817 test x
"${enable_languages}" = xyes
;
8819 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8823 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8825 # 'f95' is the old name for the 'fortran' language. We issue a warning
8826 # and make the substitution.
8827 case ,${enable_languages}, in
8829 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8830 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8834 # If bootstrapping, C++ must be enabled.
8835 case ",$enable_languages,:$enable_bootstrap" in
8838 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8839 enable_languages
="${enable_languages},c++"
8841 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8846 # First scan to see if an enabled language requires some other language.
8847 # We assume that a given config-lang.in will list all the language
8848 # front ends it requires, even if some are required indirectly.
8849 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8850 case ${lang_frag} in
8852 # The odd quoting in the next line works around
8853 # an apparent bug in bash 1.12 on linux.
8854 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8856 # From the config-lang.in, get $language, $lang_requires, and
8857 # $lang_requires_boot_languages.
8860 lang_requires_boot_languages
=
8861 # set srcdir during sourcing lang_frag to the gcc dir.
8862 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8863 # polutes this shell
8864 saved_srcdir
=${srcdir}
8865 srcdir
=${srcdir}/gcc .
${lang_frag}
8866 srcdir
=${saved_srcdir}
8867 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8868 case ,${enable_languages}, in
8873 echo " \`$other' language required by \`$language'; enabling" 1>&2
8874 enable_languages
="${enable_languages},${other}"
8878 for other
in ${lang_requires_boot_languages} ; do
8879 if test "$other" != "c"; then
8880 case ,${enable_stage1_languages}, in
8885 case ,${enable_languages}, in
8887 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8888 enable_stage1_languages
="$enable_stage1_languages,${other}"
8899 new_enable_languages
=,c
,
8901 # If LTO is enabled, add the LTO front end.
8902 if test "$enable_lto" = "yes" ; then
8903 case ,${enable_languages}, in
8905 *) enable_languages
="${enable_languages},lto" ;;
8907 if test "${build_lto_plugin}" = "yes" ; then
8908 configdirs
="$configdirs lto-plugin"
8912 # If we're building an offloading compiler, add the LTO front end.
8913 if test x
"$enable_as_accelerator_for" != x
; then
8914 case ,${enable_languages}, in
8916 *) enable_languages
="${enable_languages},lto" ;;
8920 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8921 potential_languages
=,c
,
8923 enabled_target_libs
=
8924 disabled_target_libs
=
8926 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8927 case ${lang_frag} in
8929 # The odd quoting in the next line works around
8930 # an apparent bug in bash 1.12 on linux.
8931 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8933 # From the config-lang.in, get $language, $target_libs,
8934 # $lang_dirs, $boot_language, and $build_by_default
8940 build_by_default
=yes
8941 # set srcdir during sourcing. See above about save & restore
8942 saved_srcdir
=${srcdir}
8943 srcdir
=${srcdir}/gcc .
${lang_frag}
8944 srcdir
=${saved_srcdir}
8945 if test x
${language} = x
; then
8946 echo "${lang_frag} doesn't set \$language." 1>&2
8950 if test "$language" = "c++"; then
8955 # C is always enabled, so no need to add it again
8956 if test "$language" != "c"; then
8957 case ,${enable_languages}, in
8959 # Language was explicitly selected; include it
8963 # All languages are enabled
8967 # 'default' was selected, select it if it is a default language
8968 add_this_lang
=${build_by_default}
8973 # Disable languages that need other directories if these aren't available.
8974 for i
in $subdir_requires; do
8975 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8976 case ${add_this_lang} in
8978 # Specifically requested language; tell them.
8979 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8983 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8984 add_this_lang
=unsupported
8988 add_this_lang
=unsupported
8993 # Disable Ada if no preexisting GNAT is available.
8994 case ${add_this_lang}:${language}:${have_gnat} in
8996 # Specifically requested language; tell them.
8997 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9001 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9002 add_this_lang
=unsupported
9006 add_this_lang
=unsupported
9010 # Disable D if no preexisting GDC is available.
9011 case ${add_this_lang}:${language}:${have_gdc} in
9013 # Specifically requested language; tell them.
9014 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9018 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9019 add_this_lang
=unsupported
9023 add_this_lang
=unsupported
9027 # Disable jit if -enable-host-shared not specified
9028 # but not if building for Mingw. All code in Windows
9029 # is position independent code (PIC).
9033 case ${add_this_lang}:${language}:${host_shared} in
9035 # PR jit/64780: explicitly specify --enable-host-shared
9037 Enabling language \"jit\" requires --enable-host-shared.
9039 --enable-host-shared typically slows the rest of the compiler down by
9040 a few %, so you must explicitly enable it.
9042 If you want to build both the jit and the regular compiler, it is often
9043 best to do this via two separate configure/builds, in separate
9044 directories, to avoid imposing the performance cost of
9045 --enable-host-shared on the regular compiler." "$LINENO" 5
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9049 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9050 add_this_lang
=unsupported
9054 add_this_lang
=unsupported
9060 # Disable a language that is unsupported by the target.
9061 case "${add_this_lang}: $unsupported_languages " in
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9066 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9067 add_this_lang
=unsupported
9071 case $add_this_lang in
9073 # Remove language-dependent dirs.
9074 disabled_target_libs
="$disabled_target_libs $target_libs"
9075 noconfigdirs
="$noconfigdirs $lang_dirs"
9078 # Remove language-dependent dirs; still show language as supported.
9079 disabled_target_libs
="$disabled_target_libs $target_libs"
9080 noconfigdirs
="$noconfigdirs $lang_dirs"
9081 potential_languages
="${potential_languages}${language},"
9084 new_enable_languages
="${new_enable_languages}${language},"
9085 potential_languages
="${potential_languages}${language},"
9086 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9087 enabled_target_libs
="$enabled_target_libs $target_libs"
9088 case "${boot_language}:,$enable_stage1_languages," in
9089 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9090 # Add to (comma-separated) list of stage 1 languages.
9091 case ",$stage1_languages," in
9092 *,$language,* |
,yes, |
,all
,) ;;
9093 *) stage1_languages
="${stage1_languages}${language}," ;;
9095 # We need to bootstrap any supporting libraries.
9096 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9105 # Add target libraries which are only needed for disabled languages
9107 if test -n "$disabled_target_libs"; then
9108 for dir
in $disabled_target_libs; do
9109 case " $enabled_target_libs " in
9111 *) noconfigdirs
="$noconfigdirs $dir" ;;
9116 # Check whether --enable-stage1-languages was given.
9117 if test "${enable_stage1_languages+set}" = set; then :
9118 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9120 # Set it to something that will have no effect in the loop below
9121 enable_stage1_languages
=c
;;
9123 enable_stage1_languages
=`echo $new_enable_languages | \
9124 sed -e "s/^,//" -e "s/,$//" ` ;;
9126 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9127 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9130 # Add "good" languages from enable_stage1_languages to stage1_languages,
9131 # while "bad" languages go in missing_languages. Leave no duplicates.
9132 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9133 case $potential_languages in
9135 case $stage1_languages in
9137 *) stage1_languages
="$stage1_languages$i," ;;
9140 case $missing_languages in
9142 *) missing_languages
="$missing_languages$i," ;;
9149 # Remove leading/trailing commas that were added for simplicity
9150 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9151 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9152 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9153 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9155 if test "x$missing_languages" != x
; then
9157 The following requested languages could not be built: ${missing_languages}
9158 Supported languages are: ${potential_languages}" "$LINENO" 5
9160 if test "x$new_enable_languages" != "x$enable_languages"; then
9161 echo The following languages will be built
: ${new_enable_languages}
9162 enable_languages
="$new_enable_languages"
9166 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9169 # Handle --disable-<component> generically.
9170 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9171 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9172 varname
=`echo $dirname | sed -e s/+/_/g`
9173 if eval test x\
${enable_${varname}} "=" xno
; then
9174 noconfigdirs
="$noconfigdirs $dir"
9178 # Check for Boehm's garbage collector
9179 # Check whether --enable-objc-gc was given.
9180 if test "${enable_objc_gc+set}" = set; then :
9181 enableval
=$enable_objc_gc;
9185 # Check whether --with-target-bdw-gc was given.
9186 if test "${with_target_bdw_gc+set}" = set; then :
9187 withval
=$with_target_bdw_gc;
9191 # Check whether --with-target-bdw-gc-include was given.
9192 if test "${with_target_bdw_gc_include+set}" = set; then :
9193 withval
=$with_target_bdw_gc_include;
9197 # Check whether --with-target-bdw-gc-lib was given.
9198 if test "${with_target_bdw_gc_lib+set}" = set; then :
9199 withval
=$with_target_bdw_gc_lib;
9203 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9205 $as_echo_n "checking for bdw garbage collector... " >&6; }
9206 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9208 $as_echo "using bdw-gc in default locations" >&6; }
9210 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9211 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9212 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9213 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9216 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9221 # Disable libitm, libsanitizer, libvtv if we're not building C++
9222 case ,${enable_languages}, in
9224 # Disable libitm, libsanitizer if we're not building libstdc++
9225 case "${noconfigdirs}" in
9226 *target-libstdc
++-v3*)
9227 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9233 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9237 # If gcc/ is not in the source tree then we'll not be building a
9238 # target compiler, assume in that case we don't want to build any
9239 # target libraries or tools.
9241 # This was added primarily for the benefit for binutils-gdb who reuse
9242 # this configure script, but don't always have target tools available.
9243 if test ! -d ${srcdir}/gcc
; then
9244 skipdirs
="${skipdirs} ${target_configdirs}"
9247 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9248 # $build_configdirs and $target_configdirs.
9249 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9252 for dir
in .
$skipdirs $noconfigdirs ; do
9253 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9254 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9255 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9256 if test -r $srcdir/$dirname/configure
; then
9257 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9260 notsupp
="$notsupp $dir"
9264 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9265 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9266 if test -r $srcdir/$dirname/configure
; then
9267 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9270 notsupp
="$notsupp $dir"
9274 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9275 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9276 if test -r $srcdir/$dirname/configure
; then
9277 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9280 notsupp
="$notsupp $dir"
9286 # Quietly strip out all directories which aren't configurable in this tree.
9287 # This relies on all configurable subdirectories being autoconfiscated, which
9289 build_configdirs_all
="$build_configdirs"
9291 for i
in ${build_configdirs_all} ; do
9292 j
=`echo $i | sed -e s/build-//g`
9293 if test -f ${srcdir}/$j/configure
; then
9294 build_configdirs
="${build_configdirs} $i"
9298 configdirs_all
="$configdirs"
9300 for i
in ${configdirs_all} ; do
9301 if test -f ${srcdir}/$i/configure
; then
9302 configdirs
="${configdirs} $i"
9306 target_configdirs_all
="$target_configdirs"
9308 for i
in ${target_configdirs_all} ; do
9309 j
=`echo $i | sed -e s/target-//g`
9310 if test -f ${srcdir}/$j/configure
; then
9311 target_configdirs
="${target_configdirs} $i"
9315 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9316 # so we have to add it after the preceding checks.
9317 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9319 case " $configdirs " in
9321 # If we can build libiberty, we can also build libiberty-linker-plugin.
9322 configdirs
="$configdirs libiberty-linker-plugin"
9323 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9324 --with-libiberty=../libiberty-linker-plugin";;
9326 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9330 # Sometimes we have special requirements for the host libiberty.
9331 extra_host_libiberty_configure_flags
=
9332 case " $configdirs " in
9333 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9334 # When these are to be built as shared libraries, the same applies to
9336 extra_host_libiberty_configure_flags
=--enable-shared
9341 # Sometimes we have special requirements for the host zlib.
9342 extra_host_zlib_configure_flags
=
9343 case " $configdirs " in
9345 # When bfd is to be built as a shared library, the same applies to
9347 if test "$enable_shared" = "yes"; then
9348 extra_host_zlib_configure_flags
=--enable-host-shared
9354 # Produce a warning message for the subdirs we can't configure.
9355 # This isn't especially interesting in the Cygnus tree, but in the individual
9356 # FSF releases, it's important to let people know when their machine isn't
9357 # supported by the one or two programs in a package.
9359 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9360 # If $appdirs is non-empty, at least one of those directories must still
9361 # be configured, or we error out. (E.g., if the gas release supports a
9362 # specified target in some subdirs but not the gas subdir, we shouldn't
9363 # pretend that all is well.)
9364 if test -n "$appdirs" ; then
9365 for dir
in $appdirs ; do
9366 if test -r $dir/Makefile.
in ; then
9367 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9371 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9377 if test -n "$appdirs" ; then
9378 echo "*** This configuration is not supported by this package." 1>&2
9382 # Okay, some application will build, or we don't care to check. Still
9383 # notify of subdirs not getting built.
9384 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9385 echo " ${notsupp}" 1>&2
9386 echo " (Any other directories should still work fine.)" 1>&2
9394 # To find our prefix, in gcc_cv_tool_prefix.
9396 # The user is always right.
9397 if test "${PATH_SEPARATOR+set}" != set; then
9398 echo "#! /bin/sh" >conf$$.sh
9399 echo "exit 0" >>conf$$.sh
9401 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9410 get_gcc_base_ver
="cat"
9412 # Check whether --with-gcc-major-version-only was given.
9413 if test "${with_gcc_major_version_only+set}" = set; then :
9414 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9415 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9425 if test "x$exec_prefix" = xNONE
; then
9426 if test "x$prefix" = xNONE
; then
9427 gcc_cv_tool_prefix
=$ac_default_prefix
9429 gcc_cv_tool_prefix
=$prefix
9432 gcc_cv_tool_prefix
=$exec_prefix
9435 # If there is no compiler in the tree, use the PATH only. In any
9436 # case, if there is no compiler in the tree nobody should use
9437 # AS_FOR_TARGET and LD_FOR_TARGET.
9438 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9439 if test x
$with_gcc_major_version_only = xyes
; then
9440 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9442 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9444 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9445 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9446 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9447 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9448 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9449 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9454 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9455 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9463 # Check whether --with-build-sysroot was given.
9464 if test "${with_build_sysroot+set}" = set; then :
9465 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9466 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9469 SYSROOT_CFLAGS_FOR_TARGET
=
9475 # Check whether --with-debug-prefix-map was given.
9476 if test "${with_debug_prefix_map+set}" = set; then :
9477 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9478 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9479 for debug_map
in $withval; do
9480 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9484 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9489 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9490 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9491 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9492 # We want to ensure that TARGET libraries (which we know are built with
9493 # gcc) are built with "-O2 -g", so include those options when setting
9494 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9495 if test "x$CFLAGS_FOR_TARGET" = x
; then
9496 if test "x${is_cross_compiler}" = xyes
; then
9497 CFLAGS_FOR_TARGET
="-g -O2"
9499 CFLAGS_FOR_TARGET
=$CFLAGS
9502 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9505 *" -g "* |
*" -g3 "*) ;;
9506 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9512 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9513 if test "x${is_cross_compiler}" = xyes
; then
9514 CXXFLAGS_FOR_TARGET
="-g -O2"
9516 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9517 case " $CXXFLAGS " in
9519 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9521 case " $CXXFLAGS " in
9522 *" -g "* |
*" -g3 "*) ;;
9523 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9531 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9532 # the named directory are copied to $(tooldir)/sys-include.
9533 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9534 if test x
${is_cross_compiler} = xno
; then
9535 echo 1>&2 '***' --with-headers is only supported when cross compiling
9538 if test x
"${with_headers}" != xyes
; then
9539 x
=${gcc_cv_tool_prefix}
9540 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9544 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9545 # the name directories are copied to $(tooldir)/lib. Multiple directories
9547 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9548 if test x
${is_cross_compiler} = xno
; then
9549 echo 1>&2 '***' --with-libs is only supported when cross compiling
9552 if test x
"${with_libs}" != xyes
; then
9553 # Copy the libraries in reverse order, so that files in the first named
9554 # library override files in subsequent libraries.
9555 x
=${gcc_cv_tool_prefix}
9556 for l
in ${with_libs}; do
9557 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9562 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9564 # This is done by determining whether or not the appropriate directory
9565 # is available, and by checking whether or not specific configurations
9566 # have requested that this magic not happen.
9568 # The command line options always override the explicit settings in
9569 # configure.ac, and the settings in configure.ac override this magic.
9571 # If the default for a toolchain is to use GNU as and ld, and you don't
9572 # want to do that, then you should use the --without-gnu-as and
9573 # --without-gnu-ld options for the configure script. Similarly, if
9574 # the default is to use the included zlib and you don't want to do that,
9575 # you should use the --with-system-zlib option for the configure script.
9577 if test x
${use_gnu_as} = x
&&
9578 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9580 extra_host_args
="$extra_host_args --with-gnu-as"
9583 if test x
${use_gnu_ld} = x
&&
9584 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9586 extra_host_args
="$extra_host_args --with-gnu-ld"
9589 if test x
${use_included_zlib} = x
&&
9590 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9593 with_system_zlib
=yes
9594 extra_host_args
="$extra_host_args --with-system-zlib"
9597 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9598 # can detect this case.
9600 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9602 extra_host_args
="$extra_host_args --with-newlib"
9605 # Handle ${copy_dirs}
9606 set fnord
${copy_dirs}
9608 while test $# != 0 ; do
9609 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9612 echo Copying
$1 to
$2
9614 # Use the install script to create the directory and all required
9615 # parent directories.
9616 if test -d $2 ; then
9620 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9623 # Copy the directory, assuming we have tar.
9624 # FIXME: Should we use B in the second tar? Not all systems support it.
9625 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9627 # It is the responsibility of the user to correctly adjust all
9628 # symlinks. If somebody can figure out how to handle them correctly
9629 # here, feel free to add the code.
9636 # Determine a target-dependent exec_prefix that the installed
9637 # gcc will search in. Keep this list sorted by triplet, with
9638 # the *-*-osname triplets last.
9641 i
[34567]86-pc-msdosdjgpp*)
9642 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9647 md_exec_prefix
=/usr
/ccs
/bin
9651 extra_arflags_for_target
=
9652 extra_nmflags_for_target
=
9653 extra_ranlibflags_for_target
=
9654 target_makefile_frag
=/dev
/null
9657 target_makefile_frag
="config/mt-spu"
9659 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9660 target_makefile_frag
="config/mt-sde"
9662 mipsisa
*-*-elfoabi*)
9663 target_makefile_frag
="config/mt-mips-elfoabi"
9665 mips
*-*-*linux
* | mips
*-*-gnu*)
9666 target_makefile_frag
="config/mt-mips-gnu"
9669 target_makefile_frag
="config/mt-nios2-elf"
9672 target_makefile_frag
="config/mt-android"
9674 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9675 target_makefile_frag
="config/mt-gnu"
9677 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9678 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9679 # commands to handle both 32-bit and 64-bit objects. These flags are
9680 # harmless if we're using GNU nm or ar.
9681 extra_arflags_for_target
=" -X32_64"
9682 extra_nmflags_for_target
=" -B -X32_64"
9686 alphaieee_frag
=/dev
/null
9689 # This just makes sure to use the -mieee option to build target libs.
9690 # This should probably be set individually by each library.
9691 alphaieee_frag
="config/mt-alphaieee"
9695 # If --enable-target-optspace always use -Os instead of -O2 to build
9696 # the target libraries, similarly if it is not specified, use -Os
9697 # on selected platforms.
9698 ospace_frag
=/dev
/null
9699 case "${enable_target_optspace}:${target}" in
9701 ospace_frag
="config/mt-ospace"
9704 ospace_frag
="config/mt-d30v"
9706 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9707 ospace_frag
="config/mt-ospace"
9712 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9716 # Some systems (e.g., one of the i386-aix systems the gas testers are
9717 # using) don't handle "\$" correctly, so don't use it here.
9718 tooldir
='${exec_prefix}'/${target_noncanonical}
9719 build_tooldir
=${tooldir}
9721 # Create a .gdbinit file which runs the one in srcdir
9722 # and tells GDB to look there for source files.
9724 if test -r ${srcdir}/.gdbinit
; then
9727 *) cat > .
/.gdbinit
<<EOF
9731 source ${srcdir}/.gdbinit
9737 # Make sure that the compiler is able to generate an executable. If it
9738 # can't, we are probably in trouble. We don't care whether we can run the
9739 # executable--we might be using a cross compiler--we only care whether it
9740 # can be created. At this point the main configure script has set CC.
9742 echo "int main () { return 0; }" > conftest.c
9743 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9744 if test $?
= 0 ; then
9745 if test -s conftest ||
test -s conftest.exe
; then
9751 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9752 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9759 # Decide which environment variable is used to find dynamic libraries.
9761 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9762 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9763 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9764 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9767 # On systems where the dynamic library environment variable is PATH,
9768 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9769 # built executables to PATH.
9770 if test "$RPATH_ENVVAR" = PATH
; then
9771 GCC_SHLIB_SUBDIR
=/shlib
9776 # Adjust the toplevel makefile according to whether bootstrap was selected.
9777 case $enable_bootstrap in
9779 bootstrap_suffix
=bootstrap
9780 BUILD_CONFIG
=bootstrap-debug
9783 bootstrap_suffix
=no-bootstrap
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9789 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9792 # Check whether --with-build-config was given.
9793 if test "${with_build_config+set}" = set; then :
9794 withval
=$with_build_config; case $with_build_config in
9795 yes) with_build_config
= ;;
9796 no
) with_build_config
= BUILD_CONFIG
= ;;
9801 if test "x${with_build_config}" != x
; then
9802 BUILD_CONFIG
=$with_build_config
9804 case $BUILD_CONFIG in
9806 if echo "int f (void) { return 0; }" > conftest.c
&&
9807 ${CC} -c conftest.c
&&
9808 mv conftest.o conftest.o.g0
&&
9809 ${CC} -c -g conftest.c
&&
9810 mv conftest.o conftest.o.g
&&
9811 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9816 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9821 $as_echo "$BUILD_CONFIG" >&6; }
9824 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9826 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9827 # Check whether --enable-vtable-verify was given.
9828 if test "${enable_vtable_verify+set}" = set; then :
9829 enableval
=$enable_vtable_verify; case "$enableval" in
9830 yes) enable_vtable_verify
=yes ;;
9831 no
) enable_vtable_verify
=no
;;
9832 *) enable_vtable_verify
=no
;;
9835 enable_vtable_verify
=no
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9839 $as_echo "$enable_vtable_verify" >&6; }
9841 # Record target_configdirs and the configure arguments for target and
9842 # build configuration in Makefile.
9843 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9844 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9845 bootstrap_fixincludes
=no
9847 # If we are building libgomp, bootstrap it.
9848 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9849 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9852 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9853 # or bootstrap-ubsan, bootstrap it.
9854 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9855 case "$BUILD_CONFIG" in
9856 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9857 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9858 bootstrap_fixincludes
=yes
9863 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9864 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9865 test "$enable_vtable_verify" != no
; then
9866 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9869 # If we are building libatomic and the list of enabled languages includes the
9870 # D frontend, bootstrap it.
9871 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9872 case ,${enable_languages}, in
9874 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9879 # Determine whether gdb needs tk/tcl or not.
9880 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9881 # and in that case we want gdb to be built without tk. Ugh!
9882 # In fact I believe gdb is the *only* package directly dependent on tk,
9883 # so we should be able to put the 'maybe's in unconditionally and
9884 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9885 # 100% sure that that's safe though.
9887 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9888 case "$enable_gdbtk" in
9892 GDB_TK
="${gdb_tk}" ;;
9894 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9895 # distro. Eventually someone will fix this and move Insight, nee
9896 # gdbtk to a separate directory.
9897 if test -d ${srcdir}/gdb
/gdbtk
; then
9904 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9905 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9907 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9908 # else does, only include them if one of these is built. The Makefile
9909 # provides the ordering, so it's enough here to add to the list.
9910 case " ${configdirs} " in
9912 configdirs
="${configdirs} gnulib gdbsupport"
9915 configdirs
="${configdirs} gnulib gdbsupport"
9918 configdirs
="${configdirs} gnulib"
9922 # Strip out unwanted targets.
9924 # While at that, we remove Makefiles if we were started for recursive
9925 # configuration, so that the top-level Makefile reconfigures them,
9926 # like we used to do when configure itself was recursive.
9928 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9929 # but now we're fixing up the Makefile ourselves with the additional
9930 # commands passed to AC_CONFIG_FILES. Use separate variables
9931 # extrasub-{build,host,target} not because there is any reason to split
9932 # the substitutions up that way, but only to remain below the limit of
9933 # 99 commands in a script, for HP-UX sed.
9935 # Do not nest @if/@endif or @unless/@endunless pairs, because
9936 # configure will not warn you at all.
9938 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9939 yes:yes:*\ gold\
*:*,c
++,*) ;;
9940 yes:yes:*\ gold\
*:*)
9941 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9946 for module
in ${build_configdirs} ; do
9947 if test -z "${no_recursion}" \
9948 && test -f ${build_subdir}/${module}/Makefile
; then
9949 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9950 rm -f ${build_subdir}/${module}/Makefile
9952 extrasub_build
="$extrasub_build
9953 /^@if build-$module\$/d
9954 /^@endif build-$module\$/d
9955 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9956 /^@if build-$module-$bootstrap_suffix\$/d
9957 /^@endif build-$module-$bootstrap_suffix\$/d
9958 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9961 for module
in ${configdirs} ; do
9962 if test -z "${no_recursion}"; then
9963 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9964 if test -f ${file}; then
9965 echo 1>&2 "*** removing ${file} to force reconfigure"
9970 case ${module},${bootstrap_fixincludes} in
9971 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9972 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9974 extrasub_host
="$extrasub_host
9976 /^@endif $module\$/d
9977 /^@unless $module\$/,/^@endunless $module\$/d
9978 /^@if $module-$host_bootstrap_suffix\$/d
9979 /^@endif $module-$host_bootstrap_suffix\$/d
9980 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9983 for module
in ${target_configdirs} ; do
9984 if test -z "${no_recursion}" \
9985 && test -f ${target_subdir}/${module}/Makefile
; then
9986 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9987 rm -f ${target_subdir}/${module}/Makefile
9990 # We only bootstrap target libraries listed in bootstrap_target_libs.
9991 case $bootstrap_target_libs in
9992 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9993 *) target_bootstrap_suffix
=no-bootstrap
;;
9996 extrasub_target
="$extrasub_target
9997 /^@if target-$module\$/d
9998 /^@endif target-$module\$/d
9999 /^@unless target-$module\$/,/^@endunless target-$module\$/d
10000 /^@if target-$module-$target_bootstrap_suffix\$/d
10001 /^@endif target-$module-$target_bootstrap_suffix\$/d
10002 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
10005 # Do the final fixup along with target modules.
10006 extrasub_target
="$extrasub_target
10007 /^@if /,/^@endif /d
10011 if test "$enable_pgo_build" != "no"; then
10012 extrasub_build
="$extrasub_build
10013 /^@if pgo-build\$/d
10014 /^@endif pgo-build\$/d"
10017 # Create the serialization dependencies. This uses a temporary file.
10019 # Check whether --enable-serial-configure was given.
10020 if test "${enable_serial_configure+set}" = set; then :
10021 enableval
=$enable_serial_configure;
10025 case ${enable_serial_configure} in
10027 enable_serial_build_configure
=yes
10028 enable_serial_host_configure
=yes
10029 enable_serial_target_configure
=yes
10033 # These force 'configure's to be done one at a time, to avoid problems
10034 # with contention over a shared config.cache.
10036 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
10037 echo '# serdep.tmp' > serdep.tmp
10040 test "x${enable_serial_build_configure}" = xyes
&&
10041 for item
in ${build_configdirs} ; do
10044 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
10049 test "x${enable_serial_host_configure}" = xyes
&&
10050 for item
in ${configdirs} ; do
10053 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
10058 test "x${enable_serial_target_configure}" = xyes
&&
10059 for item
in ${target_configdirs} ; do
10062 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
10066 serialization_dependencies
=serdep.tmp
10069 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10070 # target, nonopt, and variable assignments. These are the ones we
10071 # might not want to pass down to subconfigures. The exception being
10072 # --cache-file=/dev/null, which is used to turn off the use of cache
10073 # files altogether, and which should be passed on to subconfigures.
10074 # Also strip program-prefix, program-suffix, and program-transform-name,
10075 # so that we can pass down a consistent program-transform-name.
10080 eval "set -- $ac_configure_args"
10083 if test X
"$skip_next" = X
"yes"; then
10087 if test X
"$keep_next" = X
"yes"; then
10090 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10092 baseargs
="$baseargs '$ac_arg'"
10093 tbaseargs
="$tbaseargs '$ac_arg'"
10098 # Handle separated arguments. Based on the logic generated by
10101 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10102 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10103 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10104 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10118 --with-* |
--without-*)
10119 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10123 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10126 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10135 mpc | mpfr | gmp | isl
)
10136 # If we're processing --with-$lib, --with-$lib-include or
10137 # --with-$lib-lib, for one of the libs above, and target is
10138 # different from host, don't pass the current argument to any
10139 # target library's configure.
10140 if test x
$is_cross_compiler = xyes
; then
10149 --cache-file=/dev
/null | \
10150 -cache-file=/dev
/null
)
10151 # Handled here to avoid the test to skip args below.
10152 baseargs
="$baseargs '$ac_arg'"
10153 tbaseargs
="$tbaseargs '$ac_arg'"
10154 # Assert: $separate_arg should always be no.
10155 keep_next
=$separate_arg
10171 -program-prefix* | \
10172 -program-suffix* | \
10173 -program-transform-name* )
10174 skip_next
=$separate_arg
10178 # An option. Add it.
10181 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10183 baseargs
="$baseargs '$ac_arg'"
10184 if test X
"$skip_targ" = Xno
; then
10185 tbaseargs
="$tbaseargs '$ac_arg'"
10187 keep_next
=$separate_arg
10190 # Either a variable assignment, or a nonopt (triplet). Don't
10191 # pass it down; let the Makefile handle this.
10196 # Remove the initial space we just introduced and, as these will be
10197 # expanded by make, quote '$'.
10198 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10200 # Add in --program-transform-name, after --program-prefix and
10201 # --program-suffix have been applied to it. Autoconf has already
10202 # doubled dollar signs and backslashes in program_transform_name; we want
10203 # the backslashes un-doubled, and then the entire thing wrapped in single
10204 # quotes, because this will be expanded first by make and then by the shell.
10205 # Also, because we want to override the logic in subdir configure scripts to
10206 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10207 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10208 ${program_transform_name}
10210 gcc_transform_name
=`cat conftestsed.out`
10211 rm -f conftestsed.out
10212 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10213 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10214 if test "$silent" = yes; then
10215 baseargs
="$baseargs --silent"
10216 tbaseargs
="$tbaseargs --silent"
10218 baseargs
="$baseargs --disable-option-checking"
10219 tbaseargs
="$tbaseargs --disable-option-checking"
10221 # Record and document user additions to sub configure arguments.
10226 # For the build-side libraries, we just need to pretend we're native,
10227 # and not use the same cache file. Multilibs are neither needed nor
10228 # desired. We can't even use the same cache file for all build-side
10229 # libraries, as they're compiled differently; some with C, some with
10230 # C++ or with different feature-enabling options.
10231 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10233 # For host modules, accept cache file option, or specification as blank.
10234 case "${cache_file}" in
10236 cache_file_option
="" ;;
10237 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10238 cache_file_option
="--cache-file=${cache_file}" ;;
10240 cache_file_option
="--cache-file=../${cache_file}" ;;
10243 # Host dirs don't like to share a cache file either, horribly enough.
10244 # This seems to be due to autoconf 2.5x stupidity.
10245 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10247 target_configargs
="$target_configargs ${tbaseargs}"
10249 # Passing a --with-cross-host argument lets the target libraries know
10250 # whether they are being built with a cross-compiler or being built
10251 # native. However, it would be better to use other mechanisms to make the
10252 # sorts of decisions they want to make on this basis. Please consider
10253 # this option to be deprecated. FIXME.
10254 if test x
${is_cross_compiler} = xyes
; then
10255 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10258 # Special user-friendly check for native x86_64-linux build, if
10259 # multilib is not explicitly enabled.
10260 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10261 x86_64-
*linux
*:yes:$build:$build:)
10262 # Make sure we have a development environment that handles 32-bit
10264 echo "int main () { return 0; }" > conftest.c
10265 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10266 if test $?
= 0 ; then
10267 if test -s conftest ||
test -s conftest.exe
; then
10272 if test x
${dev64} != xyes
; then
10273 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
10278 # Default to --enable-multilib.
10279 if test x
${enable_multilib} = x
; then
10280 target_configargs
="--enable-multilib ${target_configargs}"
10283 # Pass --with-newlib if appropriate. Note that target_configdirs has
10284 # changed from the earlier setting of with_newlib.
10285 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10286 target_configargs
="--with-newlib ${target_configargs}"
10289 # Different target subdirs use different values of certain variables
10290 # (notably CXX). Worse, multilibs use *lots* of different values.
10291 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10292 # it doesn't automatically accept command-line overrides of them.
10293 # This means it's not safe for target subdirs to share a cache file,
10294 # which is disgusting, but there you have it. Hopefully this can be
10295 # fixed in future. It's still worthwhile to use a cache file for each
10296 # directory. I think.
10298 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10299 # We need to pass --target, as newer autoconf's requires consistency
10300 # for target_alias and gcc doesn't manage it consistently.
10301 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10304 case " $target_configdirs " in
10306 case " $target_configargs " in
10307 *" --with-newlib "*)
10310 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10314 # If we're not building GCC, don't discard standard headers.
10315 if test -d ${srcdir}/gcc
; then
10316 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10318 if test "${build}" != "${host}"; then
10319 # On Canadian crosses, CC_FOR_TARGET will have already been set
10320 # by `configure', so we won't have an opportunity to add -Bgcc/
10321 # to it. This is right: we don't want to search that directory
10322 # for binaries, but we want the header files in there, so add
10324 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10326 # Someone might think of using the pre-installed headers on
10327 # Canadian crosses, in case the installed compiler is not fully
10328 # compatible with the compiler being built. In this case, it
10329 # would be better to flag an error than risking having
10330 # incompatible object files being constructed. We can't
10331 # guarantee that an error will be flagged, but let's hope the
10332 # compiler will do it, when presented with incompatible header
10337 case "${target}-${is_cross_compiler}" in
10338 i
[3456789]86-*-linux*-no)
10339 # Here host == target, so we don't need to build gcc,
10340 # so we don't want to discard standard headers.
10341 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10344 # If we're building newlib, use its generic headers last, but search
10345 # for any libc-related directories first (so make it the last -B
10347 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10349 # If we're building libgloss, find the startup file, simulator library
10350 # and linker script.
10351 case " $target_configdirs " in
10353 # Look for startup file, simulator library and maybe linker script.
10354 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10355 # Look for libnosys.a in case the target needs it.
10356 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10357 # Most targets have the linker script in the source directory.
10358 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10369 x86_64-
*mingw
* |
*-w64-mingw*)
10370 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10371 # however, use a symlink named 'mingw' in ${prefix} .
10372 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10375 # MinGW can't be handled as Cygwin above since it does not use newlib.
10376 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'
10380 # Allow the user to override the flags for
10381 # our build compiler if desired.
10382 if test x
"${build}" = x
"${host}" ; then
10383 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10384 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10385 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10386 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10389 # On Canadian crosses, we'll be searching the right directories for
10390 # the previously-installed cross compiler, so don't bother to add
10391 # flags for directories within the install tree of the compiler
10392 # being built; programs in there won't even run.
10393 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10394 # Search for pre-installed headers if nothing else fits.
10395 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10398 if test "x
${use_gnu_ld}" = x &&
10399 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10400 # Arrange for us to find uninstalled linker scripts.
10401 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10404 # Search for other target-specific linker scripts and such.
10405 case "${target}" in
10407 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10409 # The VxWorks support for shared libraries is getting in
10410 # incrementally. Make sure it doesn't get activated implicitly:
10412 if test "${enable_shared-unset}" = unset ; then
10414 # So the build of libraries knows ...
10415 target_configargs="${target_configargs} --disable-shared"
10417 host_configargs="${host_configargs} --disable-shared"
10422 # Makefile fragments.
10423 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10425 eval fragval=\$$frag
10426 if test $fragval != /dev/null; then
10427 eval $frag=${srcdir}/$fragval
10435 # Miscellanea: directories, flags, etc.
10444 # Build module lists & subconfigure args.
10448 # Host module lists & subconfigure args.
10453 # Target module lists & subconfigure args.
10478 # Generate default definitions for YACC, M4, LEX and other programs that run
10479 # on the build machine. These are used if the Makefile can't locate these
10480 # programs in objdir.
10481 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10483 for ac_prog in 'bison -y' byacc yacc
10485 # Extract the first word of "$ac_prog", so it can be a program name with args.
10486 set dummy $ac_prog; ac_word=$2
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10488 $as_echo_n "checking
for $ac_word...
" >&6; }
10489 if ${ac_cv_prog_YACC+:} false; then :
10490 $as_echo_n "(cached
) " >&6
10492 if test -n "$YACC"; then
10493 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10499 test -z "$as_dir" && as_dir=.
10500 for ac_exec_ext in '' $ac_executable_extensions; do
10501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10502 ac_cv_prog_YACC="$ac_prog"
10503 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10512 YACC=$ac_cv_prog_YACC
10513 if test -n "$YACC"; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10515 $as_echo "$YACC" >&6; }
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10518 $as_echo "no
" >&6; }
10522 test -n "$YACC" && break
10524 test -n "$YACC" || YACC="$MISSING bison
-y"
10526 case " $build_configdirs " in
10527 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10530 for ac_prog in bison
10532 # Extract the first word of "$ac_prog", so it can be a program name with args.
10533 set dummy $ac_prog; ac_word=$2
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10535 $as_echo_n "checking
for $ac_word...
" >&6; }
10536 if ${ac_cv_prog_BISON+:} false; then :
10537 $as_echo_n "(cached
) " >&6
10539 if test -n "$BISON"; then
10540 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543 for as_dir in $PATH
10546 test -z "$as_dir" && as_dir=.
10547 for ac_exec_ext in '' $ac_executable_extensions; do
10548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10549 ac_cv_prog_BISON="$ac_prog"
10550 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10559 BISON=$ac_cv_prog_BISON
10560 if test -n "$BISON"; then
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10562 $as_echo "$BISON" >&6; }
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10565 $as_echo "no
" >&6; }
10569 test -n "$BISON" && break
10571 test -n "$BISON" || BISON="$MISSING bison
"
10573 case " $build_configdirs " in
10574 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10577 for ac_prog in gm4 gnum4 m4
10579 # Extract the first word of "$ac_prog", so it can be a program name with args.
10580 set dummy $ac_prog; ac_word=$2
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10582 $as_echo_n "checking
for $ac_word...
" >&6; }
10583 if ${ac_cv_prog_M4+:} false; then :
10584 $as_echo_n "(cached
) " >&6
10586 if test -n "$M4"; then
10587 ac_cv_prog_M4="$M4" # Let the user override the test.
10589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10590 for as_dir in $PATH
10593 test -z "$as_dir" && as_dir=.
10594 for ac_exec_ext in '' $ac_executable_extensions; do
10595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10596 ac_cv_prog_M4="$ac_prog"
10597 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10607 if test -n "$M4"; then
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10609 $as_echo "$M4" >&6; }
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10612 $as_echo "no
" >&6; }
10616 test -n "$M4" && break
10618 test -n "$M4" || M4="$MISSING m4"
10620 case " $build_configdirs " in
10621 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10624 for ac_prog in flex lex
10626 # Extract the first word of "$ac_prog", so it can be a program name with args.
10627 set dummy $ac_prog; ac_word=$2
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10629 $as_echo_n "checking
for $ac_word...
" >&6; }
10630 if ${ac_cv_prog_LEX+:} false; then :
10631 $as_echo_n "(cached
) " >&6
10633 if test -n "$LEX"; then
10634 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10637 for as_dir in $PATH
10640 test -z "$as_dir" && as_dir=.
10641 for ac_exec_ext in '' $ac_executable_extensions; do
10642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10643 ac_cv_prog_LEX="$ac_prog"
10644 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10653 LEX=$ac_cv_prog_LEX
10654 if test -n "$LEX"; then
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10656 $as_echo "$LEX" >&6; }
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10659 $as_echo "no
" >&6; }
10663 test -n "$LEX" && break
10665 test -n "$LEX" || LEX="$MISSING flex
"
10667 case " $build_configdirs " in
10668 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10669 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10672 for ac_prog in flex
10674 # Extract the first word of "$ac_prog", so it can be a program name with args.
10675 set dummy $ac_prog; ac_word=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10677 $as_echo_n "checking
for $ac_word...
" >&6; }
10678 if ${ac_cv_prog_FLEX+:} false; then :
10679 $as_echo_n "(cached
) " >&6
10681 if test -n "$FLEX"; then
10682 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685 for as_dir in $PATH
10688 test -z "$as_dir" && as_dir=.
10689 for ac_exec_ext in '' $ac_executable_extensions; do
10690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10691 ac_cv_prog_FLEX="$ac_prog"
10692 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10701 FLEX=$ac_cv_prog_FLEX
10702 if test -n "$FLEX"; then
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10704 $as_echo "$FLEX" >&6; }
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10707 $as_echo "no
" >&6; }
10711 test -n "$FLEX" && break
10713 test -n "$FLEX" || FLEX="$MISSING flex
"
10715 case " $build_configdirs " in
10716 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10719 for ac_prog in makeinfo
10721 # Extract the first word of "$ac_prog", so it can be a program name with args.
10722 set dummy $ac_prog; ac_word=$2
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10724 $as_echo_n "checking
for $ac_word...
" >&6; }
10725 if ${ac_cv_prog_MAKEINFO+:} false; then :
10726 $as_echo_n "(cached
) " >&6
10728 if test -n "$MAKEINFO"; then
10729 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH
10735 test -z "$as_dir" && as_dir=.
10736 for ac_exec_ext in '' $ac_executable_extensions; do
10737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10738 ac_cv_prog_MAKEINFO="$ac_prog"
10739 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10748 MAKEINFO=$ac_cv_prog_MAKEINFO
10749 if test -n "$MAKEINFO"; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10751 $as_echo "$MAKEINFO" >&6; }
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10754 $as_echo "no
" >&6; }
10758 test -n "$MAKEINFO" && break
10760 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10762 case " $build_configdirs " in
10763 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10766 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10767 # higher, else we use the "missing
" dummy.
10768 if ${MAKEINFO} --version \
10769 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10772 MAKEINFO="$MISSING makeinfo
"
10778 # FIXME: expect and dejagnu may become build tools?
10780 for ac_prog in expect
10782 # Extract the first word of "$ac_prog", so it can be a program name with args.
10783 set dummy $ac_prog; ac_word=$2
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10785 $as_echo_n "checking
for $ac_word...
" >&6; }
10786 if ${ac_cv_prog_EXPECT+:} false; then :
10787 $as_echo_n "(cached
) " >&6
10789 if test -n "$EXPECT"; then
10790 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793 for as_dir in $PATH
10796 test -z "$as_dir" && as_dir=.
10797 for ac_exec_ext in '' $ac_executable_extensions; do
10798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10799 ac_cv_prog_EXPECT="$ac_prog"
10800 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10809 EXPECT=$ac_cv_prog_EXPECT
10810 if test -n "$EXPECT"; then
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10812 $as_echo "$EXPECT" >&6; }
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10815 $as_echo "no
" >&6; }
10819 test -n "$EXPECT" && break
10821 test -n "$EXPECT" || EXPECT="expect
"
10823 case " $configdirs " in
10825 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10829 for ac_prog in runtest
10831 # Extract the first word of "$ac_prog", so it can be a program name with args.
10832 set dummy $ac_prog; ac_word=$2
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10834 $as_echo_n "checking
for $ac_word...
" >&6; }
10835 if ${ac_cv_prog_RUNTEST+:} false; then :
10836 $as_echo_n "(cached
) " >&6
10838 if test -n "$RUNTEST"; then
10839 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10842 for as_dir in $PATH
10845 test -z "$as_dir" && as_dir=.
10846 for ac_exec_ext in '' $ac_executable_extensions; do
10847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10848 ac_cv_prog_RUNTEST="$ac_prog"
10849 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10858 RUNTEST=$ac_cv_prog_RUNTEST
10859 if test -n "$RUNTEST"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10861 $as_echo "$RUNTEST" >&6; }
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10864 $as_echo "no
" >&6; }
10868 test -n "$RUNTEST" && break
10870 test -n "$RUNTEST" || RUNTEST="runtest
"
10872 case " $configdirs " in
10874 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10881 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10882 ncn_target_tool_prefix=
10883 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10887 if test -n "$AR"; then
10889 elif test -n "$ac_cv_prog_AR"; then
10893 if test -n "$ac_cv_prog_AR"; then
10894 for ncn_progname in ar; do
10895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10896 set dummy ${ncn_progname}; ac_word=$2
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10898 $as_echo_n "checking
for $ac_word...
" >&6; }
10899 if ${ac_cv_prog_AR+:} false; then :
10900 $as_echo_n "(cached
) " >&6
10902 if test -n "$AR"; then
10903 ac_cv_prog_AR="$AR" # Let the user override the test.
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10912 ac_cv_prog_AR="${ncn_progname}"
10913 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10923 if test -n "$AR"; then
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10925 $as_echo "$AR" >&6; }
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10928 $as_echo "no
" >&6; }
10935 for ncn_progname in ar; do
10936 if test -n "$ncn_tool_prefix"; then
10937 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10938 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10940 $as_echo_n "checking
for $ac_word...
" >&6; }
10941 if ${ac_cv_prog_AR+:} false; then :
10942 $as_echo_n "(cached
) " >&6
10944 if test -n "$AR"; then
10945 ac_cv_prog_AR="$AR" # Let the user override the test.
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948 for as_dir in $PATH
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10954 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10955 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10965 if test -n "$AR"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10967 $as_echo "$AR" >&6; }
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10970 $as_echo "no
" >&6; }
10975 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10977 set dummy ${ncn_progname}; ac_word=$2
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10979 $as_echo_n "checking
for $ac_word...
" >&6; }
10980 if ${ac_cv_prog_AR+:} false; then :
10981 $as_echo_n "(cached
) " >&6
10983 if test -n "$AR"; then
10984 ac_cv_prog_AR="$AR" # Let the user override the test.
10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987 for as_dir in $PATH
10990 test -z "$as_dir" && as_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10993 ac_cv_prog_AR="${ncn_progname}"
10994 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11004 if test -n "$AR"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11006 $as_echo "$AR" >&6; }
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11009 $as_echo "no
" >&6; }
11014 test -n "$ac_cv_prog_AR" && break
11017 if test -z "$ac_cv_prog_AR" ; then
11019 if test $build = $host ; then
11022 AR="${ncn_tool_prefix}$2"
11028 if test -n "$AS"; then
11030 elif test -n "$ac_cv_prog_AS"; then
11034 if test -n "$ac_cv_prog_AS"; then
11035 for ncn_progname in as; do
11036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11037 set dummy ${ncn_progname}; ac_word=$2
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11039 $as_echo_n "checking
for $ac_word...
" >&6; }
11040 if ${ac_cv_prog_AS+:} false; then :
11041 $as_echo_n "(cached
) " >&6
11043 if test -n "$AS"; then
11044 ac_cv_prog_AS="$AS" # Let the user override the test.
11046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in $PATH
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11053 ac_cv_prog_AS="${ncn_progname}"
11054 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11064 if test -n "$AS"; then
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11066 $as_echo "$AS" >&6; }
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11069 $as_echo "no
" >&6; }
11076 for ncn_progname in as; do
11077 if test -n "$ncn_tool_prefix"; then
11078 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11079 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11081 $as_echo_n "checking
for $ac_word...
" >&6; }
11082 if ${ac_cv_prog_AS+:} false; then :
11083 $as_echo_n "(cached
) " >&6
11085 if test -n "$AS"; then
11086 ac_cv_prog_AS="$AS" # Let the user override the test.
11088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089 for as_dir in $PATH
11092 test -z "$as_dir" && as_dir=.
11093 for ac_exec_ext in '' $ac_executable_extensions; do
11094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11095 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11096 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11106 if test -n "$AS"; then
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11108 $as_echo "$AS" >&6; }
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11111 $as_echo "no
" >&6; }
11116 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11118 set dummy ${ncn_progname}; ac_word=$2
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11120 $as_echo_n "checking
for $ac_word...
" >&6; }
11121 if ${ac_cv_prog_AS+:} false; then :
11122 $as_echo_n "(cached
) " >&6
11124 if test -n "$AS"; then
11125 ac_cv_prog_AS="$AS" # Let the user override the test.
11127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in $PATH
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
11133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11134 ac_cv_prog_AS="${ncn_progname}"
11135 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11145 if test -n "$AS"; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11147 $as_echo "$AS" >&6; }
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11150 $as_echo "no
" >&6; }
11155 test -n "$ac_cv_prog_AS" && break
11158 if test -z "$ac_cv_prog_AS" ; then
11160 if test $build = $host ; then
11163 AS="${ncn_tool_prefix}$2"
11169 if test -n "$DLLTOOL"; then
11170 ac_cv_prog_DLLTOOL=$DLLTOOL
11171 elif test -n "$ac_cv_prog_DLLTOOL"; then
11172 DLLTOOL=$ac_cv_prog_DLLTOOL
11175 if test -n "$ac_cv_prog_DLLTOOL"; then
11176 for ncn_progname in dlltool; do
11177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11178 set dummy ${ncn_progname}; ac_word=$2
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11180 $as_echo_n "checking
for $ac_word...
" >&6; }
11181 if ${ac_cv_prog_DLLTOOL+:} false; then :
11182 $as_echo_n "(cached
) " >&6
11184 if test -n "$DLLTOOL"; then
11185 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11194 ac_cv_prog_DLLTOOL="${ncn_progname}"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11204 DLLTOOL=$ac_cv_prog_DLLTOOL
11205 if test -n "$DLLTOOL"; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11207 $as_echo "$DLLTOOL" >&6; }
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11210 $as_echo "no
" >&6; }
11217 for ncn_progname in dlltool; do
11218 if test -n "$ncn_tool_prefix"; then
11219 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11220 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11222 $as_echo_n "checking
for $ac_word...
" >&6; }
11223 if ${ac_cv_prog_DLLTOOL+:} false; then :
11224 $as_echo_n "(cached
) " >&6
11226 if test -n "$DLLTOOL"; then
11227 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11236 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11237 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11246 DLLTOOL=$ac_cv_prog_DLLTOOL
11247 if test -n "$DLLTOOL"; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11249 $as_echo "$DLLTOOL" >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11252 $as_echo "no
" >&6; }
11257 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11259 set dummy ${ncn_progname}; ac_word=$2
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11261 $as_echo_n "checking
for $ac_word...
" >&6; }
11262 if ${ac_cv_prog_DLLTOOL+:} false; then :
11263 $as_echo_n "(cached
) " >&6
11265 if test -n "$DLLTOOL"; then
11266 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269 for as_dir in $PATH
11272 test -z "$as_dir" && as_dir=.
11273 for ac_exec_ext in '' $ac_executable_extensions; do
11274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11275 ac_cv_prog_DLLTOOL="${ncn_progname}"
11276 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11285 DLLTOOL=$ac_cv_prog_DLLTOOL
11286 if test -n "$DLLTOOL"; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11288 $as_echo "$DLLTOOL" >&6; }
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11291 $as_echo "no
" >&6; }
11296 test -n "$ac_cv_prog_DLLTOOL" && break
11299 if test -z "$ac_cv_prog_DLLTOOL" ; then
11301 if test $build = $host ; then
11304 DLLTOOL="${ncn_tool_prefix}$2"
11310 if test -n "$DSYMUTIL"; then
11311 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11312 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11313 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11316 if test -n "$ac_cv_prog_DSYMUTIL"; then
11317 for ncn_progname in dsymutil; do
11318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11319 set dummy ${ncn_progname}; ac_word=$2
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11321 $as_echo_n "checking
for $ac_word...
" >&6; }
11322 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11323 $as_echo_n "(cached
) " >&6
11325 if test -n "$DSYMUTIL"; then
11326 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329 for as_dir in $PATH
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11345 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11346 if test -n "$DSYMUTIL"; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11348 $as_echo "$DSYMUTIL" >&6; }
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11351 $as_echo "no
" >&6; }
11358 for ncn_progname in dsymutil; do
11359 if test -n "$ncn_tool_prefix"; then
11360 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11361 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11363 $as_echo_n "checking
for $ac_word...
" >&6; }
11364 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11365 $as_echo_n "(cached
) " >&6
11367 if test -n "$DSYMUTIL"; then
11368 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11377 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11378 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11387 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11388 if test -n "$DSYMUTIL"; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11390 $as_echo "$DSYMUTIL" >&6; }
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11393 $as_echo "no
" >&6; }
11398 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11400 set dummy ${ncn_progname}; ac_word=$2
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11402 $as_echo_n "checking
for $ac_word...
" >&6; }
11403 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11404 $as_echo_n "(cached
) " >&6
11406 if test -n "$DSYMUTIL"; then
11407 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $PATH
11413 test -z "$as_dir" && as_dir=.
11414 for ac_exec_ext in '' $ac_executable_extensions; do
11415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11416 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11417 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11426 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11427 if test -n "$DSYMUTIL"; then
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11429 $as_echo "$DSYMUTIL" >&6; }
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11432 $as_echo "no
" >&6; }
11437 test -n "$ac_cv_prog_DSYMUTIL" && break
11440 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11442 if test $build = $host ; then
11445 DSYMUTIL="${ncn_tool_prefix}$2"
11451 if test -n "$LD"; then
11453 elif test -n "$ac_cv_prog_LD"; then
11457 if test -n "$ac_cv_prog_LD"; then
11458 for ncn_progname in ld; do
11459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11460 set dummy ${ncn_progname}; ac_word=$2
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11462 $as_echo_n "checking
for $ac_word...
" >&6; }
11463 if ${ac_cv_prog_LD+:} false; then :
11464 $as_echo_n "(cached
) " >&6
11466 if test -n "$LD"; then
11467 ac_cv_prog_LD="$LD" # Let the user override the test.
11469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470 for as_dir in $PATH
11473 test -z "$as_dir" && as_dir=.
11474 for ac_exec_ext in '' $ac_executable_extensions; do
11475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11476 ac_cv_prog_LD="${ncn_progname}"
11477 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11487 if test -n "$LD"; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11489 $as_echo "$LD" >&6; }
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11492 $as_echo "no
" >&6; }
11499 for ncn_progname in ld; do
11500 if test -n "$ncn_tool_prefix"; then
11501 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11502 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11504 $as_echo_n "checking
for $ac_word...
" >&6; }
11505 if ${ac_cv_prog_LD+:} false; then :
11506 $as_echo_n "(cached
) " >&6
11508 if test -n "$LD"; then
11509 ac_cv_prog_LD="$LD" # Let the user override the test.
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in $PATH
11515 test -z "$as_dir" && as_dir=.
11516 for ac_exec_ext in '' $ac_executable_extensions; do
11517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11518 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11519 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11529 if test -n "$LD"; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11531 $as_echo "$LD" >&6; }
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11534 $as_echo "no
" >&6; }
11539 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11541 set dummy ${ncn_progname}; ac_word=$2
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11543 $as_echo_n "checking
for $ac_word...
" >&6; }
11544 if ${ac_cv_prog_LD+:} false; then :
11545 $as_echo_n "(cached
) " >&6
11547 if test -n "$LD"; then
11548 ac_cv_prog_LD="$LD" # Let the user override the test.
11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557 ac_cv_prog_LD="${ncn_progname}"
11558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11568 if test -n "$LD"; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11570 $as_echo "$LD" >&6; }
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11573 $as_echo "no
" >&6; }
11578 test -n "$ac_cv_prog_LD" && break
11581 if test -z "$ac_cv_prog_LD" ; then
11583 if test $build = $host ; then
11586 LD="${ncn_tool_prefix}$2"
11592 if test -n "$LIPO"; then
11593 ac_cv_prog_LIPO=$LIPO
11594 elif test -n "$ac_cv_prog_LIPO"; then
11595 LIPO=$ac_cv_prog_LIPO
11598 if test -n "$ac_cv_prog_LIPO"; then
11599 for ncn_progname in lipo; do
11600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11601 set dummy ${ncn_progname}; ac_word=$2
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11603 $as_echo_n "checking
for $ac_word...
" >&6; }
11604 if ${ac_cv_prog_LIPO+:} false; then :
11605 $as_echo_n "(cached
) " >&6
11607 if test -n "$LIPO"; then
11608 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11617 ac_cv_prog_LIPO="${ncn_progname}"
11618 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11627 LIPO=$ac_cv_prog_LIPO
11628 if test -n "$LIPO"; then
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11630 $as_echo "$LIPO" >&6; }
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11633 $as_echo "no
" >&6; }
11640 for ncn_progname in lipo; do
11641 if test -n "$ncn_tool_prefix"; then
11642 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11643 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11645 $as_echo_n "checking
for $ac_word...
" >&6; }
11646 if ${ac_cv_prog_LIPO+:} false; then :
11647 $as_echo_n "(cached
) " >&6
11649 if test -n "$LIPO"; then
11650 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653 for as_dir in $PATH
11656 test -z "$as_dir" && as_dir=.
11657 for ac_exec_ext in '' $ac_executable_extensions; do
11658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11659 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11660 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11669 LIPO=$ac_cv_prog_LIPO
11670 if test -n "$LIPO"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11672 $as_echo "$LIPO" >&6; }
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11675 $as_echo "no
" >&6; }
11680 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11682 set dummy ${ncn_progname}; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11684 $as_echo_n "checking
for $ac_word...
" >&6; }
11685 if ${ac_cv_prog_LIPO+:} false; then :
11686 $as_echo_n "(cached
) " >&6
11688 if test -n "$LIPO"; then
11689 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11698 ac_cv_prog_LIPO="${ncn_progname}"
11699 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11708 LIPO=$ac_cv_prog_LIPO
11709 if test -n "$LIPO"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11711 $as_echo "$LIPO" >&6; }
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11714 $as_echo "no
" >&6; }
11719 test -n "$ac_cv_prog_LIPO" && break
11722 if test -z "$ac_cv_prog_LIPO" ; then
11724 if test $build = $host ; then
11727 LIPO="${ncn_tool_prefix}$2"
11733 if test -n "$NM"; then
11735 elif test -n "$ac_cv_prog_NM"; then
11739 if test -n "$ac_cv_prog_NM"; then
11740 for ncn_progname in nm; do
11741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11742 set dummy ${ncn_progname}; ac_word=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11744 $as_echo_n "checking
for $ac_word...
" >&6; }
11745 if ${ac_cv_prog_NM+:} false; then :
11746 $as_echo_n "(cached
) " >&6
11748 if test -n "$NM"; then
11749 ac_cv_prog_NM="$NM" # Let the user override the test.
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11758 ac_cv_prog_NM="${ncn_progname}"
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11769 if test -n "$NM"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11771 $as_echo "$NM" >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11774 $as_echo "no
" >&6; }
11781 for ncn_progname in nm; do
11782 if test -n "$ncn_tool_prefix"; then
11783 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11784 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11786 $as_echo_n "checking
for $ac_word...
" >&6; }
11787 if ${ac_cv_prog_NM+:} false; then :
11788 $as_echo_n "(cached
) " >&6
11790 if test -n "$NM"; then
11791 ac_cv_prog_NM="$NM" # Let the user override the test.
11793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11797 test -z "$as_dir" && as_dir=.
11798 for ac_exec_ext in '' $ac_executable_extensions; do
11799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11800 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11801 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11811 if test -n "$NM"; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11813 $as_echo "$NM" >&6; }
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11816 $as_echo "no
" >&6; }
11821 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11823 set dummy ${ncn_progname}; ac_word=$2
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11825 $as_echo_n "checking
for $ac_word...
" >&6; }
11826 if ${ac_cv_prog_NM+:} false; then :
11827 $as_echo_n "(cached
) " >&6
11829 if test -n "$NM"; then
11830 ac_cv_prog_NM="$NM" # Let the user override the test.
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_prog_NM="${ncn_progname}"
11840 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11850 if test -n "$NM"; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11852 $as_echo "$NM" >&6; }
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11855 $as_echo "no
" >&6; }
11860 test -n "$ac_cv_prog_NM" && break
11863 if test -z "$ac_cv_prog_NM" ; then
11865 if test $build = $host ; then
11868 NM="${ncn_tool_prefix}$2"
11874 if test -n "$RANLIB"; then
11875 ac_cv_prog_RANLIB=$RANLIB
11876 elif test -n "$ac_cv_prog_RANLIB"; then
11877 RANLIB=$ac_cv_prog_RANLIB
11880 if test -n "$ac_cv_prog_RANLIB"; then
11881 for ncn_progname in ranlib; do
11882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11883 set dummy ${ncn_progname}; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11885 $as_echo_n "checking
for $ac_word...
" >&6; }
11886 if ${ac_cv_prog_RANLIB+:} false; then :
11887 $as_echo_n "(cached
) " >&6
11889 if test -n "$RANLIB"; then
11890 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11896 test -z "$as_dir" && as_dir=.
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11899 ac_cv_prog_RANLIB="${ncn_progname}"
11900 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11909 RANLIB=$ac_cv_prog_RANLIB
11910 if test -n "$RANLIB"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11912 $as_echo "$RANLIB" >&6; }
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11915 $as_echo "no
" >&6; }
11922 for ncn_progname in ranlib; do
11923 if test -n "$ncn_tool_prefix"; then
11924 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11925 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11927 $as_echo_n "checking
for $ac_word...
" >&6; }
11928 if ${ac_cv_prog_RANLIB+:} false; then :
11929 $as_echo_n "(cached
) " >&6
11931 if test -n "$RANLIB"; then
11932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935 for as_dir in $PATH
11938 test -z "$as_dir" && as_dir=.
11939 for ac_exec_ext in '' $ac_executable_extensions; do
11940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11941 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11942 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11951 RANLIB=$ac_cv_prog_RANLIB
11952 if test -n "$RANLIB"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11954 $as_echo "$RANLIB" >&6; }
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11957 $as_echo "no
" >&6; }
11962 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11964 set dummy ${ncn_progname}; ac_word=$2
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11966 $as_echo_n "checking
for $ac_word...
" >&6; }
11967 if ${ac_cv_prog_RANLIB+:} false; then :
11968 $as_echo_n "(cached
) " >&6
11970 if test -n "$RANLIB"; then
11971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974 for as_dir in $PATH
11977 test -z "$as_dir" && as_dir=.
11978 for ac_exec_ext in '' $ac_executable_extensions; do
11979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11980 ac_cv_prog_RANLIB="${ncn_progname}"
11981 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11990 RANLIB=$ac_cv_prog_RANLIB
11991 if test -n "$RANLIB"; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11993 $as_echo "$RANLIB" >&6; }
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11996 $as_echo "no
" >&6; }
12001 test -n "$ac_cv_prog_RANLIB" && break
12004 if test -z "$ac_cv_prog_RANLIB" ; then
12010 if test -n "$STRIP"; then
12011 ac_cv_prog_STRIP=$STRIP
12012 elif test -n "$ac_cv_prog_STRIP"; then
12013 STRIP=$ac_cv_prog_STRIP
12016 if test -n "$ac_cv_prog_STRIP"; then
12017 for ncn_progname in strip; do
12018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12019 set dummy ${ncn_progname}; ac_word=$2
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12021 $as_echo_n "checking
for $ac_word...
" >&6; }
12022 if ${ac_cv_prog_STRIP+:} false; then :
12023 $as_echo_n "(cached
) " >&6
12025 if test -n "$STRIP"; then
12026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029 for as_dir in $PATH
12032 test -z "$as_dir" && as_dir=.
12033 for ac_exec_ext in '' $ac_executable_extensions; do
12034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12035 ac_cv_prog_STRIP="${ncn_progname}"
12036 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12045 STRIP=$ac_cv_prog_STRIP
12046 if test -n "$STRIP"; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12048 $as_echo "$STRIP" >&6; }
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12051 $as_echo "no
" >&6; }
12058 for ncn_progname in strip; do
12059 if test -n "$ncn_tool_prefix"; then
12060 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12061 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12063 $as_echo_n "checking
for $ac_word...
" >&6; }
12064 if ${ac_cv_prog_STRIP+:} false; then :
12065 $as_echo_n "(cached
) " >&6
12067 if test -n "$STRIP"; then
12068 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12074 test -z "$as_dir" && as_dir=.
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12077 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12078 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12087 STRIP=$ac_cv_prog_STRIP
12088 if test -n "$STRIP"; then
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12090 $as_echo "$STRIP" >&6; }
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12093 $as_echo "no
" >&6; }
12098 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12100 set dummy ${ncn_progname}; ac_word=$2
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12102 $as_echo_n "checking
for $ac_word...
" >&6; }
12103 if ${ac_cv_prog_STRIP+:} false; then :
12104 $as_echo_n "(cached
) " >&6
12106 if test -n "$STRIP"; then
12107 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12113 test -z "$as_dir" && as_dir=.
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12116 ac_cv_prog_STRIP="${ncn_progname}"
12117 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12126 STRIP=$ac_cv_prog_STRIP
12127 if test -n "$STRIP"; then
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12129 $as_echo "$STRIP" >&6; }
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12132 $as_echo "no
" >&6; }
12137 test -n "$ac_cv_prog_STRIP" && break
12140 if test -z "$ac_cv_prog_STRIP" ; then
12146 if test -n "$WINDRES"; then
12147 ac_cv_prog_WINDRES=$WINDRES
12148 elif test -n "$ac_cv_prog_WINDRES"; then
12149 WINDRES=$ac_cv_prog_WINDRES
12152 if test -n "$ac_cv_prog_WINDRES"; then
12153 for ncn_progname in windres; do
12154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12155 set dummy ${ncn_progname}; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12157 $as_echo_n "checking
for $ac_word...
" >&6; }
12158 if ${ac_cv_prog_WINDRES+:} false; then :
12159 $as_echo_n "(cached
) " >&6
12161 if test -n "$WINDRES"; then
12162 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165 for as_dir in $PATH
12168 test -z "$as_dir" && as_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171 ac_cv_prog_WINDRES="${ncn_progname}"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12181 WINDRES=$ac_cv_prog_WINDRES
12182 if test -n "$WINDRES"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12184 $as_echo "$WINDRES" >&6; }
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12187 $as_echo "no
" >&6; }
12194 for ncn_progname in windres; do
12195 if test -n "$ncn_tool_prefix"; then
12196 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12197 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12199 $as_echo_n "checking
for $ac_word...
" >&6; }
12200 if ${ac_cv_prog_WINDRES+:} false; then :
12201 $as_echo_n "(cached
) " >&6
12203 if test -n "$WINDRES"; then
12204 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12213 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12223 WINDRES=$ac_cv_prog_WINDRES
12224 if test -n "$WINDRES"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12226 $as_echo "$WINDRES" >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12229 $as_echo "no
" >&6; }
12234 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12236 set dummy ${ncn_progname}; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12238 $as_echo_n "checking
for $ac_word...
" >&6; }
12239 if ${ac_cv_prog_WINDRES+:} false; then :
12240 $as_echo_n "(cached
) " >&6
12242 if test -n "$WINDRES"; then
12243 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12252 ac_cv_prog_WINDRES="${ncn_progname}"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12262 WINDRES=$ac_cv_prog_WINDRES
12263 if test -n "$WINDRES"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12265 $as_echo "$WINDRES" >&6; }
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12268 $as_echo "no
" >&6; }
12273 test -n "$ac_cv_prog_WINDRES" && break
12276 if test -z "$ac_cv_prog_WINDRES" ; then
12278 if test $build = $host ; then
12281 WINDRES="${ncn_tool_prefix}$2"
12287 if test -n "$WINDMC"; then
12288 ac_cv_prog_WINDMC=$WINDMC
12289 elif test -n "$ac_cv_prog_WINDMC"; then
12290 WINDMC=$ac_cv_prog_WINDMC
12293 if test -n "$ac_cv_prog_WINDMC"; then
12294 for ncn_progname in windmc; do
12295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12296 set dummy ${ncn_progname}; ac_word=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12298 $as_echo_n "checking
for $ac_word...
" >&6; }
12299 if ${ac_cv_prog_WINDMC+:} false; then :
12300 $as_echo_n "(cached
) " >&6
12302 if test -n "$WINDMC"; then
12303 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312 ac_cv_prog_WINDMC="${ncn_progname}"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12322 WINDMC=$ac_cv_prog_WINDMC
12323 if test -n "$WINDMC"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12325 $as_echo "$WINDMC" >&6; }
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12328 $as_echo "no
" >&6; }
12335 for ncn_progname in windmc; do
12336 if test -n "$ncn_tool_prefix"; then
12337 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12338 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12340 $as_echo_n "checking
for $ac_word...
" >&6; }
12341 if ${ac_cv_prog_WINDMC+:} false; then :
12342 $as_echo_n "(cached
) " >&6
12344 if test -n "$WINDMC"; then
12345 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12354 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12355 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12364 WINDMC=$ac_cv_prog_WINDMC
12365 if test -n "$WINDMC"; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12367 $as_echo "$WINDMC" >&6; }
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12370 $as_echo "no
" >&6; }
12375 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12377 set dummy ${ncn_progname}; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12379 $as_echo_n "checking
for $ac_word...
" >&6; }
12380 if ${ac_cv_prog_WINDMC+:} false; then :
12381 $as_echo_n "(cached
) " >&6
12383 if test -n "$WINDMC"; then
12384 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12390 test -z "$as_dir" && as_dir=.
12391 for ac_exec_ext in '' $ac_executable_extensions; do
12392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12393 ac_cv_prog_WINDMC="${ncn_progname}"
12394 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12403 WINDMC=$ac_cv_prog_WINDMC
12404 if test -n "$WINDMC"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12406 $as_echo "$WINDMC" >&6; }
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12409 $as_echo "no
" >&6; }
12414 test -n "$ac_cv_prog_WINDMC" && break
12417 if test -z "$ac_cv_prog_WINDMC" ; then
12419 if test $build = $host ; then
12422 WINDMC="${ncn_tool_prefix}$2"
12428 if test -n "$OBJCOPY"; then
12429 ac_cv_prog_OBJCOPY=$OBJCOPY
12430 elif test -n "$ac_cv_prog_OBJCOPY"; then
12431 OBJCOPY=$ac_cv_prog_OBJCOPY
12434 if test -n "$ac_cv_prog_OBJCOPY"; then
12435 for ncn_progname in objcopy; do
12436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12437 set dummy ${ncn_progname}; ac_word=$2
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12439 $as_echo_n "checking
for $ac_word...
" >&6; }
12440 if ${ac_cv_prog_OBJCOPY+:} false; then :
12441 $as_echo_n "(cached
) " >&6
12443 if test -n "$OBJCOPY"; then
12444 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447 for as_dir in $PATH
12450 test -z "$as_dir" && as_dir=.
12451 for ac_exec_ext in '' $ac_executable_extensions; do
12452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12453 ac_cv_prog_OBJCOPY="${ncn_progname}"
12454 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12463 OBJCOPY=$ac_cv_prog_OBJCOPY
12464 if test -n "$OBJCOPY"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12466 $as_echo "$OBJCOPY" >&6; }
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12469 $as_echo "no
" >&6; }
12476 for ncn_progname in objcopy; do
12477 if test -n "$ncn_tool_prefix"; then
12478 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12479 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12481 $as_echo_n "checking
for $ac_word...
" >&6; }
12482 if ${ac_cv_prog_OBJCOPY+:} false; then :
12483 $as_echo_n "(cached
) " >&6
12485 if test -n "$OBJCOPY"; then
12486 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12489 for as_dir in $PATH
12492 test -z "$as_dir" && as_dir=.
12493 for ac_exec_ext in '' $ac_executable_extensions; do
12494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12495 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12496 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12505 OBJCOPY=$ac_cv_prog_OBJCOPY
12506 if test -n "$OBJCOPY"; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12508 $as_echo "$OBJCOPY" >&6; }
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12511 $as_echo "no
" >&6; }
12516 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12518 set dummy ${ncn_progname}; ac_word=$2
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12520 $as_echo_n "checking
for $ac_word...
" >&6; }
12521 if ${ac_cv_prog_OBJCOPY+:} false; then :
12522 $as_echo_n "(cached
) " >&6
12524 if test -n "$OBJCOPY"; then
12525 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12531 test -z "$as_dir" && as_dir=.
12532 for ac_exec_ext in '' $ac_executable_extensions; do
12533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12534 ac_cv_prog_OBJCOPY="${ncn_progname}"
12535 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12544 OBJCOPY=$ac_cv_prog_OBJCOPY
12545 if test -n "$OBJCOPY"; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12547 $as_echo "$OBJCOPY" >&6; }
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12550 $as_echo "no
" >&6; }
12555 test -n "$ac_cv_prog_OBJCOPY" && break
12558 if test -z "$ac_cv_prog_OBJCOPY" ; then
12560 if test $build = $host ; then
12563 OBJCOPY="${ncn_tool_prefix}$2"
12569 if test -n "$OBJDUMP"; then
12570 ac_cv_prog_OBJDUMP=$OBJDUMP
12571 elif test -n "$ac_cv_prog_OBJDUMP"; then
12572 OBJDUMP=$ac_cv_prog_OBJDUMP
12575 if test -n "$ac_cv_prog_OBJDUMP"; then
12576 for ncn_progname in objdump; do
12577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12578 set dummy ${ncn_progname}; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12580 $as_echo_n "checking
for $ac_word...
" >&6; }
12581 if ${ac_cv_prog_OBJDUMP+:} false; then :
12582 $as_echo_n "(cached
) " >&6
12584 if test -n "$OBJDUMP"; then
12585 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12591 test -z "$as_dir" && as_dir=.
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12594 ac_cv_prog_OBJDUMP="${ncn_progname}"
12595 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12604 OBJDUMP=$ac_cv_prog_OBJDUMP
12605 if test -n "$OBJDUMP"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12607 $as_echo "$OBJDUMP" >&6; }
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12610 $as_echo "no
" >&6; }
12617 for ncn_progname in objdump; do
12618 if test -n "$ncn_tool_prefix"; then
12619 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12620 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12622 $as_echo_n "checking
for $ac_word...
" >&6; }
12623 if ${ac_cv_prog_OBJDUMP+:} false; then :
12624 $as_echo_n "(cached
) " >&6
12626 if test -n "$OBJDUMP"; then
12627 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12633 test -z "$as_dir" && as_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
12635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12637 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12646 OBJDUMP=$ac_cv_prog_OBJDUMP
12647 if test -n "$OBJDUMP"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12649 $as_echo "$OBJDUMP" >&6; }
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12652 $as_echo "no
" >&6; }
12657 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12659 set dummy ${ncn_progname}; ac_word=$2
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12661 $as_echo_n "checking
for $ac_word...
" >&6; }
12662 if ${ac_cv_prog_OBJDUMP+:} false; then :
12663 $as_echo_n "(cached
) " >&6
12665 if test -n "$OBJDUMP"; then
12666 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669 for as_dir in $PATH
12672 test -z "$as_dir" && as_dir=.
12673 for ac_exec_ext in '' $ac_executable_extensions; do
12674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12675 ac_cv_prog_OBJDUMP="${ncn_progname}"
12676 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12685 OBJDUMP=$ac_cv_prog_OBJDUMP
12686 if test -n "$OBJDUMP"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12688 $as_echo "$OBJDUMP" >&6; }
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12691 $as_echo "no
" >&6; }
12696 test -n "$ac_cv_prog_OBJDUMP" && break
12699 if test -z "$ac_cv_prog_OBJDUMP" ; then
12701 if test $build = $host ; then
12704 OBJDUMP="${ncn_tool_prefix}$2"
12710 if test -n "$OTOOL"; then
12711 ac_cv_prog_OTOOL=$OTOOL
12712 elif test -n "$ac_cv_prog_OTOOL"; then
12713 OTOOL=$ac_cv_prog_OTOOL
12716 if test -n "$ac_cv_prog_OTOOL"; then
12717 for ncn_progname in otool; do
12718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12719 set dummy ${ncn_progname}; ac_word=$2
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12721 $as_echo_n "checking
for $ac_word...
" >&6; }
12722 if ${ac_cv_prog_OTOOL+:} false; then :
12723 $as_echo_n "(cached
) " >&6
12725 if test -n "$OTOOL"; then
12726 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729 for as_dir in $PATH
12732 test -z "$as_dir" && as_dir=.
12733 for ac_exec_ext in '' $ac_executable_extensions; do
12734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12735 ac_cv_prog_OTOOL="${ncn_progname}"
12736 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12745 OTOOL=$ac_cv_prog_OTOOL
12746 if test -n "$OTOOL"; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12748 $as_echo "$OTOOL" >&6; }
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12751 $as_echo "no
" >&6; }
12758 for ncn_progname in otool; do
12759 if test -n "$ncn_tool_prefix"; then
12760 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12761 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12763 $as_echo_n "checking
for $ac_word...
" >&6; }
12764 if ${ac_cv_prog_OTOOL+:} false; then :
12765 $as_echo_n "(cached
) " >&6
12767 if test -n "$OTOOL"; then
12768 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771 for as_dir in $PATH
12774 test -z "$as_dir" && as_dir=.
12775 for ac_exec_ext in '' $ac_executable_extensions; do
12776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12777 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12778 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12787 OTOOL=$ac_cv_prog_OTOOL
12788 if test -n "$OTOOL"; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12790 $as_echo "$OTOOL" >&6; }
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12793 $as_echo "no
" >&6; }
12798 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12800 set dummy ${ncn_progname}; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12802 $as_echo_n "checking
for $ac_word...
" >&6; }
12803 if ${ac_cv_prog_OTOOL+:} false; then :
12804 $as_echo_n "(cached
) " >&6
12806 if test -n "$OTOOL"; then
12807 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12816 ac_cv_prog_OTOOL="${ncn_progname}"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12826 OTOOL=$ac_cv_prog_OTOOL
12827 if test -n "$OTOOL"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12829 $as_echo "$OTOOL" >&6; }
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12832 $as_echo "no
" >&6; }
12837 test -n "$ac_cv_prog_OTOOL" && break
12840 if test -z "$ac_cv_prog_OTOOL" ; then
12842 if test $build = $host ; then
12845 OTOOL="${ncn_tool_prefix}$2"
12851 if test -n "$READELF"; then
12852 ac_cv_prog_READELF=$READELF
12853 elif test -n "$ac_cv_prog_READELF"; then
12854 READELF=$ac_cv_prog_READELF
12857 if test -n "$ac_cv_prog_READELF"; then
12858 for ncn_progname in readelf; do
12859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12860 set dummy ${ncn_progname}; ac_word=$2
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12862 $as_echo_n "checking
for $ac_word...
" >&6; }
12863 if ${ac_cv_prog_READELF+:} false; then :
12864 $as_echo_n "(cached
) " >&6
12866 if test -n "$READELF"; then
12867 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12873 test -z "$as_dir" && as_dir=.
12874 for ac_exec_ext in '' $ac_executable_extensions; do
12875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12876 ac_cv_prog_READELF="${ncn_progname}"
12877 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12886 READELF=$ac_cv_prog_READELF
12887 if test -n "$READELF"; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12889 $as_echo "$READELF" >&6; }
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12892 $as_echo "no
" >&6; }
12899 for ncn_progname in readelf; do
12900 if test -n "$ncn_tool_prefix"; then
12901 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12902 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12904 $as_echo_n "checking
for $ac_word...
" >&6; }
12905 if ${ac_cv_prog_READELF+:} false; then :
12906 $as_echo_n "(cached
) " >&6
12908 if test -n "$READELF"; then
12909 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912 for as_dir in $PATH
12915 test -z "$as_dir" && as_dir=.
12916 for ac_exec_ext in '' $ac_executable_extensions; do
12917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12918 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12919 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12928 READELF=$ac_cv_prog_READELF
12929 if test -n "$READELF"; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12931 $as_echo "$READELF" >&6; }
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12934 $as_echo "no
" >&6; }
12939 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12941 set dummy ${ncn_progname}; ac_word=$2
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12943 $as_echo_n "checking
for $ac_word...
" >&6; }
12944 if ${ac_cv_prog_READELF+:} false; then :
12945 $as_echo_n "(cached
) " >&6
12947 if test -n "$READELF"; then
12948 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12954 test -z "$as_dir" && as_dir=.
12955 for ac_exec_ext in '' $ac_executable_extensions; do
12956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12957 ac_cv_prog_READELF="${ncn_progname}"
12958 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12967 READELF=$ac_cv_prog_READELF
12968 if test -n "$READELF"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12970 $as_echo "$READELF" >&6; }
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12973 $as_echo "no
" >&6; }
12978 test -n "$ac_cv_prog_READELF" && break
12981 if test -z "$ac_cv_prog_READELF" ; then
12983 if test $build = $host ; then
12986 READELF="${ncn_tool_prefix}$2"
12996 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
12999 $as_echo_n "checking
for -plugin option...
" >&6; }
13001 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
13003 for plugin in $plugin_names; do
13004 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13005 if test x$plugin_so = x$plugin; then
13006 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13008 if test x$plugin_so != x$plugin; then
13009 plugin_option="--plugin $plugin_so"
13013 if test -n "$ac_tool_prefix"; then
13014 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13015 set dummy ${ac_tool_prefix}ar; ac_word=$2
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13017 $as_echo_n "checking
for $ac_word...
" >&6; }
13018 if ${ac_cv_prog_AR+:} false; then :
13019 $as_echo_n "(cached
) " >&6
13021 if test -n "$AR"; then
13022 ac_cv_prog_AR="$AR" # Let the user override the test.
13024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025 for as_dir in $PATH
13028 test -z "$as_dir" && as_dir=.
13029 for ac_exec_ext in '' $ac_executable_extensions; do
13030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13031 ac_cv_prog_AR="${ac_tool_prefix}ar"
13032 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13042 if test -n "$AR"; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13044 $as_echo "$AR" >&6; }
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13047 $as_echo "no
" >&6; }
13052 if test -z "$ac_cv_prog_AR"; then
13054 # Extract the first word of "ar", so it can be a program name with args.
13055 set dummy ar; ac_word=$2
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13057 $as_echo_n "checking
for $ac_word...
" >&6; }
13058 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13059 $as_echo_n "(cached
) " >&6
13061 if test -n "$ac_ct_AR"; then
13062 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13065 for as_dir in $PATH
13068 test -z "$as_dir" && as_dir=.
13069 for ac_exec_ext in '' $ac_executable_extensions; do
13070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13071 ac_cv_prog_ac_ct_AR="ar"
13072 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13081 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13082 if test -n "$ac_ct_AR"; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13084 $as_echo "$ac_ct_AR" >&6; }
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13087 $as_echo "no
" >&6; }
13090 if test "x
$ac_ct_AR" = x; then
13093 case $cross_compiling:$ac_tool_warned in
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13096 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13097 ac_tool_warned=yes ;;
13102 AR="$ac_cv_prog_AR"
13105 if test "${AR}" = "" ; then
13106 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
13109 ${AR} $plugin_option rc conftest.a conftest.c
13110 if test "$?
" != 0; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
13112 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
13116 if test -n "$plugin_option"; then
13117 PLUGIN_OPTION="$plugin_option"
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
13119 $as_echo "$plugin_option" >&6; }
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13122 $as_echo "no
" >&6; }
13126 RANLIB_PLUGIN_OPTION=
13127 if test -n "$PLUGIN_OPTION"; then
13128 if $AR --help 2>&1 | grep -q "\
--plugin"; then
13129 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13131 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
13132 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13140 # Check whether --with-build-time-tools was given.
13141 if test "${with_build_time_tools+set}" = set; then :
13142 withval=$with_build_time_tools; case x"$withval" in
13145 with_build_time_tools=
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
13147 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
13151 with_build_time_tools=
13157 if test -n "$CC_FOR_TARGET"; then
13158 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13159 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13160 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13163 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13164 for ncn_progname in cc gcc; do
13165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13166 set dummy ${ncn_progname}; ac_word=$2
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13168 $as_echo_n "checking
for $ac_word...
" >&6; }
13169 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13170 $as_echo_n "(cached
) " >&6
13172 if test -n "$CC_FOR_TARGET"; then
13173 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176 for as_dir in $PATH
13179 test -z "$as_dir" && as_dir=.
13180 for ac_exec_ext in '' $ac_executable_extensions; do
13181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13182 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13183 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13192 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13193 if test -n "$CC_FOR_TARGET"; then
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13195 $as_echo "$CC_FOR_TARGET" >&6; }
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13198 $as_echo "no
" >&6; }
13205 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13206 for ncn_progname in cc gcc; do
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13208 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13209 if test -x $with_build_time_tools/${ncn_progname}; then
13210 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13212 $as_echo "yes" >&6; }
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13216 $as_echo "no
" >&6; }
13221 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13222 for ncn_progname in cc gcc; do
13223 if test -n "$ncn_target_tool_prefix"; then
13224 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13225 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13227 $as_echo_n "checking
for $ac_word...
" >&6; }
13228 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13229 $as_echo_n "(cached
) " >&6
13231 if test -n "$CC_FOR_TARGET"; then
13232 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13241 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13242 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13251 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13252 if test -n "$CC_FOR_TARGET"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13254 $as_echo "$CC_FOR_TARGET" >&6; }
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13257 $as_echo "no
" >&6; }
13262 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13264 set dummy ${ncn_progname}; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13266 $as_echo_n "checking
for $ac_word...
" >&6; }
13267 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13268 $as_echo_n "(cached
) " >&6
13270 if test -n "$CC_FOR_TARGET"; then
13271 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13280 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13290 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13291 if test -n "$CC_FOR_TARGET"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13293 $as_echo "$CC_FOR_TARGET" >&6; }
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13296 $as_echo "no
" >&6; }
13301 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13305 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13307 if test $build = $target ; then
13310 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13313 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13318 if test -n "$CXX_FOR_TARGET"; then
13319 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13320 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13321 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13324 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13325 for ncn_progname in c++ g++ cxx gxx; do
13326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13327 set dummy ${ncn_progname}; ac_word=$2
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13329 $as_echo_n "checking
for $ac_word...
" >&6; }
13330 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13331 $as_echo_n "(cached
) " >&6
13333 if test -n "$CXX_FOR_TARGET"; then
13334 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13343 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13344 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13353 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13354 if test -n "$CXX_FOR_TARGET"; then
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13356 $as_echo "$CXX_FOR_TARGET" >&6; }
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13359 $as_echo "no
" >&6; }
13366 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13367 for ncn_progname in c++ g++ cxx gxx; do
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13369 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13370 if test -x $with_build_time_tools/${ncn_progname}; then
13371 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13373 $as_echo "yes" >&6; }
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13377 $as_echo "no
" >&6; }
13382 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13383 for ncn_progname in c++ g++ cxx gxx; do
13384 if test -n "$ncn_target_tool_prefix"; then
13385 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13386 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13388 $as_echo_n "checking
for $ac_word...
" >&6; }
13389 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13390 $as_echo_n "(cached
) " >&6
13392 if test -n "$CXX_FOR_TARGET"; then
13393 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396 for as_dir in $PATH
13399 test -z "$as_dir" && as_dir=.
13400 for ac_exec_ext in '' $ac_executable_extensions; do
13401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13402 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13403 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13412 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13413 if test -n "$CXX_FOR_TARGET"; then
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13415 $as_echo "$CXX_FOR_TARGET" >&6; }
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13418 $as_echo "no
" >&6; }
13423 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13425 set dummy ${ncn_progname}; ac_word=$2
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13427 $as_echo_n "checking
for $ac_word...
" >&6; }
13428 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13429 $as_echo_n "(cached
) " >&6
13431 if test -n "$CXX_FOR_TARGET"; then
13432 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435 for as_dir in $PATH
13438 test -z "$as_dir" && as_dir=.
13439 for ac_exec_ext in '' $ac_executable_extensions; do
13440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13441 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13442 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13451 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13452 if test -n "$CXX_FOR_TARGET"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13454 $as_echo "$CXX_FOR_TARGET" >&6; }
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13457 $as_echo "no
" >&6; }
13462 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13466 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13467 set dummy c++ g++ cxx gxx
13468 if test $build = $target ; then
13469 CXX_FOR_TARGET="$2"
13471 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13474 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13479 if test -n "$GCC_FOR_TARGET"; then
13480 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13481 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13482 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13485 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13486 for ncn_progname in gcc; do
13487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13488 set dummy ${ncn_progname}; ac_word=$2
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13490 $as_echo_n "checking
for $ac_word...
" >&6; }
13491 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13492 $as_echo_n "(cached
) " >&6
13494 if test -n "$GCC_FOR_TARGET"; then
13495 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13498 for as_dir in $PATH
13501 test -z "$as_dir" && as_dir=.
13502 for ac_exec_ext in '' $ac_executable_extensions; do
13503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13504 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13505 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13514 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13515 if test -n "$GCC_FOR_TARGET"; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13517 $as_echo "$GCC_FOR_TARGET" >&6; }
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13520 $as_echo "no
" >&6; }
13527 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13528 for ncn_progname in gcc; do
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13530 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13531 if test -x $with_build_time_tools/${ncn_progname}; then
13532 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13534 $as_echo "yes" >&6; }
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13538 $as_echo "no
" >&6; }
13543 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13544 for ncn_progname in gcc; do
13545 if test -n "$ncn_target_tool_prefix"; then
13546 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13547 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13549 $as_echo_n "checking
for $ac_word...
" >&6; }
13550 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13551 $as_echo_n "(cached
) " >&6
13553 if test -n "$GCC_FOR_TARGET"; then
13554 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557 for as_dir in $PATH
13560 test -z "$as_dir" && as_dir=.
13561 for ac_exec_ext in '' $ac_executable_extensions; do
13562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13563 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13564 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13573 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13574 if test -n "$GCC_FOR_TARGET"; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13576 $as_echo "$GCC_FOR_TARGET" >&6; }
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13579 $as_echo "no
" >&6; }
13584 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13586 set dummy ${ncn_progname}; ac_word=$2
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13588 $as_echo_n "checking
for $ac_word...
" >&6; }
13589 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13590 $as_echo_n "(cached
) " >&6
13592 if test -n "$GCC_FOR_TARGET"; then
13593 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13612 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13613 if test -n "$GCC_FOR_TARGET"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13615 $as_echo "$GCC_FOR_TARGET" >&6; }
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13618 $as_echo "no
" >&6; }
13623 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13627 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13628 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13630 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13635 if test -n "$GFORTRAN_FOR_TARGET"; then
13636 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13637 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13638 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13641 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13642 for ncn_progname in gfortran; do
13643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13644 set dummy ${ncn_progname}; ac_word=$2
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13646 $as_echo_n "checking
for $ac_word...
" >&6; }
13647 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13648 $as_echo_n "(cached
) " >&6
13650 if test -n "$GFORTRAN_FOR_TARGET"; then
13651 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654 for as_dir in $PATH
13657 test -z "$as_dir" && as_dir=.
13658 for ac_exec_ext in '' $ac_executable_extensions; do
13659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13660 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13661 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13670 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13671 if test -n "$GFORTRAN_FOR_TARGET"; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13673 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13676 $as_echo "no
" >&6; }
13683 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13684 for ncn_progname in gfortran; do
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13686 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13687 if test -x $with_build_time_tools/${ncn_progname}; then
13688 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13690 $as_echo "yes" >&6; }
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13694 $as_echo "no
" >&6; }
13699 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13700 for ncn_progname in gfortran; do
13701 if test -n "$ncn_target_tool_prefix"; then
13702 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13703 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13705 $as_echo_n "checking
for $ac_word...
" >&6; }
13706 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13707 $as_echo_n "(cached
) " >&6
13709 if test -n "$GFORTRAN_FOR_TARGET"; then
13710 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13713 for as_dir in $PATH
13716 test -z "$as_dir" && as_dir=.
13717 for ac_exec_ext in '' $ac_executable_extensions; do
13718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13719 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13720 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13729 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13730 if test -n "$GFORTRAN_FOR_TARGET"; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13732 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13735 $as_echo "no
" >&6; }
13740 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13742 set dummy ${ncn_progname}; ac_word=$2
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13744 $as_echo_n "checking
for $ac_word...
" >&6; }
13745 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13746 $as_echo_n "(cached
) " >&6
13748 if test -n "$GFORTRAN_FOR_TARGET"; then
13749 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $PATH
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13758 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13768 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13769 if test -n "$GFORTRAN_FOR_TARGET"; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13771 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13774 $as_echo "no
" >&6; }
13779 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13783 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13785 if test $build = $target ; then
13786 GFORTRAN_FOR_TARGET="$2"
13788 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13791 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13796 if test -n "$GOC_FOR_TARGET"; then
13797 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13798 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13799 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13802 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13803 for ncn_progname in gccgo; do
13804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13805 set dummy ${ncn_progname}; ac_word=$2
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13807 $as_echo_n "checking
for $ac_word...
" >&6; }
13808 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13809 $as_echo_n "(cached
) " >&6
13811 if test -n "$GOC_FOR_TARGET"; then
13812 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13815 for as_dir in $PATH
13818 test -z "$as_dir" && as_dir=.
13819 for ac_exec_ext in '' $ac_executable_extensions; do
13820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13821 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13822 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13831 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13832 if test -n "$GOC_FOR_TARGET"; then
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13834 $as_echo "$GOC_FOR_TARGET" >&6; }
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13837 $as_echo "no
" >&6; }
13844 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13845 for ncn_progname in gccgo; do
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13847 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13848 if test -x $with_build_time_tools/${ncn_progname}; then
13849 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13851 $as_echo "yes" >&6; }
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13855 $as_echo "no
" >&6; }
13860 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13861 for ncn_progname in gccgo; do
13862 if test -n "$ncn_target_tool_prefix"; then
13863 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13864 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13866 $as_echo_n "checking
for $ac_word...
" >&6; }
13867 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13868 $as_echo_n "(cached
) " >&6
13870 if test -n "$GOC_FOR_TARGET"; then
13871 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13874 for as_dir in $PATH
13877 test -z "$as_dir" && as_dir=.
13878 for ac_exec_ext in '' $ac_executable_extensions; do
13879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13880 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13890 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13891 if test -n "$GOC_FOR_TARGET"; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13893 $as_echo "$GOC_FOR_TARGET" >&6; }
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13896 $as_echo "no
" >&6; }
13901 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13903 set dummy ${ncn_progname}; ac_word=$2
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13905 $as_echo_n "checking
for $ac_word...
" >&6; }
13906 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13907 $as_echo_n "(cached
) " >&6
13909 if test -n "$GOC_FOR_TARGET"; then
13910 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13913 for as_dir in $PATH
13916 test -z "$as_dir" && as_dir=.
13917 for ac_exec_ext in '' $ac_executable_extensions; do
13918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13919 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13920 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13929 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13930 if test -n "$GOC_FOR_TARGET"; then
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13932 $as_echo "$GOC_FOR_TARGET" >&6; }
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13935 $as_echo "no
" >&6; }
13940 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13944 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13946 if test $build = $target ; then
13947 GOC_FOR_TARGET="$2"
13949 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13952 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13957 if test -n "$GDC_FOR_TARGET"; then
13958 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13959 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13960 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13963 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13964 for ncn_progname in gdc; do
13965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13966 set dummy ${ncn_progname}; ac_word=$2
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13968 $as_echo_n "checking
for $ac_word...
" >&6; }
13969 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13970 $as_echo_n "(cached
) " >&6
13972 if test -n "$GDC_FOR_TARGET"; then
13973 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
13981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13982 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13983 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13992 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13993 if test -n "$GDC_FOR_TARGET"; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13995 $as_echo "$GDC_FOR_TARGET" >&6; }
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13998 $as_echo "no
" >&6; }
14005 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14006 for ncn_progname in gdc; do
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14008 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14009 if test -x $with_build_time_tools/${ncn_progname}; then
14010 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14012 $as_echo "yes" >&6; }
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14016 $as_echo "no
" >&6; }
14021 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14022 for ncn_progname in gdc; do
14023 if test -n "$ncn_target_tool_prefix"; then
14024 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14025 set dummy ${ncn_target_tool_prefix}${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_GDC_FOR_TARGET+:} false; then :
14029 $as_echo_n "(cached
) " >&6
14031 if test -n "$GDC_FOR_TARGET"; then
14032 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # 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_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14042 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14051 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14052 if test -n "$GDC_FOR_TARGET"; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14054 $as_echo "$GDC_FOR_TARGET" >&6; }
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14057 $as_echo "no
" >&6; }
14062 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14064 set dummy ${ncn_progname}; ac_word=$2
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14066 $as_echo_n "checking
for $ac_word...
" >&6; }
14067 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14068 $as_echo_n "(cached
) " >&6
14070 if test -n "$GDC_FOR_TARGET"; then
14071 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14074 for as_dir in $PATH
14077 test -z "$as_dir" && as_dir=.
14078 for ac_exec_ext in '' $ac_executable_extensions; do
14079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14080 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14081 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14090 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14091 if test -n "$GDC_FOR_TARGET"; then
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14093 $as_echo "$GDC_FOR_TARGET" >&6; }
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14096 $as_echo "no
" >&6; }
14101 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14105 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14107 if test $build = $target ; then
14108 GDC_FOR_TARGET="$2"
14110 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14113 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14118 if test -n "$GM2_FOR_TARGET"; then
14119 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14120 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14121 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14124 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14125 for ncn_progname in gm2; do
14126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14127 set dummy ${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_GM2_FOR_TARGET+:} false; then :
14131 $as_echo_n "(cached
) " >&6
14133 if test -n "$GM2_FOR_TARGET"; then
14134 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # 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_GM2_FOR_TARGET="${ncn_progname}"
14144 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14153 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14154 if test -n "$GM2_FOR_TARGET"; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14156 $as_echo "$GM2_FOR_TARGET" >&6; }
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14159 $as_echo "no
" >&6; }
14166 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14167 for ncn_progname in gm2; do
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14169 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14170 if test -x $with_build_time_tools/${ncn_progname}; then
14171 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14173 $as_echo "yes" >&6; }
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14177 $as_echo "no
" >&6; }
14182 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14183 for ncn_progname in gm2; do
14184 if test -n "$ncn_target_tool_prefix"; then
14185 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14186 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14188 $as_echo_n "checking
for $ac_word...
" >&6; }
14189 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14190 $as_echo_n "(cached
) " >&6
14192 if test -n "$GM2_FOR_TARGET"; then
14193 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14196 for as_dir in $PATH
14199 test -z "$as_dir" && as_dir=.
14200 for ac_exec_ext in '' $ac_executable_extensions; do
14201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14202 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14203 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14212 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14213 if test -n "$GM2_FOR_TARGET"; then
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14215 $as_echo "$GM2_FOR_TARGET" >&6; }
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14218 $as_echo "no
" >&6; }
14223 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14225 set dummy ${ncn_progname}; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14227 $as_echo_n "checking
for $ac_word...
" >&6; }
14228 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14229 $as_echo_n "(cached
) " >&6
14231 if test -n "$GM2_FOR_TARGET"; then
14232 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
14240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14241 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14251 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14252 if test -n "$GM2_FOR_TARGET"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14254 $as_echo "$GM2_FOR_TARGET" >&6; }
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14257 $as_echo "no
" >&6; }
14262 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14266 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14268 if test $build = $target ; then
14269 GM2_FOR_TARGET="$2"
14271 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14274 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14279 cat > conftest.c << \EOF
14284 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14285 have_gcc_for_target=yes
14287 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14288 have_gcc_for_target=no
14295 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14296 if test -n "$with_build_time_tools"; then
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14298 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14299 if test -x $with_build_time_tools/ar; then
14300 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14301 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14303 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14306 $as_echo "no
" >&6; }
14308 elif test $build != $host && test $have_gcc_for_target = yes; then
14309 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14310 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14311 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14314 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14315 # Extract the first word of "ar", so it can be a program name with args.
14316 set dummy ar; ac_word=$2
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14318 $as_echo_n "checking
for $ac_word...
" >&6; }
14319 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14320 $as_echo_n "(cached
) " >&6
14322 case $AR_FOR_TARGET in
14324 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14328 for as_dir in $gcc_cv_tool_dirs
14331 test -z "$as_dir" && as_dir=.
14332 for ac_exec_ext in '' $ac_executable_extensions; do
14333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14334 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14335 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14345 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14346 if test -n "$AR_FOR_TARGET"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14348 $as_echo "$AR_FOR_TARGET" >&6; }
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14351 $as_echo "no
" >&6; }
14356 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14359 if test -n "$AR_FOR_TARGET"; then
14360 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14361 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14362 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14365 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14366 for ncn_progname in ar; do
14367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14368 set dummy ${ncn_progname}; ac_word=$2
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14370 $as_echo_n "checking
for $ac_word...
" >&6; }
14371 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14372 $as_echo_n "(cached
) " >&6
14374 if test -n "$AR_FOR_TARGET"; then
14375 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378 for as_dir in $PATH
14381 test -z "$as_dir" && as_dir=.
14382 for ac_exec_ext in '' $ac_executable_extensions; do
14383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14384 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14385 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14394 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14395 if test -n "$AR_FOR_TARGET"; then
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14397 $as_echo "$AR_FOR_TARGET" >&6; }
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14400 $as_echo "no
" >&6; }
14407 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14408 for ncn_progname in ar; do
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14410 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14411 if test -x $with_build_time_tools/${ncn_progname}; then
14412 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14414 $as_echo "yes" >&6; }
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14418 $as_echo "no
" >&6; }
14423 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14424 for ncn_progname in ar; do
14425 if test -n "$ncn_target_tool_prefix"; then
14426 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14427 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14429 $as_echo_n "checking
for $ac_word...
" >&6; }
14430 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14431 $as_echo_n "(cached
) " >&6
14433 if test -n "$AR_FOR_TARGET"; then
14434 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14437 for as_dir in $PATH
14440 test -z "$as_dir" && as_dir=.
14441 for ac_exec_ext in '' $ac_executable_extensions; do
14442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14443 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14444 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14453 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14454 if test -n "$AR_FOR_TARGET"; then
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14456 $as_echo "$AR_FOR_TARGET" >&6; }
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14459 $as_echo "no
" >&6; }
14464 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14466 set dummy ${ncn_progname}; ac_word=$2
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14468 $as_echo_n "checking
for $ac_word...
" >&6; }
14469 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14470 $as_echo_n "(cached
) " >&6
14472 if test -n "$AR_FOR_TARGET"; then
14473 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14476 for as_dir in $PATH
14479 test -z "$as_dir" && as_dir=.
14480 for ac_exec_ext in '' $ac_executable_extensions; do
14481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14482 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14483 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14492 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14493 if test -n "$AR_FOR_TARGET"; then
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14495 $as_echo "$AR_FOR_TARGET" >&6; }
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14498 $as_echo "no
" >&6; }
14503 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14507 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14509 if test $build = $target ; then
14512 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14515 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14519 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14525 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14526 if test -n "$with_build_time_tools"; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14528 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14529 if test -x $with_build_time_tools/as; then
14530 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14531 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14533 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14536 $as_echo "no
" >&6; }
14538 elif test $build != $host && test $have_gcc_for_target = yes; then
14539 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14540 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14541 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14544 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14545 # Extract the first word of "as
", so it can be a program name with args.
14546 set dummy as; ac_word=$2
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14548 $as_echo_n "checking
for $ac_word...
" >&6; }
14549 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14550 $as_echo_n "(cached
) " >&6
14552 case $AS_FOR_TARGET in
14554 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558 for as_dir in $gcc_cv_tool_dirs
14561 test -z "$as_dir" && as_dir=.
14562 for ac_exec_ext in '' $ac_executable_extensions; do
14563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14564 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14565 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14575 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14576 if test -n "$AS_FOR_TARGET"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14578 $as_echo "$AS_FOR_TARGET" >&6; }
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14581 $as_echo "no
" >&6; }
14586 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14589 if test -n "$AS_FOR_TARGET"; then
14590 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14591 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14592 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14595 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14596 for ncn_progname in as; do
14597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14598 set dummy ${ncn_progname}; ac_word=$2
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14600 $as_echo_n "checking
for $ac_word...
" >&6; }
14601 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14602 $as_echo_n "(cached
) " >&6
14604 if test -n "$AS_FOR_TARGET"; then
14605 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608 for as_dir in $PATH
14611 test -z "$as_dir" && as_dir=.
14612 for ac_exec_ext in '' $ac_executable_extensions; do
14613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14614 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14615 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14624 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14625 if test -n "$AS_FOR_TARGET"; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14627 $as_echo "$AS_FOR_TARGET" >&6; }
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14630 $as_echo "no
" >&6; }
14637 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14638 for ncn_progname in as; do
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14640 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14641 if test -x $with_build_time_tools/${ncn_progname}; then
14642 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14644 $as_echo "yes" >&6; }
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14648 $as_echo "no
" >&6; }
14653 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14654 for ncn_progname in as; do
14655 if test -n "$ncn_target_tool_prefix"; then
14656 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14657 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14659 $as_echo_n "checking
for $ac_word...
" >&6; }
14660 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14661 $as_echo_n "(cached
) " >&6
14663 if test -n "$AS_FOR_TARGET"; then
14664 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14667 for as_dir in $PATH
14670 test -z "$as_dir" && as_dir=.
14671 for ac_exec_ext in '' $ac_executable_extensions; do
14672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14673 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14674 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14683 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14684 if test -n "$AS_FOR_TARGET"; then
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14686 $as_echo "$AS_FOR_TARGET" >&6; }
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14689 $as_echo "no
" >&6; }
14694 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14696 set dummy ${ncn_progname}; ac_word=$2
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14698 $as_echo_n "checking
for $ac_word...
" >&6; }
14699 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14700 $as_echo_n "(cached
) " >&6
14702 if test -n "$AS_FOR_TARGET"; then
14703 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14706 for as_dir in $PATH
14709 test -z "$as_dir" && as_dir=.
14710 for ac_exec_ext in '' $ac_executable_extensions; do
14711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14712 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14713 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14722 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14723 if test -n "$AS_FOR_TARGET"; then
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14725 $as_echo "$AS_FOR_TARGET" >&6; }
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14728 $as_echo "no
" >&6; }
14733 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14737 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14739 if test $build = $target ; then
14742 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14745 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14749 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14755 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14756 if test -n "$with_build_time_tools"; then
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14758 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14759 if test -x $with_build_time_tools/dlltool; then
14760 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14761 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14763 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14766 $as_echo "no
" >&6; }
14768 elif test $build != $host && test $have_gcc_for_target = yes; then
14769 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14770 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14771 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14774 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14775 # Extract the first word of "dlltool
", so it can be a program name with args.
14776 set dummy dlltool; ac_word=$2
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14778 $as_echo_n "checking
for $ac_word...
" >&6; }
14779 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14780 $as_echo_n "(cached
) " >&6
14782 case $DLLTOOL_FOR_TARGET in
14784 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14788 for as_dir in $gcc_cv_tool_dirs
14791 test -z "$as_dir" && as_dir=.
14792 for ac_exec_ext in '' $ac_executable_extensions; do
14793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14794 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14795 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14805 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14806 if test -n "$DLLTOOL_FOR_TARGET"; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14808 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14811 $as_echo "no
" >&6; }
14816 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14819 if test -n "$DLLTOOL_FOR_TARGET"; then
14820 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14821 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14822 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14825 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14826 for ncn_progname in dlltool; do
14827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14828 set dummy ${ncn_progname}; ac_word=$2
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14830 $as_echo_n "checking
for $ac_word...
" >&6; }
14831 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14832 $as_echo_n "(cached
) " >&6
14834 if test -n "$DLLTOOL_FOR_TARGET"; then
14835 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14838 for as_dir in $PATH
14841 test -z "$as_dir" && as_dir=.
14842 for ac_exec_ext in '' $ac_executable_extensions; do
14843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14844 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14845 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14854 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14855 if test -n "$DLLTOOL_FOR_TARGET"; then
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14857 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14860 $as_echo "no
" >&6; }
14867 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14868 for ncn_progname in dlltool; do
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14870 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14871 if test -x $with_build_time_tools/${ncn_progname}; then
14872 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14874 $as_echo "yes" >&6; }
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14878 $as_echo "no
" >&6; }
14883 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14884 for ncn_progname in dlltool; do
14885 if test -n "$ncn_target_tool_prefix"; then
14886 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14887 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14889 $as_echo_n "checking
for $ac_word...
" >&6; }
14890 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14891 $as_echo_n "(cached
) " >&6
14893 if test -n "$DLLTOOL_FOR_TARGET"; then
14894 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14897 for as_dir in $PATH
14900 test -z "$as_dir" && as_dir=.
14901 for ac_exec_ext in '' $ac_executable_extensions; do
14902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14903 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14904 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14913 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14914 if test -n "$DLLTOOL_FOR_TARGET"; then
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14916 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14919 $as_echo "no
" >&6; }
14924 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14926 set dummy ${ncn_progname}; ac_word=$2
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14928 $as_echo_n "checking
for $ac_word...
" >&6; }
14929 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14930 $as_echo_n "(cached
) " >&6
14932 if test -n "$DLLTOOL_FOR_TARGET"; then
14933 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14936 for as_dir in $PATH
14939 test -z "$as_dir" && as_dir=.
14940 for ac_exec_ext in '' $ac_executable_extensions; do
14941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14942 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14943 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14952 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14953 if test -n "$DLLTOOL_FOR_TARGET"; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14955 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14958 $as_echo "no
" >&6; }
14963 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14967 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14969 if test $build = $target ; then
14970 DLLTOOL_FOR_TARGET="$2"
14972 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14975 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14979 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14985 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14986 if test -n "$with_build_time_tools"; then
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14988 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14989 if test -x $with_build_time_tools/dsymutil; then
14990 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14991 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14993 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14996 $as_echo "no
" >&6; }
14998 elif test $build != $host && test $have_gcc_for_target = yes; then
14999 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15000 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15001 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15004 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15005 # Extract the first word of "dsymutil
", so it can be a program name with args.
15006 set dummy dsymutil; ac_word=$2
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15008 $as_echo_n "checking
for $ac_word...
" >&6; }
15009 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15010 $as_echo_n "(cached
) " >&6
15012 case $DSYMUTIL_FOR_TARGET in
15014 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15018 for as_dir in $gcc_cv_tool_dirs
15021 test -z "$as_dir" && as_dir=.
15022 for ac_exec_ext in '' $ac_executable_extensions; do
15023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15024 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15025 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15035 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15036 if test -n "$DSYMUTIL_FOR_TARGET"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15038 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15041 $as_echo "no
" >&6; }
15046 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15049 if test -n "$DSYMUTIL_FOR_TARGET"; then
15050 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15051 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15052 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15055 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15056 for ncn_progname in dsymutil; do
15057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15058 set dummy ${ncn_progname}; ac_word=$2
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15060 $as_echo_n "checking
for $ac_word...
" >&6; }
15061 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15062 $as_echo_n "(cached
) " >&6
15064 if test -n "$DSYMUTIL_FOR_TARGET"; then
15065 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15068 for as_dir in $PATH
15071 test -z "$as_dir" && as_dir=.
15072 for ac_exec_ext in '' $ac_executable_extensions; do
15073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15074 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15075 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15084 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15085 if test -n "$DSYMUTIL_FOR_TARGET"; then
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15087 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15090 $as_echo "no
" >&6; }
15097 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15098 for ncn_progname in dsymutil; do
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15100 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15101 if test -x $with_build_time_tools/${ncn_progname}; then
15102 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15104 $as_echo "yes" >&6; }
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15108 $as_echo "no
" >&6; }
15113 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15114 for ncn_progname in dsymutil; do
15115 if test -n "$ncn_target_tool_prefix"; then
15116 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15117 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15119 $as_echo_n "checking
for $ac_word...
" >&6; }
15120 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15121 $as_echo_n "(cached
) " >&6
15123 if test -n "$DSYMUTIL_FOR_TARGET"; then
15124 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15127 for as_dir in $PATH
15130 test -z "$as_dir" && as_dir=.
15131 for ac_exec_ext in '' $ac_executable_extensions; do
15132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15133 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15134 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15143 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15144 if test -n "$DSYMUTIL_FOR_TARGET"; then
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15146 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15149 $as_echo "no
" >&6; }
15154 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15156 set dummy ${ncn_progname}; ac_word=$2
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15158 $as_echo_n "checking
for $ac_word...
" >&6; }
15159 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15160 $as_echo_n "(cached
) " >&6
15162 if test -n "$DSYMUTIL_FOR_TARGET"; then
15163 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15166 for as_dir in $PATH
15169 test -z "$as_dir" && as_dir=.
15170 for ac_exec_ext in '' $ac_executable_extensions; do
15171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15172 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15173 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15182 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15183 if test -n "$DSYMUTIL_FOR_TARGET"; then
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15185 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15188 $as_echo "no
" >&6; }
15193 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15197 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15199 if test $build = $target ; then
15200 DSYMUTIL_FOR_TARGET="$2"
15202 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15205 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15209 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15215 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15216 if test -n "$with_build_time_tools"; then
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
15218 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
15219 if test -x $with_build_time_tools/ld; then
15220 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15221 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
15223 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15226 $as_echo "no
" >&6; }
15228 elif test $build != $host && test $have_gcc_for_target = yes; then
15229 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15230 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15231 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15234 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15235 # Extract the first word of "ld
", so it can be a program name with args.
15236 set dummy ld; ac_word=$2
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15238 $as_echo_n "checking
for $ac_word...
" >&6; }
15239 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15240 $as_echo_n "(cached
) " >&6
15242 case $LD_FOR_TARGET in
15244 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15248 for as_dir in $gcc_cv_tool_dirs
15251 test -z "$as_dir" && as_dir=.
15252 for ac_exec_ext in '' $ac_executable_extensions; do
15253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15254 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15255 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15265 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15266 if test -n "$LD_FOR_TARGET"; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15268 $as_echo "$LD_FOR_TARGET" >&6; }
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15271 $as_echo "no
" >&6; }
15276 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15279 if test -n "$LD_FOR_TARGET"; then
15280 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15281 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15282 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15285 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15286 for ncn_progname in ld; do
15287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15288 set dummy ${ncn_progname}; ac_word=$2
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15290 $as_echo_n "checking
for $ac_word...
" >&6; }
15291 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15292 $as_echo_n "(cached
) " >&6
15294 if test -n "$LD_FOR_TARGET"; then
15295 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15298 for as_dir in $PATH
15301 test -z "$as_dir" && as_dir=.
15302 for ac_exec_ext in '' $ac_executable_extensions; do
15303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15304 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15305 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15314 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15315 if test -n "$LD_FOR_TARGET"; then
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15317 $as_echo "$LD_FOR_TARGET" >&6; }
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15320 $as_echo "no
" >&6; }
15327 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15328 for ncn_progname in ld; do
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15330 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15331 if test -x $with_build_time_tools/${ncn_progname}; then
15332 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15334 $as_echo "yes" >&6; }
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15338 $as_echo "no
" >&6; }
15343 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15344 for ncn_progname in ld; do
15345 if test -n "$ncn_target_tool_prefix"; then
15346 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15347 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15349 $as_echo_n "checking
for $ac_word...
" >&6; }
15350 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15351 $as_echo_n "(cached
) " >&6
15353 if test -n "$LD_FOR_TARGET"; then
15354 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15357 for as_dir in $PATH
15360 test -z "$as_dir" && as_dir=.
15361 for ac_exec_ext in '' $ac_executable_extensions; do
15362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15363 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15364 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15373 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15374 if test -n "$LD_FOR_TARGET"; then
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15376 $as_echo "$LD_FOR_TARGET" >&6; }
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15379 $as_echo "no
" >&6; }
15384 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15386 set dummy ${ncn_progname}; ac_word=$2
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15388 $as_echo_n "checking
for $ac_word...
" >&6; }
15389 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15390 $as_echo_n "(cached
) " >&6
15392 if test -n "$LD_FOR_TARGET"; then
15393 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15396 for as_dir in $PATH
15399 test -z "$as_dir" && as_dir=.
15400 for ac_exec_ext in '' $ac_executable_extensions; do
15401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15402 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15403 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15412 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15413 if test -n "$LD_FOR_TARGET"; then
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15415 $as_echo "$LD_FOR_TARGET" >&6; }
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15418 $as_echo "no
" >&6; }
15423 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15427 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15429 if test $build = $target ; then
15432 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15435 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15439 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15445 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15446 if test -n "$with_build_time_tools"; then
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15448 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15449 if test -x $with_build_time_tools/lipo; then
15450 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15451 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15453 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15456 $as_echo "no
" >&6; }
15458 elif test $build != $host && test $have_gcc_for_target = yes; then
15459 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15460 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15461 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15464 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15465 # Extract the first word of "lipo
", so it can be a program name with args.
15466 set dummy lipo; ac_word=$2
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15468 $as_echo_n "checking
for $ac_word...
" >&6; }
15469 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15470 $as_echo_n "(cached
) " >&6
15472 case $LIPO_FOR_TARGET in
15474 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15478 for as_dir in $gcc_cv_tool_dirs
15481 test -z "$as_dir" && as_dir=.
15482 for ac_exec_ext in '' $ac_executable_extensions; do
15483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15484 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15485 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15495 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15496 if test -n "$LIPO_FOR_TARGET"; then
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15498 $as_echo "$LIPO_FOR_TARGET" >&6; }
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15501 $as_echo "no
" >&6; }
15506 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15509 if test -n "$LIPO_FOR_TARGET"; then
15510 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15511 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15512 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15515 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15516 for ncn_progname in lipo; do
15517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15518 set dummy ${ncn_progname}; ac_word=$2
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15520 $as_echo_n "checking
for $ac_word...
" >&6; }
15521 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15522 $as_echo_n "(cached
) " >&6
15524 if test -n "$LIPO_FOR_TARGET"; then
15525 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15528 for as_dir in $PATH
15531 test -z "$as_dir" && as_dir=.
15532 for ac_exec_ext in '' $ac_executable_extensions; do
15533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15534 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15535 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15544 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15545 if test -n "$LIPO_FOR_TARGET"; then
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15547 $as_echo "$LIPO_FOR_TARGET" >&6; }
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15550 $as_echo "no
" >&6; }
15557 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15558 for ncn_progname in lipo; do
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15560 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15561 if test -x $with_build_time_tools/${ncn_progname}; then
15562 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15564 $as_echo "yes" >&6; }
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15568 $as_echo "no
" >&6; }
15573 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15574 for ncn_progname in lipo; do
15575 if test -n "$ncn_target_tool_prefix"; then
15576 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15577 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15579 $as_echo_n "checking
for $ac_word...
" >&6; }
15580 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15581 $as_echo_n "(cached
) " >&6
15583 if test -n "$LIPO_FOR_TARGET"; then
15584 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15587 for as_dir in $PATH
15590 test -z "$as_dir" && as_dir=.
15591 for ac_exec_ext in '' $ac_executable_extensions; do
15592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15593 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15594 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15603 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15604 if test -n "$LIPO_FOR_TARGET"; then
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15606 $as_echo "$LIPO_FOR_TARGET" >&6; }
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15609 $as_echo "no
" >&6; }
15614 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15616 set dummy ${ncn_progname}; ac_word=$2
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15618 $as_echo_n "checking
for $ac_word...
" >&6; }
15619 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15620 $as_echo_n "(cached
) " >&6
15622 if test -n "$LIPO_FOR_TARGET"; then
15623 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15626 for as_dir in $PATH
15629 test -z "$as_dir" && as_dir=.
15630 for ac_exec_ext in '' $ac_executable_extensions; do
15631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15632 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15633 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15642 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15643 if test -n "$LIPO_FOR_TARGET"; then
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15645 $as_echo "$LIPO_FOR_TARGET" >&6; }
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15648 $as_echo "no
" >&6; }
15653 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15657 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15659 if test $build = $target ; then
15660 LIPO_FOR_TARGET="$2"
15662 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15665 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15669 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15675 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15676 if test -n "$with_build_time_tools"; then
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15678 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15679 if test -x $with_build_time_tools/nm; then
15680 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15681 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15683 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15686 $as_echo "no
" >&6; }
15688 elif test $build != $host && test $have_gcc_for_target = yes; then
15689 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15690 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15691 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15694 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15695 # Extract the first word of "nm
", so it can be a program name with args.
15696 set dummy nm; ac_word=$2
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15698 $as_echo_n "checking
for $ac_word...
" >&6; }
15699 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15700 $as_echo_n "(cached
) " >&6
15702 case $NM_FOR_TARGET in
15704 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15708 for as_dir in $gcc_cv_tool_dirs
15711 test -z "$as_dir" && as_dir=.
15712 for ac_exec_ext in '' $ac_executable_extensions; do
15713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15714 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15715 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15725 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15726 if test -n "$NM_FOR_TARGET"; then
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15728 $as_echo "$NM_FOR_TARGET" >&6; }
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15731 $as_echo "no
" >&6; }
15736 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15739 if test -n "$NM_FOR_TARGET"; then
15740 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15741 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15742 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15745 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15746 for ncn_progname in nm; do
15747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15748 set dummy ${ncn_progname}; ac_word=$2
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15750 $as_echo_n "checking
for $ac_word...
" >&6; }
15751 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15752 $as_echo_n "(cached
) " >&6
15754 if test -n "$NM_FOR_TARGET"; then
15755 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15761 test -z "$as_dir" && as_dir=.
15762 for ac_exec_ext in '' $ac_executable_extensions; do
15763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15764 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15765 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15774 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15775 if test -n "$NM_FOR_TARGET"; then
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15777 $as_echo "$NM_FOR_TARGET" >&6; }
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15780 $as_echo "no
" >&6; }
15787 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15788 for ncn_progname in nm; do
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15790 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15791 if test -x $with_build_time_tools/${ncn_progname}; then
15792 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15794 $as_echo "yes" >&6; }
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15798 $as_echo "no
" >&6; }
15803 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15804 for ncn_progname in nm; do
15805 if test -n "$ncn_target_tool_prefix"; then
15806 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15807 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15809 $as_echo_n "checking
for $ac_word...
" >&6; }
15810 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15811 $as_echo_n "(cached
) " >&6
15813 if test -n "$NM_FOR_TARGET"; then
15814 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15817 for as_dir in $PATH
15820 test -z "$as_dir" && as_dir=.
15821 for ac_exec_ext in '' $ac_executable_extensions; do
15822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15823 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15824 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15833 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15834 if test -n "$NM_FOR_TARGET"; then
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15836 $as_echo "$NM_FOR_TARGET" >&6; }
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15839 $as_echo "no
" >&6; }
15844 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15846 set dummy ${ncn_progname}; ac_word=$2
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15848 $as_echo_n "checking
for $ac_word...
" >&6; }
15849 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15850 $as_echo_n "(cached
) " >&6
15852 if test -n "$NM_FOR_TARGET"; then
15853 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15856 for as_dir in $PATH
15859 test -z "$as_dir" && as_dir=.
15860 for ac_exec_ext in '' $ac_executable_extensions; do
15861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15862 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15863 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15872 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15873 if test -n "$NM_FOR_TARGET"; then
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15875 $as_echo "$NM_FOR_TARGET" >&6; }
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15878 $as_echo "no
" >&6; }
15883 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15887 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15889 if test $build = $target ; then
15892 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15895 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15899 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15905 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15906 if test -n "$with_build_time_tools"; then
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15908 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15909 if test -x $with_build_time_tools/objcopy; then
15910 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15911 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15913 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15916 $as_echo "no
" >&6; }
15918 elif test $build != $host && test $have_gcc_for_target = yes; then
15919 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15920 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15921 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15924 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15925 # Extract the first word of "objcopy
", so it can be a program name with args.
15926 set dummy objcopy; ac_word=$2
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15928 $as_echo_n "checking
for $ac_word...
" >&6; }
15929 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15930 $as_echo_n "(cached
) " >&6
15932 case $OBJCOPY_FOR_TARGET in
15934 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15938 for as_dir in $gcc_cv_tool_dirs
15941 test -z "$as_dir" && as_dir=.
15942 for ac_exec_ext in '' $ac_executable_extensions; do
15943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15944 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15945 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15955 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15956 if test -n "$OBJCOPY_FOR_TARGET"; then
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15958 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15961 $as_echo "no
" >&6; }
15966 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15969 if test -n "$OBJCOPY_FOR_TARGET"; then
15970 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15971 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15972 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15975 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15976 for ncn_progname in objcopy; do
15977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15978 set dummy ${ncn_progname}; ac_word=$2
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15980 $as_echo_n "checking
for $ac_word...
" >&6; }
15981 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15982 $as_echo_n "(cached
) " >&6
15984 if test -n "$OBJCOPY_FOR_TARGET"; then
15985 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15988 for as_dir in $PATH
15991 test -z "$as_dir" && as_dir=.
15992 for ac_exec_ext in '' $ac_executable_extensions; do
15993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15994 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15995 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16004 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16005 if test -n "$OBJCOPY_FOR_TARGET"; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16007 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16010 $as_echo "no
" >&6; }
16017 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16018 for ncn_progname in objcopy; do
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16020 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16021 if test -x $with_build_time_tools/${ncn_progname}; then
16022 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16024 $as_echo "yes" >&6; }
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16028 $as_echo "no
" >&6; }
16033 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16034 for ncn_progname in objcopy; do
16035 if test -n "$ncn_target_tool_prefix"; then
16036 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16037 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16039 $as_echo_n "checking
for $ac_word...
" >&6; }
16040 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16041 $as_echo_n "(cached
) " >&6
16043 if test -n "$OBJCOPY_FOR_TARGET"; then
16044 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16047 for as_dir in $PATH
16050 test -z "$as_dir" && as_dir=.
16051 for ac_exec_ext in '' $ac_executable_extensions; do
16052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16053 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16054 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16063 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16064 if test -n "$OBJCOPY_FOR_TARGET"; then
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16066 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16069 $as_echo "no
" >&6; }
16074 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16076 set dummy ${ncn_progname}; ac_word=$2
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16078 $as_echo_n "checking
for $ac_word...
" >&6; }
16079 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16080 $as_echo_n "(cached
) " >&6
16082 if test -n "$OBJCOPY_FOR_TARGET"; then
16083 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16086 for as_dir in $PATH
16089 test -z "$as_dir" && as_dir=.
16090 for ac_exec_ext in '' $ac_executable_extensions; do
16091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16092 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16093 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16102 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16103 if test -n "$OBJCOPY_FOR_TARGET"; then
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16105 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16108 $as_echo "no
" >&6; }
16113 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16117 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16119 if test $build = $target ; then
16120 OBJCOPY_FOR_TARGET="$2"
16122 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16125 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16129 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16135 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16136 if test -n "$with_build_time_tools"; then
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
16138 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
16139 if test -x $with_build_time_tools/objdump; then
16140 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16141 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16143 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16146 $as_echo "no
" >&6; }
16148 elif test $build != $host && test $have_gcc_for_target = yes; then
16149 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16150 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16151 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16154 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16155 # Extract the first word of "objdump
", so it can be a program name with args.
16156 set dummy objdump; ac_word=$2
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16158 $as_echo_n "checking
for $ac_word...
" >&6; }
16159 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16160 $as_echo_n "(cached
) " >&6
16162 case $OBJDUMP_FOR_TARGET in
16164 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16168 for as_dir in $gcc_cv_tool_dirs
16171 test -z "$as_dir" && as_dir=.
16172 for ac_exec_ext in '' $ac_executable_extensions; do
16173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16174 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16175 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16185 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16186 if test -n "$OBJDUMP_FOR_TARGET"; then
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16188 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16191 $as_echo "no
" >&6; }
16196 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16199 if test -n "$OBJDUMP_FOR_TARGET"; then
16200 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16201 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16202 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16205 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16206 for ncn_progname in objdump; do
16207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16208 set dummy ${ncn_progname}; ac_word=$2
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16210 $as_echo_n "checking
for $ac_word...
" >&6; }
16211 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16212 $as_echo_n "(cached
) " >&6
16214 if test -n "$OBJDUMP_FOR_TARGET"; then
16215 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16218 for as_dir in $PATH
16221 test -z "$as_dir" && as_dir=.
16222 for ac_exec_ext in '' $ac_executable_extensions; do
16223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16224 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16225 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16234 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16235 if test -n "$OBJDUMP_FOR_TARGET"; then
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16237 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16240 $as_echo "no
" >&6; }
16247 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16248 for ncn_progname in objdump; do
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16250 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16251 if test -x $with_build_time_tools/${ncn_progname}; then
16252 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16254 $as_echo "yes" >&6; }
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16258 $as_echo "no
" >&6; }
16263 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16264 for ncn_progname in objdump; do
16265 if test -n "$ncn_target_tool_prefix"; then
16266 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16267 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16269 $as_echo_n "checking
for $ac_word...
" >&6; }
16270 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16271 $as_echo_n "(cached
) " >&6
16273 if test -n "$OBJDUMP_FOR_TARGET"; then
16274 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16277 for as_dir in $PATH
16280 test -z "$as_dir" && as_dir=.
16281 for ac_exec_ext in '' $ac_executable_extensions; do
16282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16283 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16284 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16293 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16294 if test -n "$OBJDUMP_FOR_TARGET"; then
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16296 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16299 $as_echo "no
" >&6; }
16304 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16306 set dummy ${ncn_progname}; ac_word=$2
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16308 $as_echo_n "checking
for $ac_word...
" >&6; }
16309 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16310 $as_echo_n "(cached
) " >&6
16312 if test -n "$OBJDUMP_FOR_TARGET"; then
16313 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16316 for as_dir in $PATH
16319 test -z "$as_dir" && as_dir=.
16320 for ac_exec_ext in '' $ac_executable_extensions; do
16321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16322 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16323 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16332 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16333 if test -n "$OBJDUMP_FOR_TARGET"; then
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16335 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16338 $as_echo "no
" >&6; }
16343 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16347 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16349 if test $build = $target ; then
16350 OBJDUMP_FOR_TARGET="$2"
16352 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16355 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16359 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16365 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16366 if test -n "$with_build_time_tools"; then
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16368 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16369 if test -x $with_build_time_tools/otool; then
16370 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16371 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16373 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16376 $as_echo "no
" >&6; }
16378 elif test $build != $host && test $have_gcc_for_target = yes; then
16379 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16380 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16381 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16384 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16385 # Extract the first word of "otool
", so it can be a program name with args.
16386 set dummy otool; ac_word=$2
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16388 $as_echo_n "checking
for $ac_word...
" >&6; }
16389 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16390 $as_echo_n "(cached
) " >&6
16392 case $OTOOL_FOR_TARGET in
16394 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16398 for as_dir in $gcc_cv_tool_dirs
16401 test -z "$as_dir" && as_dir=.
16402 for ac_exec_ext in '' $ac_executable_extensions; do
16403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16404 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16405 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16415 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16416 if test -n "$OTOOL_FOR_TARGET"; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16418 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16421 $as_echo "no
" >&6; }
16426 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16429 if test -n "$OTOOL_FOR_TARGET"; then
16430 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16431 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16432 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16435 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16436 for ncn_progname in otool; do
16437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16438 set dummy ${ncn_progname}; ac_word=$2
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16440 $as_echo_n "checking
for $ac_word...
" >&6; }
16441 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16442 $as_echo_n "(cached
) " >&6
16444 if test -n "$OTOOL_FOR_TARGET"; then
16445 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16448 for as_dir in $PATH
16451 test -z "$as_dir" && as_dir=.
16452 for ac_exec_ext in '' $ac_executable_extensions; do
16453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16454 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16455 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16464 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16465 if test -n "$OTOOL_FOR_TARGET"; then
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16467 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16470 $as_echo "no
" >&6; }
16477 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16478 for ncn_progname in otool; do
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16480 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16481 if test -x $with_build_time_tools/${ncn_progname}; then
16482 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16484 $as_echo "yes" >&6; }
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16488 $as_echo "no
" >&6; }
16493 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16494 for ncn_progname in otool; do
16495 if test -n "$ncn_target_tool_prefix"; then
16496 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16497 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16499 $as_echo_n "checking
for $ac_word...
" >&6; }
16500 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16501 $as_echo_n "(cached
) " >&6
16503 if test -n "$OTOOL_FOR_TARGET"; then
16504 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16507 for as_dir in $PATH
16510 test -z "$as_dir" && as_dir=.
16511 for ac_exec_ext in '' $ac_executable_extensions; do
16512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16513 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16514 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16523 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16524 if test -n "$OTOOL_FOR_TARGET"; then
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16526 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16529 $as_echo "no
" >&6; }
16534 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16536 set dummy ${ncn_progname}; ac_word=$2
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16538 $as_echo_n "checking
for $ac_word...
" >&6; }
16539 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16540 $as_echo_n "(cached
) " >&6
16542 if test -n "$OTOOL_FOR_TARGET"; then
16543 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16546 for as_dir in $PATH
16549 test -z "$as_dir" && as_dir=.
16550 for ac_exec_ext in '' $ac_executable_extensions; do
16551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16552 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16553 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16562 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16563 if test -n "$OTOOL_FOR_TARGET"; then
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16565 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16568 $as_echo "no
" >&6; }
16573 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16577 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16579 if test $build = $target ; then
16580 OTOOL_FOR_TARGET="$2"
16582 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16585 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16589 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16595 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16596 if test -n "$with_build_time_tools"; then
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16598 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16599 if test -x $with_build_time_tools/ranlib; then
16600 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16601 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16603 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16606 $as_echo "no
" >&6; }
16608 elif test $build != $host && test $have_gcc_for_target = yes; then
16609 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16610 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16611 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16614 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16615 # Extract the first word of "ranlib
", so it can be a program name with args.
16616 set dummy ranlib; ac_word=$2
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16618 $as_echo_n "checking
for $ac_word...
" >&6; }
16619 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16620 $as_echo_n "(cached
) " >&6
16622 case $RANLIB_FOR_TARGET in
16624 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16628 for as_dir in $gcc_cv_tool_dirs
16631 test -z "$as_dir" && as_dir=.
16632 for ac_exec_ext in '' $ac_executable_extensions; do
16633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16634 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16635 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16645 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16646 if test -n "$RANLIB_FOR_TARGET"; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16648 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16651 $as_echo "no
" >&6; }
16656 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16659 if test -n "$RANLIB_FOR_TARGET"; then
16660 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16661 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16662 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16665 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16666 for ncn_progname in ranlib; do
16667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16668 set dummy ${ncn_progname}; ac_word=$2
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16670 $as_echo_n "checking
for $ac_word...
" >&6; }
16671 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16672 $as_echo_n "(cached
) " >&6
16674 if test -n "$RANLIB_FOR_TARGET"; then
16675 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16678 for as_dir in $PATH
16681 test -z "$as_dir" && as_dir=.
16682 for ac_exec_ext in '' $ac_executable_extensions; do
16683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16684 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16685 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16694 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16695 if test -n "$RANLIB_FOR_TARGET"; then
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16697 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16700 $as_echo "no
" >&6; }
16707 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16708 for ncn_progname in ranlib; do
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16710 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16711 if test -x $with_build_time_tools/${ncn_progname}; then
16712 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16714 $as_echo "yes" >&6; }
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16718 $as_echo "no
" >&6; }
16723 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16724 for ncn_progname in ranlib; do
16725 if test -n "$ncn_target_tool_prefix"; then
16726 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16727 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16729 $as_echo_n "checking
for $ac_word...
" >&6; }
16730 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16731 $as_echo_n "(cached
) " >&6
16733 if test -n "$RANLIB_FOR_TARGET"; then
16734 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16737 for as_dir in $PATH
16740 test -z "$as_dir" && as_dir=.
16741 for ac_exec_ext in '' $ac_executable_extensions; do
16742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16743 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16744 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16753 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16754 if test -n "$RANLIB_FOR_TARGET"; then
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16756 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16759 $as_echo "no
" >&6; }
16764 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16766 set dummy ${ncn_progname}; ac_word=$2
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16768 $as_echo_n "checking
for $ac_word...
" >&6; }
16769 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16770 $as_echo_n "(cached
) " >&6
16772 if test -n "$RANLIB_FOR_TARGET"; then
16773 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16776 for as_dir in $PATH
16779 test -z "$as_dir" && as_dir=.
16780 for ac_exec_ext in '' $ac_executable_extensions; do
16781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16782 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16783 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16792 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16793 if test -n "$RANLIB_FOR_TARGET"; then
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16795 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16798 $as_echo "no
" >&6; }
16803 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16807 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16809 if test $build = $target ; then
16810 RANLIB_FOR_TARGET="$2"
16812 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16815 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16819 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16825 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16826 if test -n "$with_build_time_tools"; then
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16828 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16829 if test -x $with_build_time_tools/readelf; then
16830 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16831 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16833 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16836 $as_echo "no
" >&6; }
16838 elif test $build != $host && test $have_gcc_for_target = yes; then
16839 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16840 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16841 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16844 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16845 # Extract the first word of "readelf
", so it can be a program name with args.
16846 set dummy readelf; ac_word=$2
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16848 $as_echo_n "checking
for $ac_word...
" >&6; }
16849 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16850 $as_echo_n "(cached
) " >&6
16852 case $READELF_FOR_TARGET in
16854 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16858 for as_dir in $gcc_cv_tool_dirs
16861 test -z "$as_dir" && as_dir=.
16862 for ac_exec_ext in '' $ac_executable_extensions; do
16863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16864 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16865 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16875 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16876 if test -n "$READELF_FOR_TARGET"; then
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16878 $as_echo "$READELF_FOR_TARGET" >&6; }
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16881 $as_echo "no
" >&6; }
16886 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16889 if test -n "$READELF_FOR_TARGET"; then
16890 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16891 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16892 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16895 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16896 for ncn_progname in readelf; do
16897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16898 set dummy ${ncn_progname}; ac_word=$2
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16900 $as_echo_n "checking
for $ac_word...
" >&6; }
16901 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16902 $as_echo_n "(cached
) " >&6
16904 if test -n "$READELF_FOR_TARGET"; then
16905 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16908 for as_dir in $PATH
16911 test -z "$as_dir" && as_dir=.
16912 for ac_exec_ext in '' $ac_executable_extensions; do
16913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16914 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16915 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16924 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16925 if test -n "$READELF_FOR_TARGET"; then
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16927 $as_echo "$READELF_FOR_TARGET" >&6; }
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16930 $as_echo "no
" >&6; }
16937 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16938 for ncn_progname in readelf; do
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16940 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16941 if test -x $with_build_time_tools/${ncn_progname}; then
16942 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16944 $as_echo "yes" >&6; }
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16948 $as_echo "no
" >&6; }
16953 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16954 for ncn_progname in readelf; do
16955 if test -n "$ncn_target_tool_prefix"; then
16956 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16957 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16959 $as_echo_n "checking
for $ac_word...
" >&6; }
16960 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16961 $as_echo_n "(cached
) " >&6
16963 if test -n "$READELF_FOR_TARGET"; then
16964 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16967 for as_dir in $PATH
16970 test -z "$as_dir" && as_dir=.
16971 for ac_exec_ext in '' $ac_executable_extensions; do
16972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16973 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16974 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16983 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16984 if test -n "$READELF_FOR_TARGET"; then
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16986 $as_echo "$READELF_FOR_TARGET" >&6; }
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16989 $as_echo "no
" >&6; }
16994 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16996 set dummy ${ncn_progname}; ac_word=$2
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16998 $as_echo_n "checking
for $ac_word...
" >&6; }
16999 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17000 $as_echo_n "(cached
) " >&6
17002 if test -n "$READELF_FOR_TARGET"; then
17003 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17006 for as_dir in $PATH
17009 test -z "$as_dir" && as_dir=.
17010 for ac_exec_ext in '' $ac_executable_extensions; do
17011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17012 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17013 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17022 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17023 if test -n "$READELF_FOR_TARGET"; then
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17025 $as_echo "$READELF_FOR_TARGET" >&6; }
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17028 $as_echo "no
" >&6; }
17033 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17037 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17039 if test $build = $target ; then
17040 READELF_FOR_TARGET="$2"
17042 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17045 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17049 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17055 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17056 if test -n "$with_build_time_tools"; then
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
17058 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
17059 if test -x $with_build_time_tools/strip; then
17060 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17061 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
17063 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17066 $as_echo "no
" >&6; }
17068 elif test $build != $host && test $have_gcc_for_target = yes; then
17069 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
17070 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17071 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17074 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17075 # Extract the first word of "strip
", so it can be a program name with args.
17076 set dummy strip; ac_word=$2
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17078 $as_echo_n "checking
for $ac_word...
" >&6; }
17079 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
17080 $as_echo_n "(cached
) " >&6
17082 case $STRIP_FOR_TARGET in
17084 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17088 for as_dir in $gcc_cv_tool_dirs
17091 test -z "$as_dir" && as_dir=.
17092 for ac_exec_ext in '' $ac_executable_extensions; do
17093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17094 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17095 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17105 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17106 if test -n "$STRIP_FOR_TARGET"; then
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17108 $as_echo "$STRIP_FOR_TARGET" >&6; }
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17111 $as_echo "no
" >&6; }
17116 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17119 if test -n "$STRIP_FOR_TARGET"; then
17120 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17121 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17122 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17125 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17126 for ncn_progname in strip; do
17127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17128 set dummy ${ncn_progname}; ac_word=$2
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17130 $as_echo_n "checking
for $ac_word...
" >&6; }
17131 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17132 $as_echo_n "(cached
) " >&6
17134 if test -n "$STRIP_FOR_TARGET"; then
17135 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17138 for as_dir in $PATH
17141 test -z "$as_dir" && as_dir=.
17142 for ac_exec_ext in '' $ac_executable_extensions; do
17143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17144 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17145 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17154 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17155 if test -n "$STRIP_FOR_TARGET"; then
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17157 $as_echo "$STRIP_FOR_TARGET" >&6; }
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17160 $as_echo "no
" >&6; }
17167 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17168 for ncn_progname in strip; do
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17170 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17171 if test -x $with_build_time_tools/${ncn_progname}; then
17172 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17174 $as_echo "yes" >&6; }
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17178 $as_echo "no
" >&6; }
17183 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17184 for ncn_progname in strip; do
17185 if test -n "$ncn_target_tool_prefix"; then
17186 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17187 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17189 $as_echo_n "checking
for $ac_word...
" >&6; }
17190 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17191 $as_echo_n "(cached
) " >&6
17193 if test -n "$STRIP_FOR_TARGET"; then
17194 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17197 for as_dir in $PATH
17200 test -z "$as_dir" && as_dir=.
17201 for ac_exec_ext in '' $ac_executable_extensions; do
17202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17203 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17204 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17213 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17214 if test -n "$STRIP_FOR_TARGET"; then
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17216 $as_echo "$STRIP_FOR_TARGET" >&6; }
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17219 $as_echo "no
" >&6; }
17224 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17226 set dummy ${ncn_progname}; ac_word=$2
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17228 $as_echo_n "checking
for $ac_word...
" >&6; }
17229 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17230 $as_echo_n "(cached
) " >&6
17232 if test -n "$STRIP_FOR_TARGET"; then
17233 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17236 for as_dir in $PATH
17239 test -z "$as_dir" && as_dir=.
17240 for ac_exec_ext in '' $ac_executable_extensions; do
17241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17242 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17243 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17252 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17253 if test -n "$STRIP_FOR_TARGET"; then
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17255 $as_echo "$STRIP_FOR_TARGET" >&6; }
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17258 $as_echo "no
" >&6; }
17263 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17267 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17269 if test $build = $target ; then
17270 STRIP_FOR_TARGET="$2"
17272 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17275 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17279 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17285 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17286 if test -n "$with_build_time_tools"; then
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17288 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17289 if test -x $with_build_time_tools/windres; then
17290 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17291 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17293 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17296 $as_echo "no
" >&6; }
17298 elif test $build != $host && test $have_gcc_for_target = yes; then
17299 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17300 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17301 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17304 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17305 # Extract the first word of "windres
", so it can be a program name with args.
17306 set dummy windres; ac_word=$2
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17308 $as_echo_n "checking
for $ac_word...
" >&6; }
17309 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17310 $as_echo_n "(cached
) " >&6
17312 case $WINDRES_FOR_TARGET in
17314 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17318 for as_dir in $gcc_cv_tool_dirs
17321 test -z "$as_dir" && as_dir=.
17322 for ac_exec_ext in '' $ac_executable_extensions; do
17323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17324 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17325 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17335 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17336 if test -n "$WINDRES_FOR_TARGET"; then
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17338 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17341 $as_echo "no
" >&6; }
17346 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17349 if test -n "$WINDRES_FOR_TARGET"; then
17350 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17351 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17352 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17355 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17356 for ncn_progname in windres; do
17357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17358 set dummy ${ncn_progname}; ac_word=$2
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17360 $as_echo_n "checking
for $ac_word...
" >&6; }
17361 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17362 $as_echo_n "(cached
) " >&6
17364 if test -n "$WINDRES_FOR_TARGET"; then
17365 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17368 for as_dir in $PATH
17371 test -z "$as_dir" && as_dir=.
17372 for ac_exec_ext in '' $ac_executable_extensions; do
17373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17374 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17375 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17384 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17385 if test -n "$WINDRES_FOR_TARGET"; then
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17387 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17390 $as_echo "no
" >&6; }
17397 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17398 for ncn_progname in windres; do
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17400 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17401 if test -x $with_build_time_tools/${ncn_progname}; then
17402 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17404 $as_echo "yes" >&6; }
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17408 $as_echo "no
" >&6; }
17413 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17414 for ncn_progname in windres; do
17415 if test -n "$ncn_target_tool_prefix"; then
17416 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17417 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17419 $as_echo_n "checking
for $ac_word...
" >&6; }
17420 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17421 $as_echo_n "(cached
) " >&6
17423 if test -n "$WINDRES_FOR_TARGET"; then
17424 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17427 for as_dir in $PATH
17430 test -z "$as_dir" && as_dir=.
17431 for ac_exec_ext in '' $ac_executable_extensions; do
17432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17433 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17434 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17443 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17444 if test -n "$WINDRES_FOR_TARGET"; then
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17446 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17449 $as_echo "no
" >&6; }
17454 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17456 set dummy ${ncn_progname}; ac_word=$2
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17458 $as_echo_n "checking
for $ac_word...
" >&6; }
17459 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17460 $as_echo_n "(cached
) " >&6
17462 if test -n "$WINDRES_FOR_TARGET"; then
17463 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17466 for as_dir in $PATH
17469 test -z "$as_dir" && as_dir=.
17470 for ac_exec_ext in '' $ac_executable_extensions; do
17471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17472 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17473 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17482 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17483 if test -n "$WINDRES_FOR_TARGET"; then
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17485 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17488 $as_echo "no
" >&6; }
17493 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17497 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17499 if test $build = $target ; then
17500 WINDRES_FOR_TARGET="$2"
17502 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17505 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17509 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17515 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17516 if test -n "$with_build_time_tools"; then
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17518 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17519 if test -x $with_build_time_tools/windmc; then
17520 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17521 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17523 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17526 $as_echo "no
" >&6; }
17528 elif test $build != $host && test $have_gcc_for_target = yes; then
17529 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17530 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17531 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17534 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17535 # Extract the first word of "windmc
", so it can be a program name with args.
17536 set dummy windmc; ac_word=$2
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17538 $as_echo_n "checking
for $ac_word...
" >&6; }
17539 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17540 $as_echo_n "(cached
) " >&6
17542 case $WINDMC_FOR_TARGET in
17544 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17548 for as_dir in $gcc_cv_tool_dirs
17551 test -z "$as_dir" && as_dir=.
17552 for ac_exec_ext in '' $ac_executable_extensions; do
17553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17554 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17555 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17565 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17566 if test -n "$WINDMC_FOR_TARGET"; then
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17568 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17571 $as_echo "no
" >&6; }
17576 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17579 if test -n "$WINDMC_FOR_TARGET"; then
17580 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17581 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17582 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17585 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17586 for ncn_progname in windmc; do
17587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17588 set dummy ${ncn_progname}; ac_word=$2
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17590 $as_echo_n "checking
for $ac_word...
" >&6; }
17591 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17592 $as_echo_n "(cached
) " >&6
17594 if test -n "$WINDMC_FOR_TARGET"; then
17595 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17598 for as_dir in $PATH
17601 test -z "$as_dir" && as_dir=.
17602 for ac_exec_ext in '' $ac_executable_extensions; do
17603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17604 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17605 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17614 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17615 if test -n "$WINDMC_FOR_TARGET"; then
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17617 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17620 $as_echo "no
" >&6; }
17627 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17628 for ncn_progname in windmc; do
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17630 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17631 if test -x $with_build_time_tools/${ncn_progname}; then
17632 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17634 $as_echo "yes" >&6; }
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17638 $as_echo "no
" >&6; }
17643 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17644 for ncn_progname in windmc; do
17645 if test -n "$ncn_target_tool_prefix"; then
17646 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17647 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17649 $as_echo_n "checking
for $ac_word...
" >&6; }
17650 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17651 $as_echo_n "(cached
) " >&6
17653 if test -n "$WINDMC_FOR_TARGET"; then
17654 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17657 for as_dir in $PATH
17660 test -z "$as_dir" && as_dir=.
17661 for ac_exec_ext in '' $ac_executable_extensions; do
17662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17663 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17664 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17673 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17674 if test -n "$WINDMC_FOR_TARGET"; then
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17676 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17679 $as_echo "no
" >&6; }
17684 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17686 set dummy ${ncn_progname}; ac_word=$2
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17688 $as_echo_n "checking
for $ac_word...
" >&6; }
17689 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17690 $as_echo_n "(cached
) " >&6
17692 if test -n "$WINDMC_FOR_TARGET"; then
17693 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17696 for as_dir in $PATH
17699 test -z "$as_dir" && as_dir=.
17700 for ac_exec_ext in '' $ac_executable_extensions; do
17701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17702 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17703 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17712 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17713 if test -n "$WINDMC_FOR_TARGET"; then
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17715 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17718 $as_echo "no
" >&6; }
17723 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17727 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17729 if test $build = $target ; then
17730 WINDMC_FOR_TARGET="$2"
17732 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17735 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17739 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17743 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17746 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17747 if test "x
${build}" != "x
${host}" ; then
17748 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17749 # We already found the complete path
17750 ac_dir=`dirname $AR_FOR_TARGET`
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17752 $as_echo "pre-installed
in $ac_dir" >&6; }
17754 # Canadian cross, just use what we found
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17756 $as_echo "pre-installed
" >&6; }
17760 case " ${configdirs} " in
17765 if test $ok = yes; then
17766 # An in-tree tool is available and we can use it
17767 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17769 $as_echo "just compiled
" >&6; }
17770 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17771 # We already found the complete path
17772 ac_dir=`dirname $AR_FOR_TARGET`
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17774 $as_echo "pre-installed
in $ac_dir" >&6; }
17775 elif test "x
$target" = "x
$host"; then
17776 # We can use an host tool
17777 AR_FOR_TARGET='$(AR)'
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17779 $as_echo "host tool
" >&6; }
17781 # We need a cross tool
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17783 $as_echo "pre-installed
" >&6; }
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17788 $as_echo_n "checking where to
find the target as...
" >&6; }
17789 if test "x
${build}" != "x
${host}" ; then
17790 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17791 # We already found the complete path
17792 ac_dir=`dirname $AS_FOR_TARGET`
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17794 $as_echo "pre-installed
in $ac_dir" >&6; }
17796 # Canadian cross, just use what we found
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17798 $as_echo "pre-installed
" >&6; }
17802 case " ${configdirs} " in
17807 if test $ok = yes; then
17808 # An in-tree tool is available and we can use it
17809 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17811 $as_echo "just compiled
" >&6; }
17812 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17813 # We already found the complete path
17814 ac_dir=`dirname $AS_FOR_TARGET`
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17816 $as_echo "pre-installed
in $ac_dir" >&6; }
17817 elif test "x
$target" = "x
$host"; then
17818 # We can use an host tool
17819 AS_FOR_TARGET='$(AS)'
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17821 $as_echo "host tool
" >&6; }
17823 # We need a cross tool
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17825 $as_echo "pre-installed
" >&6; }
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17830 $as_echo_n "checking where to
find the target cc...
" >&6; }
17831 if test "x
${build}" != "x
${host}" ; then
17832 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17833 # We already found the complete path
17834 ac_dir=`dirname $CC_FOR_TARGET`
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17836 $as_echo "pre-installed
in $ac_dir" >&6; }
17838 # Canadian cross, just use what we found
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17840 $as_echo "pre-installed
" >&6; }
17844 case " ${configdirs} " in
17849 if test $ok = yes; then
17850 # An in-tree tool is available and we can use it
17851 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17853 $as_echo "just compiled
" >&6; }
17854 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17855 # We already found the complete path
17856 ac_dir=`dirname $CC_FOR_TARGET`
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17858 $as_echo "pre-installed
in $ac_dir" >&6; }
17859 elif test "x
$target" = "x
$host"; then
17860 # We can use an host tool
17861 CC_FOR_TARGET='$(CC)'
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17863 $as_echo "host tool
" >&6; }
17865 # We need a cross tool
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17867 $as_echo "pre-installed
" >&6; }
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17872 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17873 if test "x
${build}" != "x
${host}" ; then
17874 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17875 # We already found the complete path
17876 ac_dir=`dirname $CXX_FOR_TARGET`
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17878 $as_echo "pre-installed
in $ac_dir" >&6; }
17880 # Canadian cross, just use what we found
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17882 $as_echo "pre-installed
" >&6; }
17886 case " ${configdirs} " in
17890 case ,${enable_languages}, in
17894 if test $ok = yes; then
17895 # An in-tree tool is available and we can use it
17896 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'
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17898 $as_echo "just compiled
" >&6; }
17899 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17900 # We already found the complete path
17901 ac_dir=`dirname $CXX_FOR_TARGET`
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17903 $as_echo "pre-installed
in $ac_dir" >&6; }
17904 elif test "x
$target" = "x
$host"; then
17905 # We can use an host tool
17906 CXX_FOR_TARGET='$(CXX)'
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17908 $as_echo "host tool
" >&6; }
17910 # We need a cross tool
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17912 $as_echo "pre-installed
" >&6; }
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17917 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17918 if test "x
${build}" != "x
${host}" ; then
17919 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17920 # We already found the complete path
17921 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17923 $as_echo "pre-installed
in $ac_dir" >&6; }
17925 # Canadian cross, just use what we found
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17927 $as_echo "pre-installed
" >&6; }
17931 case " ${configdirs} " in
17935 case ,${enable_languages}, in
17939 if test $ok = yes; then
17940 # An in-tree tool is available and we can use it
17941 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'
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17943 $as_echo "just compiled
" >&6; }
17944 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17945 # We already found the complete path
17946 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17948 $as_echo "pre-installed
in $ac_dir" >&6; }
17949 elif test "x
$target" = "x
$host"; then
17950 # We can use an host tool
17951 RAW_CXX_FOR_TARGET='$(CXX)'
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17953 $as_echo "host tool
" >&6; }
17955 # We need a cross tool
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17957 $as_echo "pre-installed
" >&6; }
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17962 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17963 if test "x
${build}" != "x
${host}" ; then
17964 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17965 # We already found the complete path
17966 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17968 $as_echo "pre-installed
in $ac_dir" >&6; }
17970 # Canadian cross, just use what we found
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17972 $as_echo "pre-installed
" >&6; }
17976 case " ${configdirs} " in
17981 if test $ok = yes; then
17982 # An in-tree tool is available and we can use it
17983 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17985 $as_echo "just compiled
" >&6; }
17986 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17987 # We already found the complete path
17988 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17990 $as_echo "pre-installed
in $ac_dir" >&6; }
17991 elif test "x
$target" = "x
$host"; then
17992 # We can use an host tool
17993 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17995 $as_echo "host tool
" >&6; }
17997 # We need a cross tool
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17999 $as_echo "pre-installed
" >&6; }
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
18004 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
18005 if test "x
${build}" != "x
${host}" ; then
18006 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
18007 # We already found the complete path
18008 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18010 $as_echo "pre-installed
in $ac_dir" >&6; }
18012 # Canadian cross, just use what we found
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18014 $as_echo "pre-installed
" >&6; }
18017 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
18018 # We already found the complete path
18019 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18021 $as_echo "pre-installed
in $ac_dir" >&6; }
18022 elif test "x
$target" = "x
$host"; then
18023 # We can use an host tool
18024 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18026 $as_echo "host tool
" >&6; }
18028 # We need a cross tool
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18030 $as_echo "pre-installed
" >&6; }
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
18035 $as_echo_n "checking where to
find the target gcc...
" >&6; }
18036 if test "x
${build}" != "x
${host}" ; then
18037 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
18038 # We already found the complete path
18039 ac_dir=`dirname $GCC_FOR_TARGET`
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18041 $as_echo "pre-installed
in $ac_dir" >&6; }
18043 # Canadian cross, just use what we found
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18045 $as_echo "pre-installed
" >&6; }
18049 case " ${configdirs} " in
18054 if test $ok = yes; then
18055 # An in-tree tool is available and we can use it
18056 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18058 $as_echo "just compiled
" >&6; }
18059 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
18060 # We already found the complete path
18061 ac_dir=`dirname $GCC_FOR_TARGET`
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18063 $as_echo "pre-installed
in $ac_dir" >&6; }
18064 elif test "x
$target" = "x
$host"; then
18065 # We can use an host tool
18066 GCC_FOR_TARGET='$()'
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18068 $as_echo "host tool
" >&6; }
18070 # We need a cross tool
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18072 $as_echo "pre-installed
" >&6; }
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
18077 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
18078 if test "x
${build}" != "x
${host}" ; then
18079 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
18080 # We already found the complete path
18081 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18083 $as_echo "pre-installed
in $ac_dir" >&6; }
18085 # Canadian cross, just use what we found
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18087 $as_echo "pre-installed
" >&6; }
18091 case " ${configdirs} " in
18095 case ,${enable_languages}, in
18099 if test $ok = yes; then
18100 # An in-tree tool is available and we can use it
18101 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18103 $as_echo "just compiled
" >&6; }
18104 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
18105 # We already found the complete path
18106 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18108 $as_echo "pre-installed
in $ac_dir" >&6; }
18109 elif test "x
$target" = "x
$host"; then
18110 # We can use an host tool
18111 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18113 $as_echo "host tool
" >&6; }
18115 # We need a cross tool
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18117 $as_echo "pre-installed
" >&6; }
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
18122 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
18123 if test "x
${build}" != "x
${host}" ; then
18124 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
18125 # We already found the complete path
18126 ac_dir=`dirname $GOC_FOR_TARGET`
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18128 $as_echo "pre-installed
in $ac_dir" >&6; }
18130 # Canadian cross, just use what we found
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18132 $as_echo "pre-installed
" >&6; }
18136 case " ${configdirs} " in
18140 case ,${enable_languages}, in
18144 if test $ok = yes; then
18145 # An in-tree tool is available and we can use it
18146 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18148 $as_echo "just compiled
" >&6; }
18149 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
18150 # We already found the complete path
18151 ac_dir=`dirname $GOC_FOR_TARGET`
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18153 $as_echo "pre-installed
in $ac_dir" >&6; }
18154 elif test "x
$target" = "x
$host"; then
18155 # We can use an host tool
18156 GOC_FOR_TARGET='$(GOC)'
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18158 $as_echo "host tool
" >&6; }
18160 # We need a cross tool
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18162 $as_echo "pre-installed
" >&6; }
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
18167 $as_echo_n "checking where to
find the target gdc...
" >&6; }
18168 if test "x
${build}" != "x
${host}" ; then
18169 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18170 # We already found the complete path
18171 ac_dir=`dirname $GDC_FOR_TARGET`
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18173 $as_echo "pre-installed
in $ac_dir" >&6; }
18175 # Canadian cross, just use what we found
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18177 $as_echo "pre-installed
" >&6; }
18181 case " ${configdirs} " in
18185 case ,${enable_languages}, in
18189 if test $ok = yes; then
18190 # An in-tree tool is available and we can use it
18191 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18193 $as_echo "just compiled
" >&6; }
18194 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18195 # We already found the complete path
18196 ac_dir=`dirname $GDC_FOR_TARGET`
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18198 $as_echo "pre-installed
in $ac_dir" >&6; }
18199 elif test "x
$target" = "x
$host"; then
18200 # We can use an host tool
18201 GDC_FOR_TARGET='$(GDC)'
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18203 $as_echo "host tool
" >&6; }
18205 # We need a cross tool
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18207 $as_echo "pre-installed
" >&6; }
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gm2
" >&5
18212 $as_echo_n "checking where to
find the target gm2...
" >&6; }
18213 if test "x
${build}" != "x
${host}" ; then
18214 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18215 # We already found the complete path
18216 ac_dir=`dirname $GM2_FOR_TARGET`
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18218 $as_echo "pre-installed
in $ac_dir" >&6; }
18220 # Canadian cross, just use what we found
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18222 $as_echo "pre-installed
" >&6; }
18226 case " ${configdirs} " in
18230 case ,${enable_languages}, in
18234 if test $ok = yes; then
18235 # An in-tree tool is available and we can use it
18236 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18238 $as_echo "just compiled
" >&6; }
18239 elif expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18240 # We already found the complete path
18241 ac_dir=`dirname $GM2_FOR_TARGET`
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18243 $as_echo "pre-installed
in $ac_dir" >&6; }
18244 elif test "x
$target" = "x
$host"; then
18245 # We can use an host tool
18246 GM2_FOR_TARGET='$(GM2)'
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18248 $as_echo "host tool
" >&6; }
18250 # We need a cross tool
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18252 $as_echo "pre-installed
" >&6; }
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
18257 $as_echo_n "checking where to
find the target ld...
" >&6; }
18258 if test "x
${build}" != "x
${host}" ; then
18259 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18260 # We already found the complete path
18261 ac_dir=`dirname $LD_FOR_TARGET`
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18263 $as_echo "pre-installed
in $ac_dir" >&6; }
18265 # Canadian cross, just use what we found
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18267 $as_echo "pre-installed
" >&6; }
18271 case " ${configdirs} " in
18276 if test $ok = yes; then
18277 # An in-tree tool is available and we can use it
18278 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18280 $as_echo "just compiled
" >&6; }
18281 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18282 # We already found the complete path
18283 ac_dir=`dirname $LD_FOR_TARGET`
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18285 $as_echo "pre-installed
in $ac_dir" >&6; }
18286 elif test "x
$target" = "x
$host"; then
18287 # We can use an host tool
18288 LD_FOR_TARGET='$(LD)'
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18290 $as_echo "host tool
" >&6; }
18292 # We need a cross tool
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18294 $as_echo "pre-installed
" >&6; }
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
18299 $as_echo_n "checking where to
find the target lipo...
" >&6; }
18300 if test "x
${build}" != "x
${host}" ; then
18301 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18302 # We already found the complete path
18303 ac_dir=`dirname $LIPO_FOR_TARGET`
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18305 $as_echo "pre-installed
in $ac_dir" >&6; }
18307 # Canadian cross, just use what we found
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18309 $as_echo "pre-installed
" >&6; }
18312 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18313 # We already found the complete path
18314 ac_dir=`dirname $LIPO_FOR_TARGET`
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18316 $as_echo "pre-installed
in $ac_dir" >&6; }
18317 elif test "x
$target" = "x
$host"; then
18318 # We can use an host tool
18319 LIPO_FOR_TARGET='$(LIPO)'
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18321 $as_echo "host tool
" >&6; }
18323 # We need a cross tool
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18325 $as_echo "pre-installed
" >&6; }
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
18330 $as_echo_n "checking where to
find the target nm...
" >&6; }
18331 if test "x
${build}" != "x
${host}" ; then
18332 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18333 # We already found the complete path
18334 ac_dir=`dirname $NM_FOR_TARGET`
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18336 $as_echo "pre-installed
in $ac_dir" >&6; }
18338 # Canadian cross, just use what we found
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18340 $as_echo "pre-installed
" >&6; }
18344 case " ${configdirs} " in
18349 if test $ok = yes; then
18350 # An in-tree tool is available and we can use it
18351 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18353 $as_echo "just compiled
" >&6; }
18354 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18355 # We already found the complete path
18356 ac_dir=`dirname $NM_FOR_TARGET`
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18358 $as_echo "pre-installed
in $ac_dir" >&6; }
18359 elif test "x
$target" = "x
$host"; then
18360 # We can use an host tool
18361 NM_FOR_TARGET='$(NM)'
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18363 $as_echo "host tool
" >&6; }
18365 # We need a cross tool
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18367 $as_echo "pre-installed
" >&6; }
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
18372 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
18373 if test "x
${build}" != "x
${host}" ; then
18374 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18375 # We already found the complete path
18376 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18378 $as_echo "pre-installed
in $ac_dir" >&6; }
18380 # Canadian cross, just use what we found
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18382 $as_echo "pre-installed
" >&6; }
18386 case " ${configdirs} " in
18391 if test $ok = yes; then
18392 # An in-tree tool is available and we can use it
18393 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18395 $as_echo "just compiled
" >&6; }
18396 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18397 # We already found the complete path
18398 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18400 $as_echo "pre-installed
in $ac_dir" >&6; }
18401 elif test "x
$target" = "x
$host"; then
18402 # We can use an host tool
18403 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18405 $as_echo "host tool
" >&6; }
18407 # We need a cross tool
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18409 $as_echo "pre-installed
" >&6; }
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18414 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18415 if test "x
${build}" != "x
${host}" ; then
18416 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18417 # We already found the complete path
18418 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18420 $as_echo "pre-installed
in $ac_dir" >&6; }
18422 # Canadian cross, just use what we found
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18424 $as_echo "pre-installed
" >&6; }
18428 case " ${configdirs} " in
18433 if test $ok = yes; then
18434 # An in-tree tool is available and we can use it
18435 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18437 $as_echo "just compiled
" >&6; }
18438 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18439 # We already found the complete path
18440 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18442 $as_echo "pre-installed
in $ac_dir" >&6; }
18443 elif test "x
$target" = "x
$host"; then
18444 # We can use an host tool
18445 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18447 $as_echo "host tool
" >&6; }
18449 # We need a cross tool
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18451 $as_echo "pre-installed
" >&6; }
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18456 $as_echo_n "checking where to
find the target otool...
" >&6; }
18457 if test "x
${build}" != "x
${host}" ; then
18458 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18459 # We already found the complete path
18460 ac_dir=`dirname $OTOOL_FOR_TARGET`
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18462 $as_echo "pre-installed
in $ac_dir" >&6; }
18464 # Canadian cross, just use what we found
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18466 $as_echo "pre-installed
" >&6; }
18469 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18470 # We already found the complete path
18471 ac_dir=`dirname $OTOOL_FOR_TARGET`
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18473 $as_echo "pre-installed
in $ac_dir" >&6; }
18474 elif test "x
$target" = "x
$host"; then
18475 # We can use an host tool
18476 OTOOL_FOR_TARGET='$(OTOOL)'
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18478 $as_echo "host tool
" >&6; }
18480 # We need a cross tool
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18482 $as_echo "pre-installed
" >&6; }
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18487 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18488 if test "x
${build}" != "x
${host}" ; then
18489 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18490 # We already found the complete path
18491 ac_dir=`dirname $RANLIB_FOR_TARGET`
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18493 $as_echo "pre-installed
in $ac_dir" >&6; }
18495 # Canadian cross, just use what we found
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18497 $as_echo "pre-installed
" >&6; }
18501 case " ${configdirs} " in
18506 if test $ok = yes; then
18507 # An in-tree tool is available and we can use it
18508 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18510 $as_echo "just compiled
" >&6; }
18511 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18512 # We already found the complete path
18513 ac_dir=`dirname $RANLIB_FOR_TARGET`
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18515 $as_echo "pre-installed
in $ac_dir" >&6; }
18516 elif test "x
$target" = "x
$host"; then
18517 # We can use an host tool
18518 RANLIB_FOR_TARGET='$(RANLIB)'
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18520 $as_echo "host tool
" >&6; }
18522 # We need a cross tool
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18524 $as_echo "pre-installed
" >&6; }
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18529 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18530 if test "x
${build}" != "x
${host}" ; then
18531 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18532 # We already found the complete path
18533 ac_dir=`dirname $READELF_FOR_TARGET`
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18535 $as_echo "pre-installed
in $ac_dir" >&6; }
18537 # Canadian cross, just use what we found
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18539 $as_echo "pre-installed
" >&6; }
18543 case " ${configdirs} " in
18548 if test $ok = yes; then
18549 # An in-tree tool is available and we can use it
18550 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18552 $as_echo "just compiled
" >&6; }
18553 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18554 # We already found the complete path
18555 ac_dir=`dirname $READELF_FOR_TARGET`
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18557 $as_echo "pre-installed
in $ac_dir" >&6; }
18558 elif test "x
$target" = "x
$host"; then
18559 # We can use an host tool
18560 READELF_FOR_TARGET='$(READELF)'
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18562 $as_echo "host tool
" >&6; }
18564 # We need a cross tool
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18566 $as_echo "pre-installed
" >&6; }
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18571 $as_echo_n "checking where to
find the target strip...
" >&6; }
18572 if test "x
${build}" != "x
${host}" ; then
18573 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18574 # We already found the complete path
18575 ac_dir=`dirname $STRIP_FOR_TARGET`
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18577 $as_echo "pre-installed
in $ac_dir" >&6; }
18579 # Canadian cross, just use what we found
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18581 $as_echo "pre-installed
" >&6; }
18585 case " ${configdirs} " in
18590 if test $ok = yes; then
18591 # An in-tree tool is available and we can use it
18592 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18594 $as_echo "just compiled
" >&6; }
18595 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18596 # We already found the complete path
18597 ac_dir=`dirname $STRIP_FOR_TARGET`
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18599 $as_echo "pre-installed
in $ac_dir" >&6; }
18600 elif test "x
$target" = "x
$host"; then
18601 # We can use an host tool
18602 STRIP_FOR_TARGET='$(STRIP)'
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18604 $as_echo "host tool
" >&6; }
18606 # We need a cross tool
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18608 $as_echo "pre-installed
" >&6; }
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18613 $as_echo_n "checking where to
find the target windres...
" >&6; }
18614 if test "x
${build}" != "x
${host}" ; then
18615 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18616 # We already found the complete path
18617 ac_dir=`dirname $WINDRES_FOR_TARGET`
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18619 $as_echo "pre-installed
in $ac_dir" >&6; }
18621 # Canadian cross, just use what we found
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18623 $as_echo "pre-installed
" >&6; }
18627 case " ${configdirs} " in
18632 if test $ok = yes; then
18633 # An in-tree tool is available and we can use it
18634 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18636 $as_echo "just compiled
" >&6; }
18637 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18638 # We already found the complete path
18639 ac_dir=`dirname $WINDRES_FOR_TARGET`
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18641 $as_echo "pre-installed
in $ac_dir" >&6; }
18642 elif test "x
$target" = "x
$host"; then
18643 # We can use an host tool
18644 WINDRES_FOR_TARGET='$(WINDRES)'
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18646 $as_echo "host tool
" >&6; }
18648 # We need a cross tool
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18650 $as_echo "pre-installed
" >&6; }
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18655 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18656 if test "x
${build}" != "x
${host}" ; then
18657 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18658 # We already found the complete path
18659 ac_dir=`dirname $WINDMC_FOR_TARGET`
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18661 $as_echo "pre-installed
in $ac_dir" >&6; }
18663 # Canadian cross, just use what we found
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18665 $as_echo "pre-installed
" >&6; }
18669 case " ${configdirs} " in
18674 if test $ok = yes; then
18675 # An in-tree tool is available and we can use it
18676 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18678 $as_echo "just compiled
" >&6; }
18679 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18680 # We already found the complete path
18681 ac_dir=`dirname $WINDMC_FOR_TARGET`
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18683 $as_echo "pre-installed
in $ac_dir" >&6; }
18684 elif test "x
$target" = "x
$host"; then
18685 # We can use an host tool
18686 WINDMC_FOR_TARGET='$(WINDMC)'
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18688 $as_echo "host tool
" >&6; }
18690 # We need a cross tool
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18692 $as_echo "pre-installed
" >&6; }
18700 # Certain tools may need extra flags.
18701 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18702 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18703 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18705 # When building target libraries, except in a Canadian cross, we use
18706 # the same toolchain as the compiler we just built.
18707 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18708 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18709 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18710 if test $host = $build; then
18711 case " $configdirs " in
18713 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18714 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18715 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18725 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18726 # Check whether --enable-maintainer-mode was given.
18727 if test "${enable_maintainer_mode+set}" = set; then :
18728 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18730 USE_MAINTAINER_MODE=no
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18734 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18737 if test "$USE_MAINTAINER_MODE" = yes; then
18738 MAINTAINER_MODE_TRUE=
18739 MAINTAINER_MODE_FALSE='#'
18741 MAINTAINER_MODE_TRUE='#'
18742 MAINTAINER_MODE_FALSE=
18744 MAINT=$MAINTAINER_MODE_TRUE
18746 # ---------------------
18747 # GCC bootstrap support
18748 # ---------------------
18750 # Stage specific cflags for build.
18755 yes) stage1_cflags="-g -Wa,-J" ;;
18756 *) stage1_cflags="-g -J" ;;
18762 # Enable --enable-checking in stage1 of the compiler.
18763 # Check whether --enable-stage1-checking was given.
18764 if test "${enable_stage1_checking+set}" = set; then :
18765 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18767 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18768 # For --disable-checking or implicit --enable-checking=release, avoid
18769 # setting --enable-checking=gc in the default stage1 checking for LTO
18770 # bootstraps. See PR62077.
18771 case $BUILD_CONFIG in
18773 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18775 stage1_checking=--enable-checking=yes,types;;
18777 if test "x
$enable_checking" = x && \
18778 test -d ${srcdir}/gcc && \
18779 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18780 stage1_checking=--enable-checking=yes,types,extra
18783 stage1_checking=--enable-checking=$enable_checking,types
18789 # Enable -Werror in bootstrap stage2 and later.
18790 # Check whether --enable-werror was given.
18791 if test "${enable_werror+set}" = set; then :
18792 enableval=$enable_werror;
18793 case ${enable_werror} in
18794 yes) stage2_werror_flag="--enable-werror-always" ;;
18795 *) stage2_werror_flag="" ;;
18800 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18801 case $BUILD_CONFIG in
18803 stage2_werror_flag="--enable-werror-always" ;;
18805 stage2_werror_flag="--enable-werror-always" ;;
18814 # Specify what files to not compare during bootstrap.
18816 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18817 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
18818 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
18819 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
18821 hppa*64*-*-hpux*) ;;
18822 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18826 ac_config_files="$ac_config_files Makefile
"
18828 cat >confcache <<\_ACEOF
18829 # This file is a shell script that caches the results of configure
18830 # tests run on this system so they can be shared between configure
18831 # scripts and configure runs, see configure's option --config-cache.
18832 # It is not useful on other systems. If it contains results you don't
18833 # want to keep, you may remove or edit it.
18835 # config.status only pays attention to the cache file if you give it
18836 # the --recheck option to rerun configure.
18838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18840 # following values.
18844 # The following way of writing the cache mishandles newlines in values,
18845 # but we know of no workaround that is simple, portable, and efficient.
18846 # So, we kill variables containing newlines.
18847 # Ultrix sh set writes to stderr and can't be redirected directly,
18848 # and sets the high bit in the cache file unless we assign to the vars.
18850 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18851 eval ac_val=\$$ac_var
18855 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18856 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18859 _ | IFS | as_nl) ;; #(
18860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18861 *) { eval $ac_var=; unset $ac_var;} ;;
18867 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18868 *${as_nl}ac_space=\ *)
18869 # `set' does not quote correctly, so add quotes: double-quote
18870 # substitution turns \\\\ into \\, and sed turns \\ into \.
18873 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18876 # `set' quotes correctly as required by POSIX, so do not add quotes.
18877 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18888 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18890 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18891 if test -w "$cache_file"; then
18892 if test "x
$cache_file" != "x
/dev
/null
"; then
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18894 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18895 if test ! -f "$cache_file" || test -h "$cache_file"; then
18896 cat confcache >"$cache_file"
18898 case $cache_file in #(
18900 mv -f confcache "$cache_file"$$ &&
18901 mv -f "$cache_file"$$ "$cache_file" ;; #(
18903 mv -f confcache "$cache_file" ;;
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18909 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18914 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18915 # Let make expand exec_prefix.
18916 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18918 # Transform confdefs.h into DEFS.
18919 # Protect against shell expansion while executing Makefile rules.
18920 # Protect against Makefile macro expansion.
18922 # If the first sed substitution is executed (which looks for macros that
18923 # take arguments), then branch to the quote section. Otherwise,
18924 # look for a macro that doesn't take arguments.
18934 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18936 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18940 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18953 DEFS=`sed -n "$ac_script" confdefs.h`
18959 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18960 # 1. Remove the extension, and $U if already installed.
18961 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18962 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18963 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18964 # will be set to the directory where LIBOBJS objects are built.
18965 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18966 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18968 LIBOBJS=$ac_libobjs
18970 LTLIBOBJS=$ac_ltlibobjs
18974 : "${CONFIG_STATUS=./config.status}"
18976 ac_clean_files_save=$ac_clean_files
18977 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18979 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18981 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18983 # Generated by $as_me.
18984 # Run this file to recreate the current configuration.
18985 # Compiler output produced by configure, useful for debugging
18986 # configure, is in config.log if it exists.
18989 ac_cs_recheck=false
18992 SHELL=\${CONFIG_SHELL-$SHELL}
18995 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18996 ## -------------------- ##
18997 ## M4sh Initialization. ##
18998 ## -------------------- ##
19000 # Be more Bourne compatible
19001 DUALCASE=1; export DUALCASE # for MKS sh
19002 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19005 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19006 # is contrary to our usage. Disable this feature.
19007 alias -g '${1+"$@"}'='"$@"'
19008 setopt NO_GLOB_SUBST
19010 case `(set -o) 2>/dev/null` in #(
19022 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19023 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19024 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
19025 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19026 # Prefer a ksh shell builtin over an external printf program on Solaris,
19027 # but without wasting forks for bash or zsh.
19028 if test -z "$BASH_VERSION$ZSH_VERSION" \
19029 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
19030 as_echo
='print -r --'
19031 as_echo_n
='print -rn --'
19032 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
19033 as_echo
='printf %s\n'
19034 as_echo_n
='printf %s'
19036 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19037 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
19038 as_echo_n
='/usr/ucb/echo -n'
19040 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
19041 as_echo_n_body
='eval
19045 expr "X$arg" : "X\\(.*\\)$as_nl";
19046 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19048 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19050 export as_echo_n_body
19051 as_echo_n
='sh -c $as_echo_n_body as_echo'
19053 export as_echo_body
19054 as_echo
='sh -c $as_echo_body as_echo'
19057 # The user is always right.
19058 if test "${PATH_SEPARATOR+set}" != set; then
19060 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
19061 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
19068 # We need space, tab and new line, in precisely that order. Quoting is
19069 # there to prevent editors from complaining about space-tab.
19070 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19071 # splitting by setting IFS to empty value.)
19074 # Find who we are. Look in the path if we contain no directory separator.
19077 *[\\/]* ) as_myself
=$0 ;;
19078 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19079 for as_dir
in $PATH
19082 test -z "$as_dir" && as_dir
=.
19083 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19089 # We did not find ourselves, most probably we were run as `sh COMMAND'
19090 # in which case we are not to be found in the path.
19091 if test "x$as_myself" = x
; then
19094 if test ! -f "$as_myself"; then
19095 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19099 # Unset variables that we do not need and which cause bugs (e.g. in
19100 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19101 # suppresses any "Segmentation fault" message there. '((' could
19102 # trigger a bug in pdksh 5.2.14.
19103 for as_var
in BASH_ENV ENV MAIL MAILPATH
19104 do eval test x\
${$as_var+set} = xset \
19105 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19118 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19121 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19122 # ----------------------------------------
19123 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19124 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19125 # script with STATUS, using 1 if that was 0.
19128 as_status
=$1; test $as_status -eq 0 && as_status
=1
19130 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19131 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19133 $as_echo "$as_me: error: $2" >&2
19134 as_fn_exit
$as_status
19138 # as_fn_set_status STATUS
19139 # -----------------------
19140 # Set $? to STATUS, without forking.
19141 as_fn_set_status
()
19144 } # as_fn_set_status
19146 # as_fn_exit STATUS
19147 # -----------------
19148 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19152 as_fn_set_status
$1
19158 # Portably unset VAR.
19161 { eval $1=; unset $1;}
19163 as_unset
=as_fn_unset
19164 # as_fn_append VAR VALUE
19165 # ----------------------
19166 # Append the text in VALUE to the end of the definition contained in VAR. Take
19167 # advantage of any shell optimizations that allow amortized linear growth over
19168 # repeated appends, instead of the typical quadratic growth present in naive
19170 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19171 eval 'as_fn_append ()
19182 # as_fn_arith ARG...
19183 # ------------------
19184 # Perform arithmetic evaluation on the ARGs, and store the result in the
19185 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19186 # must be portable across $(()) and expr.
19187 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19188 eval 'as_fn_arith ()
19195 as_val
=`expr "$@" || test $? -eq 1`
19200 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19201 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19207 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19208 as_basename
=basename
19213 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19219 as_me
=`$as_basename -- "$0" ||
19220 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19221 X"$0" : 'X\(//\)$' \| \
19222 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19224 sed '/^.*\/\([^/][^/]*\)\/*$/{
19238 # Avoid depending upon Character Ranges.
19239 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19240 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19241 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19242 as_cr_digits
='0123456789'
19243 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19245 ECHO_C
= ECHO_N
= ECHO_T
=
19246 case `echo -n x` in #(((((
19248 case `echo 'xy\c'` in
19249 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19251 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19258 rm -f conf$$ conf$$.exe conf$$.
file
19259 if test -d conf$$.dir
; then
19260 rm -f conf$$.dir
/conf$$.
file
19263 mkdir conf$$.dir
2>/dev
/null
19265 if (echo >conf$$.
file) 2>/dev
/null
; then
19266 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19268 # ... but there are two gotchas:
19269 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19270 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19271 # In both cases, we have to default to `cp -pR'.
19272 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19274 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19282 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19283 rmdir conf$$.dir
2>/dev
/null
19288 # Create "$as_dir" as a directory, including parents if necessary.
19293 -*) as_dir
=.
/$as_dir;;
19295 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19299 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19300 *) as_qdir
=$as_dir;;
19302 as_dirs
="'$as_qdir' $as_dirs"
19303 as_dir
=`$as_dirname -- "$as_dir" ||
19304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19305 X"$as_dir" : 'X\(//\)[^/]' \| \
19306 X"$as_dir" : 'X\(//\)$' \| \
19307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19308 $as_echo X"$as_dir" |
19309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19313 /^X\(\/\/\)[^/].*/{
19326 test -d "$as_dir" && break
19328 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19329 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19333 if mkdir
-p .
2>/dev
/null
; then
19334 as_mkdir_p
='mkdir -p "$as_dir"'
19336 test -d .
/-p && rmdir .
/-p
19341 # as_fn_executable_p FILE
19342 # -----------------------
19343 # Test if FILE is an executable regular file.
19344 as_fn_executable_p
()
19346 test -f "$1" && test -x "$1"
19347 } # as_fn_executable_p
19348 as_test_x
='test -x'
19349 as_executable_p
=as_fn_executable_p
19351 # Sed expression to map a string onto a valid CPP name.
19352 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19354 # Sed expression to map a string onto a valid variable name.
19355 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19359 ## ----------------------------------- ##
19360 ## Main body of $CONFIG_STATUS script. ##
19361 ## ----------------------------------- ##
19363 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19366 # Save the log message, to keep $0 and so on meaningful, and to
19367 # report actual input values of CONFIG_FILES etc. instead of their
19368 # values after options handling.
19370 This file was extended by $as_me, which was
19371 generated by GNU Autoconf 2.69. Invocation command line was
19373 CONFIG_FILES = $CONFIG_FILES
19374 CONFIG_HEADERS = $CONFIG_HEADERS
19375 CONFIG_LINKS = $CONFIG_LINKS
19376 CONFIG_COMMANDS = $CONFIG_COMMANDS
19379 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19384 case $ac_config_files in *"
19385 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19391 # Files that config.status was made for.
19392 config_files="$ac_config_files"
19396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19398 \`$as_me' instantiates files and other configuration actions
19399 from templates according to the current configuration. Unless the files
19400 and actions are specified as TAGs, all are instantiated by default.
19402 Usage: $0 [OPTION]... [TAG]...
19404 -h, --help print this help, then exit
19405 -V, --version print version number and configuration settings, then exit
19406 --config print configuration, then exit
19407 -q, --quiet, --silent
19408 do not print progress messages
19409 -d, --debug don't remove temporary files
19410 --recheck update $as_me by reconfiguring in the same conditions
19411 --file=FILE[:TEMPLATE]
19412 instantiate the configuration file FILE
19414 Configuration files:
19417 Report bugs to the package provider."
19420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19421 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19424 configured by $0, generated by GNU Autoconf 2.69,
19425 with options \\"\$ac_cs_config\\"
19427 Copyright (C) 2012 Free Software Foundation, Inc.
19428 This config.status script is free software; the Free Software Foundation
19429 gives unlimited permission to copy, distribute and modify it."
19435 test -n "\$AWK" || AWK=awk
19438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19439 # The default lists apply if the user does not specify any file.
19445 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19446 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19450 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19462 # Handling of the options.
19463 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19465 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19466 $as_echo "$ac_cs_version"; exit ;;
19467 --config |
--confi |
--conf |
--con |
--co |
--c )
19468 $as_echo "$ac_cs_config"; exit ;;
19469 --debug |
--debu |
--deb |
--de |
--d |
-d )
19471 --file |
--fil |
--fi |
--f )
19474 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19475 '') as_fn_error $?
"missing file argument" ;;
19477 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19478 ac_need_defaults
=false
;;
19479 --he |
--h |
--help |
--hel |
-h )
19480 $as_echo "$ac_cs_usage"; exit ;;
19481 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19482 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19485 # This is an error.
19486 -*) as_fn_error $?
"unrecognized option: \`$1'
19487 Try \`$0 --help' for more information." ;;
19489 *) as_fn_append ac_config_targets
" $1"
19490 ac_need_defaults
=false
;;
19496 ac_configure_extra_args
=
19498 if $ac_cs_silent; then
19500 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19505 if \$ac_cs_recheck; then
19506 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19508 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19509 CONFIG_SHELL='$SHELL'
19510 export CONFIG_SHELL
19515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19519 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19520 ## Running $as_me. ##
19526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19530 extrasub_build="$extrasub_build"
19531 extrasub_host="$extrasub_host"
19532 extrasub_target="$extrasub_target"
19536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19538 # Handling of arguments.
19539 for ac_config_target
in $ac_config_targets
19541 case $ac_config_target in
19542 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19544 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19549 # If the user did not use the arguments to specify the items to instantiate,
19550 # then the envvar interface is used. Set only those that are not.
19551 # We use the long form for the default assignment because of an extremely
19552 # bizarre bug on SunOS 4.1.3.
19553 if $ac_need_defaults; then
19554 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19557 # Have a temporary directory for convenience. Make it in the build tree
19558 # simply because there is no reason against having it here, and in addition,
19559 # creating and moving files from /tmp can sometimes cause problems.
19560 # Hook for its removal unless debugging.
19561 # Note that there is a small window in which the directory will not be cleaned:
19562 # after its creation but before its name has been assigned to `$tmp'.
19566 trap 'exit_status=$?
19567 : "${ac_tmp:=$tmp}"
19568 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19570 trap 'as_fn_exit 1' 1 2 13 15
19572 # Create a (secure) tmp directory for tmp files.
19575 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19579 tmp
=.
/conf$$
-$RANDOM
19580 (umask 077 && mkdir
"$tmp")
19581 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19584 # Set up the scripts for CONFIG_FILES section.
19585 # No need to generate them if there are no CONFIG_FILES.
19586 # This happens for instance with `./config.status config.h'.
19587 if test -n "$CONFIG_FILES"; then
19589 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19590 ac_cs_awk_getline
=:
19591 ac_cs_awk_pipe_init
=
19592 ac_cs_awk_read_file
='
19593 while ((getline aline < (F[key])) > 0)
19596 ac_cs_awk_pipe_fini
=
19598 ac_cs_awk_getline
=false
19599 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19600 ac_cs_awk_read_file
='
19602 print "cat " F[key] " &&"
19603 '$ac_cs_awk_pipe_init
19604 # The final `:' finishes the AND list.
19605 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19607 ac_cr
=`echo X | tr X '\015'`
19608 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19609 # But we know of no other shell where ac_cr would be empty at this
19610 # point, so we can use a bashism as a fallback.
19611 if test "x$ac_cr" = x
; then
19612 eval ac_cr
=\$
\'\\r
\'
19614 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19615 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19618 ac_cs_awk_cr
=$ac_cr
19621 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19624 # Create commands to substitute file output variables.
19626 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19627 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19628 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19631 } >conf$
$files.sh
&&
19632 . .
/conf$
$files.sh ||
19633 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19634 rm -f conf$
$files.sh
19637 echo "cat >conf$$subs.awk <<_ACEOF" &&
19638 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19640 } >conf$$subs.sh ||
19641 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19642 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19644 for ac_last_try in false false false false false :; do
19645 . ./conf$$subs.sh ||
19646 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19648 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19649 if test $ac_delim_n = $ac_delim_num; then
19651 elif $ac_last_try; then
19652 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19654 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19657 rm -f conf$$subs.sh
19659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19660 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19664 s/^/S["/; s
/!.
*/"]=/
19674 s/\(.\{148\}\)..*/\1/
19676 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19681 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19688 s/\(.\{148\}\)..*/\1/
19690 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19694 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19699 ' <conf$$subs.awk | sed '
19704 ' >>$CONFIG_STATUS || ac_write_fail=1
19705 rm -f conf$$subs.awk
19706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19708 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19709 for (key in S) S_is_set[key] = 1
19711 \$ac_cs_awk_pipe_init
19715 nfields = split(line, field, "@
")
19717 len = length(field[1])
19718 for (i = 2; i < nfields; i++) {
19720 keylen = length(key)
19721 if (S_is_set[key]) {
19723 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19724 len += length(value) + length(field[++i])
19729 if (nfields == 3 && !substed) {
19731 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19732 \$ac_cs_awk_read_file
19738 \$ac_cs_awk_pipe_fini
19741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19742 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19743 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19746 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19747 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19750 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19751 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19752 # trailing colons and then remove the whole line if VPATH becomes empty
19753 # (actually we leave an empty line to preserve line numbers).
19754 if test "x
$srcdir" = x.; then
19755 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19774 fi # test -n "$CONFIG_FILES"
19777 eval set X " :F
$CONFIG_FILES "
19782 :[FHLC]) ac_mode=$ac_tag; continue;;
19784 case $ac_mode$ac_tag in
19786 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19787 :[FH]-) ac_tag=-:-;;
19788 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19805 -) ac_f="$ac_tmp/stdin";;
19806 *) # Look for the file first in the build tree, then in the source tree
19807 # (if the path is not absolute). The absolute path cannot be DOS-style,
19808 # because $ac_f cannot contain `:'.
19812 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19814 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19816 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19817 as_fn_append ac_file_inputs " '$ac_f'"
19820 # Let's still pretend it is `configure' which instantiates (i.e., don't
19821 # use $as_me), people would be surprised to read:
19822 # /* config.h. Generated by config.status. */
19823 configure_input='Generated from '`
19824 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19826 if test x"$ac_file" != x-; then
19827 configure_input="$ac_file.
$configure_input"
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19829 $as_echo "$as_me: creating
$ac_file" >&6;}
19831 # Neutralize special characters interpreted by sed in replacement strings.
19832 case $configure_input in #(
19833 *\&* | *\|* | *\\* )
19834 ac_sed_conf_input=`$as_echo "$configure_input" |
19835 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19836 *) ac_sed_conf_input=$configure_input;;
19840 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19841 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19846 ac_dir=`$as_dirname -- "$ac_file" ||
19847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19848 X"$ac_file" : 'X\(//\)[^/]' \| \
19849 X"$ac_file" : 'X\(//\)$' \| \
19850 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19851 $as_echo X"$ac_file" |
19852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19856 /^X\(\/\/\)[^/].*/{
19869 as_dir="$ac_dir"; as_fn_mkdir_p
19873 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19875 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19876 # A "..
" for each directory in $ac_dir_suffix.
19877 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19878 case $ac_top_builddir_sub in
19879 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19880 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19883 ac_abs_top_builddir=$ac_pwd
19884 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19885 # for backward compatibility:
19886 ac_top_builddir=$ac_top_build_prefix
19889 .) # We are building in place.
19891 ac_top_srcdir=$ac_top_builddir_sub
19892 ac_abs_top_srcdir=$ac_pwd ;;
19893 [\\/]* | ?:[\\/]* ) # Absolute name.
19894 ac_srcdir=$srcdir$ac_dir_suffix;
19895 ac_top_srcdir=$srcdir
19896 ac_abs_top_srcdir=$srcdir ;;
19897 *) # Relative name.
19898 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19899 ac_top_srcdir=$ac_top_build_prefix$srcdir
19900 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19902 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19912 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19913 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19918 # If the template does not know about datarootdir, expand it.
19919 # FIXME: This hack should be removed a few years after 2.60.
19920 ac_datarootdir_hack=; ac_datarootdir_seen=
19931 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19932 *datarootdir*) ac_datarootdir_seen=yes;;
19933 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19935 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19938 ac_datarootdir_hack='
19939 s&@datadir@&$datadir&g
19940 s&@docdir@&$docdir&g
19941 s&@infodir@&$infodir&g
19942 s&@localedir@&$localedir&g
19943 s&@mandir@&$mandir&g
19944 s&\\\${datarootdir}&$datarootdir&g' ;;
19948 # Neutralize VPATH when `$srcdir' = `.'.
19949 # Shell code in configure.ac might set extrasub.
19950 # FIXME: do we really want to maintain this feature?
19951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19952 ac_sed_extra="$ac_vpsub
19955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19957 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19958 s|@configure_input@|
$ac_sed_conf_input|
;t t
19959 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19960 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19961 s
&@srcdir@
&$ac_srcdir&;t t
19962 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19963 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19964 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19965 s
&@builddir@
&$ac_builddir&;t t
19966 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19967 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19968 s
&@INSTALL@
&$ac_INSTALL&;t t
19969 $ac_datarootdir_hack
19971 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19972 if $ac_cs_awk_getline; then
19973 $AWK -f "$ac_tmp/subs.
awk"
19975 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19977 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19979 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19980 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19981 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19982 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19984 which seems to be undefined. Please make sure it is defined" >&5
19985 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19986 which seems to be undefined. Please make sure it is defined" >&2;}
19988 rm -f "$ac_tmp/stdin"
19990 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19991 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19993 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20001 case $ac_file$ac_mode in
20002 "Makefile":F) sed "$extrasub_build" Makefile |
20003 sed "$extrasub_host" |
20004 sed "$extrasub_target" > mf$$
20005 mv -f mf$$ Makefile ;;
20013 ac_clean_files=$ac_clean_files_save
20015 test $ac_write_fail = 0 ||
20016 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20019 # configure is writing to config.log, and then calls config.status.
20020 # config.status does its own redirection, appending to config.log.
20021 # Unfortunately, on DOS this fails, as config.log is still kept open
20022 # by configure, so config.status won't be able to
write to it
; its
20023 # output is simply discarded. So we exec the FD to /dev/null,
20024 # effectively closing config.log, so it can be properly (re)opened and
20025 # appended to by config.status. When coming back to configure, we
20026 # need to make the FD available again.
20027 if test "$no_create" != yes; then
20029 ac_config_status_args
=
20030 test "$silent" = yes &&
20031 ac_config_status_args
="$ac_config_status_args --quiet"
20033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20036 # would make configure fail if this is the last instruction.
20037 $ac_cs_success || as_fn_exit
1
20039 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20041 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}